/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/ |
D | FieldDescriptor.cs | 88 internal FieldDescriptorProto Proto { get; } 95 internal FieldDescriptor(FieldDescriptorProto proto, FileDescriptor file, in FieldDescriptor() 165 private static FieldType GetFieldTypeFromProtoType(FieldDescriptorProto.Types.Type type) in GetFieldTypeFromProtoType() 169 case FieldDescriptorProto.Types.Type.Double: in GetFieldTypeFromProtoType() 171 case FieldDescriptorProto.Types.Type.Float: in GetFieldTypeFromProtoType() 173 case FieldDescriptorProto.Types.Type.Int64: in GetFieldTypeFromProtoType() 175 case FieldDescriptorProto.Types.Type.Uint64: in GetFieldTypeFromProtoType() 177 case FieldDescriptorProto.Types.Type.Int32: in GetFieldTypeFromProtoType() 179 case FieldDescriptorProto.Types.Type.Fixed64: in GetFieldTypeFromProtoType() 181 case FieldDescriptorProto.Types.Type.Fixed32: in GetFieldTypeFromProtoType() [all …]
|
D | Descriptor.cs | 170 …FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser, new[]{ "Nam… in DescriptorReflection() 537 …private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _r… 538 … = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); 539 …Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Proto… 541 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension { 1014 …private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _r… 1015 … = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); 1016 …e.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobu… 1018 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field { 1024 …private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _r… [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | parser.cc | 64 typedef std::unordered_map<std::string, FieldDescriptorProto::Type> TypeNameMap; 69 result["double"] = FieldDescriptorProto::TYPE_DOUBLE; in MakeTypeNameTable() 70 result["float"] = FieldDescriptorProto::TYPE_FLOAT; in MakeTypeNameTable() 71 result["uint64"] = FieldDescriptorProto::TYPE_UINT64; in MakeTypeNameTable() 72 result["fixed64"] = FieldDescriptorProto::TYPE_FIXED64; in MakeTypeNameTable() 73 result["fixed32"] = FieldDescriptorProto::TYPE_FIXED32; in MakeTypeNameTable() 74 result["bool"] = FieldDescriptorProto::TYPE_BOOL; in MakeTypeNameTable() 75 result["string"] = FieldDescriptorProto::TYPE_STRING; in MakeTypeNameTable() 76 result["group"] = FieldDescriptorProto::TYPE_GROUP; in MakeTypeNameTable() 78 result["bytes"] = FieldDescriptorProto::TYPE_BYTES; in MakeTypeNameTable() [all …]
|
D | parser.h | 364 bool ParseMessageField(FieldDescriptorProto* field, 373 bool ParseMessageFieldNoLabel(FieldDescriptorProto* field, 401 bool ParseExtend(RepeatedPtrField<FieldDescriptorProto>* extensions, 442 bool ParseLabel(FieldDescriptorProto::Label* label, 448 bool ParseType(FieldDescriptorProto::Type* type, std::string* type_name); 455 bool ParseFieldOptions(FieldDescriptorProto* field, 461 bool ParseDefaultAssignment(FieldDescriptorProto* field, 465 bool ParseJsonName(FieldDescriptorProto* field, 505 FieldDescriptorProto::Type key_type; 506 FieldDescriptorProto::Type value_type; [all …]
|
D | parser_unittest.cc | 2109 FieldDescriptorProto* field(message->add_field()); in TEST_F() 2112 field->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in TEST_F() 2113 field->set_type(FieldDescriptorProto::TYPE_INT32); in TEST_F() 2115 FieldDescriptorProto* extension(other_file.add_extension()); in TEST_F() 2118 extension->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in TEST_F() 2119 extension->set_type(FieldDescriptorProto::TYPE_MESSAGE); in TEST_F() 2814 const FieldDescriptorProto& field1 = file_.message_type(0).field(0); in TEST_F() 2815 const FieldDescriptorProto& field2 = file_.message_type(0).field(1); in TEST_F() 2843 const FieldDescriptorProto& field1 = file_.message_type(0).field(0); in TEST_F() 2844 const FieldDescriptorProto& field2 = file_.message_type(0).field(1); in TEST_F() [all …]
|
D | command_line_interface_unittest.cc | 689 FieldDescriptorProto* extension_option = in TEST_F() 694 extension_option->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in TEST_F() 695 extension_option->set_type(FieldDescriptorProto::TYPE_INT64); in TEST_F() 784 FieldDescriptorProto* field = message->add_field(); in TEST_F() 857 FieldDescriptorProto* field = message->add_field(); in TEST_F() 906 FieldDescriptorProto* field = message->add_field(); in TEST_F()
|
/third_party/protobuf/src/google/protobuf/ |
D | descriptor_unittest.cc | 108 FieldDescriptorProto* AddField(DescriptorProto* parent, const std::string& name, in AddField() 109 int number, FieldDescriptorProto::Label label, in AddField() 110 FieldDescriptorProto::Type type) { in AddField() 111 FieldDescriptorProto* result = parent->add_field(); in AddField() 119 FieldDescriptorProto* AddExtension(FileDescriptorProto* file, in AddExtension() 122 FieldDescriptorProto::Label label, in AddExtension() 123 FieldDescriptorProto::Type type) { in AddExtension() 124 FieldDescriptorProto* result = file->add_extension(); in AddExtension() 133 FieldDescriptorProto* AddNestedExtension(DescriptorProto* parent, in AddNestedExtension() 136 FieldDescriptorProto::Label label, in AddNestedExtension() [all …]
|
D | descriptor.pb.h | 86 class FieldDescriptorProto; variable 151 …_EXPORT PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_… 703 PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index); 704 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >* 707 const PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const; 708 PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension(); 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 >& 868 …::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension… [all …]
|
D | descriptor.pb.cc | 69 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FieldDescriptorProto> _instance; 297 new (ptr) PROTOBUF_NAMESPACE_ID::FieldDescriptorProto(); in InitDefaultsscc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() 300 PROTOBUF_NAMESPACE_ID::FieldDescriptorProto::InitAsDefaultInstance(); in InitDefaultsscc_info_FieldDescriptorProto_google_2fprotobuf_2fdescriptor_2eproto() 656 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, _has_bits_), 657 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, _internal_metadata_), 661 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, name_), 662 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, number_), 663 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, label_), 664 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, type_), 665 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldDescriptorProto, type_name_), [all …]
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | DescriptorsTest.java | 41 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 …]
|
D | TextFormatTest.java | 37 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto; 558 private static Descriptor createDescriptorForAny(FieldDescriptorProto... fields) in createDescriptorForAny() 578 FieldDescriptorProto.newBuilder() in testPrintAny_anyWithDynamicMessage() 581 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyWithDynamicMessage() 582 .setType(FieldDescriptorProto.Type.TYPE_STRING) in testPrintAny_anyWithDynamicMessage() 584 FieldDescriptorProto.newBuilder() in testPrintAny_anyWithDynamicMessage() 587 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyWithDynamicMessage() 588 .setType(FieldDescriptorProto.Type.TYPE_BYTES) in testPrintAny_anyWithDynamicMessage() 613 FieldDescriptorProto.newBuilder() in testPrintAny_anyFromWithNoValueField() 616 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyFromWithNoValueField() [all …]
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | DescriptorsTest.java | 37 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 …]
|
/third_party/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;
|
/third_party/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 | 187 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL 204 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
D | FieldDescriptorProto.php | 18 class FieldDescriptorProto extends \Google\Protobuf\Internal\Message class 262 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto\Label::class); 300 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto\Type::class);
|
D | DescriptorProto.php | 137 …\Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class); 159 …\Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
|
D | FieldDescriptorProto_Type.php | 14 class_exists(FieldDescriptorProto\Type::class);
|
D | FieldDescriptorProto_Label.php | 14 class_exists(FieldDescriptorProto\Label::class);
|
/third_party/protobuf/benchmarks/util/ |
D | schema_proto2_to_proto3_util.h | 14 using google::protobuf::FieldDescriptorProto; 166 static bool ShouldClearLabel(const FieldDescriptorProto *field) { in ShouldClearLabel() 167 return field->label() == FieldDescriptorProto::LABEL_REQUIRED; in ShouldClearLabel()
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Descriptors.java | 40 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto; 981 public FieldDescriptorProto toProto() { in toProto() 1071 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_REQUIRED; in isRequired() 1076 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_OPTIONAL; in isOptional() 1082 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_REPEATED; in isRepeated() 1254 private FieldDescriptorProto proto; 1295 public FieldDescriptorProto.Type toProto() { in toProto() 1296 return FieldDescriptorProto.Type.forNumber(ordinal() + 1); in toProto() 1303 public static Type valueOf(final FieldDescriptorProto.Type type) { in valueOf() 1310 if (Type.values().length != FieldDescriptorProto.Type.values().length) { [all …]
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/FieldDescriptorProto/ |
D | Label.php | 5 namespace Google\Protobuf\Internal\FieldDescriptorProto;
|
D | Type.php | 5 namespace Google\Protobuf\Internal\FieldDescriptorProto;
|
/third_party/protobuf/python/google/protobuf/ |
D | proto_builder.py | 128 field_proto.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
|
/third_party/node/deps/npm/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/ |
D | descriptor.js | 4 …orts.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.E… 393 ? object.extension.map((e) => exports.FieldDescriptorProto.fromJSON(e)) 441 …obj.extension = message.extension.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefine… 471 …d: Array.isArray(object?.field) ? object.field.map((e) => exports.FieldDescriptorProto.fromJSON(e)… 473 ? object.extension.map((e) => exports.FieldDescriptorProto.fromJSON(e)) 496 … obj.field = message.field.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined); 502 …obj.extension = message.extension.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefine… 619 exports.FieldDescriptorProto = {
|