// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.33.0-devel
// 	protoc        v5.26.1
// source: desc_test_editions.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 Closed int32

const (
	Closed_CLOSED_C Closed = 1
	Closed_CLOSED_A Closed = 2
)

// Enum value maps for Closed.
var (
	Closed_name = map[int32]string{
		1: "CLOSED_C",
		2: "CLOSED_A",
	}
	Closed_value = map[string]int32{
		"CLOSED_C": 1,
		"CLOSED_A": 2,
	}
)

func (x Closed) Enum() *Closed {
	p := new(Closed)
	*p = x
	return p
}

func (x Closed) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Closed) Descriptor() protoreflect.EnumDescriptor {
	return file_desc_test_editions_proto_enumTypes[0].Descriptor()
}

func (Closed) Type() protoreflect.EnumType {
	return &file_desc_test_editions_proto_enumTypes[0]
}

func (x Closed) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Closed.Descriptor instead.
func (Closed) EnumDescriptor() ([]byte, []int) {
	return file_desc_test_editions_proto_rawDescGZIP(), []int{0}
}

type Open int32

const (
	Open_OPEN_B Open = 0
	Open_OPEN_C Open = -1
	Open_OPEN_A Open = 2
)

// Enum value maps for Open.
var (
	Open_name = map[int32]string{
		0:  "OPEN_B",
		-1: "OPEN_C",
		2:  "OPEN_A",
	}
	Open_value = map[string]int32{
		"OPEN_B": 0,
		"OPEN_C": -1,
		"OPEN_A": 2,
	}
)

func (x Open) Enum() *Open {
	p := new(Open)
	*p = x
	return p
}

func (x Open) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Open) Descriptor() protoreflect.EnumDescriptor {
	return file_desc_test_editions_proto_enumTypes[1].Descriptor()
}

func (Open) Type() protoreflect.EnumType {
	return &file_desc_test_editions_proto_enumTypes[1]
}

func (x Open) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Open.Descriptor instead.
func (Open) EnumDescriptor() ([]byte, []int) {
	return file_desc_test_editions_proto_rawDescGZIP(), []int{1}
}

