| // Copyright 2018 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. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: internal/testprotos/fieldtrack/fieldtrack.proto |
| |
| package fieldtrack |
| |
| import ( |
| _ "google.golang.org/protobuf/internal/testprotos/annotation" |
| test "google.golang.org/protobuf/internal/testprotos/test" |
| proto "google.golang.org/protobuf/proto" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| ) |
| |
| type TestFieldTrack struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| OptionalInt32 *int32 `protobuf:"varint,1,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty" go:"track"` |
| OptionalInt64 *int64 `protobuf:"varint,2,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty" go:"track"` |
| OptionalUint32 *uint32 `protobuf:"varint,3,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty" go:"track"` |
| OptionalUint64 *uint64 `protobuf:"varint,4,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty" go:"track"` |
| OptionalSint32 *int32 `protobuf:"zigzag32,5,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty" go:"track"` |
| OptionalSint64 *int64 `protobuf:"zigzag64,6,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty" go:"track"` |
| OptionalFixed32 *uint32 `protobuf:"fixed32,7,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty" go:"track"` |
| OptionalFixed64 *uint64 `protobuf:"fixed64,8,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty" go:"track"` |
| OptionalSfixed32 *int32 `protobuf:"fixed32,9,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty" go:"track"` |
| OptionalSfixed64 *int64 `protobuf:"fixed64,10,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty" go:"track"` |
| OptionalFloat *float32 `protobuf:"fixed32,11,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty" go:"track"` |
| OptionalDouble *float64 `protobuf:"fixed64,12,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty" go:"track"` |
| OptionalBool *bool `protobuf:"varint,13,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty" go:"track"` |
| OptionalString *string `protobuf:"bytes,14,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty" go:"track"` |
| OptionalBytes []byte `protobuf:"bytes,15,opt,name=optional_bytes,json=optionalBytes" json:"optional_bytes,omitempty" go:"track"` |
| OptionalEnum *test.TestAllTypes_NestedEnum `protobuf:"varint,16,opt,name=optional_enum,json=optionalEnum,enum=goproto.proto.test.TestAllTypes_NestedEnum" json:"optional_enum,omitempty" go:"track"` |
| OptionalMessage *test.TestAllTypes_NestedMessage `protobuf:"bytes,17,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty" go:"track"` |
| RepeatedInt32 []int32 `protobuf:"varint,21,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty" go:"track"` |
| RepeatedInt64 []int64 `protobuf:"varint,22,rep,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty" go:"track"` |
| RepeatedUint32 []uint32 `protobuf:"varint,23,rep,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty" go:"track"` |
| RepeatedUint64 []uint64 `protobuf:"varint,24,rep,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty" go:"track"` |
| RepeatedSint32 []int32 `protobuf:"zigzag32,25,rep,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty" go:"track"` |
| RepeatedSint64 []int64 `protobuf:"zigzag64,26,rep,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty" go:"track"` |
| RepeatedFixed32 []uint32 `protobuf:"fixed32,27,rep,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty" go:"track"` |
| RepeatedFixed64 []uint64 `protobuf:"fixed64,28,rep,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty" go:"track"` |
| RepeatedSfixed32 []int32 `protobuf:"fixed32,29,rep,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty" go:"track"` |
| RepeatedSfixed64 []int64 `protobuf:"fixed64,30,rep,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty" go:"track"` |
| RepeatedFloat []float32 `protobuf:"fixed32,31,rep,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty" go:"track"` |
| RepeatedDouble []float64 `protobuf:"fixed64,32,rep,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty" go:"track"` |
| RepeatedBool []bool `protobuf:"varint,33,rep,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty" go:"track"` |
| RepeatedString []string `protobuf:"bytes,34,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty" go:"track"` |
| RepeatedBytes [][]byte `protobuf:"bytes,35,rep,name=repeated_bytes,json=repeatedBytes" json:"repeated_bytes,omitempty" go:"track"` |
| RepeatedEnum []test.TestAllTypes_NestedEnum `protobuf:"varint,36,rep,name=repeated_enum,json=repeatedEnum,enum=goproto.proto.test.TestAllTypes_NestedEnum" json:"repeated_enum,omitempty" go:"track"` |
| RepeatedMessage []*test.TestAllTypes_NestedMessage `protobuf:"bytes,37,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty" go:"track"` |
| MapStringInt32 map[string]int32 `protobuf:"bytes,41,rep,name=map_string_int32,json=mapStringInt32" json:"map_string_int32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"` |
| MapStringInt64 map[string]int64 `protobuf:"bytes,42,rep,name=map_string_int64,json=mapStringInt64" json:"map_string_int64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"` |
| MapStringUint32 map[string]uint32 `protobuf:"bytes,43,rep,name=map_string_uint32,json=mapStringUint32" json:"map_string_uint32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"` |
| MapStringUint64 map[string]uint64 `protobuf:"bytes,44,rep,name=map_string_uint64,json=mapStringUint64" json:"map_string_uint64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"` |
| MapStringSint32 map[string]int32 `protobuf:"bytes,45,rep,name=map_string_sint32,json=mapStringSint32" json:"map_string_sint32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value" go:"track"` |
| MapStringSint64 map[string]int64 `protobuf:"bytes,46,rep,name=map_string_sint64,json=mapStringSint64" json:"map_string_sint64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value" go:"track"` |
| MapStringFixed32 map[string]uint32 `protobuf:"bytes,47,rep,name=map_string_fixed32,json=mapStringFixed32" json:"map_string_fixed32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"` |
| MapStringFixed64 map[string]uint64 `protobuf:"bytes,48,rep,name=map_string_fixed64,json=mapStringFixed64" json:"map_string_fixed64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"` |
| MapStringSfixed32 map[string]int32 `protobuf:"bytes,49,rep,name=map_string_sfixed32,json=mapStringSfixed32" json:"map_string_sfixed32,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"` |
| MapStringSfixed64 map[string]int64 `protobuf:"bytes,50,rep,name=map_string_sfixed64,json=mapStringSfixed64" json:"map_string_sfixed64,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"` |
| MapStringFloat map[string]float32 `protobuf:"bytes,51,rep,name=map_string_float,json=mapStringFloat" json:"map_string_float,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value" go:"track"` |
| MapStringDouble map[string]float64 `protobuf:"bytes,52,rep,name=map_string_double,json=mapStringDouble" json:"map_string_double,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value" go:"track"` |
| MapStringBool map[string]bool `protobuf:"bytes,53,rep,name=map_string_bool,json=mapStringBool" json:"map_string_bool,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value" go:"track"` |
| MapStringString map[string]string `protobuf:"bytes,54,rep,name=map_string_string,json=mapStringString" json:"map_string_string,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"` |
| MapStringBytes map[string][]byte `protobuf:"bytes,55,rep,name=map_string_bytes,json=mapStringBytes" json:"map_string_bytes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"` |
| MapStringEnum map[string]test.TestAllTypes_NestedEnum `protobuf:"bytes,56,rep,name=map_string_enum,json=mapStringEnum" json:"map_string_enum,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=goproto.proto.test.TestAllTypes_NestedEnum" go:"track"` |
| MapStringMessage map[string]*test.TestAllTypes_NestedMessage `protobuf:"bytes,57,rep,name=map_string_message,json=mapStringMessage" json:"map_string_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value" go:"track"` |
| // Deprecated: Do not use. This will be deleted in the near future. |
| XXX_weak_WeakMessage1 struct{} `protobuf:"bytes,100,opt,name=weak_message1,json=weakMessage1,weak=goproto.proto.test.weak.WeakImportMessage1" json:"weak_message1,omitempty" go:"track"` |
| // Deprecated: Do not use. This will be deleted in the near future. |
| XXX_weak_WeakMessage2 struct{} `protobuf:"bytes,101,opt,name=weak_message2,json=weakMessage2,weak=goproto.proto.test.weak.WeakImportMessage2" json:"weak_message2,omitempty" go:"track"` |
| weakFields protoimpl.WeakFields |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *TestFieldTrack) Reset() { |
| *x = TestFieldTrack{} |
| mi := &file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *TestFieldTrack) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*TestFieldTrack) ProtoMessage() {} |
| |
| func (x *TestFieldTrack) ProtoReflect() protoreflect.Message { |
| mi := &file_internal_testprotos_fieldtrack_fieldtrack_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 TestFieldTrack.ProtoReflect.Descriptor instead. |
| func (*TestFieldTrack) Descriptor() ([]byte, []int) { |
| return file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescGZIP(), []int{0} |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalInt32() int32 { |
| if x != nil && x.OptionalInt32 != nil { |
| return *x.OptionalInt32 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalInt64() int64 { |
| if x != nil && x.OptionalInt64 != nil { |
| return *x.OptionalInt64 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalUint32() uint32 { |
| if x != nil && x.OptionalUint32 != nil { |
| return *x.OptionalUint32 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalUint64() uint64 { |
| if x != nil && x.OptionalUint64 != nil { |
| return *x.OptionalUint64 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalSint32() int32 { |
| if x != nil && x.OptionalSint32 != nil { |
| return *x.OptionalSint32 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalSint64() int64 { |
| if x != nil && x.OptionalSint64 != nil { |
| return *x.OptionalSint64 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalFixed32() uint32 { |
| if x != nil && x.OptionalFixed32 != nil { |
| return *x.OptionalFixed32 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalFixed64() uint64 { |
| if x != nil && x.OptionalFixed64 != nil { |
| return *x.OptionalFixed64 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalSfixed32() int32 { |
| if x != nil && x.OptionalSfixed32 != nil { |
| return *x.OptionalSfixed32 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalSfixed64() int64 { |
| if x != nil && x.OptionalSfixed64 != nil { |
| return *x.OptionalSfixed64 |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalFloat() float32 { |
| if x != nil && x.OptionalFloat != nil { |
| return *x.OptionalFloat |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalDouble() float64 { |
| if x != nil && x.OptionalDouble != nil { |
| return *x.OptionalDouble |
| } |
| return 0 |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalBool() bool { |
| if x != nil && x.OptionalBool != nil { |
| return *x.OptionalBool |
| } |
| return false |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalString() string { |
| if x != nil && x.OptionalString != nil { |
| return *x.OptionalString |
| } |
| return "" |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalBytes() []byte { |
| if x != nil { |
| return x.OptionalBytes |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalEnum() test.TestAllTypes_NestedEnum { |
| if x != nil && x.OptionalEnum != nil { |
| return *x.OptionalEnum |
| } |
| return test.TestAllTypes_NestedEnum(0) |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetOptionalMessage() *test.TestAllTypes_NestedMessage { |
| if x != nil { |
| return x.OptionalMessage |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedInt32() []int32 { |
| if x != nil { |
| return x.RepeatedInt32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedInt64() []int64 { |
| if x != nil { |
| return x.RepeatedInt64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedUint32() []uint32 { |
| if x != nil { |
| return x.RepeatedUint32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedUint64() []uint64 { |
| if x != nil { |
| return x.RepeatedUint64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedSint32() []int32 { |
| if x != nil { |
| return x.RepeatedSint32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedSint64() []int64 { |
| if x != nil { |
| return x.RepeatedSint64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedFixed32() []uint32 { |
| if x != nil { |
| return x.RepeatedFixed32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedFixed64() []uint64 { |
| if x != nil { |
| return x.RepeatedFixed64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedSfixed32() []int32 { |
| if x != nil { |
| return x.RepeatedSfixed32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedSfixed64() []int64 { |
| if x != nil { |
| return x.RepeatedSfixed64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedFloat() []float32 { |
| if x != nil { |
| return x.RepeatedFloat |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedDouble() []float64 { |
| if x != nil { |
| return x.RepeatedDouble |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedBool() []bool { |
| if x != nil { |
| return x.RepeatedBool |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedString() []string { |
| if x != nil { |
| return x.RepeatedString |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedBytes() [][]byte { |
| if x != nil { |
| return x.RepeatedBytes |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedEnum() []test.TestAllTypes_NestedEnum { |
| if x != nil { |
| return x.RepeatedEnum |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetRepeatedMessage() []*test.TestAllTypes_NestedMessage { |
| if x != nil { |
| return x.RepeatedMessage |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringInt32() map[string]int32 { |
| if x != nil { |
| return x.MapStringInt32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringInt64() map[string]int64 { |
| if x != nil { |
| return x.MapStringInt64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringUint32() map[string]uint32 { |
| if x != nil { |
| return x.MapStringUint32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringUint64() map[string]uint64 { |
| if x != nil { |
| return x.MapStringUint64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringSint32() map[string]int32 { |
| if x != nil { |
| return x.MapStringSint32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringSint64() map[string]int64 { |
| if x != nil { |
| return x.MapStringSint64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringFixed32() map[string]uint32 { |
| if x != nil { |
| return x.MapStringFixed32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringFixed64() map[string]uint64 { |
| if x != nil { |
| return x.MapStringFixed64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringSfixed32() map[string]int32 { |
| if x != nil { |
| return x.MapStringSfixed32 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringSfixed64() map[string]int64 { |
| if x != nil { |
| return x.MapStringSfixed64 |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringFloat() map[string]float32 { |
| if x != nil { |
| return x.MapStringFloat |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringDouble() map[string]float64 { |
| if x != nil { |
| return x.MapStringDouble |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringBool() map[string]bool { |
| if x != nil { |
| return x.MapStringBool |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringString() map[string]string { |
| if x != nil { |
| return x.MapStringString |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringBytes() map[string][]byte { |
| if x != nil { |
| return x.MapStringBytes |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringEnum() map[string]test.TestAllTypes_NestedEnum { |
| if x != nil { |
| return x.MapStringEnum |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetMapStringMessage() map[string]*test.TestAllTypes_NestedMessage { |
| if x != nil { |
| return x.MapStringMessage |
| } |
| return nil |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetWeakMessage1() proto.Message { |
| var w protoimpl.WeakFields |
| if x != nil { |
| w = x.weakFields |
| _ = x.XXX_weak_WeakMessage1 |
| } |
| return protoimpl.X.GetWeak(w, 100, "goproto.proto.test.weak.WeakImportMessage1") |
| } |
| |
| //go:nointerface |
| func (x *TestFieldTrack) GetWeakMessage2() proto.Message { |
| var w protoimpl.WeakFields |
| if x != nil { |
| w = x.weakFields |
| _ = x.XXX_weak_WeakMessage2 |
| } |
| return protoimpl.X.GetWeak(w, 101, "goproto.proto.test.weak.WeakImportMessage2") |
| } |
| |
| func (x *TestFieldTrack) SetWeakMessage1(v proto.Message) { |
| var w *protoimpl.WeakFields |
| if x != nil { |
| w = &x.weakFields |
| _ = x.XXX_weak_WeakMessage1 |
| } |
| protoimpl.X.SetWeak(w, 100, "goproto.proto.test.weak.WeakImportMessage1", v) |
| } |
| |
| func (x *TestFieldTrack) SetWeakMessage2(v proto.Message) { |
| var w *protoimpl.WeakFields |
| if x != nil { |
| w = &x.weakFields |
| _ = x.XXX_weak_WeakMessage2 |
| } |
| protoimpl.X.SetWeak(w, 101, "goproto.proto.test.weak.WeakImportMessage2", v) |
| } |
| |
| var File_internal_testprotos_fieldtrack_fieldtrack_proto protoreflect.FileDescriptor |
| |
| const file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDesc = "\n/internal/testprotos/fieldtrack/fieldtrack.protogoproto.proto.test.internal/testprotos/test/weak1/test_weak.proto.internal/testprotos/test/weak2/test_weak.proto/internal/testprotos/annotation/annotation.proto#internal/testprotos/test/test.proto\"\xfe$\nTestFieldTrack%\noptional_int32 (R\roptionalInt32%\noptional_int64 (R\roptionalInt64'\noptional_uint32 (\rRoptionalUint32'\noptional_uint64 (RoptionalUint64'\noptional_sint32 (RoptionalSint32'\noptional_sint64 (RoptionalSint64)\noptional_fixed32 (RoptionalFixed32)\noptional_fixed64 (RoptionalFixed64+\noptional_sfixed32 (RoptionalSfixed32+\noptional_sfixed64\n (RoptionalSfixed64%\noptional_float (R\roptionalFloat'\noptional_double (RoptionalDouble#\n\roptional_bool\r (RoptionalBool'\noptional_string ( RoptionalString%\noptional_bytes (R\roptionalBytesP\n\roptional_enum (2+.goproto.proto.test.TestAllTypes.NestedEnumRoptionalEnumY\noptional_message (2..goproto.proto.test.TestAllTypes.NestedMessageRoptionalMessage%\nrepeated_int32 (R\rrepeatedInt32%\nrepeated_int64 (R\rrepeatedInt64'\nrepeated_uint32 (\rRrepeatedUint32'\nrepeated_uint64 (RrepeatedUint64'\nrepeated_sint32 (RrepeatedSint32'\nrepeated_sint64 (RrepeatedSint64)\nrepeated_fixed32 (RrepeatedFixed32)\nrepeated_fixed64 (RrepeatedFixed64+\nrepeated_sfixed32 (RrepeatedSfixed32+\nrepeated_sfixed64 (RrepeatedSfixed64%\nrepeated_float (R\rrepeatedFloat'\nrepeated_double (RrepeatedDouble#\n\rrepeated_bool! (RrepeatedBool'\nrepeated_string\" ( RrepeatedString%\nrepeated_bytes# (R\rrepeatedBytesP\n\rrepeated_enum$ (2+.goproto.proto.test.TestAllTypes.NestedEnumRrepeatedEnumY\nrepeated_message% (2..goproto.proto.test.TestAllTypes.NestedMessageRrepeatedMessage`\nmap_string_int32) (26.goproto.proto.test.TestFieldTrack.MapStringInt32EntryRmapStringInt32`\nmap_string_int64* (26.goproto.proto.test.TestFieldTrack.MapStringInt64EntryRmapStringInt64c\nmap_string_uint32+ (27.goproto.proto.test.TestFieldTrack.MapStringUint32EntryRmapStringUint32c\nmap_string_uint64, (27.goproto.proto.test.TestFieldTrack.MapStringUint64EntryRmapStringUint64c\nmap_string_sint32- (27.goproto.proto.test.TestFieldTrack.MapStringSint32EntryRmapStringSint32c\nmap_string_sint64. (27.goproto.proto.test.TestFieldTrack.MapStringSint64EntryRmapStringSint64f\nmap_string_fixed32/ (28.goproto.proto.test.TestFieldTrack.MapStringFixed32EntryRmapStringFixed32f\nmap_string_fixed640 (28.goproto.proto.test.TestFieldTrack.MapStringFixed64EntryRmapStringFixed64i\nmap_string_sfixed321 (29.goproto.proto.test.TestFieldTrack.MapStringSfixed32EntryRmapStringSfixed32i\nmap_string_sfixed642 (29.goproto.proto.test.TestFieldTrack.MapStringSfixed64EntryRmapStringSfixed64`\nmap_string_float3 (26.goproto.proto.test.TestFieldTrack.MapStringFloatEntryRmapStringFloatc\nmap_string_double4 (27.goproto.proto.test.TestFieldTrack.MapStringDoubleEntryRmapStringDouble]\nmap_string_bool5 (25.goproto.proto.test.TestFieldTrack.MapStringBoolEntryR\rmapStringBoolc\nmap_string_string6 (27.goproto.proto.test.TestFieldTrack.MapStringStringEntryRmapStringString`\nmap_string_bytes7 (26.goproto.proto.test.TestFieldTrack.MapStringBytesEntryRmapStringBytes]\nmap_string_enum8 (25.goproto.proto.test.TestFieldTrack.MapStringEnumEntryR\rmapStringEnumf\nmap_string_message9 (28.goproto.proto.test.TestFieldTrack.MapStringMessageEntryRmapStringMessageT\n\rweak_message1d (2+.goproto.proto.test.weak.WeakImportMessage1BPRweakMessage1T\n\rweak_message2e (2+.goproto.proto.test.weak.WeakImportMessage2BPRweakMessage2A\nMapStringInt32Entry\nkey ( Rkey\nvalue (Rvalue:8A\nMapStringInt64Entry\nkey ( Rkey\nvalue (Rvalue:8B\nMapStringUint32Entry\nkey ( Rkey\nvalue (\rRvalue:8B\nMapStringUint64Entry\nkey ( Rkey\nvalue (Rvalue:8B\nMapStringSint32Entry\nkey ( Rkey\nvalue (Rvalue:8B\nMapStringSint64Entry\nkey ( Rkey\nvalue (Rvalue:8C\nMapStringFixed32Entry\nkey ( Rkey\nvalue (Rvalue:8C\nMapStringFixed64Entry\nkey ( Rkey\nvalue (Rvalue:8D\nMapStringSfixed32Entry\nkey ( Rkey\nvalue (Rvalue:8D\nMapStringSfixed64Entry\nkey ( Rkey\nvalue (Rvalue:8A\nMapStringFloatEntry\nkey ( Rkey\nvalue (Rvalue:8B\nMapStringDoubleEntry\nkey ( Rkey\nvalue (Rvalue:8@\nMapStringBoolEntry\nkey ( Rkey\nvalue (Rvalue:8B\nMapStringStringEntry\nkey ( Rkey\nvalue ( Rvalue:8A\nMapStringBytesEntry\nkey ( Rkey\nvalue (Rvalue:8m\nMapStringEnumEntry\nkey ( RkeyA\nvalue (2+.goproto.proto.test.TestAllTypes.NestedEnumRvalue:8s\nMapStringMessageEntry\nkey ( RkeyD\nvalue (2..goproto.proto.test.TestAllTypes.NestedMessageRvalue:8:\xa8\xe0ÍŽB;Z9google.golang.org/protobuf/internal/testprotos/fieldtrackX\x00X" |
| |
| var ( |
| file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescOnce sync.Once |
| file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescData = file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDesc |
| ) |
| |
| func file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescGZIP() []byte { |
| file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescOnce.Do(func() { |
| file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescData = string(protoimpl.X.CompressGZIP([]byte(file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescData))) |
| }) |
| return []byte(file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescData) |
| } |
| |
| var file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes = make([]protoimpl.MessageInfo, 18) |
| var file_internal_testprotos_fieldtrack_fieldtrack_proto_goTypes = []any{ |
| (*TestFieldTrack)(nil), // 0: goproto.proto.test.TestFieldTrack |
| nil, // 1: goproto.proto.test.TestFieldTrack.MapStringInt32Entry |
| nil, // 2: goproto.proto.test.TestFieldTrack.MapStringInt64Entry |
| nil, // 3: goproto.proto.test.TestFieldTrack.MapStringUint32Entry |
| nil, // 4: goproto.proto.test.TestFieldTrack.MapStringUint64Entry |
| nil, // 5: goproto.proto.test.TestFieldTrack.MapStringSint32Entry |
| nil, // 6: goproto.proto.test.TestFieldTrack.MapStringSint64Entry |
| nil, // 7: goproto.proto.test.TestFieldTrack.MapStringFixed32Entry |
| nil, // 8: goproto.proto.test.TestFieldTrack.MapStringFixed64Entry |
| nil, // 9: goproto.proto.test.TestFieldTrack.MapStringSfixed32Entry |
| nil, // 10: goproto.proto.test.TestFieldTrack.MapStringSfixed64Entry |
| nil, // 11: goproto.proto.test.TestFieldTrack.MapStringFloatEntry |
| nil, // 12: goproto.proto.test.TestFieldTrack.MapStringDoubleEntry |
| nil, // 13: goproto.proto.test.TestFieldTrack.MapStringBoolEntry |
| nil, // 14: goproto.proto.test.TestFieldTrack.MapStringStringEntry |
| nil, // 15: goproto.proto.test.TestFieldTrack.MapStringBytesEntry |
| nil, // 16: goproto.proto.test.TestFieldTrack.MapStringEnumEntry |
| nil, // 17: goproto.proto.test.TestFieldTrack.MapStringMessageEntry |
| (test.TestAllTypes_NestedEnum)(0), // 18: goproto.proto.test.TestAllTypes.NestedEnum |
| (*test.TestAllTypes_NestedMessage)(nil), // 19: goproto.proto.test.TestAllTypes.NestedMessage |
| } |
| var file_internal_testprotos_fieldtrack_fieldtrack_proto_depIdxs = []int32{ |
| 18, // 0: goproto.proto.test.TestFieldTrack.optional_enum:type_name -> goproto.proto.test.TestAllTypes.NestedEnum |
| 19, // 1: goproto.proto.test.TestFieldTrack.optional_message:type_name -> goproto.proto.test.TestAllTypes.NestedMessage |
| 18, // 2: goproto.proto.test.TestFieldTrack.repeated_enum:type_name -> goproto.proto.test.TestAllTypes.NestedEnum |
| 19, // 3: goproto.proto.test.TestFieldTrack.repeated_message:type_name -> goproto.proto.test.TestAllTypes.NestedMessage |
| 1, // 4: goproto.proto.test.TestFieldTrack.map_string_int32:type_name -> goproto.proto.test.TestFieldTrack.MapStringInt32Entry |
| 2, // 5: goproto.proto.test.TestFieldTrack.map_string_int64:type_name -> goproto.proto.test.TestFieldTrack.MapStringInt64Entry |
| 3, // 6: goproto.proto.test.TestFieldTrack.map_string_uint32:type_name -> goproto.proto.test.TestFieldTrack.MapStringUint32Entry |
| 4, // 7: goproto.proto.test.TestFieldTrack.map_string_uint64:type_name -> goproto.proto.test.TestFieldTrack.MapStringUint64Entry |
| 5, // 8: goproto.proto.test.TestFieldTrack.map_string_sint32:type_name -> goproto.proto.test.TestFieldTrack.MapStringSint32Entry |
| 6, // 9: goproto.proto.test.TestFieldTrack.map_string_sint64:type_name -> goproto.proto.test.TestFieldTrack.MapStringSint64Entry |
| 7, // 10: goproto.proto.test.TestFieldTrack.map_string_fixed32:type_name -> goproto.proto.test.TestFieldTrack.MapStringFixed32Entry |
| 8, // 11: goproto.proto.test.TestFieldTrack.map_string_fixed64:type_name -> goproto.proto.test.TestFieldTrack.MapStringFixed64Entry |
| 9, // 12: goproto.proto.test.TestFieldTrack.map_string_sfixed32:type_name -> goproto.proto.test.TestFieldTrack.MapStringSfixed32Entry |
| 10, // 13: goproto.proto.test.TestFieldTrack.map_string_sfixed64:type_name -> goproto.proto.test.TestFieldTrack.MapStringSfixed64Entry |
| 11, // 14: goproto.proto.test.TestFieldTrack.map_string_float:type_name -> goproto.proto.test.TestFieldTrack.MapStringFloatEntry |
| 12, // 15: goproto.proto.test.TestFieldTrack.map_string_double:type_name -> goproto.proto.test.TestFieldTrack.MapStringDoubleEntry |
| 13, // 16: goproto.proto.test.TestFieldTrack.map_string_bool:type_name -> goproto.proto.test.TestFieldTrack.MapStringBoolEntry |
| 14, // 17: goproto.proto.test.TestFieldTrack.map_string_string:type_name -> goproto.proto.test.TestFieldTrack.MapStringStringEntry |
| 15, // 18: goproto.proto.test.TestFieldTrack.map_string_bytes:type_name -> goproto.proto.test.TestFieldTrack.MapStringBytesEntry |
| 16, // 19: goproto.proto.test.TestFieldTrack.map_string_enum:type_name -> goproto.proto.test.TestFieldTrack.MapStringEnumEntry |
| 17, // 20: goproto.proto.test.TestFieldTrack.map_string_message:type_name -> goproto.proto.test.TestFieldTrack.MapStringMessageEntry |
| 18, // 21: goproto.proto.test.TestFieldTrack.MapStringEnumEntry.value:type_name -> goproto.proto.test.TestAllTypes.NestedEnum |
| 19, // 22: goproto.proto.test.TestFieldTrack.MapStringMessageEntry.value:type_name -> goproto.proto.test.TestAllTypes.NestedMessage |
| 23, // [23:23] is the sub-list for method output_type |
| 23, // [23:23] is the sub-list for method input_type |
| 23, // [23:23] is the sub-list for extension type_name |
| 23, // [23:23] is the sub-list for extension extendee |
| 0, // [0:23] is the sub-list for field type_name |
| } |
| |
| func init() { file_internal_testprotos_fieldtrack_fieldtrack_proto_init() } |
| func file_internal_testprotos_fieldtrack_fieldtrack_proto_init() { |
| if File_internal_testprotos_fieldtrack_fieldtrack_proto != nil { |
| return |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDesc), len(file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDesc)), |
| NumEnums: 0, |
| NumMessages: 18, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_internal_testprotos_fieldtrack_fieldtrack_proto_goTypes, |
| DependencyIndexes: file_internal_testprotos_fieldtrack_fieldtrack_proto_depIdxs, |
| MessageInfos: file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes, |
| }.Build() |
| File_internal_testprotos_fieldtrack_fieldtrack_proto = out.File |
| file_internal_testprotos_fieldtrack_fieldtrack_proto_goTypes = nil |
| file_internal_testprotos_fieldtrack_fieldtrack_proto_depIdxs = nil |
| } |