Searched refs:toProto (Results 1 – 6 of 6) sorted by relevance
67 serializedProto = DescriptorProto.getDescriptor().toProto().toByteArray(); in setup()73 DescriptorProto.getDescriptor().toProto().writeDelimitedTo(bos); in setupDelimited()254 DescriptorProto.getDescriptor().toProto(), in verifyExceptions()
89 FieldDescriptorProto.Type protoType = type.toProto(); in testFieldTypeEnumMapping()102 assertEquals("google/protobuf/unittest.proto", file.toProto().getName()); in testFileDescriptor()157 assertEquals("TestAllTypes", messageType.toProto().getName()); in testDescriptor()208 assertEquals("optional_int32", primitiveField.toProto().getName()); in testFieldDescriptor()235 assertEquals("optional_int32_extension", extension.toProto().getName()); in testFieldDescriptor()415 assertTrue(UnittestEnormousDescriptor.getDescriptor().toProto().getSerializedSize() > 65536); in testEnormousDescriptor()
90 public FileDescriptorProto toProto() { in toProto() method in Descriptors.FileDescriptor564 .addMessageType(message.toProto()) in FileDescriptor()652 public DescriptorProto toProto() { in toProto() method in Descriptors.Descriptor981 public FieldDescriptorProto toProto() { in toProto() method in Descriptors.FieldDescriptor1295 public FieldDescriptorProto.Type toProto() { in toProto() method in Descriptors.FieldDescriptor.Type1416 || proto.getOneofIndex() >= parent.toProto().getOneofDeclCount()) { in FieldDescriptor()1652 public EnumDescriptorProto toProto() { in toProto() method in Descriptors.EnumDescriptor1843 public EnumValueDescriptorProto toProto() { in toProto() method in Descriptors.EnumValueDescriptor1947 public ServiceDescriptorProto toProto() { in toProto() method in Descriptors.ServiceDescriptor2049 public MethodDescriptorProto toProto() { in toProto() method in Descriptors.MethodDescriptor[all …]
79 int oneofDeclCount = type.toProto().getOneofDeclCount(); in getDefaultInstance()330 this.oneofCases = new FieldDescriptor[type.toProto().getOneofDeclCount()];
85 FieldDescriptorProto.Type protoType = type.toProto(); in testFieldTypeEnumMapping()99 file.toProto().getName()); in testFileDescriptor()160 assertEquals("TestAllTypes", messageType.toProto().getName()); in testDescriptor()219 assertEquals("optional_int32", primitiveField.toProto().getName()); in testFieldDescriptor()251 assertEquals("optional_int32_extension", extension.toProto().getName()); in testFieldDescriptor()431 .toProto().getSerializedSize() > 65536); in testEnormousDescriptor()
84 std::unique_ptr<proto::Histogram> proto = histogram.second->toProto(); in getAsJSON()