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

  /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/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/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...]

Completed in 3937 milliseconds