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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeproto.CryptoSpecstatic enumProtobuf enumproto.CryptoSpec.FailureActionNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleandefine the action if consumer fail to decrypt data one of FAIL, DISCARD, CONSUMEintdefine the action if consumer fail to decrypt data one of FAIL, DISCARD, CONSUMEstring cryptoKeyReaderClassName = 1;com.google.protobuf.ByteStringstring cryptoKeyReaderClassName = 1;string cryptoKeyReaderConfig = 2;com.google.protobuf.ByteStringstring cryptoKeyReaderConfig = 2;static Function.CryptoSpecstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<Function.CryptoSpec>define the action if producer fail to encrypt data one of FAIL, SENDintdefine the action if producer fail to encrypt data one of FAIL, SENDgetProducerEncryptionKeyName(int index) key names used by producer to encrypt datacom.google.protobuf.ByteStringgetProducerEncryptionKeyNameBytes(int index) key names used by producer to encrypt dataintkey names used by producer to encrypt datacom.google.protobuf.ProtocolStringListkey names used by producer to encrypt dataintinthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Function.CryptoSpec.Builderstatic Function.CryptoSpec.BuildernewBuilder(Function.CryptoSpec prototype) protected Function.CryptoSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Function.CryptoSpecparseDelimitedFrom(InputStream input) static Function.CryptoSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.CryptoSpecparseFrom(byte[] data) static Function.CryptoSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.CryptoSpecparseFrom(com.google.protobuf.ByteString data) static Function.CryptoSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.CryptoSpecparseFrom(com.google.protobuf.CodedInputStream input) static Function.CryptoSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.CryptoSpecparseFrom(InputStream input) static Function.CryptoSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Function.CryptoSpecparseFrom(ByteBuffer data) static Function.CryptoSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Function.CryptoSpec>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCryptoKeyReaderClassName
string cryptoKeyReaderClassName = 1;- Specified by:
getCryptoKeyReaderClassNamein interfaceFunction.CryptoSpecOrBuilder- Returns:
- The cryptoKeyReaderClassName.
-
getCryptoKeyReaderClassNameBytes
public com.google.protobuf.ByteString getCryptoKeyReaderClassNameBytes()string cryptoKeyReaderClassName = 1;- Specified by:
getCryptoKeyReaderClassNameBytesin interfaceFunction.CryptoSpecOrBuilder- Returns:
- The bytes for cryptoKeyReaderClassName.
-
getCryptoKeyReaderConfig
string cryptoKeyReaderConfig = 2;- Specified by:
getCryptoKeyReaderConfigin interfaceFunction.CryptoSpecOrBuilder- Returns:
- The cryptoKeyReaderConfig.
-
getCryptoKeyReaderConfigBytes
public com.google.protobuf.ByteString getCryptoKeyReaderConfigBytes()string cryptoKeyReaderConfig = 2;- Specified by:
getCryptoKeyReaderConfigBytesin interfaceFunction.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:
getProducerEncryptionKeyNameListin interfaceFunction.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:
getProducerEncryptionKeyNameCountin interfaceFunction.CryptoSpecOrBuilder- Returns:
- The count of producerEncryptionKeyName.
-
getProducerEncryptionKeyName
key names used by producer to encrypt data
repeated string producerEncryptionKeyName = 3;- Specified by:
getProducerEncryptionKeyNamein interfaceFunction.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:
getProducerEncryptionKeyNameBytesin interfaceFunction.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:
getProducerCryptoFailureActionValuein interfaceFunction.CryptoSpecOrBuilder- Returns:
- The enum numeric value on the wire for producerCryptoFailureAction.
-
getProducerCryptoFailureAction
define the action if producer fail to encrypt data one of FAIL, SEND
.proto.CryptoSpec.FailureAction producerCryptoFailureAction = 4;- Specified by:
getProducerCryptoFailureActionin interfaceFunction.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:
getConsumerCryptoFailureActionValuein interfaceFunction.CryptoSpecOrBuilder- Returns:
- The enum numeric value on the wire for consumerCryptoFailureAction.
-
getConsumerCryptoFailureAction
define the action if consumer fail to decrypt data one of FAIL, DISCARD, CONSUME
.proto.CryptoSpec.FailureAction consumerCryptoFailureAction = 5;- Specified by:
getConsumerCryptoFailureActionin interfaceFunction.CryptoSpecOrBuilder- Returns:
- The consumerCryptoFailureAction.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Function.CryptoSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Function.CryptoSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-