public static final class Encryptionpb.EncryptedContent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder> implements Encryptionpb.EncryptedContentOrBuilder
encryptionpb.EncryptedContent| Modifier and Type | Method and Description |
|---|---|
Encryptionpb.EncryptedContent.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Encryptionpb.EncryptedContent |
build() |
Encryptionpb.EncryptedContent |
buildPartial() |
Encryptionpb.EncryptedContent.Builder |
clear() |
Encryptionpb.EncryptedContent.Builder |
clearCiphertextKey()
Encrypted data key generated by KMS and used to actually encrypt data.
|
Encryptionpb.EncryptedContent.Builder |
clearContent()
Encrypted content.
|
Encryptionpb.EncryptedContent.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Encryptionpb.EncryptedContent.Builder |
clearIv()
Initilization vector (IV) used.
|
Encryptionpb.EncryptedContent.Builder |
clearMasterKey()
Master key used to encrypt the content.
|
Encryptionpb.EncryptedContent.Builder |
clearMetadata() |
Encryptionpb.EncryptedContent.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Encryptionpb.EncryptedContent.Builder |
clone() |
boolean |
containsMetadata(String key)
Metadata of the encrypted content.
|
com.google.protobuf.ByteString |
getCiphertextKey()
Encrypted data key generated by KMS and used to actually encrypt data.
|
com.google.protobuf.ByteString |
getContent()
Encrypted content.
|
Encryptionpb.EncryptedContent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getIv()
Initilization vector (IV) used.
|
Encryptionpb.MasterKey |
getMasterKey()
Master key used to encrypt the content.
|
Encryptionpb.MasterKey.Builder |
getMasterKeyBuilder()
Master key used to encrypt the content.
|
Encryptionpb.MasterKeyOrBuilder |
getMasterKeyOrBuilder()
Master key used to encrypt the content.
|
Map<String,com.google.protobuf.ByteString> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Metadata of the encrypted content.
|
Map<String,com.google.protobuf.ByteString> |
getMetadataMap()
Metadata of the encrypted content.
|
com.google.protobuf.ByteString |
getMetadataOrDefault(String key,
com.google.protobuf.ByteString defaultValue)
Metadata of the encrypted content.
|
com.google.protobuf.ByteString |
getMetadataOrThrow(String key)
Metadata of the encrypted content.
|
Map<String,com.google.protobuf.ByteString> |
getMutableMetadata()
Deprecated.
|
boolean |
hasMasterKey()
Master key used to encrypt the content.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Encryptionpb.EncryptedContent.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Encryptionpb.EncryptedContent.Builder |
mergeFrom(Encryptionpb.EncryptedContent other) |
Encryptionpb.EncryptedContent.Builder |
mergeFrom(com.google.protobuf.Message other) |
Encryptionpb.EncryptedContent.Builder |
mergeMasterKey(Encryptionpb.MasterKey value)
Master key used to encrypt the content.
|
Encryptionpb.EncryptedContent.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Encryptionpb.EncryptedContent.Builder |
putAllMetadata(Map<String,com.google.protobuf.ByteString> values)
Metadata of the encrypted content.
|
Encryptionpb.EncryptedContent.Builder |
putMetadata(String key,
com.google.protobuf.ByteString value)
Metadata of the encrypted content.
|
Encryptionpb.EncryptedContent.Builder |
removeMetadata(String key)
Metadata of the encrypted content.
|
Encryptionpb.EncryptedContent.Builder |
setCiphertextKey(com.google.protobuf.ByteString value)
Encrypted data key generated by KMS and used to actually encrypt data.
|
Encryptionpb.EncryptedContent.Builder |
setContent(com.google.protobuf.ByteString value)
Encrypted content.
|
Encryptionpb.EncryptedContent.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Encryptionpb.EncryptedContent.Builder |
setIv(com.google.protobuf.ByteString value)
Initilization vector (IV) used.
|
Encryptionpb.EncryptedContent.Builder |
setMasterKey(Encryptionpb.MasterKey.Builder builderForValue)
Master key used to encrypt the content.
|
Encryptionpb.EncryptedContent.Builder |
setMasterKey(Encryptionpb.MasterKey value)
Master key used to encrypt the content.
|
Encryptionpb.EncryptedContent.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Encryptionpb.EncryptedContent.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Encryptionpb.EncryptedContent build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Encryptionpb.EncryptedContent buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Encryptionpb.EncryptedContent.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder mergeFrom(Encryptionpb.EncryptedContent other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public Encryptionpb.EncryptedContent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Encryptionpb.EncryptedContent.Builder>IOExceptionpublic int getMetadataCount()
Encryptionpb.EncryptedContentOrBuilderMetadata of the encrypted content. Eg. IV, method and KMS key ID It is preferred to define new fields for extra metadata than using this metadata map.
map<string, bytes> metadata = 1;getMetadataCount in interface Encryptionpb.EncryptedContentOrBuilderpublic boolean containsMetadata(String key)
Metadata of the encrypted content. Eg. IV, method and KMS key ID It is preferred to define new fields for extra metadata than using this metadata map.
map<string, bytes> metadata = 1;containsMetadata in interface Encryptionpb.EncryptedContentOrBuilder@Deprecated public Map<String,com.google.protobuf.ByteString> getMetadata()
getMetadataMap() instead.getMetadata in interface Encryptionpb.EncryptedContentOrBuilderpublic Map<String,com.google.protobuf.ByteString> getMetadataMap()
Metadata of the encrypted content. Eg. IV, method and KMS key ID It is preferred to define new fields for extra metadata than using this metadata map.
map<string, bytes> metadata = 1;getMetadataMap in interface Encryptionpb.EncryptedContentOrBuilderpublic com.google.protobuf.ByteString getMetadataOrDefault(String key, com.google.protobuf.ByteString defaultValue)
Metadata of the encrypted content. Eg. IV, method and KMS key ID It is preferred to define new fields for extra metadata than using this metadata map.
map<string, bytes> metadata = 1;getMetadataOrDefault in interface Encryptionpb.EncryptedContentOrBuilderpublic com.google.protobuf.ByteString getMetadataOrThrow(String key)
Metadata of the encrypted content. Eg. IV, method and KMS key ID It is preferred to define new fields for extra metadata than using this metadata map.
map<string, bytes> metadata = 1;getMetadataOrThrow in interface Encryptionpb.EncryptedContentOrBuilderpublic Encryptionpb.EncryptedContent.Builder clearMetadata()
public Encryptionpb.EncryptedContent.Builder removeMetadata(String key)
Metadata of the encrypted content. Eg. IV, method and KMS key ID It is preferred to define new fields for extra metadata than using this metadata map.
map<string, bytes> metadata = 1;@Deprecated public Map<String,com.google.protobuf.ByteString> getMutableMetadata()
public Encryptionpb.EncryptedContent.Builder putMetadata(String key, com.google.protobuf.ByteString value)
Metadata of the encrypted content. Eg. IV, method and KMS key ID It is preferred to define new fields for extra metadata than using this metadata map.
map<string, bytes> metadata = 1;public Encryptionpb.EncryptedContent.Builder putAllMetadata(Map<String,com.google.protobuf.ByteString> values)
Metadata of the encrypted content. Eg. IV, method and KMS key ID It is preferred to define new fields for extra metadata than using this metadata map.
map<string, bytes> metadata = 1;public com.google.protobuf.ByteString getContent()
Encrypted content.
bytes content = 2;getContent in interface Encryptionpb.EncryptedContentOrBuilderpublic Encryptionpb.EncryptedContent.Builder setContent(com.google.protobuf.ByteString value)
Encrypted content.
bytes content = 2;value - The content to set.public Encryptionpb.EncryptedContent.Builder clearContent()
Encrypted content.
bytes content = 2;public boolean hasMasterKey()
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;hasMasterKey in interface Encryptionpb.EncryptedContentOrBuilderpublic Encryptionpb.MasterKey getMasterKey()
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;getMasterKey in interface Encryptionpb.EncryptedContentOrBuilderpublic Encryptionpb.EncryptedContent.Builder setMasterKey(Encryptionpb.MasterKey value)
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;public Encryptionpb.EncryptedContent.Builder setMasterKey(Encryptionpb.MasterKey.Builder builderForValue)
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;public Encryptionpb.EncryptedContent.Builder mergeMasterKey(Encryptionpb.MasterKey value)
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;public Encryptionpb.EncryptedContent.Builder clearMasterKey()
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;public Encryptionpb.MasterKey.Builder getMasterKeyBuilder()
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;public Encryptionpb.MasterKeyOrBuilder getMasterKeyOrBuilder()
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;getMasterKeyOrBuilder in interface Encryptionpb.EncryptedContentOrBuilderpublic com.google.protobuf.ByteString getIv()
Initilization vector (IV) used.
bytes iv = 4;getIv in interface Encryptionpb.EncryptedContentOrBuilderpublic Encryptionpb.EncryptedContent.Builder setIv(com.google.protobuf.ByteString value)
Initilization vector (IV) used.
bytes iv = 4;value - The iv to set.public Encryptionpb.EncryptedContent.Builder clearIv()
Initilization vector (IV) used.
bytes iv = 4;public com.google.protobuf.ByteString getCiphertextKey()
Encrypted data key generated by KMS and used to actually encrypt data. Valid only when KMS is used.
bytes ciphertext_key = 5;getCiphertextKey in interface Encryptionpb.EncryptedContentOrBuilderpublic Encryptionpb.EncryptedContent.Builder setCiphertextKey(com.google.protobuf.ByteString value)
Encrypted data key generated by KMS and used to actually encrypt data. Valid only when KMS is used.
bytes ciphertext_key = 5;value - The ciphertextKey to set.public Encryptionpb.EncryptedContent.Builder clearCiphertextKey()
Encrypted data key generated by KMS and used to actually encrypt data. Valid only when KMS is used.
bytes ciphertext_key = 5;public final Encryptionpb.EncryptedContent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>public final Encryptionpb.EncryptedContent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>Copyright © 2025 PingCAP. All rights reserved.