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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>
public Encryptionpb.EncryptedContent getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Encryptionpb.EncryptedContent build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Encryptionpb.EncryptedContent buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Encryptionpb.EncryptedContent.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Encryptionpb.EncryptedContent.Builder>
IOException
public int getMetadataCount()
Encryptionpb.EncryptedContentOrBuilder
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;
getMetadataCount
in interface Encryptionpb.EncryptedContentOrBuilder
public 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.EncryptedContentOrBuilder
public 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.EncryptedContentOrBuilder
public 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.EncryptedContentOrBuilder
public 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.EncryptedContentOrBuilder
public 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.EncryptedContentOrBuilder
public 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.EncryptedContentOrBuilder
public Encryptionpb.MasterKey getMasterKey()
Master key used to encrypt the content.
.encryptionpb.MasterKey master_key = 3;
getMasterKey
in interface Encryptionpb.EncryptedContentOrBuilder
public 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.EncryptedContentOrBuilder
public com.google.protobuf.ByteString getIv()
Initilization vector (IV) used.
bytes iv = 4;
getIv
in interface Encryptionpb.EncryptedContentOrBuilder
public 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.EncryptedContentOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.EncryptedContent.Builder>
Copyright © 2024 PingCAP. All rights reserved.