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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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 com.google.protobuf.ByteString getContent()
Encrypted content.
bytes content = 2;
getContent
in interface Encryptionpb.EncryptedContentOrBuilder
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.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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Encryptionpb.EncryptedContent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Encryptionpb.EncryptedContent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Encryptionpb.EncryptedContent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Encryptionpb.EncryptedContent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Encryptionpb.EncryptedContent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Encryptionpb.EncryptedContent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Encryptionpb.EncryptedContent parseFrom(InputStream input) throws IOException
IOException
public static Encryptionpb.EncryptedContent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Encryptionpb.EncryptedContent parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Encryptionpb.EncryptedContent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Encryptionpb.EncryptedContent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Encryptionpb.EncryptedContent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Encryptionpb.EncryptedContent.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Encryptionpb.EncryptedContent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Encryptionpb.EncryptedContent getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2024 PingCAP. All rights reserved.