public static final class EncryptionInfo.Builder extends GeneratedMessageV3.Builder<EncryptionInfo.Builder> implements EncryptionInfoOrBuilder
EncryptionInfo describes the encryption information of a cluster or a backup.
Protobuf type google.cloud.redis.cluster.v1.EncryptionInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EncryptionInfo.BuilderImplements
EncryptionInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllKmsKeyVersions(Iterable<String> values)
public EncryptionInfo.Builder addAllKmsKeyVersions(Iterable<String> values)
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The kmsKeyVersions to add. |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
addKmsKeyVersions(String value)
public EncryptionInfo.Builder addKmsKeyVersions(String value)
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The kmsKeyVersions to add. |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
addKmsKeyVersionsBytes(ByteString value)
public EncryptionInfo.Builder addKmsKeyVersionsBytes(ByteString value)
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the kmsKeyVersions to add. |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EncryptionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
build()
public EncryptionInfo build()
Returns | |
---|---|
Type | Description |
EncryptionInfo |
buildPartial()
public EncryptionInfo buildPartial()
Returns | |
---|---|
Type | Description |
EncryptionInfo |
clear()
public EncryptionInfo.Builder clear()
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
clearEncryptionType()
public EncryptionInfo.Builder clearEncryptionType()
Output only. Type of encryption.
.google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public EncryptionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
clearKmsKeyPrimaryState()
public EncryptionInfo.Builder clearKmsKeyPrimaryState()
Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.
.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
clearKmsKeyVersions()
public EncryptionInfo.Builder clearKmsKeyVersions()
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
clearLastUpdateTime()
public EncryptionInfo.Builder clearLastUpdateTime()
Output only. The most recent time when the encryption info was updated.
.google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public EncryptionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
clone()
public EncryptionInfo.Builder clone()
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
getDefaultInstanceForType()
public EncryptionInfo getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
EncryptionInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEncryptionType()
public EncryptionInfo.Type getEncryptionType()
Output only. Type of encryption.
.google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
EncryptionInfo.Type |
The encryptionType. |
getEncryptionTypeValue()
public int getEncryptionTypeValue()
Output only. Type of encryption.
.google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for encryptionType. |
getKmsKeyPrimaryState()
public EncryptionInfo.KmsKeyState getKmsKeyPrimaryState()
Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.
.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
EncryptionInfo.KmsKeyState |
The kmsKeyPrimaryState. |
getKmsKeyPrimaryStateValue()
public int getKmsKeyPrimaryStateValue()
Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.
.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for kmsKeyPrimaryState. |
getKmsKeyVersions(int index)
public String getKmsKeyVersions(int index)
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The kmsKeyVersions at the given index. |
getKmsKeyVersionsBytes(int index)
public ByteString getKmsKeyVersionsBytes(int index)
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the kmsKeyVersions at the given index. |
getKmsKeyVersionsCount()
public int getKmsKeyVersionsCount()
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
int |
The count of kmsKeyVersions. |
getKmsKeyVersionsList()
public ProtocolStringList getKmsKeyVersionsList()
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the kmsKeyVersions. |
getLastUpdateTime()
public Timestamp getLastUpdateTime()
Output only. The most recent time when the encryption info was updated.
.google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The lastUpdateTime. |
getLastUpdateTimeBuilder()
public Timestamp.Builder getLastUpdateTimeBuilder()
Output only. The most recent time when the encryption info was updated.
.google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getLastUpdateTimeOrBuilder()
public TimestampOrBuilder getLastUpdateTimeOrBuilder()
Output only. The most recent time when the encryption info was updated.
.google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasLastUpdateTime()
public boolean hasLastUpdateTime()
Output only. The most recent time when the encryption info was updated.
.google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the lastUpdateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(EncryptionInfo other)
public EncryptionInfo.Builder mergeFrom(EncryptionInfo other)
Parameter | |
---|---|
Name | Description |
other |
EncryptionInfo |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EncryptionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public EncryptionInfo.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
mergeLastUpdateTime(Timestamp value)
public EncryptionInfo.Builder mergeLastUpdateTime(Timestamp value)
Output only. The most recent time when the encryption info was updated.
.google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
setEncryptionType(EncryptionInfo.Type value)
public EncryptionInfo.Builder setEncryptionType(EncryptionInfo.Type value)
Output only. Type of encryption.
.google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
EncryptionInfo.Type The encryptionType to set. |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
setEncryptionTypeValue(int value)
public EncryptionInfo.Builder setEncryptionTypeValue(int value)
Output only. Type of encryption.
.google.cloud.redis.cluster.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for encryptionType to set. |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public EncryptionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
setKmsKeyPrimaryState(EncryptionInfo.KmsKeyState value)
public EncryptionInfo.Builder setKmsKeyPrimaryState(EncryptionInfo.KmsKeyState value)
Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.
.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
EncryptionInfo.KmsKeyState The kmsKeyPrimaryState to set. |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
setKmsKeyPrimaryStateValue(int value)
public EncryptionInfo.Builder setKmsKeyPrimaryStateValue(int value)
Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups.
.google.cloud.redis.cluster.v1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for kmsKeyPrimaryState to set. |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
setKmsKeyVersions(int index, String value)
public EncryptionInfo.Builder setKmsKeyVersions(int index, String value)
Output only. KMS key versions that are being used to protect the data at-rest.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The kmsKeyVersions to set. |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
This builder for chaining. |
setLastUpdateTime(Timestamp value)
public EncryptionInfo.Builder setLastUpdateTime(Timestamp value)
Output only. The most recent time when the encryption info was updated.
.google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
setLastUpdateTime(Timestamp.Builder builderForValue)
public EncryptionInfo.Builder setLastUpdateTime(Timestamp.Builder builderForValue)
Output only. The most recent time when the encryption info was updated.
.google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EncryptionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
EncryptionInfo.Builder |