Class Function.SinkSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.apache.pulsar.functions.proto.Function.SinkSpec
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Function.SinkSpecOrBuilder
Enclosing class:
Function

public static final class Function.SinkSpec extends com.google.protobuf.GeneratedMessageV3 implements Function.SinkSpecOrBuilder
Protobuf type proto.SinkSpec
See Also:
  • Field Details

    • CLASSNAME_FIELD_NUMBER

      public static final int CLASSNAME_FIELD_NUMBER
      See Also:
    • CONFIGS_FIELD_NUMBER

      public static final int CONFIGS_FIELD_NUMBER
      See Also:
    • TYPECLASSNAME_FIELD_NUMBER

      public static final int TYPECLASSNAME_FIELD_NUMBER
      See Also:
    • TOPIC_FIELD_NUMBER

      public static final int TOPIC_FIELD_NUMBER
      See Also:
    • PRODUCERSPEC_FIELD_NUMBER

      public static final int PRODUCERSPEC_FIELD_NUMBER
      See Also:
    • SERDECLASSNAME_FIELD_NUMBER

      public static final int SERDECLASSNAME_FIELD_NUMBER
      See Also:
    • BUILTIN_FIELD_NUMBER

      public static final int BUILTIN_FIELD_NUMBER
      See Also:
    • SCHEMATYPE_FIELD_NUMBER

      public static final int SCHEMATYPE_FIELD_NUMBER
      See Also:
    • FORWARDSOURCEMESSAGEPROPERTY_FIELD_NUMBER

      public static final int FORWARDSOURCEMESSAGEPROPERTY_FIELD_NUMBER
      See Also:
    • SCHEMAPROPERTIES_FIELD_NUMBER

      public static final int SCHEMAPROPERTIES_FIELD_NUMBER
      See Also:
    • CONSUMERPROPERTIES_FIELD_NUMBER

      public static final int CONSUMERPROPERTIES_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getClassName

      public String getClassName()
      string className = 1;
      Specified by:
      getClassName in interface Function.SinkSpecOrBuilder
      Returns:
      The className.
    • getClassNameBytes

      public com.google.protobuf.ByteString getClassNameBytes()
      string className = 1;
      Specified by:
      getClassNameBytes in interface Function.SinkSpecOrBuilder
      Returns:
      The bytes for className.
    • getConfigs

      public String getConfigs()
       map in json format
       
      string configs = 2;
      Specified by:
      getConfigs in interface Function.SinkSpecOrBuilder
      Returns:
      The configs.
    • getConfigsBytes

      public com.google.protobuf.ByteString getConfigsBytes()
       map in json format
       
      string configs = 2;
      Specified by:
      getConfigsBytes in interface Function.SinkSpecOrBuilder
      Returns:
      The bytes for configs.
    • getTypeClassName

      public String getTypeClassName()
      string typeClassName = 5;
      Specified by:
      getTypeClassName in interface Function.SinkSpecOrBuilder
      Returns:
      The typeClassName.
    • getTypeClassNameBytes

      public com.google.protobuf.ByteString getTypeClassNameBytes()
      string typeClassName = 5;
      Specified by:
      getTypeClassNameBytes in interface Function.SinkSpecOrBuilder
      Returns:
      The bytes for typeClassName.
    • getTopic

      public String getTopic()
       configs used only when functions output to sink
       
      string topic = 3;
      Specified by:
      getTopic in interface Function.SinkSpecOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.ByteString getTopicBytes()
       configs used only when functions output to sink
       
      string topic = 3;
      Specified by:
      getTopicBytes in interface Function.SinkSpecOrBuilder
      Returns:
      The bytes for topic.
    • hasProducerSpec

      public boolean hasProducerSpec()
      .proto.ProducerSpec producerSpec = 11;
      Specified by:
      hasProducerSpec in interface Function.SinkSpecOrBuilder
      Returns:
      Whether the producerSpec field is set.
    • getProducerSpec

      public Function.ProducerSpec getProducerSpec()
      .proto.ProducerSpec producerSpec = 11;
      Specified by:
      getProducerSpec in interface Function.SinkSpecOrBuilder
      Returns:
      The producerSpec.
    • getProducerSpecOrBuilder

      public Function.ProducerSpecOrBuilder getProducerSpecOrBuilder()
      .proto.ProducerSpec producerSpec = 11;
      Specified by:
      getProducerSpecOrBuilder in interface Function.SinkSpecOrBuilder
    • getSerDeClassName

      public String getSerDeClassName()
      string serDeClassName = 4;
      Specified by:
      getSerDeClassName in interface Function.SinkSpecOrBuilder
      Returns:
      The serDeClassName.
    • getSerDeClassNameBytes

      public com.google.protobuf.ByteString getSerDeClassNameBytes()
      string serDeClassName = 4;
      Specified by:
      getSerDeClassNameBytes in interface Function.SinkSpecOrBuilder
      Returns:
      The bytes for serDeClassName.
    • getBuiltin

      public String getBuiltin()
       If specified, this will refer to an archive that is
       already present in the server 
       
      string builtin = 6;
      Specified by:
      getBuiltin in interface Function.SinkSpecOrBuilder
      Returns:
      The builtin.
    • getBuiltinBytes

      public com.google.protobuf.ByteString getBuiltinBytes()
       If specified, this will refer to an archive that is
       already present in the server 
       
      string builtin = 6;
      Specified by:
      getBuiltinBytes in interface Function.SinkSpecOrBuilder
      Returns:
      The bytes for builtin.
    • getSchemaType

      public String getSchemaType()
      
       Builtin schema type or custom schema class name
       
      string schemaType = 7;
      Specified by:
      getSchemaType in interface Function.SinkSpecOrBuilder
      Returns:
      The schemaType.
    • getSchemaTypeBytes

      public com.google.protobuf.ByteString getSchemaTypeBytes()
      
       Builtin schema type or custom schema class name
       
      string schemaType = 7;
      Specified by:
      getSchemaTypeBytes in interface Function.SinkSpecOrBuilder
      Returns:
      The bytes for schemaType.
    • getForwardSourceMessageProperty

      public boolean getForwardSourceMessageProperty()
      bool forwardSourceMessageProperty = 8;
      Specified by:
      getForwardSourceMessageProperty in interface Function.SinkSpecOrBuilder
      Returns:
      The forwardSourceMessageProperty.
    • getSchemaPropertiesCount

      public int getSchemaPropertiesCount()
      Description copied from interface: Function.SinkSpecOrBuilder
      map<string, string> schemaProperties = 9;
      Specified by:
      getSchemaPropertiesCount in interface Function.SinkSpecOrBuilder
    • containsSchemaProperties

      public boolean containsSchemaProperties(String key)
      map<string, string> schemaProperties = 9;
      Specified by:
      containsSchemaProperties in interface Function.SinkSpecOrBuilder
    • getSchemaProperties

      @Deprecated public Map<String,String> getSchemaProperties()
      Deprecated.
      Specified by:
      getSchemaProperties in interface Function.SinkSpecOrBuilder
    • getSchemaPropertiesMap

      public Map<String,String> getSchemaPropertiesMap()
      map<string, string> schemaProperties = 9;
      Specified by:
      getSchemaPropertiesMap in interface Function.SinkSpecOrBuilder
    • getSchemaPropertiesOrDefault

      public String getSchemaPropertiesOrDefault(String key, String defaultValue)
      map<string, string> schemaProperties = 9;
      Specified by:
      getSchemaPropertiesOrDefault in interface Function.SinkSpecOrBuilder
    • getSchemaPropertiesOrThrow

      public String getSchemaPropertiesOrThrow(String key)
      map<string, string> schemaProperties = 9;
      Specified by:
      getSchemaPropertiesOrThrow in interface Function.SinkSpecOrBuilder
    • getConsumerPropertiesCount

      public int getConsumerPropertiesCount()
      Description copied from interface: Function.SinkSpecOrBuilder
      map<string, string> consumerProperties = 10;
      Specified by:
      getConsumerPropertiesCount in interface Function.SinkSpecOrBuilder
    • containsConsumerProperties

      public boolean containsConsumerProperties(String key)
      map<string, string> consumerProperties = 10;
      Specified by:
      containsConsumerProperties in interface Function.SinkSpecOrBuilder
    • getConsumerProperties

      @Deprecated public Map<String,String> getConsumerProperties()
      Deprecated.
      Specified by:
      getConsumerProperties in interface Function.SinkSpecOrBuilder
    • getConsumerPropertiesMap

      public Map<String,String> getConsumerPropertiesMap()
      map<string, string> consumerProperties = 10;
      Specified by:
      getConsumerPropertiesMap in interface Function.SinkSpecOrBuilder
    • getConsumerPropertiesOrDefault

      public String getConsumerPropertiesOrDefault(String key, String defaultValue)
      map<string, string> consumerProperties = 10;
      Specified by:
      getConsumerPropertiesOrDefault in interface Function.SinkSpecOrBuilder
    • getConsumerPropertiesOrThrow

      public String getConsumerPropertiesOrThrow(String key)
      map<string, string> consumerProperties = 10;
      Specified by:
      getConsumerPropertiesOrThrow in interface Function.SinkSpecOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Function.SinkSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Function.SinkSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Function.SinkSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Function.SinkSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Function.SinkSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Function.SinkSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Function.SinkSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Function.SinkSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Function.SinkSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Function.SinkSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Function.SinkSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Function.SinkSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Function.SinkSpec.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Function.SinkSpec.Builder newBuilder()
    • newBuilder

      public static Function.SinkSpec.Builder newBuilder(Function.SinkSpec prototype)
    • toBuilder

      public Function.SinkSpec.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Function.SinkSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Function.SinkSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Function.SinkSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<Function.SinkSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Function.SinkSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder