Home
last modified time | relevance | path

Searched refs:JavaType (Results 1 – 25 of 30) sorted by relevance

12

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DWireFormat.java79 public enum JavaType { enum in WireFormat
90 JavaType(final Object defaultDefault) { in JavaType() method in WireFormat.JavaType
110 DOUBLE (JavaType.DOUBLE , WIRETYPE_FIXED64 ),
111 FLOAT (JavaType.FLOAT , WIRETYPE_FIXED32 ),
112 INT64 (JavaType.LONG , WIRETYPE_VARINT ),
113 UINT64 (JavaType.LONG , WIRETYPE_VARINT ),
114 INT32 (JavaType.INT , WIRETYPE_VARINT ),
115 FIXED64 (JavaType.LONG , WIRETYPE_FIXED64 ),
116 FIXED32 (JavaType.INT , WIRETYPE_FIXED32 ),
117 BOOL (JavaType.BOOLEAN , WIRETYPE_VARINT ),
[all …]
DDescriptors.java937 public JavaType getJavaType() { return type.getJavaType(); } in getJavaType()
941 public WireFormat.JavaType getLiteJavaType() { in getLiteJavaType()
1031 if (getJavaType() == JavaType.MESSAGE) { in getDefaultValue()
1086 if (getJavaType() != JavaType.MESSAGE) { in getMessageType()
1096 if (getJavaType() != JavaType.ENUM) { in getEnumType()
1145 DOUBLE (JavaType.DOUBLE ),
1146 FLOAT (JavaType.FLOAT ),
1147 INT64 (JavaType.LONG ),
1148 UINT64 (JavaType.LONG ),
1149 INT32 (JavaType.INT ),
[all …]
DExtensionRegistry.java248 FieldDescriptor.JavaType.MESSAGE) { in newExtensionInfo()
263 if (type.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in add()
275 if (type.getJavaType() != FieldDescriptor.JavaType.MESSAGE) { in add()
DGeneratedMessage.java156 if (getBytesForString && field.getJavaType() == FieldDescriptor.JavaType.STRING) { in getAllFieldsMutable()
175 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in isInitialized()
630 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in isInitialized()
860 FieldDescriptor.JavaType.MESSAGE) { in getExtension()
941 WireFormat.JavaType.MESSAGE && in writeUntil()
1025 } else if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField()
1192 FieldDescriptor.JavaType.MESSAGE) { in getExtension()
1322 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField()
1689 if (descriptor.getJavaType() == FieldDescriptor.JavaType.MESSAGE ||
1690 descriptor.getJavaType() == FieldDescriptor.JavaType.ENUM) {
[all …]
DFieldSet.java60 WireFormat.JavaType getLiteJavaType(); in getLiteJavaType()
455 if (descriptor.getLiteJavaType() == WireFormat.JavaType.MESSAGE) { in isInitialized()
538 } else if (descriptor.getLiteJavaType() == WireFormat.JavaType.MESSAGE) { in mergeFromField()
617 if (descriptor.getLiteJavaType() == WireFormat.JavaType.MESSAGE && in writeMessageSetTo()
782 if (descriptor.getLiteJavaType() == WireFormat.JavaType.MESSAGE in getMessageSetSerializedSize()
DDynamicMessage.java203 } else if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in getField()
453 if (field.getJavaType() != FieldDescriptor.JavaType.MESSAGE) {
500 } else if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) {
DMapEntryLite.java227 if (metadata.valueType.getJavaType() == WireFormat.JavaType.MESSAGE) { in isInitialized()
304 if (metadata.valueType.getJavaType() == WireFormat.JavaType.MESSAGE) { in isInitialized()
DMessageReflection.java144 if (field.getJavaType() == Descriptors.FieldDescriptor.JavaType.MESSAGE) { in isInitialized()
198 if (field.getJavaType() == Descriptors.FieldDescriptor.JavaType.MESSAGE) { in findMissingFields()
765 == Descriptors.FieldDescriptor.JavaType.MESSAGE) { in mergeFieldFrom()
DTextFormat.java357 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in printSingleField()
370 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in printSingleField()
1508 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in mergeField()
1581 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in consumeFieldValue()
DGeneratedMessageLite.java694 WireFormat.JavaType.MESSAGE && in writeUntil()
949 public WireFormat.JavaType getLiteJavaType() { in getLiteJavaType()
1088 if (descriptor.getLiteJavaType() == WireFormat.JavaType.ENUM) { in fromFieldSetType()
1103 if (descriptor.getLiteJavaType() == WireFormat.JavaType.ENUM) { in singularFromFieldSetType()
1113 if (descriptor.getLiteJavaType() == WireFormat.JavaType.ENUM) { in toFieldSetType()
1128 if (descriptor.getLiteJavaType() == WireFormat.JavaType.ENUM) { in singularToFieldSetType()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_helpers.h120 enum JavaType { enum
132 JavaType GetJavaType(FieldDescriptor::Type field_type);
134 inline JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType()
138 string PrimitiveTypeName(JavaType type);
143 string BoxedPrimitiveTypeName(JavaType type);
Djavanano_primitive_field.cc57 bool IsReferenceType(JavaType type) { in IsReferenceType()
77 bool IsArrayType(JavaType type) { in IsArrayType()
270 JavaType java_type = GetJavaType(descriptor_); in GenerateMembers()
289 JavaType java_type = GetJavaType(descriptor_); in GenerateClearCode()
308 JavaType java_type = GetJavaType(descriptor_); in GenerateMergingCode()
342 JavaType java_type = GetJavaType(descriptor_); in GenerateSerializationConditional()
382 JavaType java_type = GetJavaType(descriptor_); in GenerateWriteCode()
408 JavaType java_type = GetJavaType(descriptor_); in GenerateComputeSizeCode()
434 JavaType java_type = GetJavaType(descriptor_); in GenerateEqualsCode()
511 JavaType java_type = GetJavaType(descriptor_); in GenerateHashCodeCode()
Djavanano_helpers.cc297 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType()
343 string PrimitiveTypeName(JavaType type) { in PrimitiveTypeName()
363 string BoxedPrimitiveTypeName(JavaType type) { in BoxedPrimitiveTypeName()
Djavanano_extension.cc87 JavaType java_type = GetJavaType(descriptor->type()); in SetVariables()
Djavanano_field.cc97 JavaType java_type = GetJavaType(field); in MakeGenerator()
Djavanano_map_field.cc47 JavaType java_type = GetJavaType(field); in TypeName()
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_helpers.h108 enum JavaType { enum
120 JavaType GetJavaType(FieldDescriptor::Type field_type);
122 inline JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType()
129 const char* BoxedPrimitiveTypeName(JavaType type);
Djavamicro_primitive_field.cc55 const char* PrimitiveTypeName(JavaType type) { in PrimitiveTypeName()
75 bool IsReferenceType(JavaType type) { in IsReferenceType()
158 bool IsVariableLenType(JavaType type) { in IsVariableLenType()
Djavamicro_helpers.cc200 JavaType GetJavaType(FieldDescriptor::Type field_type) { in GetJavaType()
246 const char* BoxedPrimitiveTypeName(JavaType type) { in BoxedPrimitiveTypeName()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.h138 enum JavaType { enum
150 JavaType GetJavaType(const FieldDescriptor* field);
152 const char* PrimitiveTypeName(JavaType type);
157 const char* BoxedPrimitiveTypeName(JavaType type);
262 bool IsReferenceType(JavaType type);
Djava_helpers.cc263 JavaType GetJavaType(const FieldDescriptor* field) { in GetJavaType()
309 const char* PrimitiveTypeName(JavaType type) { in PrimitiveTypeName()
329 const char* BoxedPrimitiveTypeName(JavaType type) { in BoxedPrimitiveTypeName()
602 bool IsReferenceType(JavaType type) { in IsReferenceType()
Djava_extension.cc84 JavaType java_type = GetJavaType(descriptor); in InitTemplateVars()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java216 assertEquals(FieldDescriptor.JavaType.INT, primitiveField.getJavaType()); in testFieldDescriptor()
224 assertEquals(FieldDescriptor.JavaType.ENUM, enumField.getJavaType()); in testFieldDescriptor()
230 assertEquals(FieldDescriptor.JavaType.MESSAGE, messageField.getJavaType()); in testFieldDescriptor()
235 assertEquals(FieldDescriptor.JavaType.STRING, cordField.getJavaType()); in testFieldDescriptor()
247 assertEquals(FieldDescriptor.JavaType.INT, extension.getJavaType()); in testFieldDescriptor()
430 FieldDescriptor.JavaType[] values1 = FieldDescriptor.JavaType.values(); in testJavaTypeTablesMatch()
431 WireFormat.JavaType[] values2 = WireFormat.JavaType.values(); in testJavaTypeTablesMatch()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java228 if (field.isRepeated() || field.getJavaType() != FieldDescriptor.JavaType.MESSAGE) { in merge()
254 if (field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in merge()
DFieldMaskUtil.java197 && field.getJavaType() == FieldDescriptor.JavaType.MESSAGE) { in isValid()

12