HomeSort by relevance Sort by last modified time
    Searched refs:FieldDescriptorProto (Results 1 - 25 of 27) sorted by null

1 2

  /external/protobuf/src/google/protobuf/compiler/
parser.cc 59 typedef hash_map<string, FieldDescriptorProto::Type> TypeNameMap;
64 result["double" ] = FieldDescriptorProto::TYPE_DOUBLE;
65 result["float" ] = FieldDescriptorProto::TYPE_FLOAT;
66 result["uint64" ] = FieldDescriptorProto::TYPE_UINT64;
67 result["fixed64" ] = FieldDescriptorProto::TYPE_FIXED64;
68 result["fixed32" ] = FieldDescriptorProto::TYPE_FIXED32;
69 result["bool" ] = FieldDescriptorProto::TYPE_BOOL;
70 result["string" ] = FieldDescriptorProto::TYPE_STRING;
71 result["group" ] = FieldDescriptorProto::TYPE_GROUP;
73 result["bytes" ] = FieldDescriptorProto::TYPE_BYTES
    [all...]
parser.h 238 bool ParseMessageField(FieldDescriptorProto* field,
245 bool ParseExtend(RepeatedPtrField<FieldDescriptorProto>* extensions,
260 bool ParseLabel(FieldDescriptorProto::Label* label);
264 bool ParseType(FieldDescriptorProto::Type* type,
272 bool ParseFieldOptions(FieldDescriptorProto* field);
276 bool ParseDefaultAssignment(FieldDescriptorProto* field);
  /external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/
parser.cc 59 typedef hash_map<string, FieldDescriptorProto::Type> TypeNameMap;
64 result["double" ] = FieldDescriptorProto::TYPE_DOUBLE;
65 result["float" ] = FieldDescriptorProto::TYPE_FLOAT;
66 result["uint64" ] = FieldDescriptorProto::TYPE_UINT64;
67 result["fixed64" ] = FieldDescriptorProto::TYPE_FIXED64;
68 result["fixed32" ] = FieldDescriptorProto::TYPE_FIXED32;
69 result["bool" ] = FieldDescriptorProto::TYPE_BOOL;
70 result["string" ] = FieldDescriptorProto::TYPE_STRING;
71 result["group" ] = FieldDescriptorProto::TYPE_GROUP;
73 result["bytes" ] = FieldDescriptorProto::TYPE_BYTES
    [all...]
parser.h 328 bool ParseMessageField(FieldDescriptorProto* field,
340 bool ParseExtend(RepeatedPtrField<FieldDescriptorProto>* extensions,
367 bool ParseLabel(FieldDescriptorProto::Label* label);
371 bool ParseType(FieldDescriptorProto::Type* type,
379 bool ParseFieldOptions(FieldDescriptorProto* field,
384 bool ParseDefaultAssignment(FieldDescriptorProto* field,
parser_unittest.cc     [all...]
  /external/chromium_org/third_party/protobuf/
descriptor_pb2.py 12 serialized_pb='\n google/protobuf/descriptor.proto\x12\x0fgoogle.protobuf\"G\n\x11\x46ileDescriptorSet\x12\x32\n\x04\x66ile\x18\x01 \x03(\x0b\x32$.google.protobuf.FileDescriptorProto\"\xdc\x02\n\x13\x46ileDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07package\x18\x02 \x01(\t\x12\x12\n\ndependency\x18\x03 \x03(\t\x12\x36\n\x0cmessage_type\x18\x04 \x03(\x0b\x32 .google.protobuf.DescriptorProto\x12\x37\n\tenum_type\x18\x05 \x03(\x0b\x32$.google.protobuf.EnumDescriptorProto\x12\x38\n\x07service\x18\x06 \x03(\x0b\x32\'.google.protobuf.ServiceDescriptorProto\x12\x38\n\textension\x18\x07 \x03(\x0b\x32%.google.protobuf.FieldDescriptorProto\x12-\n\x07options\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.FileOptions\"\xa9\x03\n\x0f\x44\x65scriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x05\x66ield\x18\x02 \x03(\x0b\x32%.google.protobuf.FieldDescriptorProto\x12\x38\n\textension\x18\x06 \x03(\x0b\x32%.google.protobuf.FieldDescriptorProto\x12\x35\n\x0bnested_type\x18\x03 \x03(\x0b\x32 .google.protobuf.DescriptorProto\x12\x37\n\tenum_type\x18\x04 \x03(\x0b\x32$.google.protobuf.EnumDescriptorProto\x12H\n\x0f\x65xtension_range\x18\x05 \x03(\x0b\x32/.google.protobuf.DescriptorProto.ExtensionRange\x12\x30\n\x07options\x18\x07 \x01(\x0b\x32\x1f.google.protobuf.MessageOptions\x1a,\n\x0e\x45xtensionRange\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\"\x94\x05\n\x14\x46ieldDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06number\x18\x03 \x01(\x05\x12:\n\x05label\x18\x04 \x01(\x0e\x32+.google.protobuf.FieldDescriptorProto.Label\x12\x38\n\x04type\x18\x05 \x01(\x0e\x32*.google.protobuf.FieldDescriptorProto.Type\x12\x11\n\ttype_name\x18\x06 \x01(\t\x12\x10\n\x08\x65xtendee\x18\x02 \x01(\t\x12\x15\n\rdefault_value\x18\x07 \x01(\t\x12.\n\x07options\x18\x08 \x01(\x0b\x32\x1d.google.protobuf.FieldOptions\"\xb6\x02\n\x04Type\x12\x0f\n\x0bTYPE_DOUBLE\x10\x01\x12\x0e\n\nTYPE_FLOAT\x10\x02\x12\x0e\n\nTYPE_INT64\x10\x03\x12\x0f\n\x0bTYPE_UINT64\x10\x04\x12\x0e\n\nTYPE_INT32\x10\x05\x12\x10\n\x0cTYPE_FIXED64\x10\x06\x12\x10\n\x0cTYPE_FIXED32\x10\x07\x12\r\n\tTYPE_BOOL\x10\x08\x12\x0f\n\x0bTYPE_STRING\x10\t\x12\x0e\n\nTYPE_GROUP\x10\n\x12\x10\n\x0cTYPE_MESSAGE\x10\x0b\x12\x0e\n\nTYPE_BYTES\x10\x0c\x12\x0f\n\x0bTYPE_UINT32\x10\r\x12\r\n\tTYPE_ENUM\x10\x0e\x12\x11\n\rTYPE_SFIXED32\x10\x0f\x12\x11\n\rTYPE_SFIXED64\x10\x10\x12\x0f\n\x0bTYPE_SINT32\x10\x11\x12\x0f\n\x0bTYPE_SINT64\x10\x12\"C\n\x05Label\x12\x12\n\x0eLABEL_OPTIONAL\x10\x01\x12\x12\n\x0eLABEL_REQUIRED\x10\x02\x12\x12\n\x0eLABEL_REPEATED\x10\x03\"\x8c\x01\n\x13\x45numDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x03(\x0b\x32).google.protobuf.EnumValueDescriptorProto\x12-\n\x07options\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.EnumOptions\"l\n\x18\x45numValueDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06number\x18\x02 \x01(\x05\x12\x32\n\x07options\x18\x03 \x01(\x0b\x32!.google.protobuf.EnumValueOptions\"\x90\x01\n\x16ServiceDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x06method\x18\x02 \x03(\x0b\x32&.google.protobuf.MethodDescriptorProto\x12\x30\n\x07options\x18\x03 \x01(\x0b\x32\x1f.google.protobuf.ServiceOptions\"\x7f\n\x15MethodDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ninput_type\x18\x02 \x01(\t\x12\x13\n\x0boutput_type\x18\x03 \x01(\t\x12/\n\x07options\x18\x04 \x01(\x0b\x32\x1e.google.protobuf.MethodOptions\"\xa4\x03\n\x0b\x46ileOptions\x12\x14\n\x0cjava_package\x18\x01 \x01(\t\x12\x1c\n\x14java_outer_classname\x18\x08 \x01(\t\x12\"\n\x13java_multiple_files\x18\n \x01(\x08:\x05\x66\x61lse\x12\x46\n\x0coptimize_for\x18\t \x01(\x0e\x32).google.protobuf.FileOptions.OptimizeMode:\x05SPEED\x12!\n\x13\x63\x63_generic_services\x18\x10 \x01(\x08:\x04true\x12#\n\x15java_generic_services\x18\x11 \x01(\x08:\x04true\x12!\n\x13py_generic_services\x18\x12 \x01(\x08:\x04true\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption\":\n\x0cOptimizeMode\x12\t\n\x05SPEED\x10\x01\x12\r\n\tCODE_SIZE\x10\x02\x12\x10\n\x0cLITE_RUNTIME\x10\x03*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\xb8\x01\n\x0eMessageOptions\x12&\n\x17message_set_wire_format\x18\x01 \x01(\x08:\x05\x66\x61lse\x12.\n\x1fno_standard_descriptor_accessor\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\x94\x02\n\x0c\x46ieldOptions\x12:\n\x05\x63type\x18\x01 \x01(\x0e\x32#.google.protobuf.FieldOptions.CType:\x06STRING\x12\x0e\n\x06packed\x18\x02 \x01(\x08\x12\x19\n\ndeprecated\x18\x03 \x01(\x08:\x05\x66\x61lse\x12\x1c\n\x14\x65xperimental_map_key\x18\t \x01(\t\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption\"/\n\x05\x43Type\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x43ORD\x10\x01\x12\x10\n\x0cSTRING_PIECE\x10\x02*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"]\n\x0b\x45numOptions\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"b\n\x10\x45numValueOptions\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"`\n\x0eServiceOptions\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"_\n\rMethodOptions\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\x85\x02\n\x13UninterpretedOption\x12;\n\x04name\x18\x02 \x03(\x0b\x32-.google.protobuf.UninterpretedOption.NamePart\x12\x18\n\x10identifier_value\x18\x03 \x01(\t\x12\x1a\n\x12positive_int_value\x18\x04 \x01(\x04\x12\x1a\n\x12negative_int_value\x18\x05 \x01(\x03\x12\x14\n\x0c\x64ouble_value\x18\x06 \x01(\x01\x12\x14\n\x0cstring_value\x18\x07 \x01(\x0c\x1a\x33\n\x08NamePart\x12\x11\n\tname_part\x18\x01 \x02(\t\x12\x14\n\x0cis_extension\x18\x02 \x02(\x08\x42)\n\x13\x63om.google.protobufB\x10\x44\x65scriptorProtosH\x01')
18 full_name='google.protobuf.FieldDescriptorProto.Type',
103 full_name='google.protobuf.FieldDescriptorProto.Label',
387 name='FieldDescriptorProto',
388 full_name='google.protobuf.FieldDescriptorProto',
394 name='name', full_name='google.protobuf.FieldDescriptorProto.name', index=0
    [all...]
  /external/protobuf/src/google/protobuf/
descriptor.pb.h 40 class FieldDescriptorProto;
372 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
376 inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
377 inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
378 inline ::google::protobuf::FieldDescriptorProto* add_extension();
379 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
381 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
404 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
591 // repeated .google.protobuf.FieldDescriptorProto field = 2;
595 inline const ::google::protobuf::FieldDescriptorProto& field(int index) const
    [all...]
descriptor_unittest.cc 92 FieldDescriptorProto* AddField(DescriptorProto* parent,
94 FieldDescriptorProto::Label label,
95 FieldDescriptorProto::Type type) {
96 FieldDescriptorProto* result = parent->add_field();
104 FieldDescriptorProto* AddExtension(FileDescriptorProto* file,
107 FieldDescriptorProto::Label label,
108 FieldDescriptorProto::Type type) {
109 FieldDescriptorProto* result = file->add_extension();
118 FieldDescriptorProto* AddNestedExtension(DescriptorProto* parent,
121 FieldDescriptorProto::Label label
    [all...]
descriptor.pb.cc 162 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
163 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
164 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
167 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
168 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
174 FieldDescriptorProto::default_instance_,
176 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0])
    [all...]
descriptor_database.h 117 // if the original FieldDescriptorProto defining the extension has a
169 bool AddExtension(const FieldDescriptorProto& field,
descriptor.cc     [all...]
descriptor.h 78 class FieldDescriptorProto;
471 void CopyTo(FieldDescriptorProto* proto) const;
631 // e.g. the full name of FieldDescriptorProto::TYPE_INT32 is actually
632 // "google.protobuf.FieldDescriptorProto.TYPE_INT32", NOT
633 // "google.protobuf.FieldDescriptorProto.Type.TYPE_INT32". This is to conform
    [all...]
descriptor_database.cc 151 const FieldDescriptorProto& field,
extension_set_unittest.cc 510 FieldDescriptorProto* extension = dynamic_proto.mutable_extension(i);
  /external/chromium_org/third_party/protobuf/src/google/protobuf/
descriptor_unittest.cc 94 FieldDescriptorProto* AddField(DescriptorProto* parent,
96 FieldDescriptorProto::Label label,
97 FieldDescriptorProto::Type type) {
98 FieldDescriptorProto* result = parent->add_field();
106 FieldDescriptorProto* AddExtension(FileDescriptorProto* file,
109 FieldDescriptorProto::Label label,
110 FieldDescriptorProto::Type type) {
111 FieldDescriptorProto* result = file->add_extension();
120 FieldDescriptorProto* AddNestedExtension(DescriptorProto* parent,
123 FieldDescriptorProto::Label label
    [all...]
descriptor.pb.h 42 class FieldDescriptorProto;
395 // repeated .google.protobuf.FieldDescriptorProto extension = 7;
399 inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
400 inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
401 inline ::google::protobuf::FieldDescriptorProto* add_extension();
402 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
404 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
446 ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
622 // repeated .google.protobuf.FieldDescriptorProto field = 2;
626 inline const ::google::protobuf::FieldDescriptorProto& field(int index) const
    [all...]
descriptor.pb.cc 177 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
178 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
179 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
180 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
181 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
182 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
183 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
184 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
189 FieldDescriptorProto::default_instance_,
191 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0])
    [all...]
descriptor_database.h 118 // if the original FieldDescriptorProto defining the extension has a
170 bool AddExtension(const FieldDescriptorProto& field,
descriptor.h 82 class FieldDescriptorProto;
505 void CopyTo(FieldDescriptorProto* proto) const;
689 // e.g. the full name of FieldDescriptorProto::TYPE_INT32 is actually
690 // "google.protobuf.FieldDescriptorProto.TYPE_INT32", NOT
691 // "google.protobuf.FieldDescriptorProto.Type.TYPE_INT32". This is to conform
    [all...]
descriptor.cc     [all...]
descriptor_database.cc 151 const FieldDescriptorProto& field,
extension_set_unittest.cc 590 FieldDescriptorProto* extension = dynamic_proto.mutable_extension(i);
  /external/protobuf/java/src/test/java/com/google/protobuf/
DescriptorsTest.java 34 import com.google.protobuf.DescriptorProtos.FieldDescriptorProto;
72 // before a FieldDescriptorProto.Type value would yield a
78 FieldDescriptorProto.Type.values().length);
80 FieldDescriptorProto.Type protoType = type.toProto();
437 .addField(FieldDescriptorProto.newBuilder()
438 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL)
439 .setType(FieldDescriptorProto.Type.TYPE_INT32)
  /external/protobuf/java/src/main/java/com/google/protobuf/
Descriptors.java 641 public FieldDescriptorProto toProto() { return proto; }
657 * {@code FieldDescriptorProto.Type} maps to exactly one Java type.
684 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_REQUIRED;
689 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_OPTIONAL;
694 return proto.getLabel() == FieldDescriptorProto.Label.LABEL_REPEATED;
805 private FieldDescriptorProto proto;
843 public FieldDescriptorProto.Type toProto() {
844 return FieldDescriptorProto.Type.valueOf(ordinal() + 1);
848 public static Type valueOf(final FieldDescriptorProto.Type type) {
855 if (Type.values().length != FieldDescriptorProto.Type.values().length)
    [all...]
  /external/nanopb-c/generator/
nanopb_generator.py 48 FieldD = descriptor.FieldDescriptorProto
87 '''Parse Names() from FieldDescriptorProto type_name'''
163 '''desc is FieldDescriptorProto'''
615 For each, yield name, FieldDescriptorProto.
    [all...]

Completed in 2597 milliseconds

1 2