ProtoSchemaTranslator { static Schema getSchema(Class<? extends Message> clazz) { return getSchema(ProtobufUtil.getDescriptorForClass(clazz)); }   static final String SCHEMA_OPTION_META_NUMBER; static final String SCHEMA_OPTION_META_TYPE_NAME; static final String SCHEMA_OPTION_MESSAGE_PREFIX; static final String SCHEMA_OPTION_FIELD_PREFIX; }
@Test public void testPrimitiveSchema() { assertEquals( TestProtoSchemas.PRIMITIVE_SCHEMA, ProtoSchemaTranslator.getSchema(Proto3SchemaMessages.Primitive.class)); }
@Test public void testOptionalPrimitiveSchema() { assertEquals( TestProtoSchemas.OPTIONAL_PRIMITIVE_SCHEMA, ProtoSchemaTranslator.getSchema(Proto2SchemaMessages.OptionalPrimitive.class)); }
@Test public void testRequiredPrimitiveSchema() { assertEquals( TestProtoSchemas.REQUIRED_PRIMITIVE_SCHEMA, ProtoSchemaTranslator.getSchema(Proto2SchemaMessages.RequiredPrimitive.class)); }
@Test public void testRepeatedSchema() { assertEquals( TestProtoSchemas.REPEATED_SCHEMA, ProtoSchemaTranslator.getSchema(Proto3SchemaMessages.RepeatPrimitive.class)); }
@Test public void testMapPrimitiveSchema() { assertEquals( TestProtoSchemas.MAP_PRIMITIVE_SCHEMA, ProtoSchemaTranslator.getSchema(Proto3SchemaMessages.MapPrimitive.class)); }
@Test public void testNestedSchema() { assertEquals( TestProtoSchemas.NESTED_SCHEMA, ProtoSchemaTranslator.getSchema(Proto3SchemaMessages.Nested.class)); }
@Test public void testOneOfSchema() { assertEquals( TestProtoSchemas.ONEOF_SCHEMA, ProtoSchemaTranslator.getSchema(Proto3SchemaMessages.OneOf.class)); }
@Test public void testNestedOneOfSchema() { assertEquals( TestProtoSchemas.OUTER_ONEOF_SCHEMA, ProtoSchemaTranslator.getSchema(Proto3SchemaMessages.OuterOneOf.class)); }
@Test public void testWrapperMessagesSchema() { assertEquals( TestProtoSchemas.WKT_MESSAGE_SCHEMA, ProtoSchemaTranslator.getSchema(Proto3SchemaMessages.WktMessage.class)); }
@Test public void testOptionalNestedSchema() { assertEquals( TestProtoSchemas.OPTIONAL_NESTED_SCHEMA, ProtoSchemaTranslator.getSchema(Proto2SchemaMessages.OptionalNested.class)); }
@Test public void testRequiredNestedSchema() { assertEquals( TestProtoSchemas.REQUIRED_NESTED_SCHEMA, ProtoSchemaTranslator.getSchema(Proto2SchemaMessages.RequiredNested.class)); }