/external/protobuf/src/google/protobuf/ |
D | generated_message_reflection.h | 140 bool HasField(const Message& message, const FieldDescriptor* field) const; 141 int FieldSize(const Message& message, const FieldDescriptor* field) const; 142 void ClearField(Message* message, const FieldDescriptor* field) const; 143 void RemoveLast(Message* message, const FieldDescriptor* field) const; 145 void SwapElements(Message* message, const FieldDescriptor* field, 148 vector<const FieldDescriptor*>* output) const; 151 const FieldDescriptor* field) const; 153 const FieldDescriptor* field) const; 155 const FieldDescriptor* field) const; 157 const FieldDescriptor* field) const; [all …]
|
D | message.h | 155 class FieldDescriptor; // descriptor.h variable 400 const FieldDescriptor* field) const = 0; 404 const FieldDescriptor* field) const = 0; 409 const FieldDescriptor* field) const = 0; 419 const FieldDescriptor* field) const = 0; 426 const FieldDescriptor* field, 436 vector<const FieldDescriptor*>* output) const = 0; 443 const FieldDescriptor* field) const = 0; 445 const FieldDescriptor* field) const = 0; 447 const FieldDescriptor* field) const = 0; [all …]
|
D | descriptor.h | 67 class FieldDescriptor; variable 153 const FieldDescriptor* field(int index) const; 157 const FieldDescriptor* FindFieldByNumber(int number) const; 159 const FieldDescriptor* FindFieldByName(const string& name) const; 164 const FieldDescriptor* FindFieldByLowercaseName( 171 const FieldDescriptor* FindFieldByCamelcaseName( 225 const FieldDescriptor* extension(int index) const; 229 const FieldDescriptor* FindExtensionByName(const string& name) const; 233 const FieldDescriptor* FindExtensionByLowercaseName(const string& name) const; 237 const FieldDescriptor* FindExtensionByCamelcaseName(const string& name) const; [all …]
|
D | generated_message_reflection.cc | 84 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageError() 94 const char* cpptype_names_[FieldDescriptor::MAX_CPPTYPE + 1] = { 109 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageTypeError() 111 FieldDescriptor::CppType expected_type) { in ReportReflectionUsageTypeError() 123 const Descriptor* descriptor, const FieldDescriptor* field, in ReportReflectionUsageEnumTypeError() 144 if (field->cpp_type() != FieldDescriptor::CPPTYPE_##CPPTYPE) \ 146 FieldDescriptor::CPPTYPE_##CPPTYPE) 156 USAGE_CHECK_NE(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \ 159 USAGE_CHECK_EQ(field->label(), FieldDescriptor::LABEL_REPEATED, METHOD, \ 221 const FieldDescriptor* field = descriptor_->field(i); in SpaceUsed() [all …]
|
D | wire_format.h | 79 const FieldDescriptor* field); 83 FieldDescriptor::Type type); 87 static inline int TagSize(int field_number, FieldDescriptor::Type type); 180 static uint32 MakeTag(const FieldDescriptor* field); 186 const FieldDescriptor* field, // May be NULL for unknown 192 const FieldDescriptor* field, // Cannot be NULL 200 const FieldDescriptor* field, // Cannot be NULL 209 const FieldDescriptor* field, 213 const FieldDescriptor* field, 221 const FieldDescriptor* field, // Cannot be NULL [all …]
|
D | descriptor.cc | 62 const FieldDescriptor::CppType 63 FieldDescriptor::kTypeToCppTypeMap[MAX_TYPE + 1] = { 86 const char * const FieldDescriptor::kTypeToName[MAX_TYPE + 1] = { 109 const char * const FieldDescriptor::kLabelToName[MAX_LABEL + 1] = { 118 const int FieldDescriptor::kMaxNumber; 119 const int FieldDescriptor::kFirstReservedNumber; 120 const int FieldDescriptor::kLastReservedNumber; 227 const FieldDescriptor* field_descriptor; 252 CONSTRUCTOR(FieldDescriptor , FIELD , field_descriptor ) in CONSTRUCTOR() 286 typedef hash_map<PointerStringPair, const FieldDescriptor*, [all …]
|
D | reflection_ops.cc | 60 vector<const FieldDescriptor*> fields; in Merge() 63 const FieldDescriptor* field = fields[i]; in Merge() 70 case FieldDescriptor::CPPTYPE_##CPPTYPE: \ in Merge() 86 case FieldDescriptor::CPPTYPE_MESSAGE: in Merge() 95 case FieldDescriptor::CPPTYPE_##CPPTYPE: \ in Merge() 111 case FieldDescriptor::CPPTYPE_MESSAGE: in Merge() 126 vector<const FieldDescriptor*> fields; in Clear() 149 vector<const FieldDescriptor*> fields; in IsInitialized() 152 const FieldDescriptor* field = fields[i]; in IsInitialized() 153 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in IsInitialized() [all …]
|
D | extension_set_heavy.cc | 70 vector<const FieldDescriptor*>* output) const { in AppendToList() 96 inline FieldDescriptor::Type real_type(FieldType type) { in real_type() 97 GOOGLE_DCHECK(type > 0 && type <= FieldDescriptor::MAX_TYPE); in real_type() 98 return static_cast<FieldDescriptor::Type>(type); in real_type() 101 inline FieldDescriptor::CppType cpp_type(FieldType type) { in cpp_type() 102 return FieldDescriptor::TypeToCppType( in cpp_type() 103 static_cast<FieldDescriptor::Type>(type)); in cpp_type() 107 GOOGLE_DCHECK_EQ((EXTENSION).is_repeated ? FieldDescriptor::LABEL_REPEATED \ 108 : FieldDescriptor::LABEL_OPTIONAL, \ 109 FieldDescriptor::LABEL_##LABEL); \ [all …]
|
D | text_format.cc | 155 bool ParseField(const FieldDescriptor* field, Message* output) { in ParseField() 157 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ParseField() 239 const FieldDescriptor* field = NULL; in ConsumeField() 272 if (field != NULL && field->type() != FieldDescriptor::TYPE_GROUP) { in ConsumeField() 277 if (field != NULL && field->type() == FieldDescriptor::TYPE_GROUP in ConsumeField() 298 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ConsumeField() 317 const FieldDescriptor* field) { in ConsumeFieldMessage() 337 const FieldDescriptor* field) { in ConsumeFieldValue() 350 case FieldDescriptor::CPPTYPE_INT32: { in ConsumeFieldValue() 357 case FieldDescriptor::CPPTYPE_UINT32: { in ConsumeFieldValue() [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_helpers.cc | 153 string FieldName(const FieldDescriptor* field) { in FieldName() 162 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName() 178 string FieldMessageTypeName(const FieldDescriptor* field) { in FieldMessageTypeName() 192 const char* PrimitiveTypeName(FieldDescriptor::CppType type) { in PrimitiveTypeName() 194 case FieldDescriptor::CPPTYPE_INT32 : return "::google::protobuf::int32"; in PrimitiveTypeName() 195 case FieldDescriptor::CPPTYPE_INT64 : return "::google::protobuf::int64"; in PrimitiveTypeName() 196 case FieldDescriptor::CPPTYPE_UINT32 : return "::google::protobuf::uint32"; in PrimitiveTypeName() 197 case FieldDescriptor::CPPTYPE_UINT64 : return "::google::protobuf::uint64"; in PrimitiveTypeName() 198 case FieldDescriptor::CPPTYPE_DOUBLE : return "double"; in PrimitiveTypeName() 199 case FieldDescriptor::CPPTYPE_FLOAT : return "float"; in PrimitiveTypeName() [all …]
|
D | cpp_primitive_field.cc | 52 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 …]
|
D | cpp_field.cc | 54 void SetCommonFieldVariables(const FieldDescriptor* descriptor, in SetCommonFieldVariables() 93 FieldGenerator* FieldGeneratorMap::MakeGenerator(const FieldDescriptor* field) { in MakeGenerator() 96 case FieldDescriptor::CPPTYPE_MESSAGE: in MakeGenerator() 98 case FieldDescriptor::CPPTYPE_STRING: in MakeGenerator() 104 case FieldDescriptor::CPPTYPE_ENUM: in MakeGenerator() 111 case FieldDescriptor::CPPTYPE_MESSAGE: in MakeGenerator() 113 case FieldDescriptor::CPPTYPE_STRING: in MakeGenerator() 119 case FieldDescriptor::CPPTYPE_ENUM: in MakeGenerator() 130 const FieldDescriptor* field) const { in get()
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_primitive_field.cc | 95 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 …]
|
D | java_helpers.cc | 57 const string& FieldName(const FieldDescriptor* field) { in FieldName() 61 if (GetType(field) == FieldDescriptor::TYPE_GROUP) { in FieldName() 101 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase() 105 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase() 176 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName() 182 FieldDescriptor::Type GetType(const FieldDescriptor* field) { in GetType() 186 JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType() 188 case FieldDescriptor::TYPE_INT32: in GetJavaType() 189 case FieldDescriptor::TYPE_UINT32: in GetJavaType() 190 case FieldDescriptor::TYPE_SINT32: in GetJavaType() [all …]
|
D | java_extension.cc | 47 const char* TypeName(FieldDescriptor::Type field_type) { in TypeName() 49 case FieldDescriptor::TYPE_INT32 : return "INT32"; in TypeName() 50 case FieldDescriptor::TYPE_UINT32 : return "UINT32"; in TypeName() 51 case FieldDescriptor::TYPE_SINT32 : return "SINT32"; in TypeName() 52 case FieldDescriptor::TYPE_FIXED32 : return "FIXED32"; in TypeName() 53 case FieldDescriptor::TYPE_SFIXED32: return "SFIXED32"; in TypeName() 54 case FieldDescriptor::TYPE_INT64 : return "INT64"; in TypeName() 55 case FieldDescriptor::TYPE_UINT64 : return "UINT64"; in TypeName() 56 case FieldDescriptor::TYPE_SINT64 : return "SINT64"; in TypeName() 57 case FieldDescriptor::TYPE_FIXED64 : return "FIXED64"; in TypeName() [all …]
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_primitive_field.cc | 95 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 …]
|
D | javamicro_helpers.cc | 57 const string& FieldName(const FieldDescriptor* field) { in FieldName() 61 if (field->type() == FieldDescriptor::TYPE_GROUP) { in FieldName() 101 string UnderscoresToCamelCase(const FieldDescriptor* field) { in UnderscoresToCamelCase() 105 string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field) { in UnderscoresToCapitalizedCamelCase() 252 string FieldConstantName(const FieldDescriptor *field) { in FieldConstantName() 258 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType() 260 case FieldDescriptor::TYPE_INT32: in GetJavaType() 261 case FieldDescriptor::TYPE_UINT32: in GetJavaType() 262 case FieldDescriptor::TYPE_SINT32: in GetJavaType() 263 case FieldDescriptor::TYPE_FIXED32: in GetJavaType() [all …]
|
D | javamicro_message.cc | 56 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() 65 inline bool operator()(const FieldDescriptor* a, in operator ()() 66 const FieldDescriptor* b) const { in operator ()() 73 const FieldDescriptor** SortFieldsByNumber(const Descriptor* descriptor) { in SortFieldsByNumber() 74 const FieldDescriptor** fields = in SortFieldsByNumber() 75 new const FieldDescriptor*[descriptor->field_count()]; in SortFieldsByNumber() 118 const FieldDescriptor* field = type->field(i); in HasRequiredFields() 122 if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in HasRequiredFields() 233 scoped_array<const FieldDescriptor*> sorted_fields( in GenerateMessageSerializationMethods() 280 scoped_array<const FieldDescriptor*> sorted_fields( in GenerateMergeFromMethods() [all …]
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | DynamicMessage.java | 34 import com.google.protobuf.Descriptors.FieldDescriptor; 48 private final FieldSet<FieldDescriptor> fields; 55 private DynamicMessage(Descriptor type, FieldSet<FieldDescriptor> fields, in DynamicMessage() 67 return new DynamicMessage(type, FieldSet.<FieldDescriptor>emptySet(), in getDefaultInstance() 150 public Map<FieldDescriptor, Object> getAllFields() { in getAllFields() 154 public boolean hasField(FieldDescriptor field) { in hasField() 159 public Object getField(FieldDescriptor field) { in getField() 163 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField() 172 public int getRepeatedFieldCount(FieldDescriptor field) { in getRepeatedFieldCount() 177 public Object getRepeatedField(FieldDescriptor field, int index) { in getRepeatedField() [all …]
|
D | GeneratedMessage.java | 35 import com.google.protobuf.Descriptors.FieldDescriptor; 72 private Map<FieldDescriptor, Object> getAllFieldsMutable() { in getAllFieldsMutable() 73 final TreeMap<FieldDescriptor, Object> result = in getAllFieldsMutable() 74 new TreeMap<FieldDescriptor, Object>(); in getAllFieldsMutable() 76 for (final FieldDescriptor field : descriptor.getFields()) { in getAllFieldsMutable() 93 for (final FieldDescriptor field : getDescriptorForType().getFields()) { in isInitialized() 101 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in isInitialized() 121 public Map<FieldDescriptor, Object> getAllFields() { in getAllFields() 125 public boolean hasField(final FieldDescriptor field) { in hasField() 129 public Object getField(final FieldDescriptor field) { in getField() [all …]
|
D | Message.java | 74 Map<Descriptors.FieldDescriptor, Object> getAllFields(); in getAllFields() 82 boolean hasField(Descriptors.FieldDescriptor field); in hasField() 91 Object getField(Descriptors.FieldDescriptor field); in getField() 100 int getRepeatedFieldCount(Descriptors.FieldDescriptor field); in getRepeatedFieldCount() 110 Object getRepeatedField(Descriptors.FieldDescriptor field, int index); in getRepeatedField() 209 Map<Descriptors.FieldDescriptor, Object> getAllFields(); in getAllFields() 216 Builder newBuilderForField(Descriptors.FieldDescriptor field); in newBuilderForField() 219 boolean hasField(Descriptors.FieldDescriptor field); in hasField() 222 Object getField(Descriptors.FieldDescriptor field); in getField() 229 Builder setField(Descriptors.FieldDescriptor field, Object value); in setField() [all …]
|
D | ExtensionRegistry.java | 34 import com.google.protobuf.Descriptors.FieldDescriptor; 113 public final FieldDescriptor descriptor; 121 private ExtensionInfo(final FieldDescriptor descriptor) { in ExtensionInfo() 125 private ExtensionInfo(final FieldDescriptor descriptor, in ExtensionInfo() 159 FieldDescriptor.JavaType.MESSAGE) { in add() 173 public void add(final FieldDescriptor type) { in add() 174 if (type.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in add() 183 public void add(final FieldDescriptor type, final Message defaultInstance) { in add() 184 if (type.getJavaType() != FieldDescriptor.JavaType.MESSAGE) { in add() 231 final FieldDescriptor field = extension.descriptor; in add() [all …]
|
D | AbstractMessage.java | 34 import com.google.protobuf.Descriptors.FieldDescriptor; 53 for (final FieldDescriptor field : getDescriptorForType().getFields()) { in isInitialized() 62 for (final Map.Entry<FieldDescriptor, Object> entry : in isInitialized() 64 final FieldDescriptor field = entry.getKey(); in isInitialized() 65 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in isInitialized() 92 for (final Map.Entry<FieldDescriptor, Object> entry : in writeTo() 94 final FieldDescriptor field = entry.getKey(); in writeTo() 97 field.getType() == FieldDescriptor.Type.MESSAGE && in writeTo() 125 for (final Map.Entry<FieldDescriptor, Object> entry : in getSerializedSize() 127 final FieldDescriptor field = entry.getKey(); in getSerializedSize() [all …]
|
/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | DescriptorsTest.java | 39 import com.google.protobuf.Descriptors.FieldDescriptor; 74 private static final Object STATIC_INIT_TEST = FieldDescriptor.Type.BOOL; 77 assertEquals(FieldDescriptor.Type.values().length, in testFieldTypeEnumMapping() 79 for (FieldDescriptor.Type type : FieldDescriptor.Type.values()) { in testFieldTypeEnumMapping() 82 assertEquals(type, FieldDescriptor.Type.valueOf(protoType)); in testFieldTypeEnumMapping() 130 FieldDescriptor extension = in testFileDescriptor() 163 FieldDescriptor field = messageType.getFields().get(0); in testDescriptor() 191 FieldDescriptor primitiveField = in testFieldDescriptor() 193 FieldDescriptor enumField = in testFieldDescriptor() 195 FieldDescriptor messageField = in testFieldDescriptor() [all …]
|
/external/protobuf/python/google/protobuf/ |
D | text_format.py | 66 if field.label == descriptor.FieldDescriptor.LABEL_REPEATED: 81 field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and 83 field.label == descriptor.FieldDescriptor.LABEL_OPTIONAL): 88 elif field.type == descriptor.FieldDescriptor.TYPE_GROUP: 94 if field.cpp_type != descriptor.FieldDescriptor.CPPTYPE_MESSAGE: 107 if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE: 111 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM: 113 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_STRING: 117 elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_BOOL: 180 if field and field.type != descriptor.FieldDescriptor.TYPE_GROUP: [all …]
|