Package io.trino.orc.proto
Class OrcProto.Encryption
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.trino.orc.proto.OrcProto.Encryption
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,OrcProto.EncryptionOrBuilder,Serializable
- Enclosing class:
- OrcProto
public static final class OrcProto.Encryption extends com.google.protobuf.GeneratedMessageV3 implements OrcProto.EncryptionOrBuilder
Protobuf typeorc.proto.Encryption- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrcProto.Encryption.BuilderProtobuf typeorc.proto.Encryption-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intKEY_FIELD_NUMBERstatic intKEYPROVIDER_FIELD_NUMBERstatic intMASK_FIELD_NUMBERstatic com.google.protobuf.Parser<OrcProto.Encryption>PARSERDeprecated.static intVARIANTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static OrcProto.EncryptiongetDefaultInstance()OrcProto.EncryptiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()OrcProto.EncryptionKeygetKey(int index)all of the keys used in this fileintgetKeyCount()all of the keys used in this fileList<OrcProto.EncryptionKey>getKeyList()all of the keys used in this fileOrcProto.EncryptionKeyOrBuildergetKeyOrBuilder(int index)all of the keys used in this fileList<? extends OrcProto.EncryptionKeyOrBuilder>getKeyOrBuilderList()all of the keys used in this fileOrcProto.KeyProviderKindgetKeyProvider()How are the local keys encrypted?OrcProto.DataMaskgetMask(int index)all of the masks used in this fileintgetMaskCount()all of the masks used in this fileList<OrcProto.DataMask>getMaskList()all of the masks used in this fileOrcProto.DataMaskOrBuildergetMaskOrBuilder(int index)all of the masks used in this fileList<? extends OrcProto.DataMaskOrBuilder>getMaskOrBuilderList()all of the masks used in this filecom.google.protobuf.Parser<OrcProto.Encryption>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()OrcProto.EncryptionVariantgetVariants(int index)The encrypted variants.intgetVariantsCount()The encrypted variants.List<OrcProto.EncryptionVariant>getVariantsList()The encrypted variants.OrcProto.EncryptionVariantOrBuildergetVariantsOrBuilder(int index)The encrypted variants.List<? extends OrcProto.EncryptionVariantOrBuilder>getVariantsOrBuilderList()The encrypted variants.inthashCode()booleanhasKeyProvider()How are the local keys encrypted?protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OrcProto.Encryption.BuildernewBuilder()static OrcProto.Encryption.BuildernewBuilder(OrcProto.Encryption prototype)OrcProto.Encryption.BuildernewBuilderForType()protected OrcProto.Encryption.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OrcProto.EncryptionparseDelimitedFrom(InputStream input)static OrcProto.EncryptionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.EncryptionparseFrom(byte[] data)static OrcProto.EncryptionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.EncryptionparseFrom(com.google.protobuf.ByteString data)static OrcProto.EncryptionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.EncryptionparseFrom(com.google.protobuf.CodedInputStream input)static OrcProto.EncryptionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.EncryptionparseFrom(InputStream input)static OrcProto.EncryptionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OrcProto.EncryptionparseFrom(ByteBuffer data)static OrcProto.EncryptionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OrcProto.Encryption>parser()OrcProto.Encryption.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MASK_FIELD_NUMBER
public static final int MASK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VARIANTS_FIELD_NUMBER
public static final int VARIANTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEYPROVIDER_FIELD_NUMBER
public static final int KEYPROVIDER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<OrcProto.Encryption> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
-
getMaskList
public List<OrcProto.DataMask> getMaskList()
all of the masks used in this file
repeated .orc.proto.DataMask mask = 1;- Specified by:
getMaskListin interfaceOrcProto.EncryptionOrBuilder
-
getMaskOrBuilderList
public List<? extends OrcProto.DataMaskOrBuilder> getMaskOrBuilderList()
all of the masks used in this file
repeated .orc.proto.DataMask mask = 1;- Specified by:
getMaskOrBuilderListin interfaceOrcProto.EncryptionOrBuilder
-
getMaskCount
public int getMaskCount()
all of the masks used in this file
repeated .orc.proto.DataMask mask = 1;- Specified by:
getMaskCountin interfaceOrcProto.EncryptionOrBuilder
-
getMask
public OrcProto.DataMask getMask(int index)
all of the masks used in this file
repeated .orc.proto.DataMask mask = 1;- Specified by:
getMaskin interfaceOrcProto.EncryptionOrBuilder
-
getMaskOrBuilder
public OrcProto.DataMaskOrBuilder getMaskOrBuilder(int index)
all of the masks used in this file
repeated .orc.proto.DataMask mask = 1;- Specified by:
getMaskOrBuilderin interfaceOrcProto.EncryptionOrBuilder
-
getKeyList
public List<OrcProto.EncryptionKey> getKeyList()
all of the keys used in this file
repeated .orc.proto.EncryptionKey key = 2;- Specified by:
getKeyListin interfaceOrcProto.EncryptionOrBuilder
-
getKeyOrBuilderList
public List<? extends OrcProto.EncryptionKeyOrBuilder> getKeyOrBuilderList()
all of the keys used in this file
repeated .orc.proto.EncryptionKey key = 2;- Specified by:
getKeyOrBuilderListin interfaceOrcProto.EncryptionOrBuilder
-
getKeyCount
public int getKeyCount()
all of the keys used in this file
repeated .orc.proto.EncryptionKey key = 2;- Specified by:
getKeyCountin interfaceOrcProto.EncryptionOrBuilder
-
getKey
public OrcProto.EncryptionKey getKey(int index)
all of the keys used in this file
repeated .orc.proto.EncryptionKey key = 2;- Specified by:
getKeyin interfaceOrcProto.EncryptionOrBuilder
-
getKeyOrBuilder
public OrcProto.EncryptionKeyOrBuilder getKeyOrBuilder(int index)
all of the keys used in this file
repeated .orc.proto.EncryptionKey key = 2;- Specified by:
getKeyOrBuilderin interfaceOrcProto.EncryptionOrBuilder
-
getVariantsList
public List<OrcProto.EncryptionVariant> getVariantsList()
The encrypted variants. Readers should prefer the first variant that the user has access to the corresponding key. If they don't have access to any of the keys, they should get the unencrypted masked data.
repeated .orc.proto.EncryptionVariant variants = 3;- Specified by:
getVariantsListin interfaceOrcProto.EncryptionOrBuilder
-
getVariantsOrBuilderList
public List<? extends OrcProto.EncryptionVariantOrBuilder> getVariantsOrBuilderList()
The encrypted variants. Readers should prefer the first variant that the user has access to the corresponding key. If they don't have access to any of the keys, they should get the unencrypted masked data.
repeated .orc.proto.EncryptionVariant variants = 3;- Specified by:
getVariantsOrBuilderListin interfaceOrcProto.EncryptionOrBuilder
-
getVariantsCount
public int getVariantsCount()
The encrypted variants. Readers should prefer the first variant that the user has access to the corresponding key. If they don't have access to any of the keys, they should get the unencrypted masked data.
repeated .orc.proto.EncryptionVariant variants = 3;- Specified by:
getVariantsCountin interfaceOrcProto.EncryptionOrBuilder
-
getVariants
public OrcProto.EncryptionVariant getVariants(int index)
The encrypted variants. Readers should prefer the first variant that the user has access to the corresponding key. If they don't have access to any of the keys, they should get the unencrypted masked data.
repeated .orc.proto.EncryptionVariant variants = 3;- Specified by:
getVariantsin interfaceOrcProto.EncryptionOrBuilder
-
getVariantsOrBuilder
public OrcProto.EncryptionVariantOrBuilder getVariantsOrBuilder(int index)
The encrypted variants. Readers should prefer the first variant that the user has access to the corresponding key. If they don't have access to any of the keys, they should get the unencrypted masked data.
repeated .orc.proto.EncryptionVariant variants = 3;- Specified by:
getVariantsOrBuilderin interfaceOrcProto.EncryptionOrBuilder
-
hasKeyProvider
public boolean hasKeyProvider()
How are the local keys encrypted?
optional .orc.proto.KeyProviderKind keyProvider = 4;- Specified by:
hasKeyProviderin interfaceOrcProto.EncryptionOrBuilder- Returns:
- Whether the keyProvider field is set.
-
getKeyProvider
public OrcProto.KeyProviderKind getKeyProvider()
How are the local keys encrypted?
optional .orc.proto.KeyProviderKind keyProvider = 4;- Specified by:
getKeyProviderin interfaceOrcProto.EncryptionOrBuilder- Returns:
- The keyProvider.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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 OrcProto.Encryption parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.Encryption parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.Encryption parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.Encryption parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.Encryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.Encryption parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OrcProto.Encryption parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OrcProto.Encryption parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OrcProto.Encryption parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OrcProto.Encryption parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OrcProto.Encryption parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OrcProto.Encryption parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OrcProto.Encryption.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OrcProto.Encryption.Builder newBuilder()
-
newBuilder
public static OrcProto.Encryption.Builder newBuilder(OrcProto.Encryption prototype)
-
toBuilder
public OrcProto.Encryption.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OrcProto.Encryption.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OrcProto.Encryption getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OrcProto.Encryption> parser()
-
getParserForType
public com.google.protobuf.Parser<OrcProto.Encryption> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OrcProto.Encryption getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-