Home
last modified time | relevance | path

Searched refs:FieldDescriptorProto (Results 1 – 25 of 72) sorted by relevance

123

/external/perfetto/src/perfetto_cmd/
Dpbtxt_to_pb.cc45 using protos::gen::FieldDescriptorProto;
66 const char* FieldToTypeName(const FieldDescriptorProto* field) { in FieldToTypeName()
68 case FieldDescriptorProto::TYPE_UINT64: in FieldToTypeName()
70 case FieldDescriptorProto::TYPE_UINT32: in FieldToTypeName()
72 case FieldDescriptorProto::TYPE_INT64: in FieldToTypeName()
74 case FieldDescriptorProto::TYPE_SINT64: in FieldToTypeName()
76 case FieldDescriptorProto::TYPE_INT32: in FieldToTypeName()
78 case FieldDescriptorProto::TYPE_SINT32: in FieldToTypeName()
80 case FieldDescriptorProto::TYPE_FIXED64: in FieldToTypeName()
82 case FieldDescriptorProto::TYPE_SFIXED64: in FieldToTypeName()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DFieldDescriptor.cs67 internal FieldDescriptorProto Proto { get; }
71 internal FieldDescriptor(FieldDescriptorProto proto, FileDescriptor file, in FieldDescriptor()
141 private static FieldType GetFieldTypeFromProtoType(FieldDescriptorProto.Types.Type type) in GetFieldTypeFromProtoType()
145 case FieldDescriptorProto.Types.Type.Double: in GetFieldTypeFromProtoType()
147 case FieldDescriptorProto.Types.Type.Float: in GetFieldTypeFromProtoType()
149 case FieldDescriptorProto.Types.Type.Int64: in GetFieldTypeFromProtoType()
151 case FieldDescriptorProto.Types.Type.Uint64: in GetFieldTypeFromProtoType()
153 case FieldDescriptorProto.Types.Type.Int32: in GetFieldTypeFromProtoType()
155 case FieldDescriptorProto.Types.Type.Fixed64: in GetFieldTypeFromProtoType()
157 case FieldDescriptorProto.Types.Type.Fixed32: in GetFieldTypeFromProtoType()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/proto/
Ddescriptor_source_test_base.py26 from google.protobuf.descriptor_pb2 import FieldDescriptorProto
71 type=FieldDescriptorProto.TYPE_MESSAGE,
73 label=FieldDescriptorProto.LABEL_REPEATED)
77 type=FieldDescriptorProto.TYPE_INT32,
78 label=FieldDescriptorProto.LABEL_REPEATED)
82 type=FieldDescriptorProto.TYPE_INT32,
83 label=FieldDescriptorProto.LABEL_REPEATED)
87 type=FieldDescriptorProto.TYPE_MESSAGE,
89 label=FieldDescriptorProto.LABEL_REPEATED)
96 type=FieldDescriptorProto.TYPE_DOUBLE,
[all …]
/external/perfetto/src/trace_processor/metrics/
Dmetrics_unittest.cc71 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in TEST_F() typedef
81 "int_value", 1, FieldDescriptorProto::TYPE_INT64, "", false)); in TEST_F()
93 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in TEST_F() typedef
103 "double_value", 1, FieldDescriptorProto::TYPE_DOUBLE, "", false)); in TEST_F()
115 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in TEST_F() typedef
125 "string_value", 1, FieldDescriptorProto::TYPE_STRING, "", false)); in TEST_F()
137 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in TEST_F() typedef
150 FieldDescriptorProto::TYPE_INT64, "", false)); in TEST_F()
156 FieldDescriptor("nested_value", 1, FieldDescriptorProto::TYPE_MESSAGE, in TEST_F()
187 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in TEST_F() typedef
[all …]
Dmetrics.cc108 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in AppendLong() typedef
116 case FieldDescriptorProto::TYPE_INT32: in AppendLong()
117 case FieldDescriptorProto::TYPE_INT64: in AppendLong()
118 case FieldDescriptorProto::TYPE_UINT32: in AppendLong()
119 case FieldDescriptorProto::TYPE_BOOL: in AppendLong()
120 case FieldDescriptorProto::TYPE_ENUM: in AppendLong()
123 case FieldDescriptorProto::TYPE_SINT32: in AppendLong()
124 case FieldDescriptorProto::TYPE_SINT64: in AppendLong()
127 case FieldDescriptorProto::TYPE_FIXED32: in AppendLong()
128 case FieldDescriptorProto::TYPE_SFIXED32: in AppendLong()
[all …]
/external/perfetto/src/trace_processor/util/
Dproto_to_args_parser.cc150 protos::pbzero::FieldDescriptorProto::TYPE_MESSAGE) { in ParseField()
176 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in ParseSimpleField() typedef
178 case FieldDescriptorProto::TYPE_INT32: in ParseSimpleField()
179 case FieldDescriptorProto::TYPE_SFIXED32: in ParseSimpleField()
180 case FieldDescriptorProto::TYPE_FIXED32: in ParseSimpleField()
183 case FieldDescriptorProto::TYPE_SINT32: in ParseSimpleField()
186 case FieldDescriptorProto::TYPE_INT64: in ParseSimpleField()
187 case FieldDescriptorProto::TYPE_SFIXED64: in ParseSimpleField()
188 case FieldDescriptorProto::TYPE_FIXED64: in ParseSimpleField()
191 case FieldDescriptorProto::TYPE_SINT64: in ParseSimpleField()
[all …]
Dprotozero_to_text.cc75 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in ConvertProtoTypeToFieldAndValueString() typedef
77 case FieldDescriptorProto::TYPE_INT32: in ConvertProtoTypeToFieldAndValueString()
78 case FieldDescriptorProto::TYPE_SFIXED32: in ConvertProtoTypeToFieldAndValueString()
79 case FieldDescriptorProto::TYPE_FIXED32: in ConvertProtoTypeToFieldAndValueString()
83 case FieldDescriptorProto::TYPE_SINT32: in ConvertProtoTypeToFieldAndValueString()
87 case FieldDescriptorProto::TYPE_INT64: in ConvertProtoTypeToFieldAndValueString()
88 case FieldDescriptorProto::TYPE_SFIXED64: in ConvertProtoTypeToFieldAndValueString()
89 case FieldDescriptorProto::TYPE_FIXED64: in ConvertProtoTypeToFieldAndValueString()
93 case FieldDescriptorProto::TYPE_SINT64: in ConvertProtoTypeToFieldAndValueString()
97 case FieldDescriptorProto::TYPE_UINT32: in ConvertProtoTypeToFieldAndValueString()
[all …]
Ddescriptors.cc29 const protos::pbzero::FieldDescriptorProto::Decoder& f_decoder, in CreateFieldFromDecoder()
31 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in CreateFieldFromDecoder() typedef
40 : static_cast<uint32_t>(FieldDescriptorProto::TYPE_MESSAGE); in CreateFieldFromDecoder()
44 f_decoder.label() == FieldDescriptorProto::LABEL_REPEATED, is_extension); in CreateFieldFromDecoder()
72 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in AddExtensionField() typedef
73 FieldDescriptorProto::Decoder f_decoder(field_desc_proto); in AddExtensionField()
127 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in AddNestedProtoDescriptors() typedef
129 FieldDescriptorProto::Decoder f_decoder(*it); in AddNestedProtoDescriptors()
139 if (field.type() == FieldDescriptorProto::TYPE_MESSAGE && in AddNestedProtoDescriptors()
248 using FieldDescriptorProto = protos::pbzero::FieldDescriptorProto; in AddFromFileDescriptorSet() typedef
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc63 typedef std::unordered_map<std::string, FieldDescriptorProto::Type> TypeNameMap;
68 result["double"] = FieldDescriptorProto::TYPE_DOUBLE; in MakeTypeNameTable()
69 result["float"] = FieldDescriptorProto::TYPE_FLOAT; in MakeTypeNameTable()
70 result["uint64"] = FieldDescriptorProto::TYPE_UINT64; in MakeTypeNameTable()
71 result["fixed64"] = FieldDescriptorProto::TYPE_FIXED64; in MakeTypeNameTable()
72 result["fixed32"] = FieldDescriptorProto::TYPE_FIXED32; in MakeTypeNameTable()
73 result["bool"] = FieldDescriptorProto::TYPE_BOOL; in MakeTypeNameTable()
74 result["string"] = FieldDescriptorProto::TYPE_STRING; in MakeTypeNameTable()
75 result["group"] = FieldDescriptorProto::TYPE_GROUP; in MakeTypeNameTable()
77 result["bytes"] = FieldDescriptorProto::TYPE_BYTES; in MakeTypeNameTable()
[all …]
Dparser.h364 bool ParseMessageField(FieldDescriptorProto* field,
373 bool ParseMessageFieldNoLabel(FieldDescriptorProto* field,
401 bool ParseExtend(RepeatedPtrField<FieldDescriptorProto>* extensions,
442 bool ParseLabel(FieldDescriptorProto::Label* label,
447 bool ParseType(FieldDescriptorProto::Type* type, std::string* type_name);
454 bool ParseFieldOptions(FieldDescriptorProto* field,
460 bool ParseDefaultAssignment(FieldDescriptorProto* field,
464 bool ParseJsonName(FieldDescriptorProto* field,
504 FieldDescriptorProto::Type key_type;
505 FieldDescriptorProto::Type value_type;
[all …]
Dparser_unittest.cc2086 FieldDescriptorProto* field(message->add_field()); in TEST_F()
2092 FieldDescriptorProto* extension(other_file.add_extension()); in TEST_F()
2791 const FieldDescriptorProto& field1 = file_.message_type(0).field(0); in TEST_F()
2792 const FieldDescriptorProto& field2 = file_.message_type(0).field(1); in TEST_F()
2822 const FieldDescriptorProto& field1 = file_.extension(0); in TEST_F()
2823 const FieldDescriptorProto& field2 = file_.extension(1); in TEST_F()
2824 const FieldDescriptorProto& field3 = file_.extension(2); in TEST_F()
2866 const FieldDescriptorProto& field1 = file_.message_type(0).extension(0); in TEST_F()
2867 const FieldDescriptorProto& field2 = file_.message_type(0).extension(1); in TEST_F()
2868 const FieldDescriptorProto& field3 = file_.message_type(0).extension(2); in TEST_F()
[all …]
/external/pigweed/pw_protobuf/py/pw_protobuf/
Dcodegen_pwpb.py476 descriptor_pb2.FieldDescriptorProto.TYPE_DOUBLE:
478 descriptor_pb2.FieldDescriptorProto.TYPE_FLOAT:
480 descriptor_pb2.FieldDescriptorProto.TYPE_INT32:
482 descriptor_pb2.FieldDescriptorProto.TYPE_SINT32:
484 descriptor_pb2.FieldDescriptorProto.TYPE_SFIXED32:
486 descriptor_pb2.FieldDescriptorProto.TYPE_INT64:
488 descriptor_pb2.FieldDescriptorProto.TYPE_SINT64:
490 descriptor_pb2.FieldDescriptorProto.TYPE_SFIXED64:
492 descriptor_pb2.FieldDescriptorProto.TYPE_UINT32:
494 descriptor_pb2.FieldDescriptorProto.TYPE_FIXED32:
[all …]
/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc109 FieldDescriptorProto* AddField(DescriptorProto* parent, const std::string& name, in AddField()
110 int number, FieldDescriptorProto::Label label, in AddField()
111 FieldDescriptorProto::Type type) { in AddField()
112 FieldDescriptorProto* result = parent->add_field(); in AddField()
120 FieldDescriptorProto* AddExtension(FileDescriptorProto* file, in AddExtension()
123 FieldDescriptorProto::Label label, in AddExtension()
124 FieldDescriptorProto::Type type) { in AddExtension()
125 FieldDescriptorProto* result = file->add_extension(); in AddExtension()
134 FieldDescriptorProto* AddNestedExtension(DescriptorProto* parent, in AddNestedExtension()
137 FieldDescriptorProto::Label label, in AddNestedExtension()
[all …]
Ddescriptor.pb.h86 class FieldDescriptorProto; variable
151 …_EXPORT PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_…
707 PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
708 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
710 const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
711 PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
712 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
836 …::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension…
1360 PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_field(int index);
1361 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java41 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto;
87 assertEquals(FieldDescriptor.Type.values().length, FieldDescriptorProto.Type.values().length); in testFieldTypeEnumMapping()
89 FieldDescriptorProto.Type protoType = type.toProto(); in testFieldTypeEnumMapping()
427 FieldDescriptorProto.newBuilder() in testDescriptorValidatorException()
428 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorValidatorException()
429 .setType(FieldDescriptorProto.Type.TYPE_INT32) in testDescriptorValidatorException()
461 FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
462 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorComplexCrosslink()
463 .setType(FieldDescriptorProto.Type.TYPE_INT32) in testDescriptorComplexCrosslink()
472 FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
[all …]
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DDescriptorsTest.java37 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto;
83 FieldDescriptorProto.Type.values().length); in testFieldTypeEnumMapping()
85 FieldDescriptorProto.Type protoType = type.toProto(); in testFieldTypeEnumMapping()
442 .addField(FieldDescriptorProto.newBuilder() in testDescriptorValidatorException()
443 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorValidatorException()
444 .setType(FieldDescriptorProto.Type.TYPE_INT32) in testDescriptorValidatorException()
474 .addField(FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
475 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorComplexCrosslink()
476 .setType(FieldDescriptorProto.Type.TYPE_INT32) in testDescriptorComplexCrosslink()
483 .addField(FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
[all …]
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyFieldDescriptor.java70 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/rust/crates/protobuf/src/reflect/
Dfield.rs1 use crate::descriptor::FieldDescriptorProto;
27 proto: &'static FieldDescriptorProto,
35 proto: &'static FieldDescriptorProto, in new() argument
52 pub fn proto(&self) -> &'static FieldDescriptorProto { in proto() argument
/external/golang-protobuf/protoc-gen-go/descriptor/
Ddescriptor.pb.go403 …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/protobuf/python/google/protobuf/internal/
Dproto_builder_test.py54 ('foo', descriptor_pb2.FieldDescriptorProto.TYPE_INT64),
55 ('bar', descriptor_pb2.FieldDescriptorProto.TYPE_STRING),
/external/protobuf/benchmarks/util/
Dschema_proto2_to_proto3_util.h14 using google::protobuf::FieldDescriptorProto;
166 static bool ShouldClearLabel(const FieldDescriptorProto *field) { in ShouldClearLabel()
167 return field->label() == FieldDescriptorProto::LABEL_REQUIRED; in ShouldClearLabel()
/external/perfetto/protos/perfetto/common/
Ddescriptor.proto46 repeated FieldDescriptorProto extension = 7;
58 repeated FieldDescriptorProto field = 2;
59 repeated FieldDescriptorProto extension = 6;
86 message FieldDescriptorProto { message
/external/protobuf/php/src/Google/Protobuf/Internal/
DFieldDescriptorProto_Type.php14 class_exists(FieldDescriptorProto\Type::class);
DFieldDescriptorProto_Label.php14 class_exists(FieldDescriptorProto\Label::class);
DDescriptorProto.php143 …\Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
171 …\Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);

123