类 ProtobufNativeSchema<T extends com.google.protobuf.GeneratedMessageV3>

  • 所有已实现的接口:
    java.lang.Cloneable, org.apache.pulsar.client.api.Schema<T>

    public class ProtobufNativeSchema<T extends com.google.protobuf.GeneratedMessageV3>
    extends AbstractStructSchema<T>
    A schema implementation to deal with protobuf generated messages.
    • 字段详细资料

      • PARSING_INFO_PROPERTY

        public static final java.lang.String PARSING_INFO_PROPERTY
        另请参阅:
        常量字段值
    • 方法详细资料

      • getProtobufNativeSchema

        public com.google.protobuf.Descriptors.Descriptor getProtobufNativeSchema()
      • getNativeSchema

        public java.util.Optional<java.lang.Object> getNativeSchema()
      • of

        public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufNativeSchema<T> of​(java.lang.Class<T> pojo)
      • ofGenericClass

        public static <T> ProtobufNativeSchema ofGenericClass​(java.lang.Class<T> pojo,
                                                              java.util.Map<java.lang.String,​java.lang.String> properties)
      • of

        public static <T> ProtobufNativeSchema of​(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition)
      • of

        public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufNativeSchema<T> of​(java.lang.Class pojo,
                                                                                                    java.util.Map<java.lang.String,​java.lang.String> properties)