Home
last modified time | relevance | path

Searched refs:toProto (Results 1 – 5 of 5) sorted by relevance

/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/
DProtobufWireAdapter.java284 return toProto((PairingRequestMessage) poloMessage); in poloMessageToProto()
286 return toProto((PairingRequestAckMessage) poloMessage); in poloMessageToProto()
288 return toProto((OptionsMessage) poloMessage); in poloMessageToProto()
290 return toProto((ConfigurationMessage) poloMessage); in poloMessageToProto()
292 return toProto((ConfigurationAckMessage) poloMessage); in poloMessageToProto()
294 return toProto((SecretMessage) poloMessage); in poloMessageToProto()
296 return toProto((SecretAckMessage) poloMessage); in poloMessageToProto()
305 private PoloProto.PairingRequest toProto(PairingRequestMessage poloMessage) { in toProto() method in ProtobufWireAdapter
319 private PoloProto.PairingRequestAck toProto(PairingRequestAckMessage poloMessage) { in toProto() method in ProtobufWireAdapter
330 private PoloProto.Options toProto(OptionsMessage poloMessage) { in toProto() method in ProtobufWireAdapter
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DParseExceptionsTest.java69 serializedProto = DescriptorProto.getDescriptor().toProto().toByteArray(); in setup()
75 DescriptorProto.getDescriptor().toProto().writeDelimitedTo(bos); in setupDelimited()
226 assertEquals(DescriptorProto.getDescriptor().toProto(), in verifyExceptions()
DDescriptorsTest.java85 FieldDescriptorProto.Type protoType = type.toProto(); in testFieldTypeEnumMapping()
99 file.toProto().getName()); in testFileDescriptor()
161 assertEquals("TestAllTypes", messageType.toProto().getName()); in testDescriptor()
220 assertEquals("optional_int32", primitiveField.toProto().getName()); in testFieldDescriptor()
252 assertEquals("optional_int32_extension", extension.toProto().getName()); in testFieldDescriptor()
445 .toProto().getSerializedSize() > 65536); in testEnormousDescriptor()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java78 public FileDescriptorProto toProto() { in toProto() method in Descriptors.FileDescriptor
514 .setPackage(packageName).addMessageType(message.toProto()).build(); in FileDescriptor()
598 public DescriptorProto toProto() { in toProto() method in Descriptors.Descriptor
903 public FieldDescriptorProto toProto() { in toProto() method in Descriptors.FieldDescriptor
1170 public FieldDescriptorProto.Type toProto() { in toProto() method in Descriptors.FieldDescriptor.Type
1294 proto.getOneofIndex() >= parent.toProto().getOneofDeclCount()) { in FieldDescriptor()
1536 public EnumDescriptorProto toProto() { in toProto() method in Descriptors.EnumDescriptor
1721 public EnumValueDescriptorProto toProto() { in toProto() method in Descriptors.EnumValueDescriptor
1822 public ServiceDescriptorProto toProto() { in toProto() method in Descriptors.ServiceDescriptor
1924 public MethodDescriptorProto toProto() { in toProto() method in Descriptors.MethodDescriptor
[all …]
DDynamicMessage.java80 int oneofDeclCount = type.toProto().getOneofDeclCount(); in getDefaultInstance()
340 this.oneofCases = new FieldDescriptor[type.toProto().getOneofDeclCount()];