public static final class Encryptionpb.EncryptedContent extends com.google.protobuf.GeneratedMessageV3 implements Encryptionpb.EncryptedContentOrBuilder
encryptionpb.EncryptedContent| Modifier and Type | Class and Description |
|---|---|
static class |
Encryptionpb.EncryptedContent.Builder
Protobuf type
encryptionpb.EncryptedContent |
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| Modifier and Type | Field and Description |
|---|---|
static int |
CIPHERTEXT_KEY_FIELD_NUMBER |
static int |
CONTENT_FIELD_NUMBER |
static int |
IV_FIELD_NUMBER |
static int |
MASTER_KEY_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
Metadata of the encrypted content.
|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getCiphertextKey()
Encrypted data key generated by KMS and used to actually encrypt data.
|
com.google.protobuf.ByteString |
getContent()
Encrypted content.
|
static Encryptionpb.EncryptedContent |
getDefaultInstance() |
Encryptionpb.EncryptedContent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getIv()
Initilization vector (IV) used.
|
Encryptionpb.MasterKey |
getMasterKey()
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.
|
com.google.protobuf.Parser<Encryptionpb.EncryptedContent> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasMasterKey()
Master key used to encrypt the content.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Encryptionpb.EncryptedContent.Builder |
newBuilder() |
static Encryptionpb.EncryptedContent.Builder |
newBuilder(Encryptionpb.EncryptedContent prototype) |
Encryptionpb.EncryptedContent.Builder |
newBuilderForType() |
protected Encryptionpb.EncryptedContent.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Encryptionpb.EncryptedContent |
parseDelimitedFrom(InputStream input) |
static Encryptionpb.EncryptedContent |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Encryptionpb.EncryptedContent |
parseFrom(byte[] data) |
static Encryptionpb.EncryptedContent |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Encryptionpb.EncryptedContent |
parseFrom(ByteBuffer data) |
static Encryptionpb.EncryptedContent |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Encryptionpb.EncryptedContent |
parseFrom(com.google.protobuf.ByteString data) |
static Encryptionpb.EncryptedContent |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Encryptionpb.EncryptedContent |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Encryptionpb.EncryptedContent |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Encryptionpb.EncryptedContent |
parseFrom(InputStream input) |
static Encryptionpb.EncryptedContent |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Encryptionpb.EncryptedContent> |
parser() |
Encryptionpb.EncryptedContent.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int METADATA_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int MASTER_KEY_FIELD_NUMBER
public static final int IV_FIELD_NUMBER
public static final int CIPHERTEXT_KEY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 com.google.protobuf.ByteString getContent()
Encrypted content.
bytes content = 2;getContent in interface Encryptionpb.EncryptedContentOrBuilderpublic 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.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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Encryptionpb.EncryptedContent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Encryptionpb.EncryptedContent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Encryptionpb.EncryptedContent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Encryptionpb.EncryptedContent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Encryptionpb.EncryptedContent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Encryptionpb.EncryptedContent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Encryptionpb.EncryptedContent parseFrom(InputStream input) throws IOException
IOExceptionpublic static Encryptionpb.EncryptedContent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Encryptionpb.EncryptedContent parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Encryptionpb.EncryptedContent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Encryptionpb.EncryptedContent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Encryptionpb.EncryptedContent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Encryptionpb.EncryptedContent.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Encryptionpb.EncryptedContent.Builder newBuilder()
public static Encryptionpb.EncryptedContent.Builder newBuilder(Encryptionpb.EncryptedContent prototype)
public Encryptionpb.EncryptedContent.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Encryptionpb.EncryptedContent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Encryptionpb.EncryptedContent getDefaultInstance()
public static com.google.protobuf.Parser<Encryptionpb.EncryptedContent> parser()
public com.google.protobuf.Parser<Encryptionpb.EncryptedContent> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Encryptionpb.EncryptedContent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 PingCAP. All rights reserved.