Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/csharp/
Dcsharp_field_base.cc103 FieldGeneratorBase::FieldGeneratorBase(const FieldDescriptor* descriptor, in FieldGeneratorBase()
156 std::string FieldGeneratorBase::type_name(const FieldDescriptor* descriptor) { in type_name()
158 case FieldDescriptor::TYPE_ENUM: in type_name()
160 case FieldDescriptor::TYPE_MESSAGE: in type_name()
161 case FieldDescriptor::TYPE_GROUP: in type_name()
163 const FieldDescriptor* wrapped_field = in type_name()
168 if (wrapped_field->type() == FieldDescriptor::TYPE_STRING || in type_name()
169 wrapped_field->type() == FieldDescriptor::TYPE_BYTES) { in type_name()
176 case FieldDescriptor::TYPE_DOUBLE: in type_name()
178 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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_helpers.cc83 string FieldName(const FieldDescriptor* field) { in FieldName()
88 if (GetType(field) == FieldDescriptor::TYPE_GROUP) { in FieldName()
153 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase()
157 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase()
267 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName()
273 FieldDescriptor::Type GetType(const FieldDescriptor* field) { in GetType()
277 JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType()
279 case FieldDescriptor::TYPE_INT32: in GetJavaType()
280 case FieldDescriptor::TYPE_UINT32: in GetJavaType()
281 case FieldDescriptor::TYPE_SINT32: in GetJavaType()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
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 …]
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 …]
Ddescriptor.h76 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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
Dcpp_primitive_field.cc52 int FixedSize(FieldDescriptor::Type type) { in FixedSize()
54 case FieldDescriptor::TYPE_INT32 : return -1; in FixedSize()
55 case FieldDescriptor::TYPE_INT64 : return -1; in FixedSize()
56 case FieldDescriptor::TYPE_UINT32 : return -1; in FixedSize()
57 case FieldDescriptor::TYPE_UINT64 : return -1; in FixedSize()
58 case FieldDescriptor::TYPE_SINT32 : return -1; in FixedSize()
59 case FieldDescriptor::TYPE_SINT64 : return -1; in FixedSize()
60 case FieldDescriptor::TYPE_FIXED32 : return WireFormatLite::kFixed32Size; in FixedSize()
61 case FieldDescriptor::TYPE_FIXED64 : return WireFormatLite::kFixed64Size; in FixedSize()
62 case FieldDescriptor::TYPE_SFIXED32: return WireFormatLite::kSFixed32Size; in FixedSize()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
Dfield_comparator.h46 class FieldDescriptor; variable
86 const google::protobuf::FieldDescriptor* field,
116 const google::protobuf::FieldDescriptor* field,
145 void SetFractionAndMargin(const FieldDescriptor* field, double fraction,
170 typedef map<const FieldDescriptor*, Tolerance> ToleranceMap;
176 bool CompareBool(const google::protobuf::FieldDescriptor& field, in CompareBool()
183 bool CompareDouble(const google::protobuf::FieldDescriptor& field,
186 bool CompareEnum(const google::protobuf::FieldDescriptor& field,
192 bool CompareFloat(const google::protobuf::FieldDescriptor& field,
195 bool CompareInt32(const google::protobuf::FieldDescriptor& field, in CompareInt32()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/objectivec/
Dobjectivec_helpers.cc219 string NameFromFieldDescriptor(const FieldDescriptor* field) { in NameFromFieldDescriptor()
220 if (field->type() == FieldDescriptor::TYPE_GROUP) { in NameFromFieldDescriptor()
441 string ExtensionMethodName(const FieldDescriptor* descriptor) { in ExtensionMethodName()
447 string FieldName(const FieldDescriptor* field) { in FieldName()
462 string FieldNameCapitalized(const FieldDescriptor* field) { in FieldNameCapitalized()
496 string UnCamelCaseFieldName(const string& name, const FieldDescriptor* field) { in UnCamelCaseFieldName()
504 if (field->type() == FieldDescriptor::TYPE_GROUP) { in UnCamelCaseFieldName()
528 string GetCapitalizedType(const FieldDescriptor* field) { in GetCapitalizedType()
530 case FieldDescriptor::TYPE_INT32: in GetCapitalizedType()
532 case FieldDescriptor::TYPE_UINT32: in GetCapitalizedType()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DMessageDescriptor.cs63 private readonly IList<FieldDescriptor> fieldsInDeclarationOrder;
64 private readonly IList<FieldDescriptor> fieldsInNumberOrder;
65 private readonly IDictionary<string, FieldDescriptor> jsonFieldMap;
96 … new FieldDescriptor(field, file, this, index, generatedCodeInfo?.PropertyNames[index])); in MessageDescriptor()
97 …fieldsInNumberOrder = new ReadOnlyCollection<FieldDescriptor>(fieldsInDeclarationOrder.OrderBy(fie… in MessageDescriptor()
104 …private static ReadOnlyDictionary<string, FieldDescriptor> CreateJsonFieldMap(IList<FieldDescripto… in CreateJsonFieldMap()
106 var map = new Dictionary<string, FieldDescriptor>(); in CreateJsonFieldMap()
112 return new ReadOnlyDictionary<string, FieldDescriptor>(map); in CreateJsonFieldMap()
205 …public FieldDescriptor FindFieldByName(String name) => File.DescriptorPool.FindSymbol<FieldDescrip…
212 …public FieldDescriptor FindFieldByNumber(int number) => File.DescriptorPool.FindFieldByNumber(this… in FindFieldByNumber()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
/frameworks/base/tools/stats_log_api_gen/
DCollation.cpp27 using google::protobuf::FieldDescriptor;
72 print_error(const FieldDescriptor* field, const char* format, ...) in print_error()
94 java_type(const FieldDescriptor* field) in java_type()
98 case FieldDescriptor::TYPE_DOUBLE: in java_type()
100 case FieldDescriptor::TYPE_FLOAT: in java_type()
102 case FieldDescriptor::TYPE_INT64: in java_type()
104 case FieldDescriptor::TYPE_UINT64: in java_type()
106 case FieldDescriptor::TYPE_INT32: in java_type()
108 case FieldDescriptor::TYPE_FIXED64: in java_type()
110 case FieldDescriptor::TYPE_FIXED32: in java_type()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/js/
Djs_generator.cc250 const FieldDescriptor* descriptor) { in GetPath()
288 const FieldDescriptor* field) { in SubmessageTypeRef()
289 GOOGLE_CHECK(field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE); in SubmessageTypeRef()
430 bool IgnoreExtensionField(const FieldDescriptor* field) { in IgnoreExtensionField()
442 bool IgnoreField(const FieldDescriptor* field) { in IgnoreField()
463 const FieldDescriptor* field, in JSIdent()
467 if (field->type() == FieldDescriptor::TYPE_GROUP) { in JSIdent()
487 const FieldDescriptor* field) { in JSObjectFieldName()
516 const FieldDescriptor* field, in JSGetterName()
521 if (field->type() == FieldDescriptor::TYPE_BYTES) { in JSGetterName()
[all …]

12345678910>>...12