// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test Protobuf definitions with proto2 syntax. // Code generated by protoc-gen-go. DO NOT EDIT. // source: internal/testprotos/textpb2/test.proto package textpb2 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" durationpb "google.golang.org/protobuf/types/known/durationpb" emptypb "google.golang.org/protobuf/types/known/emptypb" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" structpb "google.golang.org/protobuf/types/known/structpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" unsafe "unsafe" ) type Enum int32 const ( Enum_ONE Enum = 1 Enum_TWO Enum = 2 Enum_TEN Enum = 10 ) // Enum value maps for Enum. var ( Enum_name = map[int32]string{ 1: "ONE", 2: "TWO", 10: "TEN", } Enum_value = map[string]int32{ "ONE": 1, "TWO": 2, "TEN": 10, } ) func (x Enum) Enum() *Enum { p := new(Enum) *p = x return p } func (x Enum) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (Enum) Descriptor() protoreflect.EnumDescriptor { return file_internal_testprotos_textpb2_test_proto_enumTypes[0].Descriptor() } func (Enum) Type() protoreflect.EnumType { return &file_internal_testprotos_textpb2_test_proto_enumTypes[0] } func (x Enum) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. func (x *Enum) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } *x = Enum(num) return nil } // Deprecated: Use Enum.Descriptor instead. func (Enum) EnumDescriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{0} } type Enums_NestedEnum int32 const ( Enums_UNO Enums_NestedEnum = 1 Enums_DOS Enums_NestedEnum = 2 Enums_DIEZ Enums_NestedEnum = 10 ) // Enum value maps for Enums_NestedEnum. var ( Enums_NestedEnum_name = map[int32]string{ 1: "UNO", 2: "DOS", 10: "DIEZ", } Enums_NestedEnum_value = map[string]int32{ "UNO": 1, "DOS": 2, "DIEZ": 10, } ) func (x Enums_NestedEnum) Enum() *Enums_NestedEnum { p := new(Enums_NestedEnum) *p = x return p } func (x Enums_NestedEnum) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor { return file_internal_testprotos_textpb2_test_proto_enumTypes[1].Descriptor() } func (Enums_NestedEnum) Type() protoreflect.EnumType { return &file_internal_testprotos_textpb2_test_proto_enumTypes[1] } func (x Enums_NestedEnum) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Do not use. func (x *Enums_NestedEnum) UnmarshalJSON(b []byte) error { num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) if err != nil { return err } *x = Enums_NestedEnum(num) return nil } // Deprecated: Use Enums_NestedEnum.Descriptor instead. func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{1, 0} } // Scalars contains optional scalar fields. type Scalars struct { state protoimpl.MessageState `protogen:"open.v1"` OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"` OptInt32 *int32 `protobuf:"varint,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"` OptInt64 *int64 `protobuf:"varint,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"` OptUint32 *uint32 `protobuf:"varint,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"` OptUint64 *uint64 `protobuf:"varint,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"` OptSint32 *int32 `protobuf:"zigzag32,6,opt,name=opt_sint32,json=optSint32" json:"opt_sint32,omitempty"` OptSint64 *int64 `protobuf:"zigzag64,7,opt,name=opt_sint64,json=optSint64" json:"opt_sint64,omitempty"` OptFixed32 *uint32 `protobuf:"fixed32,8,opt,name=opt_fixed32,json=optFixed32" json:"opt_fixed32,omitempty"` OptFixed64 *uint64 `protobuf:"fixed64,9,opt,name=opt_fixed64,json=optFixed64" json:"opt_fixed64,omitempty"` OptSfixed32 *int32 `protobuf:"fixed32,10,opt,name=opt_sfixed32,json=optSfixed32" json:"opt_sfixed32,omitempty"` OptSfixed64 *int64 `protobuf:"fixed64,11,opt,name=opt_sfixed64,json=optSfixed64" json:"opt_sfixed64,omitempty"` OptFloat *float32 `protobuf:"fixed32,20,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"` OptDouble *float64 `protobuf:"fixed64,21,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"` OptBytes []byte `protobuf:"bytes,14,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"` OptString *string `protobuf:"bytes,13,opt,name=opt_string,json=optString" json:"opt_string,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Scalars) Reset() { *x = Scalars{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Scalars) String() string { return protoimpl.X.MessageStringOf(x) } func (*Scalars) ProtoMessage() {} func (x *Scalars) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_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 Scalars.ProtoReflect.Descriptor instead. func (*Scalars) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{0} } func (x *Scalars) GetOptBool() bool { if x != nil && x.OptBool != nil { return *x.OptBool } return false } func (x *Scalars) GetOptInt32() int32 { if x != nil && x.OptInt32 != nil { return *x.OptInt32 } return 0 } func (x *Scalars) GetOptInt64() int64 { if x != nil && x.OptInt64 != nil { return *x.OptInt64 } return 0 } func (x *Scalars) GetOptUint32() uint32 { if x != nil && x.OptUint32 != nil { return *x.OptUint32 } return 0 } func (x *Scalars) GetOptUint64() uint64 { if x != nil && x.OptUint64 != nil { return *x.OptUint64 } return 0 } func (x *Scalars) GetOptSint32() int32 { if x != nil && x.OptSint32 != nil { return *x.OptSint32 } return 0 } func (x *Scalars) GetOptSint64() int64 { if x != nil && x.OptSint64 != nil { return *x.OptSint64 } return 0 } func (x *Scalars) GetOptFixed32() uint32 { if x != nil && x.OptFixed32 != nil { return *x.OptFixed32 } return 0 } func (x *Scalars) GetOptFixed64() uint64 { if x != nil && x.OptFixed64 != nil { return *x.OptFixed64 } return 0 } func (x *Scalars) GetOptSfixed32() int32 { if x != nil && x.OptSfixed32 != nil { return *x.OptSfixed32 } return 0 } func (x *Scalars) GetOptSfixed64() int64 { if x != nil && x.OptSfixed64 != nil { return *x.OptSfixed64 } return 0 } func (x *Scalars) GetOptFloat() float32 { if x != nil && x.OptFloat != nil { return *x.OptFloat } return 0 } func (x *Scalars) GetOptDouble() float64 { if x != nil && x.OptDouble != nil { return *x.OptDouble } return 0 } func (x *Scalars) GetOptBytes() []byte { if x != nil { return x.OptBytes } return nil } func (x *Scalars) GetOptString() string { if x != nil && x.OptString != nil { return *x.OptString } return "" } // Message contains enum fields. type Enums struct { state protoimpl.MessageState `protogen:"open.v1"` OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,enum=pb2.Enum" json:"opt_enum,omitempty"` RptEnum []Enum `protobuf:"varint,2,rep,name=rpt_enum,json=rptEnum,enum=pb2.Enum" json:"rpt_enum,omitempty"` OptNestedEnum *Enums_NestedEnum `protobuf:"varint,3,opt,name=opt_nested_enum,json=optNestedEnum,enum=pb2.Enums_NestedEnum" json:"opt_nested_enum,omitempty"` RptNestedEnum []Enums_NestedEnum `protobuf:"varint,4,rep,name=rpt_nested_enum,json=rptNestedEnum,enum=pb2.Enums_NestedEnum" json:"rpt_nested_enum,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Enums) Reset() { *x = Enums{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Enums) String() string { return protoimpl.X.MessageStringOf(x) } func (*Enums) ProtoMessage() {} func (x *Enums) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_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 Enums.ProtoReflect.Descriptor instead. func (*Enums) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{1} } func (x *Enums) GetOptEnum() Enum { if x != nil && x.OptEnum != nil { return *x.OptEnum } return Enum_ONE } func (x *Enums) GetRptEnum() []Enum { if x != nil { return x.RptEnum } return nil } func (x *Enums) GetOptNestedEnum() Enums_NestedEnum { if x != nil && x.OptNestedEnum != nil { return *x.OptNestedEnum } return Enums_UNO } func (x *Enums) GetRptNestedEnum() []Enums_NestedEnum { if x != nil { return x.RptNestedEnum } return nil } // Message contains repeated fields. type Repeats struct { state protoimpl.MessageState `protogen:"open.v1"` RptBool []bool `protobuf:"varint,1,rep,name=rpt_bool,json=rptBool" json:"rpt_bool,omitempty"` RptInt32 []int32 `protobuf:"varint,2,rep,name=rpt_int32,json=rptInt32" json:"rpt_int32,omitempty"` RptInt64 []int64 `protobuf:"varint,3,rep,name=rpt_int64,json=rptInt64" json:"rpt_int64,omitempty"` RptUint32 []uint32 `protobuf:"varint,4,rep,name=rpt_uint32,json=rptUint32" json:"rpt_uint32,omitempty"` RptUint64 []uint64 `protobuf:"varint,5,rep,name=rpt_uint64,json=rptUint64" json:"rpt_uint64,omitempty"` RptFloat []float32 `protobuf:"fixed32,6,rep,name=rpt_float,json=rptFloat" json:"rpt_float,omitempty"` RptDouble []float64 `protobuf:"fixed64,7,rep,name=rpt_double,json=rptDouble" json:"rpt_double,omitempty"` RptString []string `protobuf:"bytes,8,rep,name=rpt_string,json=rptString" json:"rpt_string,omitempty"` RptBytes [][]byte `protobuf:"bytes,9,rep,name=rpt_bytes,json=rptBytes" json:"rpt_bytes,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Repeats) Reset() { *x = Repeats{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Repeats) String() string { return protoimpl.X.MessageStringOf(x) } func (*Repeats) ProtoMessage() {} func (x *Repeats) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[2] 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 Repeats.ProtoReflect.Descriptor instead. func (*Repeats) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{2} } func (x *Repeats) GetRptBool() []bool { if x != nil { return x.RptBool } return nil } func (x *Repeats) GetRptInt32() []int32 { if x != nil { return x.RptInt32 } return nil } func (x *Repeats) GetRptInt64() []int64 { if x != nil { return x.RptInt64 } return nil } func (x *Repeats) GetRptUint32() []uint32 { if x != nil { return x.RptUint32 } return nil } func (x *Repeats) GetRptUint64() []uint64 { if x != nil { return x.RptUint64 } return nil } func (x *Repeats) GetRptFloat() []float32 { if x != nil { return x.RptFloat } return nil } func (x *Repeats) GetRptDouble() []float64 { if x != nil { return x.RptDouble } return nil } func (x *Repeats) GetRptString() []string { if x != nil { return x.RptString } return nil } func (x *Repeats) GetRptBytes() [][]byte { if x != nil { return x.RptBytes } return nil } // Message contains map fields. type Maps struct { state protoimpl.MessageState `protogen:"open.v1"` Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` StrToNested map[string]*Nested `protobuf:"bytes,4,rep,name=str_to_nested,json=strToNested" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Maps) Reset() { *x = Maps{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Maps) String() string { return protoimpl.X.MessageStringOf(x) } func (*Maps) ProtoMessage() {} func (x *Maps) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[3] 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 Maps.ProtoReflect.Descriptor instead. func (*Maps) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{3} } func (x *Maps) GetInt32ToStr() map[int32]string { if x != nil { return x.Int32ToStr } return nil } func (x *Maps) GetStrToNested() map[string]*Nested { if x != nil { return x.StrToNested } return nil } // Message type used as submessage. type Nested struct { state protoimpl.MessageState `protogen:"open.v1"` OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"` OptNested *Nested `protobuf:"bytes,2,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Nested) Reset() { *x = Nested{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Nested) String() string { return protoimpl.X.MessageStringOf(x) } func (*Nested) ProtoMessage() {} func (x *Nested) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[4] 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 Nested.ProtoReflect.Descriptor instead. func (*Nested) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{4} } func (x *Nested) GetOptString() string { if x != nil && x.OptString != nil { return *x.OptString } return "" } func (x *Nested) GetOptNested() *Nested { if x != nil { return x.OptNested } return nil } // Message contains message and group fields. type Nests struct { state protoimpl.MessageState `protogen:"open.v1"` OptNested *Nested `protobuf:"bytes,1,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"` Optgroup *Nests_OptGroup `protobuf:"group,2,opt,name=OptGroup,json=optgroup" json:"optgroup,omitempty"` RptNested []*Nested `protobuf:"bytes,4,rep,name=rpt_nested,json=rptNested" json:"rpt_nested,omitempty"` Rptgroup []*Nests_RptGroup `protobuf:"group,5,rep,name=RptGroup,json=rptgroup" json:"rptgroup,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Nests) Reset() { *x = Nests{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Nests) String() string { return protoimpl.X.MessageStringOf(x) } func (*Nests) ProtoMessage() {} func (x *Nests) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[5] 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 Nests.ProtoReflect.Descriptor instead. func (*Nests) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{5} } func (x *Nests) GetOptNested() *Nested { if x != nil { return x.OptNested } return nil } func (x *Nests) GetOptgroup() *Nests_OptGroup { if x != nil { return x.Optgroup } return nil } func (x *Nests) GetRptNested() []*Nested { if x != nil { return x.RptNested } return nil } func (x *Nests) GetRptgroup() []*Nests_RptGroup { if x != nil { return x.Rptgroup } return nil } // Message contains required fields. type Requireds struct { state protoimpl.MessageState `protogen:"open.v1"` ReqBool *bool `protobuf:"varint,1,req,name=req_bool,json=reqBool" json:"req_bool,omitempty"` ReqSfixed64 *int64 `protobuf:"fixed64,2,req,name=req_sfixed64,json=reqSfixed64" json:"req_sfixed64,omitempty"` ReqDouble *float64 `protobuf:"fixed64,3,req,name=req_double,json=reqDouble" json:"req_double,omitempty"` ReqString *string `protobuf:"bytes,4,req,name=req_string,json=reqString" json:"req_string,omitempty"` ReqEnum *Enum `protobuf:"varint,5,req,name=req_enum,json=reqEnum,enum=pb2.Enum" json:"req_enum,omitempty"` ReqNested *Nested `protobuf:"bytes,6,req,name=req_nested,json=reqNested" json:"req_nested,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Requireds) Reset() { *x = Requireds{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Requireds) String() string { return protoimpl.X.MessageStringOf(x) } func (*Requireds) ProtoMessage() {} func (x *Requireds) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[6] 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 Requireds.ProtoReflect.Descriptor instead. func (*Requireds) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{6} } func (x *Requireds) GetReqBool() bool { if x != nil && x.ReqBool != nil { return *x.ReqBool } return false } func (x *Requireds) GetReqSfixed64() int64 { if x != nil && x.ReqSfixed64 != nil { return *x.ReqSfixed64 } return 0 } func (x *Requireds) GetReqDouble() float64 { if x != nil && x.ReqDouble != nil { return *x.ReqDouble } return 0 } func (x *Requireds) GetReqString() string { if x != nil && x.ReqString != nil { return *x.ReqString } return "" } func (x *Requireds) GetReqEnum() Enum { if x != nil && x.ReqEnum != nil { return *x.ReqEnum } return Enum_ONE } func (x *Requireds) GetReqNested() *Nested { if x != nil { return x.ReqNested } return nil } // Message contains both required and optional fields. type PartialRequired struct { state protoimpl.MessageState `protogen:"open.v1"` ReqString *string `protobuf:"bytes,1,req,name=req_string,json=reqString" json:"req_string,omitempty"` OptString *string `protobuf:"bytes,2,opt,name=opt_string,json=optString" json:"opt_string,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PartialRequired) Reset() { *x = PartialRequired{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PartialRequired) String() string { return protoimpl.X.MessageStringOf(x) } func (*PartialRequired) ProtoMessage() {} func (x *PartialRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[7] 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 PartialRequired.ProtoReflect.Descriptor instead. func (*PartialRequired) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{7} } func (x *PartialRequired) GetReqString() string { if x != nil && x.ReqString != nil { return *x.ReqString } return "" } func (x *PartialRequired) GetOptString() string { if x != nil && x.OptString != nil { return *x.OptString } return "" } type NestedWithRequired struct { state protoimpl.MessageState `protogen:"open.v1"` ReqString *string `protobuf:"bytes,1,req,name=req_string,json=reqString" json:"req_string,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NestedWithRequired) Reset() { *x = NestedWithRequired{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NestedWithRequired) String() string { return protoimpl.X.MessageStringOf(x) } func (*NestedWithRequired) ProtoMessage() {} func (x *NestedWithRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[8] 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 NestedWithRequired.ProtoReflect.Descriptor instead. func (*NestedWithRequired) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{8} } func (x *NestedWithRequired) GetReqString() string { if x != nil && x.ReqString != nil { return *x.ReqString } return "" } type IndirectRequired struct { state protoimpl.MessageState `protogen:"open.v1"` OptNested *NestedWithRequired `protobuf:"bytes,1,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"` RptNested []*NestedWithRequired `protobuf:"bytes,2,rep,name=rpt_nested,json=rptNested" json:"rpt_nested,omitempty"` StrToNested map[string]*NestedWithRequired `protobuf:"bytes,3,rep,name=str_to_nested,json=strToNested" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Types that are valid to be assigned to Union: // // *IndirectRequired_OneofNested Union isIndirectRequired_Union `protobuf_oneof:"union"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *IndirectRequired) Reset() { *x = IndirectRequired{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *IndirectRequired) String() string { return protoimpl.X.MessageStringOf(x) } func (*IndirectRequired) ProtoMessage() {} func (x *IndirectRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[9] 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 IndirectRequired.ProtoReflect.Descriptor instead. func (*IndirectRequired) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{9} } func (x *IndirectRequired) GetOptNested() *NestedWithRequired { if x != nil { return x.OptNested } return nil } func (x *IndirectRequired) GetRptNested() []*NestedWithRequired { if x != nil { return x.RptNested } return nil } func (x *IndirectRequired) GetStrToNested() map[string]*NestedWithRequired { if x != nil { return x.StrToNested } return nil } func (x *IndirectRequired) GetUnion() isIndirectRequired_Union { if x != nil { return x.Union } return nil } func (x *IndirectRequired) GetOneofNested() *NestedWithRequired { if x != nil { if x, ok := x.Union.(*IndirectRequired_OneofNested); ok { return x.OneofNested } } return nil } type isIndirectRequired_Union interface { isIndirectRequired_Union() } type IndirectRequired_OneofNested struct { OneofNested *NestedWithRequired `protobuf:"bytes,4,opt,name=oneof_nested,json=oneofNested,oneof"` } func (*IndirectRequired_OneofNested) isIndirectRequired_Union() {} type Extensions struct { state protoimpl.MessageState `protogen:"open.v1"` OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"` OptBool *bool `protobuf:"varint,101,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"` OptInt32 *int32 `protobuf:"varint,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"` extensionFields protoimpl.ExtensionFields unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Extensions) Reset() { *x = Extensions{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Extensions) String() string { return protoimpl.X.MessageStringOf(x) } func (*Extensions) ProtoMessage() {} func (x *Extensions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[10] 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 Extensions.ProtoReflect.Descriptor instead. func (*Extensions) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{10} } func (x *Extensions) GetOptString() string { if x != nil && x.OptString != nil { return *x.OptString } return "" } func (x *Extensions) GetOptBool() bool { if x != nil && x.OptBool != nil { return *x.OptBool } return false } func (x *Extensions) GetOptInt32() int32 { if x != nil && x.OptInt32 != nil { return *x.OptInt32 } return 0 } type ExtensionsContainer struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ExtensionsContainer) Reset() { *x = ExtensionsContainer{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ExtensionsContainer) String() string { return protoimpl.X.MessageStringOf(x) } func (*ExtensionsContainer) ProtoMessage() {} func (x *ExtensionsContainer) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[11] 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 ExtensionsContainer.ProtoReflect.Descriptor instead. func (*ExtensionsContainer) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{11} } type MessageSet struct { state protoimpl.MessageState `protogen:"open.v1"` extensionFields protoimpl.ExtensionFields unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MessageSet) Reset() { *x = MessageSet{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MessageSet) String() string { return protoimpl.X.MessageStringOf(x) } func (*MessageSet) ProtoMessage() {} func (x *MessageSet) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[12] 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 MessageSet.ProtoReflect.Descriptor instead. func (*MessageSet) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{12} } type MessageSetExtension struct { state protoimpl.MessageState `protogen:"open.v1"` OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MessageSetExtension) Reset() { *x = MessageSetExtension{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MessageSetExtension) String() string { return protoimpl.X.MessageStringOf(x) } func (*MessageSetExtension) ProtoMessage() {} func (x *MessageSetExtension) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[13] 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 MessageSetExtension.ProtoReflect.Descriptor instead. func (*MessageSetExtension) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{13} } func (x *MessageSetExtension) GetOptString() string { if x != nil && x.OptString != nil { return *x.OptString } return "" } type FakeMessageSet struct { state protoimpl.MessageState `protogen:"open.v1"` extensionFields protoimpl.ExtensionFields unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FakeMessageSet) Reset() { *x = FakeMessageSet{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FakeMessageSet) String() string { return protoimpl.X.MessageStringOf(x) } func (*FakeMessageSet) ProtoMessage() {} func (x *FakeMessageSet) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[14] 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 FakeMessageSet.ProtoReflect.Descriptor instead. func (*FakeMessageSet) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{14} } type FakeMessageSetExtension struct { state protoimpl.MessageState `protogen:"open.v1"` OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FakeMessageSetExtension) Reset() { *x = FakeMessageSetExtension{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FakeMessageSetExtension) String() string { return protoimpl.X.MessageStringOf(x) } func (*FakeMessageSetExtension) ProtoMessage() {} func (x *FakeMessageSetExtension) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[15] 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 FakeMessageSetExtension.ProtoReflect.Descriptor instead. func (*FakeMessageSetExtension) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{15} } func (x *FakeMessageSetExtension) GetOptString() string { if x != nil && x.OptString != nil { return *x.OptString } return "" } // Message contains well-known type fields. type KnownTypes struct { state protoimpl.MessageState `protogen:"open.v1"` OptBool *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"` OptInt32 *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"` OptInt64 *wrapperspb.Int64Value `protobuf:"bytes,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"` OptUint32 *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"` OptUint64 *wrapperspb.UInt64Value `protobuf:"bytes,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"` OptFloat *wrapperspb.FloatValue `protobuf:"bytes,6,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"` OptDouble *wrapperspb.DoubleValue `protobuf:"bytes,7,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"` OptString *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=opt_string,json=optString" json:"opt_string,omitempty"` OptBytes *wrapperspb.BytesValue `protobuf:"bytes,9,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"` OptDuration *durationpb.Duration `protobuf:"bytes,20,opt,name=opt_duration,json=optDuration" json:"opt_duration,omitempty"` OptTimestamp *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=opt_timestamp,json=optTimestamp" json:"opt_timestamp,omitempty"` OptStruct *structpb.Struct `protobuf:"bytes,25,opt,name=opt_struct,json=optStruct" json:"opt_struct,omitempty"` OptList *structpb.ListValue `protobuf:"bytes,26,opt,name=opt_list,json=optList" json:"opt_list,omitempty"` OptValue *structpb.Value `protobuf:"bytes,27,opt,name=opt_value,json=optValue" json:"opt_value,omitempty"` OptNull *structpb.NullValue `protobuf:"varint,28,opt,name=opt_null,json=optNull,enum=google.protobuf.NullValue" json:"opt_null,omitempty"` OptEmpty *emptypb.Empty `protobuf:"bytes,30,opt,name=opt_empty,json=optEmpty" json:"opt_empty,omitempty"` OptAny *anypb.Any `protobuf:"bytes,32,opt,name=opt_any,json=optAny" json:"opt_any,omitempty"` OptFieldmask *fieldmaskpb.FieldMask `protobuf:"bytes,40,opt,name=opt_fieldmask,json=optFieldmask" json:"opt_fieldmask,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *KnownTypes) Reset() { *x = KnownTypes{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *KnownTypes) String() string { return protoimpl.X.MessageStringOf(x) } func (*KnownTypes) ProtoMessage() {} func (x *KnownTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[16] 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 KnownTypes.ProtoReflect.Descriptor instead. func (*KnownTypes) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{16} } func (x *KnownTypes) GetOptBool() *wrapperspb.BoolValue { if x != nil { return x.OptBool } return nil } func (x *KnownTypes) GetOptInt32() *wrapperspb.Int32Value { if x != nil { return x.OptInt32 } return nil } func (x *KnownTypes) GetOptInt64() *wrapperspb.Int64Value { if x != nil { return x.OptInt64 } return nil } func (x *KnownTypes) GetOptUint32() *wrapperspb.UInt32Value { if x != nil { return x.OptUint32 } return nil } func (x *KnownTypes) GetOptUint64() *wrapperspb.UInt64Value { if x != nil { return x.OptUint64 } return nil } func (x *KnownTypes) GetOptFloat() *wrapperspb.FloatValue { if x != nil { return x.OptFloat } return nil } func (x *KnownTypes) GetOptDouble() *wrapperspb.DoubleValue { if x != nil { return x.OptDouble } return nil } func (x *KnownTypes) GetOptString() *wrapperspb.StringValue { if x != nil { return x.OptString } return nil } func (x *KnownTypes) GetOptBytes() *wrapperspb.BytesValue { if x != nil { return x.OptBytes } return nil } func (x *KnownTypes) GetOptDuration() *durationpb.Duration { if x != nil { return x.OptDuration } return nil } func (x *KnownTypes) GetOptTimestamp() *timestamppb.Timestamp { if x != nil { return x.OptTimestamp } return nil } func (x *KnownTypes) GetOptStruct() *structpb.Struct { if x != nil { return x.OptStruct } return nil } func (x *KnownTypes) GetOptList() *structpb.ListValue { if x != nil { return x.OptList } return nil } func (x *KnownTypes) GetOptValue() *structpb.Value { if x != nil { return x.OptValue } return nil } func (x *KnownTypes) GetOptNull() structpb.NullValue { if x != nil && x.OptNull != nil { return *x.OptNull } return structpb.NullValue(0) } func (x *KnownTypes) GetOptEmpty() *emptypb.Empty { if x != nil { return x.OptEmpty } return nil } func (x *KnownTypes) GetOptAny() *anypb.Any { if x != nil { return x.OptAny } return nil } func (x *KnownTypes) GetOptFieldmask() *fieldmaskpb.FieldMask { if x != nil { return x.OptFieldmask } return nil } // Message contains reserved field name. type ReservedFieldNames struct { state protoimpl.MessageState `protogen:"open.v1"` OptInt32 *int32 `protobuf:"varint,1,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ReservedFieldNames) Reset() { *x = ReservedFieldNames{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ReservedFieldNames) String() string { return protoimpl.X.MessageStringOf(x) } func (*ReservedFieldNames) ProtoMessage() {} func (x *ReservedFieldNames) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[17] 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 ReservedFieldNames.ProtoReflect.Descriptor instead. func (*ReservedFieldNames) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{17} } func (x *ReservedFieldNames) GetOptInt32() int32 { if x != nil && x.OptInt32 != nil { return *x.OptInt32 } return 0 } type Nests_OptGroup struct { state protoimpl.MessageState `protogen:"open.v1"` OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"` OptNested *Nested `protobuf:"bytes,2,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"` Optnestedgroup *Nests_OptGroup_OptNestedGroup `protobuf:"group,3,opt,name=OptNestedGroup,json=optnestedgroup" json:"optnestedgroup,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Nests_OptGroup) Reset() { *x = Nests_OptGroup{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Nests_OptGroup) String() string { return protoimpl.X.MessageStringOf(x) } func (*Nests_OptGroup) ProtoMessage() {} func (x *Nests_OptGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[20] 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 Nests_OptGroup.ProtoReflect.Descriptor instead. func (*Nests_OptGroup) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{5, 0} } func (x *Nests_OptGroup) GetOptString() string { if x != nil && x.OptString != nil { return *x.OptString } return "" } func (x *Nests_OptGroup) GetOptNested() *Nested { if x != nil { return x.OptNested } return nil } func (x *Nests_OptGroup) GetOptnestedgroup() *Nests_OptGroup_OptNestedGroup { if x != nil { return x.Optnestedgroup } return nil } type Nests_RptGroup struct { state protoimpl.MessageState `protogen:"open.v1"` RptString []string `protobuf:"bytes,1,rep,name=rpt_string,json=rptString" json:"rpt_string,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Nests_RptGroup) Reset() { *x = Nests_RptGroup{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Nests_RptGroup) String() string { return protoimpl.X.MessageStringOf(x) } func (*Nests_RptGroup) ProtoMessage() {} func (x *Nests_RptGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[21] 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 Nests_RptGroup.ProtoReflect.Descriptor instead. func (*Nests_RptGroup) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{5, 1} } func (x *Nests_RptGroup) GetRptString() []string { if x != nil { return x.RptString } return nil } type Nests_OptGroup_OptNestedGroup struct { state protoimpl.MessageState `protogen:"open.v1"` OptFixed32 *uint32 `protobuf:"fixed32,1,opt,name=opt_fixed32,json=optFixed32" json:"opt_fixed32,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Nests_OptGroup_OptNestedGroup) Reset() { *x = Nests_OptGroup_OptNestedGroup{} mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Nests_OptGroup_OptNestedGroup) String() string { return protoimpl.X.MessageStringOf(x) } func (*Nests_OptGroup_OptNestedGroup) ProtoMessage() {} func (x *Nests_OptGroup_OptNestedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[22] 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 Nests_OptGroup_OptNestedGroup.ProtoReflect.Descriptor instead. func (*Nests_OptGroup_OptNestedGroup) Descriptor() ([]byte, []int) { return file_internal_testprotos_textpb2_test_proto_rawDescGZIP(), []int{5, 0, 0} } func (x *Nests_OptGroup_OptNestedGroup) GetOptFixed32() uint32 { if x != nil && x.OptFixed32 != nil { return *x.OptFixed32 } return 0 } var file_internal_testprotos_textpb2_test_proto_extTypes = []protoimpl.ExtensionInfo{ { ExtendedType: (*Extensions)(nil), ExtensionType: (*bool)(nil), Field: 21, Name: "pb2.opt_ext_bool", Tag: "varint,21,opt,name=opt_ext_bool", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*string)(nil), Field: 22, Name: "pb2.opt_ext_string", Tag: "bytes,22,opt,name=opt_ext_string", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*Enum)(nil), Field: 23, Name: "pb2.opt_ext_enum", Tag: "varint,23,opt,name=opt_ext_enum,enum=pb2.Enum", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*Nested)(nil), Field: 24, Name: "pb2.opt_ext_nested", Tag: "bytes,24,opt,name=opt_ext_nested", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*PartialRequired)(nil), Field: 25, Name: "pb2.opt_ext_partial", Tag: "bytes,25,opt,name=opt_ext_partial", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: ([]uint32)(nil), Field: 31, Name: "pb2.rpt_ext_fixed32", Tag: "fixed32,31,rep,name=rpt_ext_fixed32", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: ([]Enum)(nil), Field: 32, Name: "pb2.rpt_ext_enum", Tag: "varint,32,rep,name=rpt_ext_enum,enum=pb2.Enum", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: ([]*Nested)(nil), Field: 33, Name: "pb2.rpt_ext_nested", Tag: "bytes,33,rep,name=rpt_ext_nested", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*MessageSet)(nil), ExtensionType: (*FakeMessageSetExtension)(nil), Field: 50, Name: "pb2.message_set_extension", Tag: "bytes,50,opt,name=message_set_extension", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*bool)(nil), Field: 51, Name: "pb2.ExtensionsContainer.opt_ext_bool", Tag: "varint,51,opt,name=opt_ext_bool", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*string)(nil), Field: 52, Name: "pb2.ExtensionsContainer.opt_ext_string", Tag: "bytes,52,opt,name=opt_ext_string", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*Enum)(nil), Field: 53, Name: "pb2.ExtensionsContainer.opt_ext_enum", Tag: "varint,53,opt,name=opt_ext_enum,enum=pb2.Enum", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*Nested)(nil), Field: 54, Name: "pb2.ExtensionsContainer.opt_ext_nested", Tag: "bytes,54,opt,name=opt_ext_nested", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: (*PartialRequired)(nil), Field: 55, Name: "pb2.ExtensionsContainer.opt_ext_partial", Tag: "bytes,55,opt,name=opt_ext_partial", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: ([]string)(nil), Field: 61, Name: "pb2.ExtensionsContainer.rpt_ext_string", Tag: "bytes,61,rep,name=rpt_ext_string", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: ([]Enum)(nil), Field: 62, Name: "pb2.ExtensionsContainer.rpt_ext_enum", Tag: "varint,62,rep,name=rpt_ext_enum,enum=pb2.Enum", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*Extensions)(nil), ExtensionType: ([]*Nested)(nil), Field: 63, Name: "pb2.ExtensionsContainer.rpt_ext_nested", Tag: "bytes,63,rep,name=rpt_ext_nested", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*MessageSet)(nil), ExtensionType: (*MessageSetExtension)(nil), Field: 10, Name: "pb2.MessageSetExtension.message_set_extension", Tag: "bytes,10,opt,name=message_set_extension", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*MessageSet)(nil), ExtensionType: (*MessageSetExtension)(nil), Field: 20, Name: "pb2.MessageSetExtension.not_message_set_extension", Tag: "bytes,20,opt,name=not_message_set_extension", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*MessageSet)(nil), ExtensionType: (*Nested)(nil), Field: 30, Name: "pb2.MessageSetExtension.ext_nested", Tag: "bytes,30,opt,name=ext_nested", Filename: "internal/testprotos/textpb2/test.proto", }, { ExtendedType: (*FakeMessageSet)(nil), ExtensionType: (*FakeMessageSetExtension)(nil), Field: 10, Name: "pb2.FakeMessageSetExtension.message_set_extension", Tag: "bytes,10,opt,name=message_set_extension", Filename: "internal/testprotos/textpb2/test.proto", }, } // Extension fields to Extensions. var ( // optional bool opt_ext_bool = 21; E_OptExtBool = &file_internal_testprotos_textpb2_test_proto_extTypes[0] // optional string opt_ext_string = 22; E_OptExtString = &file_internal_testprotos_textpb2_test_proto_extTypes[1] // optional pb2.Enum opt_ext_enum = 23; E_OptExtEnum = &file_internal_testprotos_textpb2_test_proto_extTypes[2] // optional pb2.Nested opt_ext_nested = 24; E_OptExtNested = &file_internal_testprotos_textpb2_test_proto_extTypes[3] // optional pb2.PartialRequired opt_ext_partial = 25; E_OptExtPartial = &file_internal_testprotos_textpb2_test_proto_extTypes[4] // repeated fixed32 rpt_ext_fixed32 = 31; E_RptExtFixed32 = &file_internal_testprotos_textpb2_test_proto_extTypes[5] // repeated pb2.Enum rpt_ext_enum = 32; E_RptExtEnum = &file_internal_testprotos_textpb2_test_proto_extTypes[6] // repeated pb2.Nested rpt_ext_nested = 33; E_RptExtNested = &file_internal_testprotos_textpb2_test_proto_extTypes[7] // optional bool opt_ext_bool = 51; E_ExtensionsContainer_OptExtBool = &file_internal_testprotos_textpb2_test_proto_extTypes[9] // optional string opt_ext_string = 52; E_ExtensionsContainer_OptExtString = &file_internal_testprotos_textpb2_test_proto_extTypes[10] // optional pb2.Enum opt_ext_enum = 53; E_ExtensionsContainer_OptExtEnum = &file_internal_testprotos_textpb2_test_proto_extTypes[11] // optional pb2.Nested opt_ext_nested = 54; E_ExtensionsContainer_OptExtNested = &file_internal_testprotos_textpb2_test_proto_extTypes[12] // optional pb2.PartialRequired opt_ext_partial = 55; E_ExtensionsContainer_OptExtPartial = &file_internal_testprotos_textpb2_test_proto_extTypes[13] // repeated string rpt_ext_string = 61; E_ExtensionsContainer_RptExtString = &file_internal_testprotos_textpb2_test_proto_extTypes[14] // repeated pb2.Enum rpt_ext_enum = 62; E_ExtensionsContainer_RptExtEnum = &file_internal_testprotos_textpb2_test_proto_extTypes[15] // repeated pb2.Nested rpt_ext_nested = 63; E_ExtensionsContainer_RptExtNested = &file_internal_testprotos_textpb2_test_proto_extTypes[16] ) // Extension fields to MessageSet. var ( // optional pb2.FakeMessageSetExtension message_set_extension = 50; E_MessageSetExtension = &file_internal_testprotos_textpb2_test_proto_extTypes[8] // optional pb2.MessageSetExtension message_set_extension = 10; E_MessageSetExtension_MessageSetExtension = &file_internal_testprotos_textpb2_test_proto_extTypes[17] // optional pb2.MessageSetExtension not_message_set_extension = 20; E_MessageSetExtension_NotMessageSetExtension = &file_internal_testprotos_textpb2_test_proto_extTypes[18] // optional pb2.Nested ext_nested = 30; E_MessageSetExtension_ExtNested = &file_internal_testprotos_textpb2_test_proto_extTypes[19] ) // Extension fields to FakeMessageSet. var ( // optional pb2.FakeMessageSetExtension message_set_extension = 10; E_FakeMessageSetExtension_MessageSetExtension = &file_internal_testprotos_textpb2_test_proto_extTypes[20] ) var File_internal_testprotos_textpb2_test_proto protoreflect.FileDescriptor const file_internal_testprotos_textpb2_test_proto_rawDesc = "" + "\n" + "&internal/testprotos/textpb2/test.proto\x12\x03pb2\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xda\x03\n" + "\aScalars\x12\x19\n" + "\bopt_bool\x18\x01 \x01(\bR\aoptBool\x12\x1b\n" + "\topt_int32\x18\x02 \x01(\x05R\boptInt32\x12\x1b\n" + "\topt_int64\x18\x03 \x01(\x03R\boptInt64\x12\x1d\n" + "\n" + "opt_uint32\x18\x04 \x01(\rR\toptUint32\x12\x1d\n" + "\n" + "opt_uint64\x18\x05 \x01(\x04R\toptUint64\x12\x1d\n" + "\n" + "opt_sint32\x18\x06 \x01(\x11R\toptSint32\x12\x1d\n" + "\n" + "opt_sint64\x18\a \x01(\x12R\toptSint64\x12\x1f\n" + "\vopt_fixed32\x18\b \x01(\aR\n" + "optFixed32\x12\x1f\n" + "\vopt_fixed64\x18\t \x01(\x06R\n" + "optFixed64\x12!\n" + "\fopt_sfixed32\x18\n" + " \x01(\x0fR\voptSfixed32\x12!\n" + "\fopt_sfixed64\x18\v \x01(\x10R\voptSfixed64\x12\x1b\n" + "\topt_float\x18\x14 \x01(\x02R\boptFloat\x12\x1d\n" + "\n" + "opt_double\x18\x15 \x01(\x01R\toptDouble\x12\x1b\n" + "\topt_bytes\x18\x0e \x01(\fR\boptBytes\x12\x1d\n" + "\n" + "opt_string\x18\r \x01(\tR\toptString\"\xfb\x01\n" + "\x05Enums\x12$\n" + "\bopt_enum\x18\x01 \x01(\x0e2\t.pb2.EnumR\aoptEnum\x12$\n" + "\brpt_enum\x18\x02 \x03(\x0e2\t.pb2.EnumR\arptEnum\x12=\n" + "\x0fopt_nested_enum\x18\x03 \x01(\x0e2\x15.pb2.Enums.NestedEnumR\roptNestedEnum\x12=\n" + "\x0frpt_nested_enum\x18\x04 \x03(\x0e2\x15.pb2.Enums.NestedEnumR\rrptNestedEnum\"(\n" + "\n" + "NestedEnum\x12\a\n" + "\x03UNO\x10\x01\x12\a\n" + "\x03DOS\x10\x02\x12\b\n" + "\x04DIEZ\x10\n" + "\"\x94\x02\n" + "\aRepeats\x12\x19\n" + "\brpt_bool\x18\x01 \x03(\bR\arptBool\x12\x1b\n" + "\trpt_int32\x18\x02 \x03(\x05R\brptInt32\x12\x1b\n" + "\trpt_int64\x18\x03 \x03(\x03R\brptInt64\x12\x1d\n" + "\n" + "rpt_uint32\x18\x04 \x03(\rR\trptUint32\x12\x1d\n" + "\n" + "rpt_uint64\x18\x05 \x03(\x04R\trptUint64\x12\x1b\n" + "\trpt_float\x18\x06 \x03(\x02R\brptFloat\x12\x1d\n" + "\n" + "rpt_double\x18\a \x03(\x01R\trptDouble\x12\x1d\n" + "\n" + "rpt_string\x18\b \x03(\tR\trptString\x12\x1b\n" + "\trpt_bytes\x18\t \x03(\fR\brptBytes\"\x8f\x02\n" + "\x04Maps\x12;\n" + "\fint32_to_str\x18\x01 \x03(\v2\x19.pb2.Maps.Int32ToStrEntryR\n" + "int32ToStr\x12>\n" + "\rstr_to_nested\x18\x04 \x03(\v2\x1a.pb2.Maps.StrToNestedEntryR\vstrToNested\x1a=\n" + "\x0fInt32ToStrEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aK\n" + "\x10StrToNestedEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12!\n" + "\x05value\x18\x02 \x01(\v2\v.pb2.NestedR\x05value:\x028\x01\"S\n" + "\x06Nested\x12\x1d\n" + "\n" + "opt_string\x18\x01 \x01(\tR\toptString\x12*\n" + "\n" + "opt_nested\x18\x02 \x01(\v2\v.pb2.NestedR\toptNested\"\xd3\x03\n" + "\x05Nests\x12*\n" + "\n" + "opt_nested\x18\x01 \x01(\v2\v.pb2.NestedR\toptNested\x12/\n" + "\boptgroup\x18\x02 \x01(\n" + "2\x13.pb2.Nests.OptGroupR\boptgroup\x12*\n" + "\n" + "rpt_nested\x18\x04 \x03(\v2\v.pb2.NestedR\trptNested\x12/\n" + "\brptgroup\x18\x05 \x03(\n" + "2\x13.pb2.Nests.RptGroupR\brptgroup\x1a\xd4\x01\n" + "\bOptGroup\x12\x1d\n" + "\n" + "opt_string\x18\x01 \x01(\tR\toptString\x12*\n" + "\n" + "opt_nested\x18\x02 \x01(\v2\v.pb2.NestedR\toptNested\x12J\n" + "\x0eoptnestedgroup\x18\x03 \x01(\n" + "2\".pb2.Nests.OptGroup.OptNestedGroupR\x0eoptnestedgroup\x1a1\n" + "\x0eOptNestedGroup\x12\x1f\n" + "\vopt_fixed32\x18\x01 \x01(\aR\n" + "optFixed32\x1a)\n" + "\bRptGroup\x12\x1d\n" + "\n" + "rpt_string\x18\x01 \x03(\tR\trptStringR\x0ereserved_field\"\xd9\x01\n" + "\tRequireds\x12\x19\n" + "\breq_bool\x18\x01 \x02(\bR\areqBool\x12!\n" + "\freq_sfixed64\x18\x02 \x02(\x10R\vreqSfixed64\x12\x1d\n" + "\n" + "req_double\x18\x03 \x02(\x01R\treqDouble\x12\x1d\n" + "\n" + "req_string\x18\x04 \x02(\tR\treqString\x12$\n" + "\breq_enum\x18\x05 \x02(\x0e2\t.pb2.EnumR\areqEnum\x12*\n" + "\n" + "req_nested\x18\x06 \x02(\v2\v.pb2.NestedR\treqNested\"O\n" + "\x0fPartialRequired\x12\x1d\n" + "\n" + "req_string\x18\x01 \x02(\tR\treqString\x12\x1d\n" + "\n" + "opt_string\x18\x02 \x01(\tR\toptString\"3\n" + "\x12NestedWithRequired\x12\x1d\n" + "\n" + "req_string\x18\x01 \x02(\tR\treqString\"\xee\x02\n" + "\x10IndirectRequired\x126\n" + "\n" + "opt_nested\x18\x01 \x01(\v2\x17.pb2.NestedWithRequiredR\toptNested\x126\n" + "\n" + "rpt_nested\x18\x02 \x03(\v2\x17.pb2.NestedWithRequiredR\trptNested\x12J\n" + "\rstr_to_nested\x18\x03 \x03(\v2&.pb2.IndirectRequired.StrToNestedEntryR\vstrToNested\x12<\n" + "\foneof_nested\x18\x04 \x01(\v2\x17.pb2.NestedWithRequiredH\x00R\voneofNested\x1aW\n" + "\x10StrToNestedEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12-\n" + "\x05value\x18\x02 \x01(\v2\x17.pb2.NestedWithRequiredR\x05value:\x028\x01B\a\n" + "\x05union\"i\n" + "\n" + "Extensions\x12\x1d\n" + "\n" + "opt_string\x18\x01 \x01(\tR\toptString\x12\x19\n" + "\bopt_bool\x18e \x01(\bR\aoptBool\x12\x1b\n" + "\topt_int32\x18\x02 \x01(\x05R\boptInt32*\x04\b\x14\x10e\"\x89\x04\n" + "\x13ExtensionsContainer21\n" + "\fopt_ext_bool\x12\x0f.pb2.Extensions\x183 \x01(\bR\n" + "optExtBool25\n" + "\x0eopt_ext_string\x12\x0f.pb2.Extensions\x184 \x01(\tR\foptExtString2<\n" + "\fopt_ext_enum\x12\x0f.pb2.Extensions\x185 \x01(\x0e2\t.pb2.EnumR\n" + "optExtEnum2B\n" + "\x0eopt_ext_nested\x12\x0f.pb2.Extensions\x186 \x01(\v2\v.pb2.NestedR\foptExtNested2M\n" + "\x0fopt_ext_partial\x12\x0f.pb2.Extensions\x187 \x01(\v2\x14.pb2.PartialRequiredR\roptExtPartial25\n" + "\x0erpt_ext_string\x12\x0f.pb2.Extensions\x18= \x03(\tR\frptExtString2<\n" + "\frpt_ext_enum\x12\x0f.pb2.Extensions\x18> \x03(\x0e2\t.pb2.EnumR\n" + "rptExtEnum2B\n" + "\x0erpt_ext_nested\x12\x0f.pb2.Extensions\x18? \x03(\v2\v.pb2.NestedR\frptExtNested\"\x1a\n" + "\n" + "MessageSet*\b\b\x04\x10\xff\xff\xff\xff\a:\x02\b\x01\"\xb6\x02\n" + "\x13MessageSetExtension\x12\x1d\n" + "\n" + "opt_string\x18\x01 \x01(\tR\toptString2]\n" + "\x15message_set_extension\x12\x0f.pb2.MessageSet\x18\n" + " \x01(\v2\x18.pb2.MessageSetExtensionR\x13messageSetExtension2d\n" + "\x19not_message_set_extension\x12\x0f.pb2.MessageSet\x18\x14 \x01(\v2\x18.pb2.MessageSetExtensionR\x16notMessageSetExtension2;\n" + "\n" + "ext_nested\x12\x0f.pb2.MessageSet\x18\x1e \x01(\v2\v.pb2.NestedR\textNested\"\x1a\n" + "\x0eFakeMessageSet*\b\b\x04\x10\x80\x80\x80\x80\x02\"\x9f\x01\n" + "\x17FakeMessageSetExtension\x12\x1d\n" + "\n" + "opt_string\x18\x01 \x01(\tR\toptString2e\n" + "\x15message_set_extension\x12\x13.pb2.FakeMessageSet\x18\n" + " \x01(\v2\x1c.pb2.FakeMessageSetExtensionR\x13messageSetExtension\"\x9e\b\n" + "\n" + "KnownTypes\x125\n" + "\bopt_bool\x18\x01 \x01(\v2\x1a.google.protobuf.BoolValueR\aoptBool\x128\n" + "\topt_int32\x18\x02 \x01(\v2\x1b.google.protobuf.Int32ValueR\boptInt32\x128\n" + "\topt_int64\x18\x03 \x01(\v2\x1b.google.protobuf.Int64ValueR\boptInt64\x12;\n" + "\n" + "opt_uint32\x18\x04 \x01(\v2\x1c.google.protobuf.UInt32ValueR\toptUint32\x12;\n" + "\n" + "opt_uint64\x18\x05 \x01(\v2\x1c.google.protobuf.UInt64ValueR\toptUint64\x128\n" + "\topt_float\x18\x06 \x01(\v2\x1b.google.protobuf.FloatValueR\boptFloat\x12;\n" + "\n" + "opt_double\x18\a \x01(\v2\x1c.google.protobuf.DoubleValueR\toptDouble\x12;\n" + "\n" + "opt_string\x18\b \x01(\v2\x1c.google.protobuf.StringValueR\toptString\x128\n" + "\topt_bytes\x18\t \x01(\v2\x1b.google.protobuf.BytesValueR\boptBytes\x12<\n" + "\fopt_duration\x18\x14 \x01(\v2\x19.google.protobuf.DurationR\voptDuration\x12?\n" + "\ropt_timestamp\x18\x15 \x01(\v2\x1a.google.protobuf.TimestampR\foptTimestamp\x126\n" + "\n" + "opt_struct\x18\x19 \x01(\v2\x17.google.protobuf.StructR\toptStruct\x125\n" + "\bopt_list\x18\x1a \x01(\v2\x1a.google.protobuf.ListValueR\aoptList\x123\n" + "\topt_value\x18\x1b \x01(\v2\x16.google.protobuf.ValueR\boptValue\x125\n" + "\bopt_null\x18\x1c \x01(\x0e2\x1a.google.protobuf.NullValueR\aoptNull\x123\n" + "\topt_empty\x18\x1e \x01(\v2\x16.google.protobuf.EmptyR\boptEmpty\x12-\n" + "\aopt_any\x18 \x01(\v2\x14.google.protobuf.AnyR\x06optAny\x12?\n" + "\ropt_fieldmask\x18( \x01(\v2\x1a.google.protobuf.FieldMaskR\foptFieldmask\"A\n" + "\x12ReservedFieldNames\x12\x1b\n" + "\topt_int32\x18\x01 \x01(\x05R\boptInt32R\x0ereserved_field*!\n" + "\x04Enum\x12\a\n" + "\x03ONE\x10\x01\x12\a\n" + "\x03TWO\x10\x02\x12\a\n" + "\x03TEN\x10\n" + ":1\n" + "\fopt_ext_bool\x12\x0f.pb2.Extensions\x18\x15 \x01(\bR\n" + "optExtBool:5\n" + "\x0eopt_ext_string\x12\x0f.pb2.Extensions\x18\x16 \x01(\tR\foptExtString:<\n" + "\fopt_ext_enum\x12\x0f.pb2.Extensions\x18\x17 \x01(\x0e2\t.pb2.EnumR\n" + "optExtEnum:B\n" + "\x0eopt_ext_nested\x12\x0f.pb2.Extensions\x18\x18 \x01(\v2\v.pb2.NestedR\foptExtNested:M\n" + "\x0fopt_ext_partial\x12\x0f.pb2.Extensions\x18\x19 \x01(\v2\x14.pb2.PartialRequiredR\roptExtPartial:7\n" + "\x0frpt_ext_fixed32\x12\x0f.pb2.Extensions\x18\x1f \x03(\aR\rrptExtFixed32:<\n" + "\frpt_ext_enum\x12\x0f.pb2.Extensions\x18 \x03(\x0e2\t.pb2.EnumR\n" + "rptExtEnum:B\n" + "\x0erpt_ext_nested\x12\x0f.pb2.Extensions\x18! \x03(\v2\v.pb2.NestedR\frptExtNested:a\n" + "\x15message_set_extension\x12\x0f.pb2.MessageSet\x182 \x01(\v2\x1c.pb2.FakeMessageSetExtensionR\x13messageSetExtensionB8Z6google.golang.org/protobuf/internal/testprotos/textpb2" var ( file_internal_testprotos_textpb2_test_proto_rawDescOnce sync.Once file_internal_testprotos_textpb2_test_proto_rawDescData []byte ) func file_internal_testprotos_textpb2_test_proto_rawDescGZIP() []byte { file_internal_testprotos_textpb2_test_proto_rawDescOnce.Do(func() { file_internal_testprotos_textpb2_test_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_internal_testprotos_textpb2_test_proto_rawDesc), len(file_internal_testprotos_textpb2_test_proto_rawDesc))) }) return file_internal_testprotos_textpb2_test_proto_rawDescData } var file_internal_testprotos_textpb2_test_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_internal_testprotos_textpb2_test_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_internal_testprotos_textpb2_test_proto_goTypes = []any{ (Enum)(0), // 0: pb2.Enum (Enums_NestedEnum)(0), // 1: pb2.Enums.NestedEnum (*Scalars)(nil), // 2: pb2.Scalars (*Enums)(nil), // 3: pb2.Enums (*Repeats)(nil), // 4: pb2.Repeats (*Maps)(nil), // 5: pb2.Maps (*Nested)(nil), // 6: pb2.Nested (*Nests)(nil), // 7: pb2.Nests (*Requireds)(nil), // 8: pb2.Requireds (*PartialRequired)(nil), // 9: pb2.PartialRequired (*NestedWithRequired)(nil), // 10: pb2.NestedWithRequired (*IndirectRequired)(nil), // 11: pb2.IndirectRequired (*Extensions)(nil), // 12: pb2.Extensions (*ExtensionsContainer)(nil), // 13: pb2.ExtensionsContainer (*MessageSet)(nil), // 14: pb2.MessageSet (*MessageSetExtension)(nil), // 15: pb2.MessageSetExtension (*FakeMessageSet)(nil), // 16: pb2.FakeMessageSet (*FakeMessageSetExtension)(nil), // 17: pb2.FakeMessageSetExtension (*KnownTypes)(nil), // 18: pb2.KnownTypes (*ReservedFieldNames)(nil), // 19: pb2.ReservedFieldNames nil, // 20: pb2.Maps.Int32ToStrEntry nil, // 21: pb2.Maps.StrToNestedEntry (*Nests_OptGroup)(nil), // 22: pb2.Nests.OptGroup (*Nests_RptGroup)(nil), // 23: pb2.Nests.RptGroup (*Nests_OptGroup_OptNestedGroup)(nil), // 24: pb2.Nests.OptGroup.OptNestedGroup nil, // 25: pb2.IndirectRequired.StrToNestedEntry (*wrapperspb.BoolValue)(nil), // 26: google.protobuf.BoolValue (*wrapperspb.Int32Value)(nil), // 27: google.protobuf.Int32Value (*wrapperspb.Int64Value)(nil), // 28: google.protobuf.Int64Value (*wrapperspb.UInt32Value)(nil), // 29: google.protobuf.UInt32Value (*wrapperspb.UInt64Value)(nil), // 30: google.protobuf.UInt64Value (*wrapperspb.FloatValue)(nil), // 31: google.protobuf.FloatValue (*wrapperspb.DoubleValue)(nil), // 32: google.protobuf.DoubleValue (*wrapperspb.StringValue)(nil), // 33: google.protobuf.StringValue (*wrapperspb.BytesValue)(nil), // 34: google.protobuf.BytesValue (*durationpb.Duration)(nil), // 35: google.protobuf.Duration (*timestamppb.Timestamp)(nil), // 36: google.protobuf.Timestamp (*structpb.Struct)(nil), // 37: google.protobuf.Struct (*structpb.ListValue)(nil), // 38: google.protobuf.ListValue (*structpb.Value)(nil), // 39: google.protobuf.Value (structpb.NullValue)(0), // 40: google.protobuf.NullValue (*emptypb.Empty)(nil), // 41: google.protobuf.Empty (*anypb.Any)(nil), // 42: google.protobuf.Any (*fieldmaskpb.FieldMask)(nil), // 43: google.protobuf.FieldMask } var file_internal_testprotos_textpb2_test_proto_depIdxs = []int32{ 0, // 0: pb2.Enums.opt_enum:type_name -> pb2.Enum 0, // 1: pb2.Enums.rpt_enum:type_name -> pb2.Enum 1, // 2: pb2.Enums.opt_nested_enum:type_name -> pb2.Enums.NestedEnum 1, // 3: pb2.Enums.rpt_nested_enum:type_name -> pb2.Enums.NestedEnum 20, // 4: pb2.Maps.int32_to_str:type_name -> pb2.Maps.Int32ToStrEntry 21, // 5: pb2.Maps.str_to_nested:type_name -> pb2.Maps.StrToNestedEntry 6, // 6: pb2.Nested.opt_nested:type_name -> pb2.Nested 6, // 7: pb2.Nests.opt_nested:type_name -> pb2.Nested 22, // 8: pb2.Nests.optgroup:type_name -> pb2.Nests.OptGroup 6, // 9: pb2.Nests.rpt_nested:type_name -> pb2.Nested 23, // 10: pb2.Nests.rptgroup:type_name -> pb2.Nests.RptGroup 0, // 11: pb2.Requireds.req_enum:type_name -> pb2.Enum 6, // 12: pb2.Requireds.req_nested:type_name -> pb2.Nested 10, // 13: pb2.IndirectRequired.opt_nested:type_name -> pb2.NestedWithRequired 10, // 14: pb2.IndirectRequired.rpt_nested:type_name -> pb2.NestedWithRequired 25, // 15: pb2.IndirectRequired.str_to_nested:type_name -> pb2.IndirectRequired.StrToNestedEntry 10, // 16: pb2.IndirectRequired.oneof_nested:type_name -> pb2.NestedWithRequired 26, // 17: pb2.KnownTypes.opt_bool:type_name -> google.protobuf.BoolValue 27, // 18: pb2.KnownTypes.opt_int32:type_name -> google.protobuf.Int32Value 28, // 19: pb2.KnownTypes.opt_int64:type_name -> google.protobuf.Int64Value 29, // 20: pb2.KnownTypes.opt_uint32:type_name -> google.protobuf.UInt32Value 30, // 21: pb2.KnownTypes.opt_uint64:type_name -> google.protobuf.UInt64Value 31, // 22: pb2.KnownTypes.opt_float:type_name -> google.protobuf.FloatValue 32, // 23: pb2.KnownTypes.opt_double:type_name -> google.protobuf.DoubleValue 33, // 24: pb2.KnownTypes.opt_string:type_name -> google.protobuf.StringValue 34, // 25: pb2.KnownTypes.opt_bytes:type_name -> google.protobuf.BytesValue 35, // 26: pb2.KnownTypes.opt_duration:type_name -> google.protobuf.Duration 36, // 27: pb2.KnownTypes.opt_timestamp:type_name -> google.protobuf.Timestamp 37, // 28: pb2.KnownTypes.opt_struct:type_name -> google.protobuf.Struct 38, // 29: pb2.KnownTypes.opt_list:type_name -> google.protobuf.ListValue 39, // 30: pb2.KnownTypes.opt_value:type_name -> google.protobuf.Value 40, // 31: pb2.KnownTypes.opt_null:type_name -> google.protobuf.NullValue 41, // 32: pb2.KnownTypes.opt_empty:type_name -> google.protobuf.Empty 42, // 33: pb2.KnownTypes.opt_any:type_name -> google.protobuf.Any 43, // 34: pb2.KnownTypes.opt_fieldmask:type_name -> google.protobuf.FieldMask 6, // 35: pb2.Maps.StrToNestedEntry.value:type_name -> pb2.Nested 6, // 36: pb2.Nests.OptGroup.opt_nested:type_name -> pb2.Nested 24, // 37: pb2.Nests.OptGroup.optnestedgroup:type_name -> pb2.Nests.OptGroup.OptNestedGroup 10, // 38: pb2.IndirectRequired.StrToNestedEntry.value:type_name -> pb2.NestedWithRequired 12, // 39: pb2.opt_ext_bool:extendee -> pb2.Extensions 12, // 40: pb2.opt_ext_string:extendee -> pb2.Extensions 12, // 41: pb2.opt_ext_enum:extendee -> pb2.Extensions 12, // 42: pb2.opt_ext_nested:extendee -> pb2.Extensions 12, // 43: pb2.opt_ext_partial:extendee -> pb2.Extensions 12, // 44: pb2.rpt_ext_fixed32:extendee -> pb2.Extensions 12, // 45: pb2.rpt_ext_enum:extendee -> pb2.Extensions 12, // 46: pb2.rpt_ext_nested:extendee -> pb2.Extensions 14, // 47: pb2.message_set_extension:extendee -> pb2.MessageSet 12, // 48: pb2.ExtensionsContainer.opt_ext_bool:extendee -> pb2.Extensions 12, // 49: pb2.ExtensionsContainer.opt_ext_string:extendee -> pb2.Extensions 12, // 50: pb2.ExtensionsContainer.opt_ext_enum:extendee -> pb2.Extensions 12, // 51: pb2.ExtensionsContainer.opt_ext_nested:extendee -> pb2.Extensions 12, // 52: pb2.ExtensionsContainer.opt_ext_partial:extendee -> pb2.Extensions 12, // 53: pb2.ExtensionsContainer.rpt_ext_string:extendee -> pb2.Extensions 12, // 54: pb2.ExtensionsContainer.rpt_ext_enum:extendee -> pb2.Extensions 12, // 55: pb2.ExtensionsContainer.rpt_ext_nested:extendee -> pb2.Extensions 14, // 56: pb2.MessageSetExtension.message_set_extension:extendee -> pb2.MessageSet 14, // 57: pb2.MessageSetExtension.not_message_set_extension:extendee -> pb2.MessageSet 14, // 58: pb2.MessageSetExtension.ext_nested:extendee -> pb2.MessageSet 16, // 59: pb2.FakeMessageSetExtension.message_set_extension:extendee -> pb2.FakeMessageSet 0, // 60: pb2.opt_ext_enum:type_name -> pb2.Enum 6, // 61: pb2.opt_ext_nested:type_name -> pb2.Nested 9, // 62: pb2.opt_ext_partial:type_name -> pb2.PartialRequired 0, // 63: pb2.rpt_ext_enum:type_name -> pb2.Enum 6, // 64: pb2.rpt_ext_nested:type_name -> pb2.Nested 17, // 65: pb2.message_set_extension:type_name -> pb2.FakeMessageSetExtension 0, // 66: pb2.ExtensionsContainer.opt_ext_enum:type_name -> pb2.Enum 6, // 67: pb2.ExtensionsContainer.opt_ext_nested:type_name -> pb2.Nested 9, // 68: pb2.ExtensionsContainer.opt_ext_partial:type_name -> pb2.PartialRequired 0, // 69: pb2.ExtensionsContainer.rpt_ext_enum:type_name -> pb2.Enum 6, // 70: pb2.ExtensionsContainer.rpt_ext_nested:type_name -> pb2.Nested 15, // 71: pb2.MessageSetExtension.message_set_extension:type_name -> pb2.MessageSetExtension 15, // 72: pb2.MessageSetExtension.not_message_set_extension:type_name -> pb2.MessageSetExtension 6, // 73: pb2.MessageSetExtension.ext_nested:type_name -> pb2.Nested 17, // 74: pb2.FakeMessageSetExtension.message_set_extension:type_name -> pb2.FakeMessageSetExtension 75, // [75:75] is the sub-list for method output_type 75, // [75:75] is the sub-list for method input_type 60, // [60:75] is the sub-list for extension type_name 39, // [39:60] is the sub-list for extension extendee 0, // [0:39] is the sub-list for field type_name } func init() { file_internal_testprotos_textpb2_test_proto_init() } func file_internal_testprotos_textpb2_test_proto_init() { if File_internal_testprotos_textpb2_test_proto != nil { return } file_internal_testprotos_textpb2_test_proto_msgTypes[9].OneofWrappers = []any{ (*IndirectRequired_OneofNested)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_textpb2_test_proto_rawDesc), len(file_internal_testprotos_textpb2_test_proto_rawDesc)), NumEnums: 2, NumMessages: 24, NumExtensions: 21, NumServices: 0, }, GoTypes: file_internal_testprotos_textpb2_test_proto_goTypes, DependencyIndexes: file_internal_testprotos_textpb2_test_proto_depIdxs, EnumInfos: file_internal_testprotos_textpb2_test_proto_enumTypes, MessageInfos: file_internal_testprotos_textpb2_test_proto_msgTypes, ExtensionInfos: file_internal_testprotos_textpb2_test_proto_extTypes, }.Build() File_internal_testprotos_textpb2_test_proto = out.File file_internal_testprotos_textpb2_test_proto_goTypes = nil file_internal_testprotos_textpb2_test_proto_depIdxs = nil }