Home
last modified time | relevance | path

Searched refs:FieldDescriptor (Results 1 – 25 of 392) sorted by relevance

12345678910>>...16

/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_field_base.cc103 FieldGeneratorBase::FieldGeneratorBase(const FieldDescriptor* descriptor, in FieldGeneratorBase()
155 std::string FieldGeneratorBase::type_name(const FieldDescriptor* descriptor) { in type_name()
157 case FieldDescriptor::TYPE_ENUM: in type_name()
159 case FieldDescriptor::TYPE_MESSAGE: in type_name()
160 case FieldDescriptor::TYPE_GROUP: in type_name()
162 const FieldDescriptor* wrapped_field = in type_name()
167 if (wrapped_field->type() == FieldDescriptor::TYPE_STRING || in type_name()
168 wrapped_field->type() == FieldDescriptor::TYPE_BYTES) { in type_name()
175 case FieldDescriptor::TYPE_DOUBLE: in type_name()
177 case FieldDescriptor::TYPE_FLOAT: in type_name()
[all …]
Dcsharp_helpers.cc63 CSharpType GetCSharpType(FieldDescriptor::Type type) { in GetCSharpType()
65 case FieldDescriptor::TYPE_INT32: in GetCSharpType()
67 case FieldDescriptor::TYPE_INT64: in GetCSharpType()
69 case FieldDescriptor::TYPE_UINT32: in GetCSharpType()
71 case FieldDescriptor::TYPE_UINT64: in GetCSharpType()
73 case FieldDescriptor::TYPE_SINT32: in GetCSharpType()
75 case FieldDescriptor::TYPE_SINT64: in GetCSharpType()
77 case FieldDescriptor::TYPE_FIXED32: in GetCSharpType()
79 case FieldDescriptor::TYPE_FIXED64: in GetCSharpType()
81 case FieldDescriptor::TYPE_SFIXED32: in GetCSharpType()
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.cc83 string FieldName(const FieldDescriptor* field) { in FieldName()
88 if (GetType(field) == FieldDescriptor::TYPE_GROUP) { in FieldName()
139 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase()
143 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase()
253 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName()
259 FieldDescriptor::Type GetType(const FieldDescriptor* field) { in GetType()
263 JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType()
265 case FieldDescriptor::TYPE_INT32: in GetJavaType()
266 case FieldDescriptor::TYPE_UINT32: in GetJavaType()
267 case FieldDescriptor::TYPE_SINT32: in GetJavaType()
[all …]
/external/protobuf/src/google/protobuf/
Dgenerated_message_reflection.h219 bool HasField(const Message& message, const FieldDescriptor* field) const;
220 int FieldSize(const Message& message, const FieldDescriptor* field) const;
221 void ClearField(Message* message, const FieldDescriptor* field) const;
225 void RemoveLast(Message* message, const FieldDescriptor* field) const;
226 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const;
229 const vector<const FieldDescriptor*>& fields) const;
230 void SwapElements(Message* message, const FieldDescriptor* field,
233 vector<const FieldDescriptor*>* output) const;
236 const FieldDescriptor* field) const;
238 const FieldDescriptor* field) const;
[all …]
Dmessage.h424 const FieldDescriptor* field) const = 0;
428 const FieldDescriptor* field) const = 0;
433 const FieldDescriptor* field) const = 0;
449 virtual const FieldDescriptor* GetOneofFieldDescriptor( in GetOneofFieldDescriptor()
463 const FieldDescriptor* field) const = 0;
467 const FieldDescriptor* field) const = 0;
475 const std::vector<const FieldDescriptor*>& fields)
480 const FieldDescriptor* field,
491 std::vector<const FieldDescriptor*>* output) const = 0;
498 const FieldDescriptor* field) const = 0;
[all …]
Dmap_test_util.h111 const FieldDescriptor* F(const string& name);
119 const FieldDescriptor* foreign_c_;
120 const FieldDescriptor* map_int32_int32_key_;
121 const FieldDescriptor* map_int32_int32_val_;
122 const FieldDescriptor* map_int64_int64_key_;
123 const FieldDescriptor* map_int64_int64_val_;
124 const FieldDescriptor* map_uint32_uint32_key_;
125 const FieldDescriptor* map_uint32_uint32_val_;
126 const FieldDescriptor* map_uint64_uint64_key_;
127 const FieldDescriptor* map_uint64_uint64_val_;
[all …]
Ddescriptor.h77 class FieldDescriptor; variable
226 const FieldDescriptor* field(int index) const;
230 const FieldDescriptor* FindFieldByNumber(int number) const;
232 const FieldDescriptor* FindFieldByName(const string& name) const;
237 const FieldDescriptor* FindFieldByLowercaseName(
244 const FieldDescriptor* FindFieldByCamelcaseName(
310 const FieldDescriptor* extension(int index) const;
314 const FieldDescriptor* FindExtensionByName(const string& name) const;
318 const FieldDescriptor* FindExtensionByLowercaseName(const string& name) const;
322 const FieldDescriptor* FindExtensionByCamelcaseName(const string& name) const;
[all …]
Dgenerated_message_reflection.cc56 bool IsMapFieldInApi(const FieldDescriptor* field) { in IsMapFieldInApi()
88 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageError()
98 const char* cpptype_names_[FieldDescriptor::MAX_CPPTYPE + 1] = {
113 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageTypeError()
115 FieldDescriptor::CppType expected_type) { in ReportReflectionUsageTypeError()
127 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageEnumTypeError()
148 if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \
150 FieldDescriptor::CPPTYPE_##CPPTYPE)
160 USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
163 USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \
[all …]
Dmap_field.cc190 const FieldDescriptor* val_des = in InsertOrLookupMapValue()
197 case google::protobuf::FieldDescriptor::CPPTYPE_##CPPTYPE: { \ in InsertOrLookupMapValue()
212 case google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE: { in InsertOrLookupMapValue()
264 const FieldDescriptor* key_des = in SyncRepeatedFieldWithMapNoLock()
266 const FieldDescriptor* val_des = in SyncRepeatedFieldWithMapNoLock()
286 case google::protobuf::FieldDescriptor::CPPTYPE_STRING: in SyncRepeatedFieldWithMapNoLock()
289 case google::protobuf::FieldDescriptor::CPPTYPE_INT64: in SyncRepeatedFieldWithMapNoLock()
292 case google::protobuf::FieldDescriptor::CPPTYPE_INT32: in SyncRepeatedFieldWithMapNoLock()
295 case google::protobuf::FieldDescriptor::CPPTYPE_UINT64: in SyncRepeatedFieldWithMapNoLock()
298 case google::protobuf::FieldDescriptor::CPPTYPE_UINT32: in SyncRepeatedFieldWithMapNoLock()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.cc189 string FieldName(const FieldDescriptor* field) { in FieldName()
206 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName()
222 bool IsFieldDependent(const FieldDescriptor* field) { in IsFieldDependent()
224 field->cpp_type() == FieldDescriptor::CPPTYPE_STRING) { in IsFieldDependent()
236 if (field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in IsFieldDependent()
272 string DependentTypeName(const FieldDescriptor* field) { in DependentTypeName()
276 string FieldMessageTypeName(const FieldDescriptor* field) { in FieldMessageTypeName()
290 const char* PrimitiveTypeName(FieldDescriptor::CppType type) { in PrimitiveTypeName()
292 case FieldDescriptor::CPPTYPE_INT32 : return "::google::protobuf::int32"; in PrimitiveTypeName()
293 case FieldDescriptor::CPPTYPE_INT64 : return "::google::protobuf::int64"; in PrimitiveTypeName()
[all …]
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_primitive_field.cc95 const char* GetCapitalizedType(const FieldDescriptor* field) { in GetCapitalizedType()
97 case FieldDescriptor::TYPE_INT32 : return "Int32" ; in GetCapitalizedType()
98 case FieldDescriptor::TYPE_UINT32 : return "UInt32" ; in GetCapitalizedType()
99 case FieldDescriptor::TYPE_SINT32 : return "SInt32" ; in GetCapitalizedType()
100 case FieldDescriptor::TYPE_FIXED32 : return "Fixed32" ; in GetCapitalizedType()
101 case FieldDescriptor::TYPE_SFIXED32: return "SFixed32"; in GetCapitalizedType()
102 case FieldDescriptor::TYPE_INT64 : return "Int64" ; in GetCapitalizedType()
103 case FieldDescriptor::TYPE_UINT64 : return "UInt64" ; in GetCapitalizedType()
104 case FieldDescriptor::TYPE_SINT64 : return "SInt64" ; in GetCapitalizedType()
105 case FieldDescriptor::TYPE_FIXED64 : return "Fixed64" ; in GetCapitalizedType()
[all …]
Djavamicro_helpers.cc58 const string& FieldName(const FieldDescriptor* field) { in FieldName()
62 if (field->type() == FieldDescriptor::TYPE_GROUP) { in FieldName()
102 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase()
106 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase()
194 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName()
200 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType()
202 case FieldDescriptor::TYPE_INT32: in GetJavaType()
203 case FieldDescriptor::TYPE_UINT32: in GetJavaType()
204 case FieldDescriptor::TYPE_SINT32: in GetJavaType()
205 case FieldDescriptor::TYPE_FIXED32: in GetJavaType()
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_extension.cc49 const char* GetTypeConstantName(const FieldDescriptor::Type type) { in GetTypeConstantName()
51 case FieldDescriptor::TYPE_INT32 : return "TYPE_INT32" ; in GetTypeConstantName()
52 case FieldDescriptor::TYPE_UINT32 : return "TYPE_UINT32" ; in GetTypeConstantName()
53 case FieldDescriptor::TYPE_SINT32 : return "TYPE_SINT32" ; in GetTypeConstantName()
54 case FieldDescriptor::TYPE_FIXED32 : return "TYPE_FIXED32" ; in GetTypeConstantName()
55 case FieldDescriptor::TYPE_SFIXED32: return "TYPE_SFIXED32"; in GetTypeConstantName()
56 case FieldDescriptor::TYPE_INT64 : return "TYPE_INT64" ; in GetTypeConstantName()
57 case FieldDescriptor::TYPE_UINT64 : return "TYPE_UINT64" ; in GetTypeConstantName()
58 case FieldDescriptor::TYPE_SINT64 : return "TYPE_SINT64" ; in GetTypeConstantName()
59 case FieldDescriptor::TYPE_FIXED64 : return "TYPE_FIXED64" ; in GetTypeConstantName()
[all …]
Djavanano_helpers.cc101 const string& FieldName(const FieldDescriptor* field) { in FieldName()
105 if (field->type() == FieldDescriptor::TYPE_GROUP) { in FieldName()
145 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase()
149 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase()
271 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName()
277 string FieldDefaultConstantName(const FieldDescriptor *field) { in FieldDefaultConstantName()
281 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment()
297 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType()
299 case FieldDescriptor::TYPE_INT32: in GetJavaType()
300 case FieldDescriptor::TYPE_UINT32: in GetJavaType()
[all …]
Djavanano_primitive_field.cc97 const char* GetCapitalizedType(const FieldDescriptor* field) { in GetCapitalizedType()
99 case FieldDescriptor::TYPE_INT32 : return "Int32" ; in GetCapitalizedType()
100 case FieldDescriptor::TYPE_UINT32 : return "UInt32" ; in GetCapitalizedType()
101 case FieldDescriptor::TYPE_SINT32 : return "SInt32" ; in GetCapitalizedType()
102 case FieldDescriptor::TYPE_FIXED32 : return "Fixed32" ; in GetCapitalizedType()
103 case FieldDescriptor::TYPE_SFIXED32: return "SFixed32"; in GetCapitalizedType()
104 case FieldDescriptor::TYPE_INT64 : return "Int64" ; in GetCapitalizedType()
105 case FieldDescriptor::TYPE_UINT64 : return "UInt64" ; in GetCapitalizedType()
106 case FieldDescriptor::TYPE_SINT64 : return "SInt64" ; in GetCapitalizedType()
107 case FieldDescriptor::TYPE_FIXED64 : return "Fixed64" ; in GetCapitalizedType()
[all …]
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_helpers.cc215 string NameFromFieldDescriptor(const FieldDescriptor* field) { in NameFromFieldDescriptor()
216 if (field->type() == FieldDescriptor::TYPE_GROUP) { in NameFromFieldDescriptor()
421 string ExtensionMethodName(const FieldDescriptor* descriptor) { in ExtensionMethodName()
427 string FieldName(const FieldDescriptor* field) { in FieldName()
442 string FieldNameCapitalized(const FieldDescriptor* field) { in FieldNameCapitalized()
476 string UnCamelCaseFieldName(const string& name, const FieldDescriptor* field) { in UnCamelCaseFieldName()
484 if (field->type() == FieldDescriptor::TYPE_GROUP) { in UnCamelCaseFieldName()
508 string GetCapitalizedType(const FieldDescriptor* field) { in GetCapitalizedType()
510 case FieldDescriptor::TYPE_INT32: in GetCapitalizedType()
512 case FieldDescriptor::TYPE_UINT32: in GetCapitalizedType()
[all …]
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.h58 class FieldDescriptor; variable
166 const FieldDescriptor* field;
325 const FieldDescriptor* field,
401 void TreatAsSet(const FieldDescriptor* field);
408 void TreatAsList(const FieldDescriptor* field);
424 void TreatAsMap(const FieldDescriptor* field, const FieldDescriptor* key);
442 const FieldDescriptor* field,
443 const vector<const FieldDescriptor*>& key_fields);
458 const FieldDescriptor* field,
459 const vector<vector<const FieldDescriptor*> >& key_field_paths);
[all …]
Dfield_comparator.cc61 const google::protobuf::FieldDescriptor* field, in Compare()
82 case FieldDescriptor::CPPTYPE_BOOL: in Compare()
84 case FieldDescriptor::CPPTYPE_DOUBLE: in Compare()
86 case FieldDescriptor::CPPTYPE_ENUM: in Compare()
88 case FieldDescriptor::CPPTYPE_FLOAT: in Compare()
90 case FieldDescriptor::CPPTYPE_INT32: in Compare()
92 case FieldDescriptor::CPPTYPE_INT64: in Compare()
94 case FieldDescriptor::CPPTYPE_STRING: in Compare()
116 case FieldDescriptor::CPPTYPE_UINT32: in Compare()
118 case FieldDescriptor::CPPTYPE_UINT64: in Compare()
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormatParseInfoTree.java33 import com.google.protobuf.Descriptors.FieldDescriptor;
56 private Map<FieldDescriptor, List<TextFormatParseLocation>> locationsFromField;
60 Map<FieldDescriptor, List<TextFormatParseInfoTree>> subtreesFromField;
69 Map<FieldDescriptor, List<TextFormatParseLocation>> locationsFromField, in TextFormatParseInfoTree() argument
70 Map<FieldDescriptor, List<TextFormatParseInfoTree.Builder>> subtreeBuildersFromField) { in TextFormatParseInfoTree()
73 Map<FieldDescriptor, List<TextFormatParseLocation>> locs = in TextFormatParseInfoTree()
74 new HashMap<FieldDescriptor, List<TextFormatParseLocation>>(); in TextFormatParseInfoTree()
75 for (Entry<FieldDescriptor, List<TextFormatParseLocation>> kv : locationsFromField.entrySet()) { in TextFormatParseInfoTree()
80 Map<FieldDescriptor, List<TextFormatParseInfoTree>> subs = in TextFormatParseInfoTree()
81 new HashMap<FieldDescriptor, List<TextFormatParseInfoTree>>(); in TextFormatParseInfoTree()
[all …]
DDynamicMessage.java35 import com.google.protobuf.Descriptors.FieldDescriptor;
52 private final FieldSet<FieldDescriptor> fields;
53 private final FieldDescriptor[] oneofCases;
66 DynamicMessage(Descriptor type, FieldSet<FieldDescriptor> fields, in DynamicMessage()
67 FieldDescriptor[] oneofCases, in DynamicMessage()
81 FieldDescriptor[] oneofCases = new FieldDescriptor[oneofDeclCount]; in getDefaultInstance()
82 return new DynamicMessage(type, FieldSet.<FieldDescriptor>emptySet(), in getDefaultInstance()
170 public Map<FieldDescriptor, Object> getAllFields() { in getAllFields()
177 FieldDescriptor field = oneofCases[oneof.getIndex()]; in hasOneof()
185 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor()
[all …]
DMessageReflection.java33 import com.google.protobuf.Descriptors.FieldDescriptor;
50 Map<FieldDescriptor, Object> fields, in writeMessageTo() argument
57 fields = new TreeMap<FieldDescriptor, Object>(fields); in writeMessageTo()
58 for (final FieldDescriptor field : in writeMessageTo()
65 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : in writeMessageTo()
67 final Descriptors.FieldDescriptor field = entry.getKey(); in writeMessageTo()
70 field.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in writeMessageTo()
88 Map<FieldDescriptor, Object> fields) { in getSerializedSize() argument
93 for (final Map.Entry<Descriptors.FieldDescriptor, Object> entry : in getSerializedSize()
95 final Descriptors.FieldDescriptor field = entry.getKey(); in getSerializedSize()
[all …]
/external/perfetto/src/protozero/protoc_plugin/
Dprotozero_generator.cc34 using google::protobuf::FieldDescriptor;
143 inline std::string GetFieldNumberConstant(const FieldDescriptor* field) { in GetFieldNumberConstant()
156 inline bool IsTinyEnumField(const FieldDescriptor* field) { in IsTinyEnumField()
157 if (field->type() != FieldDescriptor::TYPE_ENUM) in IsTinyEnumField()
235 const FieldDescriptor* field = message->field(i); in CollectDependencies()
237 if (field->type() == FieldDescriptor::TYPE_MESSAGE) { in CollectDependencies()
243 } else if (field->type() == FieldDescriptor::TYPE_ENUM) { in CollectDependencies()
339 void GenerateSimpleFieldDescriptor(const FieldDescriptor* field) { in GenerateSimpleFieldDescriptor()
349 case FieldDescriptor::TYPE_BOOL: { in GenerateSimpleFieldDescriptor()
354 case FieldDescriptor::TYPE_INT32: { in GenerateSimpleFieldDescriptor()
[all …]
/external/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc52 std::string LabelForField(google::protobuf::FieldDescriptor* field);
53 std::string TypeName(google::protobuf::FieldDescriptor* field);
82 std::string LabelForField(const google::protobuf::FieldDescriptor* field) { in LabelForField()
84 case FieldDescriptor::LABEL_OPTIONAL: return "optional"; in LabelForField()
85 case FieldDescriptor::LABEL_REQUIRED: return "required"; in LabelForField()
86 case FieldDescriptor::LABEL_REPEATED: return "repeated"; in LabelForField()
91 std::string TypeName(const google::protobuf::FieldDescriptor* field) { in TypeName()
93 case FieldDescriptor::TYPE_INT32: return "int32"; in TypeName()
94 case FieldDescriptor::TYPE_INT64: return "int64"; in TypeName()
95 case FieldDescriptor::TYPE_UINT32: return "uint32"; in TypeName()
[all …]
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc242 const FieldDescriptor* descriptor) { in GetPath()
280 const FieldDescriptor* field) { in SubmessageTypeRef()
281 GOOGLE_CHECK(field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE); in SubmessageTypeRef()
422 bool IgnoreExtensionField(const FieldDescriptor* field) { in IgnoreExtensionField()
434 bool IgnoreField(const FieldDescriptor* field) { in IgnoreField()
449 string JSIdent(const FieldDescriptor* field, in JSIdent()
453 if (field->type() == FieldDescriptor::TYPE_GROUP) { in JSIdent()
470 string JSObjectFieldName(const FieldDescriptor* field) { in JSObjectFieldName()
496 string JSGetterName(const FieldDescriptor* field, in JSGetterName()
501 if (field->type() == FieldDescriptor::TYPE_BYTES) { in JSGetterName()
[all …]
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DMessageDescriptor.cs59 private readonly IList<FieldDescriptor> fieldsInDeclarationOrder;
60 private readonly IList<FieldDescriptor> fieldsInNumberOrder;
61 private readonly IDictionary<string, FieldDescriptor> jsonFieldMap;
92 … new FieldDescriptor(field, file, this, index, generatedCodeInfo?.PropertyNames[index])); in MessageDescriptor()
93 …fieldsInNumberOrder = new ReadOnlyCollection<FieldDescriptor>(fieldsInDeclarationOrder.OrderBy(fie… in MessageDescriptor()
100 …private static ReadOnlyDictionary<string, FieldDescriptor> CreateJsonFieldMap(IList<FieldDescripto… in CreateJsonFieldMap()
102 var map = new Dictionary<string, FieldDescriptor>(); in CreateJsonFieldMap()
108 return new ReadOnlyDictionary<string, FieldDescriptor>(map); in CreateJsonFieldMap()
201 …public FieldDescriptor FindFieldByName(String name) => File.DescriptorPool.FindSymbol<FieldDescrip…
208 …public FieldDescriptor FindFieldByNumber(int number) => File.DescriptorPool.FindFieldByNumber(this… in FindFieldByNumber()
[all …]

12345678910>>...16