// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: pbmulticluster/v2/exported_services_consumer.proto

package multiclusterv2

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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)
)

// +kubebuilder:validation:Type=object
// +kubebuilder:validation:Schemaless
// +kubebuilder:pruning:PreserveUnknownFields
type ExportedServicesConsumer struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to ConsumerTenancy:
	//
	//	*ExportedServicesConsumer_Peer
	//	*ExportedServicesConsumer_Partition
	//	*ExportedServicesConsumer_SamenessGroup
	ConsumerTenancy isExportedServicesConsumer_ConsumerTenancy `protobuf_oneof:"consumer_tenancy"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*ExportedServicesConsumer) ProtoMessage() {}

func (x *ExportedServicesConsumer) ProtoReflect() protoreflect.Message {
	mi := &file_pbmulticluster_v2_exported_services_consumer_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 ExportedServicesConsumer.ProtoReflect.Descriptor instead.
func (*ExportedServicesConsumer) Descriptor() ([]byte, []int) {
	return file_pbmulticluster_v2_exported_services_consumer_proto_rawDescGZIP(), []int{0}
}

func (x *ExportedServicesConsumer) GetConsumerTenancy() isExportedServicesConsumer_ConsumerTenancy {
	if x != nil {
		return x.ConsumerTenancy
	}
	return nil
}

func (x *ExportedServicesConsumer) GetPeer() string {
	if x != nil {
		if x, ok := x.ConsumerTenancy.(*ExportedServicesConsumer_Peer); ok {
			return x.Peer
		}
	}
	return ""
}

func (x *ExportedServicesConsumer) GetPartition() string {
	if x != nil {
		if x, ok := x.ConsumerTenancy.(*ExportedServicesConsumer_Partition); ok {
			return x.Partition
		}
	}
	return ""
}

func (x *ExportedServicesConsumer) GetSamenessGroup() string {
	if x != nil {
		if x, ok := x.ConsumerTenancy.(*ExportedServicesConsumer_SamenessGroup); ok {
			return x.SamenessGroup
		}
	}
	return ""
}

type isExportedServicesConsumer_ConsumerTenancy interface {
	isExportedServicesConsumer_ConsumerTenancy()
}

type ExportedServicesConsumer_Peer struct {
	Peer string `protobuf:"bytes,1,opt,name=peer,proto3,oneof"`
}

type ExportedServicesConsumer_Partition struct {
	Partition string `protobuf:"bytes,2,opt,name=partition,proto3,oneof"`
}

type ExportedServicesConsumer_SamenessGroup struct {
	SamenessGroup string `protobuf:"bytes,3,opt,name=sameness_group,json=samenessGroup,proto3,oneof"`
}

func (*ExportedServicesConsumer_Peer) isExportedServicesConsumer_ConsumerTenancy() {}

func (*ExportedServicesConsumer_Partition) isExportedServicesConsumer_ConsumerTenancy() {}

func (*ExportedServicesConsumer_SamenessGroup) isExportedServicesConsumer_ConsumerTenancy() {}

var File_pbmulticluster_v2_exported_services_consumer_proto protoreflect.FileDescriptor

const file_pbmulticluster_v2_exported_services_consumer_proto_rawDesc = "" +
	"\n" +
	"2pbmulticluster/v2/exported_services_consumer.proto\x12 hashicorp.consul.multicluster.v2\"\x8d\x01\n" +
	"\x18ExportedServicesConsumer\x12\x14\n" +
	"\x04peer\x18\x01 \x01(\tH\x00R\x04peer\x12\x1e\n" +
	"\tpartition\x18\x02 \x01(\tH\x00R\tpartition\x12'\n" +
	"\x0esameness_group\x18\x03 \x01(\tH\x00R\rsamenessGroupB\x12\n" +
	"\x10consumer_tenancyB\xb3\x02\n" +
	"$com.hashicorp.consul.multicluster.v2B\x1dExportedServicesConsumerProtoP\x01ZIgithub.com/hashicorp/consul/proto-public/pbmulticluster/v2;multiclusterv2\xa2\x02\x03HCM\xaa\x02 Hashicorp.Consul.Multicluster.V2\xca\x02 Hashicorp\\Consul\\Multicluster\\V2\xe2\x02,Hashicorp\\Consul\\Multicluster\\V2\\GPBMetadata\xea\x02#Hashicorp::Consul::Multicluster::V2b\x06proto3"

var (
	file_pbmulticluster_v2_exported_services_consumer_proto_rawDescOnce sync.Once
	file_pbmulticluster_v2_exported_services_consumer_proto_rawDescData []byte
)

func file_pbmulticluster_v2_exported_services_consumer_proto_rawDescGZIP() []byte {
	file_pbmulticluster_v2_exported_services_consumer_proto_rawDescOnce.Do(func() {
		file_pbmulticluster_v2_exported_services_consumer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_pbmulticluster_v2_exported_services_consumer_proto_rawDesc), len(file_pbmulticluster_v2_exported_services_consumer_proto_rawDesc)))
	})
	return file_pbmulticluster_v2_exported_services_consumer_proto_rawDescData
}

var file_pbmulticluster_v2_exported_services_consumer_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_pbmulticluster_v2_exported_services_consumer_proto_goTypes = []any{
	(*ExportedServicesConsumer)(nil), // 0: hashicorp.consul.multicluster.v2.ExportedServicesConsumer
}
var file_pbmulticluster_v2_exported_services_consumer_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_pbmulticluster_v2_exported_services_consumer_proto_init() }
func file_pbmulticluster_v2_exported_services_consumer_proto_init() {
	if File_pbmulticluster_v2_exported_services_consumer_proto != nil {
		return
	}
	file_pbmulticluster_v2_exported_services_consumer_proto_msgTypes[0].OneofWrappers = []any{
		(*ExportedServicesConsumer_Peer)(nil),
		(*ExportedServicesConsumer_Partition)(nil),
		(*ExportedServicesConsumer_SamenessGroup)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_pbmulticluster_v2_exported_services_consumer_proto_rawDesc), len(file_pbmulticluster_v2_exported_services_consumer_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_pbmulticluster_v2_exported_services_consumer_proto_goTypes,
		DependencyIndexes: file_pbmulticluster_v2_exported_services_consumer_proto_depIdxs,
		MessageInfos:      file_pbmulticluster_v2_exported_services_consumer_proto_msgTypes,
	}.Build()
	File_pbmulticluster_v2_exported_services_consumer_proto = out.File
	file_pbmulticluster_v2_exported_services_consumer_proto_goTypes = nil
	file_pbmulticluster_v2_exported_services_consumer_proto_depIdxs = nil
}
