/external/golang-protobuf/internal/genid/ |
D | descriptor_gen.go | 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" packageName 17 FileDescriptorSet_message_name protoreflect.Name = "FileDescriptorSet" 18 FileDescriptorSet_message_fullname protoreflect.FullName = "google.protobuf.FileDescriptorSet" 23 FileDescriptorSet_File_field_name protoreflect.Name = "file" 25 …FileDescriptorSet_File_field_fullname protoreflect.FullName = "google.protobuf.FileDescriptorSet.f… 30 FileDescriptorSet_File_field_number protoreflect.FieldNumber = 1 35 FileDescriptorProto_message_name protoreflect.Name = "FileDescriptorProto" 36 FileDescriptorProto_message_fullname protoreflect.FullName = "google.protobuf.FileDescriptorProto" 41 FileDescriptorProto_Name_field_name protoreflect.Name = "name" 42 FileDescriptorProto_Package_field_name protoreflect.Name = "package" [all …]
|
D | type_gen.go | 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" packageName 23 Type_message_name protoreflect.Name = "Type" 24 Type_message_fullname protoreflect.FullName = "google.protobuf.Type" 29 Type_Name_field_name protoreflect.Name = "name" 30 Type_Fields_field_name protoreflect.Name = "fields" 31 Type_Oneofs_field_name protoreflect.Name = "oneofs" 32 Type_Options_field_name protoreflect.Name = "options" 33 Type_SourceContext_field_name protoreflect.Name = "source_context" 34 Type_Syntax_field_name protoreflect.Name = "syntax" 36 Type_Name_field_fullname protoreflect.FullName = "google.protobuf.Type.name" [all …]
|
D | api_gen.go | 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" packageName 17 Api_message_name protoreflect.Name = "Api" 18 Api_message_fullname protoreflect.FullName = "google.protobuf.Api" 23 Api_Name_field_name protoreflect.Name = "name" 24 Api_Methods_field_name protoreflect.Name = "methods" 25 Api_Options_field_name protoreflect.Name = "options" 26 Api_Version_field_name protoreflect.Name = "version" 27 Api_SourceContext_field_name protoreflect.Name = "source_context" 28 Api_Mixins_field_name protoreflect.Name = "mixins" 29 Api_Syntax_field_name protoreflect.Name = "syntax" [all …]
|
D | wrappers_gen.go | 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" packageName 17 DoubleValue_message_name protoreflect.Name = "DoubleValue" 18 DoubleValue_message_fullname protoreflect.FullName = "google.protobuf.DoubleValue" 23 DoubleValue_Value_field_name protoreflect.Name = "value" 25 DoubleValue_Value_field_fullname protoreflect.FullName = "google.protobuf.DoubleValue.value" 30 DoubleValue_Value_field_number protoreflect.FieldNumber = 1 35 FloatValue_message_name protoreflect.Name = "FloatValue" 36 FloatValue_message_fullname protoreflect.FullName = "google.protobuf.FloatValue" 41 FloatValue_Value_field_name protoreflect.Name = "value" 43 FloatValue_Value_field_fullname protoreflect.FullName = "google.protobuf.FloatValue.value" [all …]
|
D | struct_gen.go | 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" packageName 23 Struct_message_name protoreflect.Name = "Struct" 24 Struct_message_fullname protoreflect.FullName = "google.protobuf.Struct" 29 Struct_Fields_field_name protoreflect.Name = "fields" 31 Struct_Fields_field_fullname protoreflect.FullName = "google.protobuf.Struct.fields" 36 Struct_Fields_field_number protoreflect.FieldNumber = 1 41 Struct_FieldsEntry_message_name protoreflect.Name = "FieldsEntry" 42 Struct_FieldsEntry_message_fullname protoreflect.FullName = "google.protobuf.Struct.FieldsEntry" 47 Struct_FieldsEntry_Key_field_name protoreflect.Name = "key" 48 Struct_FieldsEntry_Value_field_name protoreflect.Name = "value" [all …]
|
/external/golang-protobuf/types/dynamicpb/ |
D | dynamic.go | 19 num protoreflect.EnumNumber 20 typ protoreflect.EnumType 23 func (e enum) Descriptor() protoreflect.EnumDescriptor { return e.typ.Descriptor() } 24 func (e enum) Type() protoreflect.EnumType { return e.typ } 25 func (e enum) Number() protoreflect.EnumNumber { return e.num } 29 desc protoreflect.EnumDescriptor 38 func NewEnumType(desc protoreflect.EnumDescriptor) protoreflect.EnumType { 42 func (et enumType) New(n protoreflect.EnumNumber) protoreflect.Enum { return enum{n, et} } 43 func (et enumType) Descriptor() protoreflect.EnumDescriptor { return et.desc } 67 known map[protoreflect.FieldNumber]protoreflect.Value [all …]
|
/external/golang-protobuf/internal/impl/ |
D | codec_tables.go | 28 size func(v protoreflect.Value, tagsize int, opts marshalOptions) int 29 marshal func(b []byte, v protoreflect.Value, wiretag uint64, opts marshalOptions) ([]byte, error) 30 …unmarshal func(b []byte, v protoreflect.Value, num protowire.Number, wtyp protowire.Type, opts unm… 31 isInit func(v protoreflect.Value) error 32 merge func(dst, src protoreflect.Value, opts mergeOptions) protoreflect.Value 37 func fieldCoder(fd protoreflect.FieldDescriptor, ft reflect.Type) (*MessageInfo, pointerCoderFuncs)… 41 case fd.Cardinality() == protoreflect.Repeated && !fd.IsPacked(): 48 case protoreflect.BoolKind: 52 case protoreflect.EnumKind: 56 case protoreflect.Int32Kind: [all …]
|
D | convert.go | 23 PBValueOf(reflect.Value) protoreflect.Value 26 GoValueOf(protoreflect.Value) reflect.Value 29 IsValidPB(protoreflect.Value) bool 37 New() protoreflect.Value 42 Zero() protoreflect.Value 53 func NewConverter(t reflect.Type, fd protoreflect.FieldDescriptor) Converter { 78 boolZero = protoreflect.ValueOfBool(false) 79 int32Zero = protoreflect.ValueOfInt32(0) 80 int64Zero = protoreflect.ValueOfInt64(0) 81 uint32Zero = protoreflect.ValueOfUint32(0) [all …]
|
/external/golang-protobuf/internal/encoding/defval/ |
D | default.go | 38 …unc Unmarshal(s string, k protoreflect.Kind, evs protoreflect.EnumValueDescriptors, f Format) (pro… 40 case protoreflect.BoolKind: 44 return protoreflect.ValueOfBool(true), nil, nil 46 return protoreflect.ValueOfBool(false), nil, nil 51 return protoreflect.ValueOfBool(true), nil, nil 53 return protoreflect.ValueOfBool(false), nil, nil 56 case protoreflect.EnumKind: 60 if ev := evs.ByNumber(protoreflect.EnumNumber(n)); ev != nil { 61 return protoreflect.ValueOfEnum(ev.Number()), ev, nil 66 ev := evs.ByName(protoreflect.Name(s)) [all …]
|
/external/golang-protobuf/internal/filedesc/ |
D | desc.go | 46 Syntax protoreflect.Syntax 48 Package protoreflect.FullName 56 Options func() protoreflect.ProtoMessage 62 func (fd *File) ParentFile() protoreflect.FileDescriptor { return fd } 63 func (fd *File) Parent() protoreflect.Descriptor { return nil } 65 func (fd *File) Syntax() protoreflect.Syntax { return fd.L1.Syntax } 66 func (fd *File) Name() protoreflect.Name { return fd.L1.Package.Name() } 67 func (fd *File) FullName() protoreflect.FullName { return fd.L1.Package } 69 func (fd *File) Options() protoreflect.ProtoMessage { 76 func (fd *File) Package() protoreflect.FullName { return fd.L1.Package } [all …]
|
D | placeholder.go | 33 func (f PlaceholderFile) ParentFile() protoreflect.FileDescriptor { return f } 34 func (f PlaceholderFile) Parent() protoreflect.Descriptor { return nil } 36 func (f PlaceholderFile) Syntax() protoreflect.Syntax { return 0 } 37 func (f PlaceholderFile) Name() protoreflect.Name { return "" } 38 func (f PlaceholderFile) FullName() protoreflect.FullName { return "" } 40 func (f PlaceholderFile) Options() protoreflect.ProtoMessage { return descopts.File } 42 func (f PlaceholderFile) Package() protoreflect.FullName { return "" } 43 func (f PlaceholderFile) Imports() protoreflect.FileImports { return emptyFiles } 44 func (f PlaceholderFile) Messages() protoreflect.MessageDescriptors { return emptyMessages } 45 func (f PlaceholderFile) Enums() protoreflect.EnumDescriptors { return emptyEnums } [all …]
|
D | desc_list.go | 22 type FileImports []protoreflect.FileImport 25 func (p *FileImports) Get(i int) protoreflect.FileImport { return (*p)[i] } 30 List []protoreflect.Name 32 has map[protoreflect.Name]int // protected by once 36 func (p *Names) Get(i int) protoreflect.Name { return p.List[i] } 37 func (p *Names) Has(s protoreflect.Name) bool { return p.lazyInit().has[s] > 0 } 43 p.has = make(map[protoreflect.Name]int, len(p.List)) 69 List [][2]protoreflect.EnumNumber // start inclusive; end inclusive 71 sorted [][2]protoreflect.EnumNumber // protected by once 75 func (p *EnumRanges) Get(i int) [2]protoreflect.EnumNumber { return p.List[i] } [all …]
|
D | desc_test.go | 49 Label: descriptorpb.FieldDescriptorProto_Label(protoreflect.Optional).Enum(), 50 Type: descriptorpb.FieldDescriptorProto_Type(protoreflect.StringKind).Enum(), 57 Label: descriptorpb.FieldDescriptorProto_Label(protoreflect.Optional).Enum(), 58 Type: descriptorpb.FieldDescriptorProto_Type(protoreflect.EnumKind).Enum(), 65 Label: descriptorpb.FieldDescriptorProto_Label(protoreflect.Optional).Enum(), 66 Type: descriptorpb.FieldDescriptorProto_Type(protoreflect.MessageKind).Enum(), 73 Label: descriptorpb.FieldDescriptorProto_Label(protoreflect.Repeated).Enum(), 74 Type: descriptorpb.FieldDescriptorProto_Type(protoreflect.MessageKind).Enum(), 79 Label: descriptorpb.FieldDescriptorProto_Label(protoreflect.Repeated).Enum(), 80 Type: descriptorpb.FieldDescriptorProto_Type(protoreflect.Int32Kind).Enum(), [all …]
|
/external/golang-protobuf/testing/protocmp/ |
D | reflect.go | 19 func reflectValueOf(v interface{}) protoreflect.Value { 22 return protoreflect.ValueOfEnum(v.Number()) 24 return protoreflect.ValueOfMessage(v.ProtoReflect()) 26 return protoreflect.ValueOfBytes(v) // avoid overlap with reflect.Slice check below 30 return protoreflect.ValueOfList(reflectList{rv}) 32 return protoreflect.ValueOfMap(reflectMap{rv}) 34 return protoreflect.ValueOf(v) 41 func (m reflectMessage) stringKey(fd protoreflect.FieldDescriptor) string { 48 func (m reflectMessage) Descriptor() protoreflect.MessageDescriptor { 51 func (m reflectMessage) Type() protoreflect.MessageType { [all …]
|
D | xform.go | 30 enumV2Type = reflect.TypeOf((*protoreflect.Enum)(nil)).Elem() 38 num protoreflect.EnumNumber 39 ed protoreflect.EnumDescriptor 44 func (e Enum) Descriptor() protoreflect.EnumDescriptor { 49 func (e Enum) Number() protoreflect.EnumNumber { 84 md protoreflect.MessageDescriptor 85 xds map[string]protoreflect.ExtensionDescriptor 129 func (m Message) Descriptor() protoreflect.MessageDescriptor { 137 func (m Message) ProtoReflect() protoreflect.Message { 234 func transformMessage(m protoreflect.Message) Message { [all …]
|
/external/golang-protobuf/internal/encoding/tag/ |
D | tag.go | 32 func Unmarshal(tag string, goType reflect.Type, evs protoreflect.EnumValueDescriptors) protoreflect… 42 f.L0.FullName = protoreflect.FullName(s[len("name="):]) 45 f.L1.Number = protoreflect.FieldNumber(n) 47 f.L1.Cardinality = protoreflect.Optional 49 f.L1.Cardinality = protoreflect.Required 51 f.L1.Cardinality = protoreflect.Repeated 55 f.L1.Kind = protoreflect.BoolKind 57 f.L1.Kind = protoreflect.Int32Kind 59 f.L1.Kind = protoreflect.Int64Kind 61 f.L1.Kind = protoreflect.Uint32Kind [all …]
|
/external/golang-protobuf/encoding/protojson/ |
D | decode.go | 116 func (d decoder) unmarshalMessage(m protoreflect.Message, skipTypeURL bool) error { 162 var fd protoreflect.FieldDescriptor 165 extName := protoreflect.FullName(name[1 : len(name)-1]) 243 func isKnownValue(fd protoreflect.FieldDescriptor) bool { 248 func isNullValue(fd protoreflect.FieldDescriptor) bool { 255 func (d decoder) unmarshalSingular(m protoreflect.Message, fd protoreflect.FieldDescriptor) error { 256 var val protoreflect.Value 259 case protoreflect.MessageKind, protoreflect.GroupKind: 275 func (d decoder) unmarshalScalar(fd protoreflect.FieldDescriptor) (protoreflect.Value, error) { 281 return protoreflect.Value{}, err [all …]
|
D | encode.go | 150 var typeFieldDesc = func() protoreflect.FieldDescriptor { 154 fd.L1.Cardinality = protoreflect.Optional 155 fd.L1.Kind = protoreflect.StringKind 166 func (m typeURLFieldRanger) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { 167 if !f(typeFieldDesc, protoreflect.ValueOfString(m.typeURL)) { 175 type unpopulatedFieldRanger struct{ protoreflect.Message } 177 func (m unpopulatedFieldRanger) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool… 186 isProto2Scalar := fd.Syntax() == protoreflect.Proto2 && fd.Default().IsValid() 187 isSingularMessage := fd.Cardinality() != protoreflect.Repeated && fd.Message() != nil 189 v = protoreflect.Value{} // use invalid value to emit null [all …]
|
/external/golang-protobuf/proto/ |
D | encode_gen.go | 19 var wireTypes = map[protoreflect.Kind]protowire.Type{ 20 protoreflect.BoolKind: protowire.VarintType, 21 protoreflect.EnumKind: protowire.VarintType, 22 protoreflect.Int32Kind: protowire.VarintType, 23 protoreflect.Sint32Kind: protowire.VarintType, 24 protoreflect.Uint32Kind: protowire.VarintType, 25 protoreflect.Int64Kind: protowire.VarintType, 26 protoreflect.Sint64Kind: protowire.VarintType, 27 protoreflect.Uint64Kind: protowire.VarintType, 28 protoreflect.Sfixed32Kind: protowire.Fixed32Type, [all …]
|
D | decode_gen.go | 22 …s) unmarshalScalar(b []byte, wtyp protowire.Type, fd protoreflect.FieldDescriptor) (val protorefle… 24 case protoreflect.BoolKind: 32 return protoreflect.ValueOfBool(protowire.DecodeBool(v)), n, nil 33 case protoreflect.EnumKind: 41 return protoreflect.ValueOfEnum(protoreflect.EnumNumber(v)), n, nil 42 case protoreflect.Int32Kind: 50 return protoreflect.ValueOfInt32(int32(v)), n, nil 51 case protoreflect.Sint32Kind: 59 return protoreflect.ValueOfInt32(int32(protowire.DecodeZigZag(v & math.MaxUint32))), n, nil 60 case protoreflect.Uint32Kind: [all …]
|
/external/golang-protobuf/encoding/ |
D | bench_test.go | 30 func fillMessage(m protoreflect.Message, level int) { 49 func setScalarField(m protoreflect.Message, fd protoreflect.FieldDescriptor, level int) { 51 case protoreflect.MessageKind, protoreflect.GroupKind: 60 func scalarField(kind protoreflect.Kind) protoreflect.Value { 62 case protoreflect.BoolKind: 63 return protoreflect.ValueOfBool(true) 65 case protoreflect.Int32Kind, protoreflect.Sint32Kind, protoreflect.Sfixed32Kind: 66 return protoreflect.ValueOfInt32(1 << 30) 68 case protoreflect.Int64Kind, protoreflect.Sint64Kind, protoreflect.Sfixed64Kind: 69 return protoreflect.ValueOfInt64(1 << 30) [all …]
|
/external/golang-protobuf/testing/prototest/ |
D | message.go | 32 FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error) 33 …FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect… 34 RangeExtensionsByMessage(message protoreflect.FullName, f func(protoreflect.ExtensionType) bool) 39 func (test Message) Test(t testing.TB, mt protoreflect.MessageType) { 51 var extTypes []protoreflect.ExtensionType 52 test.Resolver.RangeExtensionsByMessage(md.FullName(), func(e protoreflect.ExtensionType) bool { 88 func testType(t testing.TB, mt protoreflect.MessageType) { 100 if mt, ok := mt.(protoreflect.MessageFieldTypes); ok { 105 func testFieldTypes(t testing.TB, mt protoreflect.MessageFieldTypes) { 106 descName := func(d protoreflect.Descriptor) protoreflect.FullName { [all …]
|
/external/golang-protobuf/internal/testprotos/irregular/ |
D | irregular.go | 21 func (m *IrregularMessage) ProtoReflect() protoreflect.Message { return (*message)(m) } 27 func (messageType) New() protoreflect.Message { return &message{} } 28 func (messageType) Zero() protoreflect.Message { return (*message)(nil) } 29 func (messageType) Descriptor() protoreflect.MessageDescriptor { return fileDesc.Messages().Get(0) } 31 func (m *message) New() protoreflect.Message { return &message{} } 32 func (m *message) Descriptor() protoreflect.MessageDescriptor { return fileDesc.Messages().Get(0) } 33 func (m *message) Type() protoreflect.MessageType { return messageType{} } 34 func (m *message) Interface() protoreflect.ProtoMessage { return (*IrregularMessage)(m) } 39 func (m *message) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { 41 f(fieldDescS, protoreflect.ValueOf(m.value)) [all …]
|
/external/golang-protobuf/internal/filetype/ |
D | build.go | 110 RegisterMessage(protoreflect.MessageType) error 111 RegisterEnum(protoreflect.EnumType) error 112 RegisterExtension(protoreflect.ExtensionType) error 118 File protoreflect.FileDescriptor 185 descopts.File = messageGoTypes[i].(protoreflect.ProtoMessage) 187 descopts.Enum = messageGoTypes[i].(protoreflect.ProtoMessage) 189 descopts.EnumValue = messageGoTypes[i].(protoreflect.ProtoMessage) 191 descopts.Message = messageGoTypes[i].(protoreflect.ProtoMessage) 193 descopts.Field = messageGoTypes[i].(protoreflect.ProtoMessage) 195 descopts.Oneof = messageGoTypes[i].(protoreflect.ProtoMessage) [all …]
|
/external/golang-protobuf/reflect/protoregistry/ |
D | registry.go | 47 var ignoreConflict = func(d protoreflect.Descriptor, err error) bool { 98 descsByName map[protoreflect.FullName]interface{} 99 filesByPath map[string][]protoreflect.FileDescriptor 104 files []protoreflect.FileDescriptor 114 func (r *Files) RegisterFile(file protoreflect.FileDescriptor) error { 120 r.descsByName = map[protoreflect.FullName]interface{}{ 123 r.filesByPath = make(map[string][]protoreflect.FileDescriptor) 149 rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) { 170 rangeTopLevelDescriptors(file, func(d protoreflect.Descriptor) { 222 func (r *Files) FindDescriptorByName(name protoreflect.FullName) (protoreflect.Descriptor, error) { [all …]
|