type Foo struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	A              *int32              `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
	RequiredField  *int32              `protobuf:"varint,2,req,name=required_field,json=requiredField" json:"required_field,omitempty"`
	DefaultField   *int32              `protobuf:"varint,3,opt,name=default_field,json=defaultField,def=99" json:"default_field,omitempty"`
	Delimitedfield *Foo_DelimitedField `protobuf:"group,4,opt,name=DelimitedField,json=delimitedfield" json:"delimitedfield,omitempty"`
}

// Default values for Foo fields.
const (
	Default_Foo_DefaultField = int32(99)
)

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

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

func (*Foo) ProtoMessage() {}

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

func (x *Foo) GetA() int32 {
	if x != nil && x.A != nil {
		return *x.A
	}
	return 0
}

func (x *Foo) GetRequiredField() int32 {
	if x != nil && x.RequiredField != nil {
		return *x.RequiredField
	}
	return 0
}

func (x *Foo) GetDefaultField() int32 {
	if x != nil && x.DefaultField != nil {
		return *x.DefaultField
	}
	return Default_Foo_DefaultField
}

func (x *Foo) GetDelimitedfield() *Foo_DelimitedField {
	if x != nil {
		return x.Delimitedfield
	}
	return nil
}

type Foo_DelimitedField struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	B *int32 `protobuf:"varint,1,opt,name=b" json:"b,omitempty"`
}

func (x *Foo_DelimitedField) Reset() {
	*x = Foo_DelimitedField{}
	if protoimpl.UnsafeEnabled {
		mi := &file_desc_test_editions_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*Foo_DelimitedField) ProtoMessage() {}

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

func (x *Foo_DelimitedField) GetB() int32 {
	if x != nil && x.B != nil {
		return *x.B
	}
	return 0
}

var File_desc_test_editions_proto protoreflect.FileDescriptor

var file_desc_test_editions_proto_rawDesc = []byte{
	0x0a, 0x18, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x64, 0x69, 0x74,
	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x73, 0x74,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0xe9, 0x01, 0x0a, 0x03, 0x46, 0x6f, 0x6f, 0x12, 0x0c,
	0x0a, 0x01, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x61, 0x12, 0x2c, 0x0a, 0x0e,
	0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02,
	0x20, 0x01, 0x28, 0x05, 0x42, 0x05, 0xaa, 0x01, 0x02, 0x08, 0x03, 0x52, 0x0d, 0x72, 0x65, 0x71,
	0x75, 0x69, 0x72, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x27, 0x0a, 0x0d, 0x64, 0x65,
	0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
	0x05, 0x3a, 0x02, 0x39, 0x39, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x46, 0x69,
	0x65, 0x6c, 0x64, 0x12, 0x4d, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x64,
	0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65,
	0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x46, 0x6f, 0x6f, 0x2e, 0x44, 0x65, 0x6c,
	0x69, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x05, 0xaa, 0x01, 0x02,
	0x28, 0x02, 0x52, 0x0e, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x66, 0x69, 0x65,
	0x6c, 0x64, 0x1a, 0x1e, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x46,
	0x69, 0x65, 0x6c, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
	0x01, 0x62, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, 0x66, 0x69, 0x65,
	0x6c, 0x64, 0x2a, 0x38, 0x0a, 0x06, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x64, 0x12, 0x0c, 0x0a, 0x08,
	0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x5f, 0x43, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4c,
	0x4f, 0x53, 0x45, 0x44, 0x5f, 0x41, 0x10, 0x02, 0x2a, 0x08, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44,
	0x5f, 0x45, 0x2a, 0x08, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x5f, 0x46, 0x2a, 0x39, 0x0a, 0x04,
	0x4f, 0x70, 0x65, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x50, 0x45, 0x4e, 0x5f, 0x42, 0x10, 0x00,
	0x12, 0x13, 0x0a, 0x06, 0x4f, 0x50, 0x45, 0x4e, 0x5f, 0x43, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff,
	0xff, 0xff, 0xff, 0xff, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x50, 0x45, 0x4e, 0x5f, 0x41, 0x10,
	0x02, 0x1a, 0x04, 0x3a, 0x02, 0x10, 0x01, 0x42, 0x38, 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, 0x92, 0x03, 0x02, 0x10,
	0x02, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
}

var (
	file_desc_test_editions_proto_rawDescOnce sync.Once
	file_desc_test_editions_proto_rawDescData = file_desc_test_editions_proto_rawDesc
)

func file_desc_test_editions_proto_rawDescGZIP() []byte {
	file_desc_test_editions_proto_rawDescOnce.Do(func() {
		file_desc_test_editions_proto_rawDescData = protoimpl.X.CompressGZIP(file_desc_test_editions_proto_rawDescData)
	})
	return file_desc_test_editions_proto_rawDescData
}

var file_desc_test_editions_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_desc_test_editions_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_desc_test_editions_proto_goTypes = []interface{}{
	(Closed)(0),                // 0: testprotos.Closed
	(Open)(0),                  // 1: testprotos.Open
	(*Foo)(nil),                // 2: testprotos.Foo
	(*Foo_DelimitedField)(nil), // 3: testprotos.Foo.DelimitedField
}
var file_desc_test_editions_proto_depIdxs = []int32{
	3, // 0: testprotos.Foo.delimitedfield:type_name -> testprotos.Foo.DelimitedField
	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_editions_proto_init() }
func file_desc_test_editions_proto_init() {
	if File_desc_test_editions_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_desc_test_editions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Foo); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_desc_test_editions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Foo_DelimitedField); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_desc_test_editions_proto_rawDesc,
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_desc_test_editions_proto_goTypes,
		DependencyIndexes: file_desc_test_editions_proto_depIdxs,
		EnumInfos:         file_desc_test_editions_proto_enumTypes,
		MessageInfos:      file_desc_test_editions_proto_msgTypes,
	}.Build()
	File_desc_test_editions_proto = out.File
	file_desc_test_editions_proto_rawDesc = nil
	file_desc_test_editions_proto_goTypes = nil
	file_desc_test_editions_proto_depIdxs = nil
}
