public static final class Encryptionpb.DataKey.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.DataKey.Builder> implements Encryptionpb.DataKeyOrBuilder
The key used to encrypt the user data.Protobuf type
encryptionpb.DataKey
Modifier and Type | Method and Description |
---|---|
Encryptionpb.DataKey.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Encryptionpb.DataKey |
build() |
Encryptionpb.DataKey |
buildPartial() |
Encryptionpb.DataKey.Builder |
clear() |
Encryptionpb.DataKey.Builder |
clearCreationTime()
Creation time of the key.
|
Encryptionpb.DataKey.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Encryptionpb.DataKey.Builder |
clearKey()
A sequence of secret bytes used to encrypt data.
|
Encryptionpb.DataKey.Builder |
clearMethod()
Method of encryption algorithm used to encrypted data.
|
Encryptionpb.DataKey.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Encryptionpb.DataKey.Builder |
clearWasExposed()
A flag for the key have ever been exposed.
|
Encryptionpb.DataKey.Builder |
clone() |
long |
getCreationTime()
Creation time of the key.
|
Encryptionpb.DataKey |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getKey()
A sequence of secret bytes used to encrypt data.
|
Encryptionpb.EncryptionMethod |
getMethod()
Method of encryption algorithm used to encrypted data.
|
int |
getMethodValue()
Method of encryption algorithm used to encrypted data.
|
boolean |
getWasExposed()
A flag for the key have ever been exposed.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Encryptionpb.DataKey.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Encryptionpb.DataKey.Builder |
mergeFrom(Encryptionpb.DataKey other) |
Encryptionpb.DataKey.Builder |
mergeFrom(com.google.protobuf.Message other) |
Encryptionpb.DataKey.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Encryptionpb.DataKey.Builder |
setCreationTime(long value)
Creation time of the key.
|
Encryptionpb.DataKey.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Encryptionpb.DataKey.Builder |
setKey(com.google.protobuf.ByteString value)
A sequence of secret bytes used to encrypt data.
|
Encryptionpb.DataKey.Builder |
setMethod(Encryptionpb.EncryptionMethod value)
Method of encryption algorithm used to encrypted data.
|
Encryptionpb.DataKey.Builder |
setMethodValue(int value)
Method of encryption algorithm used to encrypted data.
|
Encryptionpb.DataKey.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Encryptionpb.DataKey.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Encryptionpb.DataKey.Builder |
setWasExposed(boolean value)
A flag for the key have ever been exposed.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.DataKey.Builder>
public Encryptionpb.DataKey.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.DataKey.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.DataKey.Builder>
public Encryptionpb.DataKey getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Encryptionpb.DataKey build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Encryptionpb.DataKey buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Encryptionpb.DataKey.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.DataKey.Builder>
public Encryptionpb.DataKey.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.DataKey.Builder>
public Encryptionpb.DataKey.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.DataKey.Builder>
public Encryptionpb.DataKey.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.DataKey.Builder>
public Encryptionpb.DataKey.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.DataKey.Builder>
public Encryptionpb.DataKey.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.DataKey.Builder>
public Encryptionpb.DataKey.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Encryptionpb.DataKey.Builder>
public Encryptionpb.DataKey.Builder mergeFrom(Encryptionpb.DataKey other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.DataKey.Builder>
public Encryptionpb.DataKey.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.DataKey.Builder>
IOException
public com.google.protobuf.ByteString getKey()
A sequence of secret bytes used to encrypt data.
bytes key = 1;
getKey
in interface Encryptionpb.DataKeyOrBuilder
public Encryptionpb.DataKey.Builder setKey(com.google.protobuf.ByteString value)
A sequence of secret bytes used to encrypt data.
bytes key = 1;
value
- The key to set.public Encryptionpb.DataKey.Builder clearKey()
A sequence of secret bytes used to encrypt data.
bytes key = 1;
public int getMethodValue()
Method of encryption algorithm used to encrypted data.
.encryptionpb.EncryptionMethod method = 2;
getMethodValue
in interface Encryptionpb.DataKeyOrBuilder
public Encryptionpb.DataKey.Builder setMethodValue(int value)
Method of encryption algorithm used to encrypted data.
.encryptionpb.EncryptionMethod method = 2;
value
- The enum numeric value on the wire for method to set.public Encryptionpb.EncryptionMethod getMethod()
Method of encryption algorithm used to encrypted data.
.encryptionpb.EncryptionMethod method = 2;
getMethod
in interface Encryptionpb.DataKeyOrBuilder
public Encryptionpb.DataKey.Builder setMethod(Encryptionpb.EncryptionMethod value)
Method of encryption algorithm used to encrypted data.
.encryptionpb.EncryptionMethod method = 2;
value
- The method to set.public Encryptionpb.DataKey.Builder clearMethod()
Method of encryption algorithm used to encrypted data.
.encryptionpb.EncryptionMethod method = 2;
public long getCreationTime()
Creation time of the key.
uint64 creation_time = 3;
getCreationTime
in interface Encryptionpb.DataKeyOrBuilder
public Encryptionpb.DataKey.Builder setCreationTime(long value)
Creation time of the key.
uint64 creation_time = 3;
value
- The creationTime to set.public Encryptionpb.DataKey.Builder clearCreationTime()
Creation time of the key.
uint64 creation_time = 3;
public boolean getWasExposed()
A flag for the key have ever been exposed.
bool was_exposed = 4;
getWasExposed
in interface Encryptionpb.DataKeyOrBuilder
public Encryptionpb.DataKey.Builder setWasExposed(boolean value)
A flag for the key have ever been exposed.
bool was_exposed = 4;
value
- The wasExposed to set.public Encryptionpb.DataKey.Builder clearWasExposed()
A flag for the key have ever been exposed.
bool was_exposed = 4;
public final Encryptionpb.DataKey.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.DataKey.Builder>
public final Encryptionpb.DataKey.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Encryptionpb.DataKey.Builder>
Copyright © 2024 PingCAP. All rights reserved.