/external/perfetto/src/perfetto_cmd/ |
D | pbtxt_to_pb.cc | 42 using protos::FieldDescriptorProto; 57 const char* FieldToTypeName(const FieldDescriptorProto* field) { in FieldToTypeName() 59 case FieldDescriptorProto::TYPE_UINT64: in FieldToTypeName() 61 case FieldDescriptorProto::TYPE_UINT32: in FieldToTypeName() 63 case FieldDescriptorProto::TYPE_INT64: in FieldToTypeName() 65 case FieldDescriptorProto::TYPE_SINT64: in FieldToTypeName() 67 case FieldDescriptorProto::TYPE_INT32: in FieldToTypeName() 69 case FieldDescriptorProto::TYPE_SINT32: in FieldToTypeName() 71 case FieldDescriptorProto::TYPE_FIXED64: in FieldToTypeName() 73 case FieldDescriptorProto::TYPE_SFIXED64: in FieldToTypeName() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf/Reflection/ |
D | FieldDescriptor.cs | 65 internal FieldDescriptorProto Proto { get; } 67 internal FieldDescriptor(FieldDescriptorProto proto, FileDescriptor file, in FieldDescriptor() 132 private static FieldType GetFieldTypeFromProtoType(FieldDescriptorProto.Types.Type type) in GetFieldTypeFromProtoType() 136 case FieldDescriptorProto.Types.Type.Double: in GetFieldTypeFromProtoType() 138 case FieldDescriptorProto.Types.Type.Float: in GetFieldTypeFromProtoType() 140 case FieldDescriptorProto.Types.Type.Int64: in GetFieldTypeFromProtoType() 142 case FieldDescriptorProto.Types.Type.Uint64: in GetFieldTypeFromProtoType() 144 case FieldDescriptorProto.Types.Type.Int32: in GetFieldTypeFromProtoType() 146 case FieldDescriptorProto.Types.Type.Fixed64: in GetFieldTypeFromProtoType() 148 case FieldDescriptorProto.Types.Type.Fixed32: in GetFieldTypeFromProtoType() [all …]
|
D | Descriptor.cs | 148 …FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser, new[]{ "Nam… in DescriptorReflection() 405 …private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _r… 406 … = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); 407 …Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Proto… 408 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension { 710 …private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _r… 711 … = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); 712 …e.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobu… 713 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field { 719 …private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _r… [all …]
|
D | PartialClasses.cs | 36 internal partial class FieldDescriptorProto class
|
/external/tensorflow/tensorflow/contrib/proto/python/kernel_tests/ |
D | descriptor_source_test_base.py | 26 from google.protobuf.descriptor_pb2 import FieldDescriptorProto 73 type=FieldDescriptorProto.TYPE_MESSAGE, 75 label=FieldDescriptorProto.LABEL_REPEATED) 79 type=FieldDescriptorProto.TYPE_INT32, 80 label=FieldDescriptorProto.LABEL_REPEATED) 84 type=FieldDescriptorProto.TYPE_INT32, 85 label=FieldDescriptorProto.LABEL_REPEATED) 89 type=FieldDescriptorProto.TYPE_MESSAGE, 91 label=FieldDescriptorProto.LABEL_REPEATED) 98 type=FieldDescriptorProto.TYPE_DOUBLE, [all …]
|
/external/protobuf/src/google/protobuf/compiler/ |
D | parser.cc | 60 typedef hash_map<string, FieldDescriptorProto::Type> TypeNameMap; 65 result["double" ] = FieldDescriptorProto::TYPE_DOUBLE; in MakeTypeNameTable() 66 result["float" ] = FieldDescriptorProto::TYPE_FLOAT; in MakeTypeNameTable() 67 result["uint64" ] = FieldDescriptorProto::TYPE_UINT64; in MakeTypeNameTable() 68 result["fixed64" ] = FieldDescriptorProto::TYPE_FIXED64; in MakeTypeNameTable() 69 result["fixed32" ] = FieldDescriptorProto::TYPE_FIXED32; in MakeTypeNameTable() 70 result["bool" ] = FieldDescriptorProto::TYPE_BOOL; in MakeTypeNameTable() 71 result["string" ] = FieldDescriptorProto::TYPE_STRING; in MakeTypeNameTable() 72 result["group" ] = FieldDescriptorProto::TYPE_GROUP; in MakeTypeNameTable() 74 result["bytes" ] = FieldDescriptorProto::TYPE_BYTES; in MakeTypeNameTable() [all …]
|
D | parser.h | 346 bool ParseMessageField(FieldDescriptorProto* field, 355 bool ParseMessageFieldNoLabel(FieldDescriptorProto* field, 377 bool ParseExtend(RepeatedPtrField<FieldDescriptorProto>* extensions, 419 bool ParseLabel(FieldDescriptorProto::Label* label, 424 bool ParseType(FieldDescriptorProto::Type* type, 432 bool ParseFieldOptions(FieldDescriptorProto* field, 438 bool ParseDefaultAssignment(FieldDescriptorProto* field, 442 bool ParseJsonName(FieldDescriptorProto* field, 483 FieldDescriptorProto::Type key_type; 484 FieldDescriptorProto::Type value_type; [all …]
|
D | parser_unittest.cc | 1662 FieldDescriptorProto* field(message->add_field()); in TEST_F() 1668 FieldDescriptorProto* extension(other_file.add_extension()); in TEST_F() 2370 const FieldDescriptorProto& field1 = file_.message_type(0).field(0); in TEST_F() 2371 const FieldDescriptorProto& field2 = file_.message_type(0).field(1); in TEST_F() 2401 const FieldDescriptorProto& field1 = file_.extension(0); in TEST_F() 2402 const FieldDescriptorProto& field2 = file_.extension(1); in TEST_F() 2403 const FieldDescriptorProto& field3 = file_.extension(2); in TEST_F() 2445 const FieldDescriptorProto& field1 = file_.message_type(0).extension(0); in TEST_F() 2446 const FieldDescriptorProto& field2 = file_.message_type(0).extension(1); in TEST_F() 2447 const FieldDescriptorProto& field3 = file_.message_type(0).extension(2); in TEST_F() [all …]
|
/external/protobuf/src/google/protobuf/ |
D | descriptor_unittest.cc | 101 FieldDescriptorProto* AddField(DescriptorProto* parent, in AddField() 103 FieldDescriptorProto::Label label, in AddField() 104 FieldDescriptorProto::Type type) { in AddField() 105 FieldDescriptorProto* result = parent->add_field(); in AddField() 113 FieldDescriptorProto* AddExtension(FileDescriptorProto* file, in AddExtension() 116 FieldDescriptorProto::Label label, in AddExtension() 117 FieldDescriptorProto::Type type) { in AddExtension() 118 FieldDescriptorProto* result = file->add_extension(); in AddExtension() 127 FieldDescriptorProto* AddNestedExtension(DescriptorProto* parent, in AddNestedExtension() 130 FieldDescriptorProto::Label label, in AddNestedExtension() [all …]
|
D | descriptor.pb.h | 48 class FieldDescriptorProto; variable 443 const ::google::protobuf::FieldDescriptorProto& extension(int index) const; 444 ::google::protobuf::FieldDescriptorProto* mutable_extension(int index); 445 ::google::protobuf::FieldDescriptorProto* add_extension(); 446 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >* 448 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >& 505 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_; 799 const ::google::protobuf::FieldDescriptorProto& field(int index) const; 800 ::google::protobuf::FieldDescriptorProto* mutable_field(int index); 801 ::google::protobuf::FieldDescriptorProto* add_field(); [all …]
|
D | descriptor.pb.cc | 211 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 212 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 213 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 214 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 215 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 216 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 217 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 218 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, oneof_index_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 219 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, json_name_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() 220 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_), in protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() [all …]
|
D | descriptor_database.h | 171 bool AddExtension(const FieldDescriptorProto& field,
|
D | descriptor.cc | 1841 void FieldDescriptor::CopyTo(FieldDescriptorProto* proto) const { in CopyTo() 1850 proto->set_label(static_cast<FieldDescriptorProto::Label>( in CopyTo() 1852 proto->set_type(static_cast<FieldDescriptorProto::Type>( in CopyTo() 1893 void FieldDescriptor::CopyJsonNameTo(FieldDescriptorProto* proto) const { in CopyJsonNameTo() 2954 void BuildFieldOrExtension(const FieldDescriptorProto& proto, 2958 void BuildField(const FieldDescriptorProto& proto, in BuildField() 2963 void BuildExtension(const FieldDescriptorProto& proto, in BuildExtension() 3001 const FieldDescriptorProto& proto); 3151 const FieldDescriptorProto& proto); 3165 const FieldDescriptorProto& proto); [all …]
|
D | descriptor.proto | 76 repeated FieldDescriptorProto extension = 7; 95 repeated FieldDescriptorProto field = 2; 96 repeated FieldDescriptorProto extension = 6; 125 message FieldDescriptorProto { message 237 // FieldDescriptorProto.type_name, but must refer to a message type. 708 // repeated FieldDescriptorProto field = 2; 709 // and FieldDescriptorProto.name has field number 1:
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | DescriptorsTest.java | 36 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto; 83 FieldDescriptorProto.Type.values().length); in testFieldTypeEnumMapping() 85 FieldDescriptorProto.Type protoType = type.toProto(); in testFieldTypeEnumMapping() 456 .addField(FieldDescriptorProto.newBuilder() in testDescriptorValidatorException() 457 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorValidatorException() 458 .setType(FieldDescriptorProto.Type.TYPE_INT32) in testDescriptorValidatorException() 488 .addField(FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink() 489 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorComplexCrosslink() 490 .setType(FieldDescriptorProto.Type.TYPE_INT32) in testDescriptorComplexCrosslink() 497 .addField(FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink() [all …]
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyFieldDescriptor.java | 70 builder = DescriptorProtos.FieldDescriptorProto.newBuilder(); in initialize() 97 … DescriptorProtos.FieldDescriptorProto.Label.valueOf("LABEL_" + labelName.toUpperCase())); in setLabel() 157 …this.builder.setType(DescriptorProtos.FieldDescriptorProto.Type.valueOf("TYPE_" + value.asJavaStri… in setType() 262 protected DescriptorProtos.FieldDescriptorProto build() { in build() 268 private DescriptorProtos.FieldDescriptorProto.Builder builder;
|
/external/golang-protobuf/protoc-gen-go/descriptor/ |
D | descriptor.pb.go | 403 …Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omite… 499 func (m *FileDescriptorProto) GetExtension() []*FieldDescriptorProto { 530 …Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field" json:"field,om… 531 …Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension" json:"exte… 578 func (m *DescriptorProto) GetField() []*FieldDescriptorProto { 585 func (m *DescriptorProto) GetExtension() []*FieldDescriptorProto { 796 type FieldDescriptorProto struct { struct 832 func (m *FieldDescriptorProto) Reset() { *m = FieldDescriptorProto{} } argument 833 func (m *FieldDescriptorProto) String() string { return proto.CompactTextString(m) } argument 834 func (*FieldDescriptorProto) ProtoMessage() {} argument [all …]
|
/external/syzkaller/vendor/github.com/golang/protobuf/protoc-gen-go/descriptor/ |
D | descriptor.pb.go | 376 …Extension []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omite… 471 func (m *FileDescriptorProto) GetExtension() []*FieldDescriptorProto { 502 …Field []*FieldDescriptorProto `protobuf:"bytes,2,rep,name=field" json:"field,om… 503 …Extension []*FieldDescriptorProto `protobuf:"bytes,6,rep,name=extension" json:"exte… 549 func (m *DescriptorProto) GetField() []*FieldDescriptorProto { 556 func (m *DescriptorProto) GetExtension() []*FieldDescriptorProto { 764 type FieldDescriptorProto struct { struct 800 func (m *FieldDescriptorProto) Reset() { *m = FieldDescriptorProto{} } argument 801 func (m *FieldDescriptorProto) String() string { return proto.CompactTextString(m) } argument 802 func (*FieldDescriptorProto) ProtoMessage() {} argument [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | proto_builder_test.py | 54 ('foo', descriptor_pb2.FieldDescriptorProto.TYPE_INT64), 55 ('bar', descriptor_pb2.FieldDescriptorProto.TYPE_STRING),
|
D | message_factory_test.py | 161 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL 178 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Descriptors.java | 903 public FieldDescriptorProto toProto() { in toProto() 988 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_REQUIRED; in isRequired() 993 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_OPTIONAL; in isOptional() 999 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_REPEATED; in isRepeated() 1130 private FieldDescriptorProto proto; 1170 public FieldDescriptorProto.Type toProto() { in toProto() 1171 return FieldDescriptorProto.Type.forNumber(ordinal() + 1); in toProto() 1175 public static Type valueOf(final FieldDescriptorProto.Type type) { in valueOf() 1182 if (Type.values().length != FieldDescriptorProto.Type.values().length) { 1243 private FieldDescriptor(final FieldDescriptorProto proto, in FieldDescriptor() [all …]
|
/external/perfetto/protos/perfetto/common/ |
D | descriptor.proto | 58 repeated FieldDescriptorProto field = 2; 59 repeated FieldDescriptorProto extension = 6; 84 message FieldDescriptorProto { message
|
/external/golang-protobuf/protoc-gen-go/generator/ |
D | generator.go | 218 *descriptor.FieldDescriptorProto anonMember 1465 func (g *Generator) goTag(message *Descriptor, field *descriptor.FieldDescriptorProto, wiretype str… 1601 func (g *Generator) GoType(message *Descriptor, field *descriptor.FieldDescriptorProto) (typ string… 1709 func (g *Generator) getterDefault(field *descriptor.FieldDescriptorProto, goMessageType string) str… 2229 …mapFieldTypes := make(map[*descriptor.FieldDescriptorProto]string) // keep track of the map fields… 2445 type byTypeName []*descriptor.FieldDescriptorProto 2452 func mapFieldKeys(m map[*descriptor.FieldDescriptorProto]string) []*descriptor.FieldDescriptorProto… 2453 keys := make([]*descriptor.FieldDescriptorProto, 0, len(m)) 2535 field := ext.FieldDescriptorProto 2539 if n := ext.FieldDescriptorProto.TypeName; n != nil { [all …]
|
/external/protobuf/python/google/protobuf/ |
D | proto_builder.py | 128 field_proto.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
|
/external/grpc-grpc/third_party/nanopb/generator/proto/google/protobuf/ |
D | descriptor.proto | 73 repeated FieldDescriptorProto extension = 7; 92 repeated FieldDescriptorProto field = 2; 93 repeated FieldDescriptorProto extension = 6; 110 message FieldDescriptorProto { message 218 // FieldDescriptorProto.type_name, but must refer to a message type. 659 // repeated FieldDescriptorProto field = 2; 660 // and FieldDescriptorProto.name has field number 1:
|