@Test public void introspection() throws Exception { Marshaller<Enum> enumMarshaller = ProtoLiteUtils.marshaller(Enum.getDefaultInstance()); PrototypeMarshaller<Enum> prototypeMarshaller = (PrototypeMarshaller<Enum>) enumMarshaller; assertSame(Enum.getDefaultInstance(), prototypeMarshaller.getMessagePrototype()); assertSame(Enum.class, prototypeMarshaller.getMessageClass()); }
public static <T extends MessageLite> Marshaller<T> marshaller(T defaultInstance) { return new MessageMarshaller<T>(defaultInstance); }
ProtoLiteUtils { public static <T extends MessageLite> Marshaller<T> marshaller(T defaultInstance) { return new MessageMarshaller<T>(defaultInstance); } }
ProtoLiteUtils { public static <T extends MessageLite> Marshaller<T> marshaller(T defaultInstance) { return new MessageMarshaller<T>(defaultInstance); } private  ProtoLiteUtils(); }
ProtoLiteUtils { public static <T extends MessageLite> Marshaller<T> marshaller(T defaultInstance) { return new MessageMarshaller<T>(defaultInstance); } private  ProtoLiteUtils(); @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1787") static void setExtensionRegistry(ExtensionRegistryLite newRegistry); static Marshaller<T> marshaller(T defaultInstance); static Metadata.BinaryMarshaller<T> metadataMarshaller(
      T defaultInstance); }
ProtoLiteUtils { public static <T extends MessageLite> Marshaller<T> marshaller(T defaultInstance) { return new MessageMarshaller<T>(defaultInstance); } private  ProtoLiteUtils(); @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1787") static void setExtensionRegistry(ExtensionRegistryLite newRegistry); static Marshaller<T> marshaller(T defaultInstance); static Metadata.BinaryMarshaller<T> metadataMarshaller(
      T defaultInstance);  }