// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.9
// 	protoc        v6.32.1
// source: internal/module/kubernetes_api/server/watch_aggregator/watch_aggregator.proto

package watch_aggregator

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	_ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type WatchRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	WatchId       string                 `protobuf:"bytes,1,opt,name=watch_id,proto3" json:"watch_id,omitempty"`
	Type          string                 `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	WatchParams   *WatchParams           `protobuf:"bytes,3,opt,name=watch_params,proto3" json:"watch_params,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WatchRequest) Reset() {
	*x = WatchRequest{}
	mi := &file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *WatchRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*WatchRequest) ProtoMessage() {}

func (x *WatchRequest) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) Descriptor() ([]byte, []int) {
	return file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDescGZIP(), []int{0}
}

func (x *WatchRequest) GetWatchId() string {
	if x != nil {
		return x.WatchId
	}
	return ""
}

func (x *WatchRequest) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

func (x *WatchRequest) GetWatchParams() *WatchParams {
	if x != nil {
		return x.WatchParams
	}
	return nil
}

type WatchParams struct {
	state               protoimpl.MessageState `protogen:"open.v1"`
	Group               string                 `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Version             string                 `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Resource            string                 `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
	Namespace           string                 `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ResourceVersion     *string                `protobuf:"bytes,5,opt,name=resource_version,proto3,oneof" json:"resource_version,omitempty"`
	AllowWatchBookmarks *bool                  `protobuf:"varint,6,opt,name=allow_watch_bookmarks,proto3,oneof" json:"allow_watch_bookmarks,omitempty"`
	SendInitialEvents   *bool                  `protobuf:"varint,7,opt,name=send_initial_events,proto3,oneof" json:"send_initial_events,omitempty"`
	FieldSelector       *string                `protobuf:"bytes,8,opt,name=field_selector,proto3,oneof" json:"field_selector,omitempty"`
	LabelSelector       *string                `protobuf:"bytes,9,opt,name=label_selector,proto3,oneof" json:"label_selector,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

func (x *WatchParams) Reset() {
	*x = WatchParams{}
	mi := &file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *WatchParams) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*WatchParams) ProtoMessage() {}

func (x *WatchParams) ProtoReflect() protoreflect.Message {
	mi := &file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use WatchParams.ProtoReflect.Descriptor instead.
func (*WatchParams) Descriptor() ([]byte, []int) {
	return file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDescGZIP(), []int{1}
}

func (x *WatchParams) GetGroup() string {
	if x != nil {
		return x.Group
	}
	return ""
}

func (x *WatchParams) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

func (x *WatchParams) GetResource() string {
	if x != nil {
		return x.Resource
	}
	return ""
}

func (x *WatchParams) GetNamespace() string {
	if x != nil {
		return x.Namespace
	}
	return ""
}

func (x *WatchParams) GetResourceVersion() string {
	if x != nil && x.ResourceVersion != nil {
		return *x.ResourceVersion
	}
	return ""
}

func (x *WatchParams) GetAllowWatchBookmarks() bool {
	if x != nil && x.AllowWatchBookmarks != nil {
		return *x.AllowWatchBookmarks
	}
	return false
}

func (x *WatchParams) GetSendInitialEvents() bool {
	if x != nil && x.SendInitialEvents != nil {
		return *x.SendInitialEvents
	}
	return false
}

func (x *WatchParams) GetFieldSelector() string {
	if x != nil && x.FieldSelector != nil {
		return *x.FieldSelector
	}
	return ""
}

func (x *WatchParams) GetLabelSelector() string {
	if x != nil && x.LabelSelector != nil {
		return *x.LabelSelector
	}
	return ""
}

var File_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto protoreflect.FileDescriptor

const file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDesc = "" +
	"\n" +
	"Minternal/module/kubernetes_api/server/watch_aggregator/watch_aggregator.proto\x12,gitlab.agent.kubernetes_api.watch_aggregator\x1a\x1bbuf/validate/validate.proto\"\xc8\x02\n" +
	"\fWatchRequest\x12#\n" +
	"\bwatch_id\x18\x01 \x01(\tB\a\xbaH\x04r\x02 \x01R\bwatch_id\x12)\n" +
	"\x04type\x18\x02 \x01(\tB\x15\xbaH\x12r\x10R\x05watchR\aunwatchR\x04type\x12]\n" +
	"\fwatch_params\x18\x03 \x01(\v29.gitlab.agent.kubernetes_api.watch_aggregator.WatchParamsR\fwatch_params:\x88\x01\xbaH\x84\x01\x1a\x81\x01\n" +
	"\x1fwatch_params_required_for_watch\x12*watch_params is required for type == watch\x1a2!(this.type == 'watch' && !has(this.watch_params))\"\xf3\x03\n" +
	"\vWatchParams\x12\x14\n" +
	"\x05group\x18\x01 \x01(\tR\x05group\x12!\n" +
	"\aversion\x18\x02 \x01(\tB\a\xbaH\x04r\x02 \x01R\aversion\x12#\n" +
	"\bresource\x18\x03 \x01(\tB\a\xbaH\x04r\x02 \x01R\bresource\x12\x1c\n" +
	"\tnamespace\x18\x04 \x01(\tR\tnamespace\x12/\n" +
	"\x10resource_version\x18\x05 \x01(\tH\x00R\x10resource_version\x88\x01\x01\x129\n" +
	"\x15allow_watch_bookmarks\x18\x06 \x01(\bH\x01R\x15allow_watch_bookmarks\x88\x01\x01\x125\n" +
	"\x13send_initial_events\x18\a \x01(\bH\x02R\x13send_initial_events\x88\x01\x01\x12+\n" +
	"\x0efield_selector\x18\b \x01(\tH\x03R\x0efield_selector\x88\x01\x01\x12+\n" +
	"\x0elabel_selector\x18\t \x01(\tH\x04R\x0elabel_selector\x88\x01\x01B\x13\n" +
	"\x11_resource_versionB\x18\n" +
	"\x16_allow_watch_bookmarksB\x16\n" +
	"\x14_send_initial_eventsB\x11\n" +
	"\x0f_field_selectorB\x11\n" +
	"\x0f_label_selectorBsZqgitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/kubernetes_api/server/watch_aggregatorb\x06proto3"

var (
	file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDescOnce sync.Once
	file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDescData []byte
)

func file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDescGZIP() []byte {
	file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDescOnce.Do(func() {
		file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDesc), len(file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDesc)))
	})
	return file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDescData
}

var file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_goTypes = []any{
	(*WatchRequest)(nil), // 0: gitlab.agent.kubernetes_api.watch_aggregator.WatchRequest
	(*WatchParams)(nil),  // 1: gitlab.agent.kubernetes_api.watch_aggregator.WatchParams
}
var file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_depIdxs = []int32{
	1, // 0: gitlab.agent.kubernetes_api.watch_aggregator.WatchRequest.watch_params:type_name -> gitlab.agent.kubernetes_api.watch_aggregator.WatchParams
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() {
	file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_init()
}
func file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_init() {
	if File_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto != nil {
		return
	}
	file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_msgTypes[1].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDesc), len(file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_goTypes,
		DependencyIndexes: file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_depIdxs,
		MessageInfos:      file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_msgTypes,
	}.Build()
	File_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto = out.File
	file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_goTypes = nil
	file_internal_module_kubernetes_api_server_watch_aggregator_watch_aggregator_proto_depIdxs = nil
}
