Package io.trino.orc.proto
Class OrcProto.EncryptionVariant.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
- io.trino.orc.proto.OrcProto.EncryptionVariant.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,OrcProto.EncryptionVariantOrBuilder,Cloneable
- Enclosing class:
- OrcProto.EncryptionVariant
public static final class OrcProto.EncryptionVariant.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder> implements OrcProto.EncryptionVariantOrBuilder
The description of an encryption variant. Each variant is a single subtype that is encrypted with a single key.
Protobuf typeorc.proto.EncryptionVariant
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OrcProto.EncryptionVariant.BuilderaddAllStripeStatistics(Iterable<? extends OrcProto.Stream> values)the stripe statistics for this variantOrcProto.EncryptionVariant.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OrcProto.EncryptionVariant.BuilderaddStripeStatistics(int index, OrcProto.Stream value)the stripe statistics for this variantOrcProto.EncryptionVariant.BuilderaddStripeStatistics(int index, OrcProto.Stream.Builder builderForValue)the stripe statistics for this variantOrcProto.EncryptionVariant.BuilderaddStripeStatistics(OrcProto.Stream value)the stripe statistics for this variantOrcProto.EncryptionVariant.BuilderaddStripeStatistics(OrcProto.Stream.Builder builderForValue)the stripe statistics for this variantOrcProto.Stream.BuilderaddStripeStatisticsBuilder()the stripe statistics for this variantOrcProto.Stream.BuilderaddStripeStatisticsBuilder(int index)the stripe statistics for this variantOrcProto.EncryptionVariantbuild()OrcProto.EncryptionVariantbuildPartial()OrcProto.EncryptionVariant.Builderclear()OrcProto.EncryptionVariant.BuilderclearEncryptedKey()the encrypted key for the file footerOrcProto.EncryptionVariant.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OrcProto.EncryptionVariant.BuilderclearFileStatistics()encrypted file statistics as a FileStatisticsOrcProto.EncryptionVariant.BuilderclearKey()The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.OrcProto.EncryptionVariant.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OrcProto.EncryptionVariant.BuilderclearRoot()the column id of the rootOrcProto.EncryptionVariant.BuilderclearStripeStatistics()the stripe statistics for this variantOrcProto.EncryptionVariant.Builderclone()OrcProto.EncryptionVariantgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetEncryptedKey()the encrypted key for the file footercom.google.protobuf.ByteStringgetFileStatistics()encrypted file statistics as a FileStatisticsintgetKey()The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.intgetRoot()the column id of the rootOrcProto.StreamgetStripeStatistics(int index)the stripe statistics for this variantOrcProto.Stream.BuildergetStripeStatisticsBuilder(int index)the stripe statistics for this variantList<OrcProto.Stream.Builder>getStripeStatisticsBuilderList()the stripe statistics for this variantintgetStripeStatisticsCount()the stripe statistics for this variantList<OrcProto.Stream>getStripeStatisticsList()the stripe statistics for this variantOrcProto.StreamOrBuildergetStripeStatisticsOrBuilder(int index)the stripe statistics for this variantList<? extends OrcProto.StreamOrBuilder>getStripeStatisticsOrBuilderList()the stripe statistics for this variantbooleanhasEncryptedKey()the encrypted key for the file footerbooleanhasFileStatistics()encrypted file statistics as a FileStatisticsbooleanhasKey()The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.booleanhasRoot()the column id of the rootprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OrcProto.EncryptionVariant.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OrcProto.EncryptionVariant.BuildermergeFrom(com.google.protobuf.Message other)OrcProto.EncryptionVariant.BuildermergeFrom(OrcProto.EncryptionVariant other)OrcProto.EncryptionVariant.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OrcProto.EncryptionVariant.BuilderremoveStripeStatistics(int index)the stripe statistics for this variantOrcProto.EncryptionVariant.BuildersetEncryptedKey(com.google.protobuf.ByteString value)the encrypted key for the file footerOrcProto.EncryptionVariant.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OrcProto.EncryptionVariant.BuildersetFileStatistics(com.google.protobuf.ByteString value)encrypted file statistics as a FileStatisticsOrcProto.EncryptionVariant.BuildersetKey(int value)The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.OrcProto.EncryptionVariant.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OrcProto.EncryptionVariant.BuildersetRoot(int value)the column id of the rootOrcProto.EncryptionVariant.BuildersetStripeStatistics(int index, OrcProto.Stream value)the stripe statistics for this variantOrcProto.EncryptionVariant.BuildersetStripeStatistics(int index, OrcProto.Stream.Builder builderForValue)the stripe statistics for this variantOrcProto.EncryptionVariant.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<OrcProto.EncryptionVariant.Builder>
-
clear
public OrcProto.EncryptionVariant.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
getDefaultInstanceForType
public OrcProto.EncryptionVariant getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OrcProto.EncryptionVariant build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OrcProto.EncryptionVariant buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OrcProto.EncryptionVariant.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
setField
public OrcProto.EncryptionVariant.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
clearField
public OrcProto.EncryptionVariant.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
clearOneof
public OrcProto.EncryptionVariant.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
setRepeatedField
public OrcProto.EncryptionVariant.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
addRepeatedField
public OrcProto.EncryptionVariant.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
mergeFrom
public OrcProto.EncryptionVariant.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OrcProto.EncryptionVariant.Builder>
-
mergeFrom
public OrcProto.EncryptionVariant.Builder mergeFrom(OrcProto.EncryptionVariant other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
mergeFrom
public OrcProto.EncryptionVariant.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OrcProto.EncryptionVariant.Builder>- Throws:
IOException
-
hasRoot
public boolean hasRoot()
the column id of the root
optional uint32 root = 1;- Specified by:
hasRootin interfaceOrcProto.EncryptionVariantOrBuilder- Returns:
- Whether the root field is set.
-
getRoot
public int getRoot()
the column id of the root
optional uint32 root = 1;- Specified by:
getRootin interfaceOrcProto.EncryptionVariantOrBuilder- Returns:
- The root.
-
setRoot
public OrcProto.EncryptionVariant.Builder setRoot(int value)
the column id of the root
optional uint32 root = 1;- Parameters:
value- The root to set.- Returns:
- This builder for chaining.
-
clearRoot
public OrcProto.EncryptionVariant.Builder clearRoot()
the column id of the root
optional uint32 root = 1;- Returns:
- This builder for chaining.
-
hasKey
public boolean hasKey()
The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.
optional uint32 key = 2;- Specified by:
hasKeyin interfaceOrcProto.EncryptionVariantOrBuilder- Returns:
- Whether the key field is set.
-
getKey
public int getKey()
The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.
optional uint32 key = 2;- Specified by:
getKeyin interfaceOrcProto.EncryptionVariantOrBuilder- Returns:
- The key.
-
setKey
public OrcProto.EncryptionVariant.Builder setKey(int value)
The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.
optional uint32 key = 2;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public OrcProto.EncryptionVariant.Builder clearKey()
The master key that was used to encrypt the local key, referenced as an index into the Encryption.key list.
optional uint32 key = 2;- Returns:
- This builder for chaining.
-
hasEncryptedKey
public boolean hasEncryptedKey()
the encrypted key for the file footer
optional bytes encryptedKey = 3;- Specified by:
hasEncryptedKeyin interfaceOrcProto.EncryptionVariantOrBuilder- Returns:
- Whether the encryptedKey field is set.
-
getEncryptedKey
public com.google.protobuf.ByteString getEncryptedKey()
the encrypted key for the file footer
optional bytes encryptedKey = 3;- Specified by:
getEncryptedKeyin interfaceOrcProto.EncryptionVariantOrBuilder- Returns:
- The encryptedKey.
-
setEncryptedKey
public OrcProto.EncryptionVariant.Builder setEncryptedKey(com.google.protobuf.ByteString value)
the encrypted key for the file footer
optional bytes encryptedKey = 3;- Parameters:
value- The encryptedKey to set.- Returns:
- This builder for chaining.
-
clearEncryptedKey
public OrcProto.EncryptionVariant.Builder clearEncryptedKey()
the encrypted key for the file footer
optional bytes encryptedKey = 3;- Returns:
- This builder for chaining.
-
getStripeStatisticsList
public List<OrcProto.Stream> getStripeStatisticsList()
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;- Specified by:
getStripeStatisticsListin interfaceOrcProto.EncryptionVariantOrBuilder
-
getStripeStatisticsCount
public int getStripeStatisticsCount()
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;- Specified by:
getStripeStatisticsCountin interfaceOrcProto.EncryptionVariantOrBuilder
-
getStripeStatistics
public OrcProto.Stream getStripeStatistics(int index)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;- Specified by:
getStripeStatisticsin interfaceOrcProto.EncryptionVariantOrBuilder
-
setStripeStatistics
public OrcProto.EncryptionVariant.Builder setStripeStatistics(int index, OrcProto.Stream value)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
setStripeStatistics
public OrcProto.EncryptionVariant.Builder setStripeStatistics(int index, OrcProto.Stream.Builder builderForValue)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
addStripeStatistics
public OrcProto.EncryptionVariant.Builder addStripeStatistics(OrcProto.Stream value)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
addStripeStatistics
public OrcProto.EncryptionVariant.Builder addStripeStatistics(int index, OrcProto.Stream value)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
addStripeStatistics
public OrcProto.EncryptionVariant.Builder addStripeStatistics(OrcProto.Stream.Builder builderForValue)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
addStripeStatistics
public OrcProto.EncryptionVariant.Builder addStripeStatistics(int index, OrcProto.Stream.Builder builderForValue)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
addAllStripeStatistics
public OrcProto.EncryptionVariant.Builder addAllStripeStatistics(Iterable<? extends OrcProto.Stream> values)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
clearStripeStatistics
public OrcProto.EncryptionVariant.Builder clearStripeStatistics()
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
removeStripeStatistics
public OrcProto.EncryptionVariant.Builder removeStripeStatistics(int index)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
getStripeStatisticsBuilder
public OrcProto.Stream.Builder getStripeStatisticsBuilder(int index)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
getStripeStatisticsOrBuilder
public OrcProto.StreamOrBuilder getStripeStatisticsOrBuilder(int index)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;- Specified by:
getStripeStatisticsOrBuilderin interfaceOrcProto.EncryptionVariantOrBuilder
-
getStripeStatisticsOrBuilderList
public List<? extends OrcProto.StreamOrBuilder> getStripeStatisticsOrBuilderList()
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;- Specified by:
getStripeStatisticsOrBuilderListin interfaceOrcProto.EncryptionVariantOrBuilder
-
addStripeStatisticsBuilder
public OrcProto.Stream.Builder addStripeStatisticsBuilder()
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
addStripeStatisticsBuilder
public OrcProto.Stream.Builder addStripeStatisticsBuilder(int index)
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
getStripeStatisticsBuilderList
public List<OrcProto.Stream.Builder> getStripeStatisticsBuilderList()
the stripe statistics for this variant
repeated .orc.proto.Stream stripeStatistics = 4;
-
hasFileStatistics
public boolean hasFileStatistics()
encrypted file statistics as a FileStatistics
optional bytes fileStatistics = 5;- Specified by:
hasFileStatisticsin interfaceOrcProto.EncryptionVariantOrBuilder- Returns:
- Whether the fileStatistics field is set.
-
getFileStatistics
public com.google.protobuf.ByteString getFileStatistics()
encrypted file statistics as a FileStatistics
optional bytes fileStatistics = 5;- Specified by:
getFileStatisticsin interfaceOrcProto.EncryptionVariantOrBuilder- Returns:
- The fileStatistics.
-
setFileStatistics
public OrcProto.EncryptionVariant.Builder setFileStatistics(com.google.protobuf.ByteString value)
encrypted file statistics as a FileStatistics
optional bytes fileStatistics = 5;- Parameters:
value- The fileStatistics to set.- Returns:
- This builder for chaining.
-
clearFileStatistics
public OrcProto.EncryptionVariant.Builder clearFileStatistics()
encrypted file statistics as a FileStatistics
optional bytes fileStatistics = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final OrcProto.EncryptionVariant.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
mergeUnknownFields
public final OrcProto.EncryptionVariant.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OrcProto.EncryptionVariant.Builder>
-
-