Class Function.CryptoSpec

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

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

    • CRYPTOKEYREADERCLASSNAME_FIELD_NUMBER

      public static final int CRYPTOKEYREADERCLASSNAME_FIELD_NUMBER
      See Also:
    • CRYPTOKEYREADERCONFIG_FIELD_NUMBER

      public static final int CRYPTOKEYREADERCONFIG_FIELD_NUMBER
      See Also:
    • PRODUCERENCRYPTIONKEYNAME_FIELD_NUMBER

      public static final int PRODUCERENCRYPTIONKEYNAME_FIELD_NUMBER
      See Also:
    • PRODUCERCRYPTOFAILUREACTION_FIELD_NUMBER

      public static final int PRODUCERCRYPTOFAILUREACTION_FIELD_NUMBER
      See Also:
    • CONSUMERCRYPTOFAILUREACTION_FIELD_NUMBER

      public static final int CONSUMERCRYPTOFAILUREACTION_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()
    • internalGetFieldAccessorTable

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

      public String getCryptoKeyReaderClassName()
      string cryptoKeyReaderClassName = 1;
      Specified by:
      getCryptoKeyReaderClassName in interface Function.CryptoSpecOrBuilder
      Returns:
      The cryptoKeyReaderClassName.
    • getCryptoKeyReaderClassNameBytes

      public com.google.protobuf.ByteString getCryptoKeyReaderClassNameBytes()
      string cryptoKeyReaderClassName = 1;
      Specified by:
      getCryptoKeyReaderClassNameBytes in interface Function.CryptoSpecOrBuilder
      Returns:
      The bytes for cryptoKeyReaderClassName.
    • getCryptoKeyReaderConfig

      public String getCryptoKeyReaderConfig()
      string cryptoKeyReaderConfig = 2;
      Specified by:
      getCryptoKeyReaderConfig in interface Function.CryptoSpecOrBuilder
      Returns:
      The cryptoKeyReaderConfig.
    • getCryptoKeyReaderConfigBytes

      public com.google.protobuf.ByteString getCryptoKeyReaderConfigBytes()
      string cryptoKeyReaderConfig = 2;
      Specified by:
      getCryptoKeyReaderConfigBytes in interface Function.CryptoSpecOrBuilder
      Returns:
      The bytes for cryptoKeyReaderConfig.
    • getProducerEncryptionKeyNameList

      public com.google.protobuf.ProtocolStringList getProducerEncryptionKeyNameList()
       key names used by producer to encrypt data
       
      repeated string producerEncryptionKeyName = 3;
      Specified by:
      getProducerEncryptionKeyNameList in interface Function.CryptoSpecOrBuilder
      Returns:
      A list containing the producerEncryptionKeyName.
    • getProducerEncryptionKeyNameCount

      public int getProducerEncryptionKeyNameCount()
       key names used by producer to encrypt data
       
      repeated string producerEncryptionKeyName = 3;
      Specified by:
      getProducerEncryptionKeyNameCount in interface Function.CryptoSpecOrBuilder
      Returns:
      The count of producerEncryptionKeyName.
    • getProducerEncryptionKeyName

      public String getProducerEncryptionKeyName(int index)
       key names used by producer to encrypt data
       
      repeated string producerEncryptionKeyName = 3;
      Specified by:
      getProducerEncryptionKeyName in interface Function.CryptoSpecOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The producerEncryptionKeyName at the given index.
    • getProducerEncryptionKeyNameBytes

      public com.google.protobuf.ByteString getProducerEncryptionKeyNameBytes(int index)
       key names used by producer to encrypt data
       
      repeated string producerEncryptionKeyName = 3;
      Specified by:
      getProducerEncryptionKeyNameBytes in interface Function.CryptoSpecOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the producerEncryptionKeyName at the given index.
    • getProducerCryptoFailureActionValue

      public int getProducerCryptoFailureActionValue()
       define the action if producer fail to encrypt data
       one of FAIL, SEND
       
      .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4;
      Specified by:
      getProducerCryptoFailureActionValue in interface Function.CryptoSpecOrBuilder
      Returns:
      The enum numeric value on the wire for producerCryptoFailureAction.
    • getProducerCryptoFailureAction

      public Function.CryptoSpec.FailureAction getProducerCryptoFailureAction()
       define the action if producer fail to encrypt data
       one of FAIL, SEND
       
      .proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4;
      Specified by:
      getProducerCryptoFailureAction in interface Function.CryptoSpecOrBuilder
      Returns:
      The producerCryptoFailureAction.
    • getConsumerCryptoFailureActionValue

      public int getConsumerCryptoFailureActionValue()
       define the action if consumer fail to decrypt data
       one of FAIL, DISCARD, CONSUME
       
      .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5;
      Specified by:
      getConsumerCryptoFailureActionValue in interface Function.CryptoSpecOrBuilder
      Returns:
      The enum numeric value on the wire for consumerCryptoFailureAction.
    • getConsumerCryptoFailureAction

      public Function.CryptoSpec.FailureAction getConsumerCryptoFailureAction()
       define the action if consumer fail to decrypt data
       one of FAIL, DISCARD, CONSUME
       
      .proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5;
      Specified by:
      getConsumerCryptoFailureAction in interface Function.CryptoSpecOrBuilder
      Returns:
      The consumerCryptoFailureAction.
    • 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.CryptoSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Function.CryptoSpec 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.CryptoSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Function.CryptoSpec getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Function.CryptoSpec> 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.CryptoSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder