Home
last modified time | relevance | path

Searched refs:FieldDescriptorProto (Results 1 - 25 of 38) sorted by relevance

12

/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
H A DFieldDescriptor.cs88 internal FieldDescriptorProto Proto { get; }
95 internal FieldDescriptor(FieldDescriptorProto proto, FileDescriptor file, in FieldDescriptor()
115 $"FieldDescriptorProto.oneof_index is out of range for type {parent.Name}"); 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 in GetFieldTypeFromProtoType()
[all...]
H A DDescriptor.cs170 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options", "Proto3Optional" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null, null), in DescriptorReflection()
537 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
538 = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
539 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
541 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
1014 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_code
2128 public sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> global() class
2150 public FieldDescriptorProto() { FieldDescriptorProto() method in Google.Protobuf.Reflection.FieldDescriptorProto
2157 public FieldDescriptorProto(FieldDescriptorProto other) : this() { FieldDescriptorProto() method in Google.Protobuf.Reflection.FieldDescriptorProto
[all...]
/third_party/protobuf/src/google/protobuf/compiler/
H A Dparser.cc64 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 in MakeTypeNameTable()
[all...]
H A Dparser.h364 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
[all...]
H A Dparser_unittest.cc2109 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 in TEST_F()
[all...]
H A Dcommand_line_interface_unittest.cc689 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/
H A Ddescriptor_unittest.cc108 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 in AddNestedExtension()
[all...]
H A Ddescriptor.pb.h86 class FieldDescriptorProto;
151 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>(Arena*);
697 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
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_extensio
1732 inline FieldDescriptorProto() : FieldDescriptorProto(nullptr) {} FieldDescriptorProto() function in PROTOBUF_FINAL
1737 : FieldDescriptorProto() { FieldDescriptorProto() function in PROTOBUF_FINAL
[all...]
H A Ddescriptor.pb.cc69 ::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
3631 FieldDescriptorProto::FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena) FieldDescriptorProto() function in FieldDescriptorProto
3637 FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) FieldDescriptorProto() function in FieldDescriptorProto
[all...]
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
H A DDescriptorsTest.java37 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto;
76 // before a FieldDescriptorProto.Type value would yield a
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 in testDescriptorComplexCrosslink()
[all...]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A DDescriptorsTest.java41 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto;
81 // before a FieldDescriptorProto.Type value would yield a
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 in testDescriptorComplexCrosslink()
[all...]
H A DTextFormatTest.java37 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 in testPrintAny_anyFromWithNoValueField()
[all...]
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
H A 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.asJavaString().toUpperCase())); in setType()
262 protected DescriptorProtos.FieldDescriptorProto build() { in build()
268 private DescriptorProtos.FieldDescriptorProto.Builder builder;
/third_party/protobuf/python/google/protobuf/internal/
H A Dproto_builder_test.py54 ('foo', descriptor_pb2.FieldDescriptorProto.TYPE_INT64),
55 ('bar', descriptor_pb2.FieldDescriptorProto.TYPE_STRING),
H A Dmessage_factory_test.py187 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
204 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DFieldDescriptorProto.php16 * Generated from protobuf message <code>google.protobuf.FieldDescriptorProto</code>
18 class FieldDescriptorProto extends \Google\Protobuf\Internal\Message class
29 * Generated from protobuf field <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code>
36 * Generated from protobuf field <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code>
237 * Generated from protobuf field <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code>
256 * Generated from protobuf field <code>optional .google.protobuf.FieldDescriptorProto.Label label = 4;</code>
262 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto\Label::class);
272 * Generated from protobuf field <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code>
294 * Generated from protobuf field <code>optional .google.protobuf.FieldDescriptorProto.Type type = 5;</code>
300 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\FieldDescriptorProto\Typ
[all...]
H A DDescriptorProto.php25 * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code>
29 * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code>
71 * @type \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $field
72 * @type \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $extension
122 * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code>
131 * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code>
132 * @param \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var
137 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class);
144 * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code>
153 * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extensio
[all...]
H A DFieldDescriptorProto_Label.php9 * This class is deprecated. Use Google\Protobuf\Internal\FieldDescriptorProto\Label instead.
14 class_exists(FieldDescriptorProto\Label::class);
15 @trigger_error('Google\Protobuf\Internal\FieldDescriptorProto_Label is deprecated and will be removed in the next major release. Use Google\Protobuf\Internal\FieldDescriptorProto\Label instead', E_USER_DEPRECATED);
H A DFieldDescriptorProto_Type.php9 * This class is deprecated. Use Google\Protobuf\Internal\FieldDescriptorProto\Type instead.
14 class_exists(FieldDescriptorProto\Type::class);
15 @trigger_error('Google\Protobuf\Internal\FieldDescriptorProto_Type is deprecated and will be removed in the next major release. Use Google\Protobuf\Internal\FieldDescriptorProto\Type instead', E_USER_DEPRECATED);
/third_party/protobuf/benchmarks/util/
H A 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()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
H A DDescriptors.java40 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto;
981 public FieldDescriptorProto toProto() { in toProto()
1014 * FieldDescriptorProto.Type} maps to exactly one Java type.
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
[all...]
/third_party/protobuf/php/src/Google/Protobuf/Internal/FieldDescriptorProto/
H A DLabel.php5 namespace Google\Protobuf\Internal\FieldDescriptorProto;
10 * Protobuf type <code>google.protobuf.FieldDescriptorProto.Label</code>
H A DType.php5 namespace Google\Protobuf\Internal\FieldDescriptorProto;
10 * Protobuf type <code>google.protobuf.FieldDescriptorProto.Type</code>
/third_party/protobuf/python/google/protobuf/
H A Dproto_builder.py128 field_proto.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
/third_party/node/deps/npm/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/
H A Ddescriptor.js4 exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevel = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CType = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeMode = exports.fieldDescriptorProto_LabelToJSON = exports.fieldDescriptorProto_LabelFromJSON = exports.FieldDescriptorProto_Label = exports.fieldDescriptorProto_TypeToJSON = exports.fieldDescriptorProto_TypeFromJSON = exports.FieldDescriptorProto_Type = void 0;
393 ? object.extension.map((e) => exports.FieldDescriptorProto.fromJSON(e))
441 obj.extension = message.extension.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined);
471 field: 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) : undefined);
619 exports.FieldDescriptorProto = {

Completed in 53 milliseconds

12