// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
// 	protoc        v3.21.7
// source: desc_test_oneof.proto

package testprotos

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

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 OneOfMessage struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Types that are assignable to Value:
	//
	//	*OneOfMessage_BinaryValue
	//	*OneOfMessage_StringValue
	//	*OneOfMessage_BooleanValue
	//	*OneOfMessage_IntValue
	//	*OneOfMessage_Int64Value
	//	*OneOfMessage_DoubleValue
	//	*OneOfMessage_FloatValue
	//	*OneOfMessage_MsgValue
	Value isOneOfMessage_Value `protobuf_oneof:"value"`
}

func (x *OneOfMessage) Reset() {
	*x = OneOfMessage{}
	if protoimpl.UnsafeEnabled {
		mi := &file_desc_test_oneof_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*OneOfMessage) ProtoMessage() {}

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

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

func (m *OneOfMessage) GetValue() isOneOfMessage_Value {
	if m != nil {
		return m.Value
	}
	return nil
}

func (x *OneOfMessage) GetBinaryValue() []byte {
	if x, ok := x.GetValue().(*OneOfMessage_BinaryValue); ok {
		return x.BinaryValue
	}
	return nil
}

func (x *OneOfMessage) GetStringValue() string {
	if x, ok := x.GetValue().(*OneOfMessage_StringValue); ok {
		return x.StringValue
	}
	return ""
}

func (x *OneOfMessage) GetBooleanValue() bool {
	if x, ok := x.GetValue().(*OneOfMessage_BooleanValue); ok {
		return x.BooleanValue
	}
	return false
}

func (x *OneOfMessage) GetIntValue() int32 {
	if x, ok := x.GetValue().(*OneOfMessage_IntValue); ok {
		return x.IntValue
	}
	return 0
}

func (x *OneOfMessage) GetInt64Value() int64 {
	if x, ok := x.GetValue().(*OneOfMessage_Int64Value); ok {
		return x.Int64Value
	}
	return 0
}

func (x *OneOfMessage) GetDoubleValue() float64 {
	if x, ok := x.GetValue().(*OneOfMessage_DoubleValue); ok {
		return x.DoubleValue
	}
	return 0
}

func (x *OneOfMessage) GetFloatValue() float32 {
	if x, ok := x.GetValue().(*OneOfMessage_FloatValue); ok {
		return x.FloatValue
	}
	return 0
}

func (x *OneOfMessage) GetMsgValue() *OneOfMessage {
	if x, ok := x.GetValue().(*OneOfMessage_MsgValue); ok {
		return x.MsgValue
	}
	return nil
}

type isOneOfMessage_Value interface {
	isOneOfMessage_Value()
}

type OneOfMessage_BinaryValue struct {
	BinaryValue []byte `protobuf:"bytes,1,opt,name=binary_value,json=binaryValue,proto3,oneof"`
}

type OneOfMessage_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type OneOfMessage_BooleanValue struct {
	BooleanValue bool `protobuf:"varint,3,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}

type OneOfMessage_IntValue struct {
	IntValue int32 `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3,oneof"`
}

type OneOfMessage_Int64Value struct {
	Int64Value int64 `protobuf:"varint,5,opt,name=int64_value,json=int64Value,proto3,oneof"`
}

type OneOfMessage_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type OneOfMessage_FloatValue struct {
	FloatValue float32 `protobuf:"fixed32,7,opt,name=float_value,json=floatValue,proto3,oneof"`
}

type OneOfMessage_MsgValue struct {
	MsgValue *OneOfMessage `protobuf:"bytes,8,opt,name=msg_value,json=msgValue,proto3,oneof"`
}

func (*OneOfMessage_BinaryValue) isOneOfMessage_Value() {}

func (*OneOfMessage_StringValue) isOneOfMessage_Value() {}

func (*OneOfMessage_BooleanValue) isOneOfMessage_Value() {}

func (*OneOfMessage_IntValue) isOneOfMessage_Value() {}

func (*OneOfMessage_Int64Value) isOneOfMessage_Value() {}

func (*OneOfMessage_DoubleValue) isOneOfMessage_Value() {}

func (*OneOfMessage_FloatValue) isOneOfMessage_Value() {}

func (*OneOfMessage_MsgValue) isOneOfMessage_Value() {}

var File_desc_test_oneof_proto protoreflect.FileDescriptor

var file_desc_test_oneof_proto_rawDesc = []byte{
	0x0a, 0x15, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x6e, 0x65, 0x6f,
	0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x73, 0x22, 0xcb, 0x02, 0x0a, 0x0c, 0x4f, 0x6e, 0x65, 0x4f, 0x66, 0x4d, 0x65, 0x73,
	0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76,
	0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x69,
	0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72,
	0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48,
	0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25,
	0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
	0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e,
	0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c,
	0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56,
	0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61,
	0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74,
	0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c,
	0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52,
	0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b,
	0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
	0x02, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
	0x37, 0x0a, 0x09, 0x6d, 0x73, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01,
	0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e,
	0x4f, 0x6e, 0x65, 0x4f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x08,
	0x6d, 0x73, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
	0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
	0x6a, 0x68, 0x75, 0x6d, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x66, 0x6c, 0x65,
	0x63, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_desc_test_oneof_proto_rawDescOnce sync.Once
	file_desc_test_oneof_proto_rawDescData = file_desc_test_oneof_proto_rawDesc
)

func file_desc_test_oneof_proto_rawDescGZIP() []byte {
	file_desc_test_oneof_proto_rawDescOnce.Do(func() {
		file_desc_test_oneof_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test_oneof_proto_rawDescData)
	})
	return file_desc_test_oneof_proto_rawDescData
}

var file_desc_test_oneof_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_desc_test_oneof_proto_goTypes = []interface{}{
	(*OneOfMessage)(nil), // 0: testprotos.OneOfMessage
}
var file_desc_test_oneof_proto_depIdxs = []int32{
	0, // 0: testprotos.OneOfMessage.msg_value:type_name -> testprotos.OneOfMessage
	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_desc_test_oneof_proto_init() }
func file_desc_test_oneof_proto_init() {
	if File_desc_test_oneof_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_desc_test_oneof_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*OneOfMessage); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	file_desc_test_oneof_proto_msgTypes[0].OneofWrappers = []interface{}{
		(*OneOfMessage_BinaryValue)(nil),
		(*OneOfMessage_StringValue)(nil),
		(*OneOfMessage_BooleanValue)(nil),
		(*OneOfMessage_IntValue)(nil),
		(*OneOfMessage_Int64Value)(nil),
		(*OneOfMessage_DoubleValue)(nil),
		(*OneOfMessage_FloatValue)(nil),
		(*OneOfMessage_MsgValue)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_desc_test_oneof_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_desc_test_oneof_proto_goTypes,
		DependencyIndexes: file_desc_test_oneof_proto_depIdxs,
		MessageInfos:      file_desc_test_oneof_proto_msgTypes,
	}.Build()
	File_desc_test_oneof_proto = out.File
	file_desc_test_oneof_proto_rawDesc = nil
	file_desc_test_oneof_proto_goTypes = nil
	file_desc_test_oneof_proto_depIdxs = nil
}
