Class SecretVersion.Builder (2.44.0)

public static final class SecretVersion.Builder extends GeneratedMessageV3.Builder<SecretVersion.Builder> implements SecretVersionOrBuilder

A secret version resource in the Secret Manager API.

Protobuf type google.cloud.secretmanager.v1.SecretVersion

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecretVersion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecretVersion.Builder
Overrides

build()

public SecretVersion build()
Returns
Type Description
SecretVersion

buildPartial()

public SecretVersion buildPartial()
Returns
Type Description
SecretVersion

clear()

public SecretVersion.Builder clear()
Returns
Type Description
SecretVersion.Builder
Overrides

clearClientSpecifiedPayloadChecksum()

public SecretVersion.Builder clearClientSpecifiedPayloadChecksum()

Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion.

bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

clearCreateTime()

public SecretVersion.Builder clearCreateTime()

Output only. The time at which the SecretVersion was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.Builder

clearCustomerManagedEncryption()

public SecretVersion.Builder clearCustomerManagedEncryption()

Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.

.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.Builder

clearDestroyTime()

public SecretVersion.Builder clearDestroyTime()

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.

.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.Builder

clearEtag()

public SecretVersion.Builder clearEtag()

Output only. Etag of the currently stored SecretVersion.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecretVersion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SecretVersion.Builder
Overrides

clearName()

public SecretVersion.Builder clearName()

Output only. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SecretVersion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SecretVersion.Builder
Overrides

clearReplicationStatus()

public SecretVersion.Builder clearReplicationStatus()

The replication status of the SecretVersion.

.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;

Returns
Type Description
SecretVersion.Builder

clearScheduledDestroyTime()

public SecretVersion.Builder clearScheduledDestroyTime()

Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, the version is moved to disabled state and it is scheduled for destruction. The version is destroyed only after the scheduled_destroy_time.

.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.Builder

clearState()

public SecretVersion.Builder clearState()

Output only. The current state of the SecretVersion.

.google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

clone()

public SecretVersion.Builder clone()
Returns
Type Description
SecretVersion.Builder
Overrides

getClientSpecifiedPayloadChecksum()

public boolean getClientSpecifiedPayloadChecksum()

Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion.

bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The clientSpecifiedPayloadChecksum.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which the SecretVersion was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time at which the SecretVersion was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the SecretVersion was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCustomerManagedEncryption()

public CustomerManagedEncryptionStatus getCustomerManagedEncryption()

Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.

.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomerManagedEncryptionStatus

The customerManagedEncryption.

getCustomerManagedEncryptionBuilder()

public CustomerManagedEncryptionStatus.Builder getCustomerManagedEncryptionBuilder()

Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.

.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomerManagedEncryptionStatus.Builder

getCustomerManagedEncryptionOrBuilder()

public CustomerManagedEncryptionStatusOrBuilder getCustomerManagedEncryptionOrBuilder()

Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.

.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CustomerManagedEncryptionStatusOrBuilder

getDefaultInstanceForType()

public SecretVersion getDefaultInstanceForType()
Returns
Type Description
SecretVersion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestroyTime()

public Timestamp getDestroyTime()

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.

.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The destroyTime.

getDestroyTimeBuilder()

public Timestamp.Builder getDestroyTimeBuilder()

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.

.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getDestroyTimeOrBuilder()

public TimestampOrBuilder getDestroyTimeOrBuilder()

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.

.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getEtag()

public String getEtag()

Output only. Etag of the currently stored SecretVersion.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Output only. Etag of the currently stored SecretVersion.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Output only. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getReplicationStatus()

public ReplicationStatus getReplicationStatus()

The replication status of the SecretVersion.

.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;

Returns
Type Description
ReplicationStatus

The replicationStatus.

getReplicationStatusBuilder()

public ReplicationStatus.Builder getReplicationStatusBuilder()

The replication status of the SecretVersion.

.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;

Returns
Type Description
ReplicationStatus.Builder

getReplicationStatusOrBuilder()

public ReplicationStatusOrBuilder getReplicationStatusOrBuilder()

The replication status of the SecretVersion.

.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;

Returns
Type Description
ReplicationStatusOrBuilder

getScheduledDestroyTime()

public Timestamp getScheduledDestroyTime()

Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, the version is moved to disabled state and it is scheduled for destruction. The version is destroyed only after the scheduled_destroy_time.

.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The scheduledDestroyTime.

getScheduledDestroyTimeBuilder()

public Timestamp.Builder getScheduledDestroyTimeBuilder()

Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, the version is moved to disabled state and it is scheduled for destruction. The version is destroyed only after the scheduled_destroy_time.

.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getScheduledDestroyTimeOrBuilder()

public TimestampOrBuilder getScheduledDestroyTimeOrBuilder()

Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, the version is moved to disabled state and it is scheduled for destruction. The version is destroyed only after the scheduled_destroy_time.

.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getState()

public SecretVersion.State getState()

Output only. The current state of the SecretVersion.

.google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SecretVersion.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the SecretVersion.

.google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which the SecretVersion was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasCustomerManagedEncryption()

public boolean hasCustomerManagedEncryption()

Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.

.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the customerManagedEncryption field is set.

hasDestroyTime()

public boolean hasDestroyTime()

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.

.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the destroyTime field is set.

hasReplicationStatus()

public boolean hasReplicationStatus()

The replication status of the SecretVersion.

.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;

Returns
Type Description
boolean

Whether the replicationStatus field is set.

hasScheduledDestroyTime()

public boolean hasScheduledDestroyTime()

Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, the version is moved to disabled state and it is scheduled for destruction. The version is destroyed only after the scheduled_destroy_time.

.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the scheduledDestroyTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public SecretVersion.Builder mergeCreateTime(Timestamp value)

Output only. The time at which the SecretVersion was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SecretVersion.Builder

mergeCustomerManagedEncryption(CustomerManagedEncryptionStatus value)

public SecretVersion.Builder mergeCustomerManagedEncryption(CustomerManagedEncryptionStatus value)

Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.

.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CustomerManagedEncryptionStatus
Returns
Type Description
SecretVersion.Builder

mergeDestroyTime(Timestamp value)

public SecretVersion.Builder mergeDestroyTime(Timestamp value)

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.

.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SecretVersion.Builder

mergeFrom(SecretVersion other)

public SecretVersion.Builder mergeFrom(SecretVersion other)
Parameter
Name Description
other SecretVersion
Returns
Type Description
SecretVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecretVersion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretVersion.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SecretVersion.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SecretVersion.Builder
Overrides

mergeReplicationStatus(ReplicationStatus value)

public SecretVersion.Builder mergeReplicationStatus(ReplicationStatus value)

The replication status of the SecretVersion.

.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;

Parameter
Name Description
value ReplicationStatus
Returns
Type Description
SecretVersion.Builder

mergeScheduledDestroyTime(Timestamp value)

public SecretVersion.Builder mergeScheduledDestroyTime(Timestamp value)

Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, the version is moved to disabled state and it is scheduled for destruction. The version is destroyed only after the scheduled_destroy_time.

.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SecretVersion.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecretVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecretVersion.Builder
Overrides

setClientSpecifiedPayloadChecksum(boolean value)

public SecretVersion.Builder setClientSpecifiedPayloadChecksum(boolean value)

Output only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on SecretManagerService.AddSecretVersion.

bool client_specified_payload_checksum = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The clientSpecifiedPayloadChecksum to set.

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public SecretVersion.Builder setCreateTime(Timestamp value)

Output only. The time at which the SecretVersion was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SecretVersion.Builder

setCreateTime(Timestamp.Builder builderForValue)

public SecretVersion.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time at which the SecretVersion was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SecretVersion.Builder

setCustomerManagedEncryption(CustomerManagedEncryptionStatus value)

public SecretVersion.Builder setCustomerManagedEncryption(CustomerManagedEncryptionStatus value)

Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.

.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CustomerManagedEncryptionStatus
Returns
Type Description
SecretVersion.Builder

setCustomerManagedEncryption(CustomerManagedEncryptionStatus.Builder builderForValue)

public SecretVersion.Builder setCustomerManagedEncryption(CustomerManagedEncryptionStatus.Builder builderForValue)

Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.

.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatus customer_managed_encryption = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CustomerManagedEncryptionStatus.Builder
Returns
Type Description
SecretVersion.Builder

setDestroyTime(Timestamp value)

public SecretVersion.Builder setDestroyTime(Timestamp value)

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.

.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SecretVersion.Builder

setDestroyTime(Timestamp.Builder builderForValue)

public SecretVersion.Builder setDestroyTime(Timestamp.Builder builderForValue)

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.

.google.protobuf.Timestamp destroy_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SecretVersion.Builder

setEtag(String value)

public SecretVersion.Builder setEtag(String value)

Output only. Etag of the currently stored SecretVersion.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public SecretVersion.Builder setEtagBytes(ByteString value)

Output only. Etag of the currently stored SecretVersion.

string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecretVersion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecretVersion.Builder
Overrides

setName(String value)

public SecretVersion.Builder setName(String value)

Output only. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SecretVersion.Builder setNameBytes(ByteString value)

Output only. The resource name of the SecretVersion in the format projects/*/secrets/*/versions/*.

SecretVersion IDs in a Secret start at 1 and are incremented for each subsequent version of the secret.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecretVersion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecretVersion.Builder
Overrides

setReplicationStatus(ReplicationStatus value)

public SecretVersion.Builder setReplicationStatus(ReplicationStatus value)

The replication status of the SecretVersion.

.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;

Parameter
Name Description
value ReplicationStatus
Returns
Type Description
SecretVersion.Builder

setReplicationStatus(ReplicationStatus.Builder builderForValue)

public SecretVersion.Builder setReplicationStatus(ReplicationStatus.Builder builderForValue)

The replication status of the SecretVersion.

.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;

Parameter
Name Description
builderForValue ReplicationStatus.Builder
Returns
Type Description
SecretVersion.Builder

setScheduledDestroyTime(Timestamp value)

public SecretVersion.Builder setScheduledDestroyTime(Timestamp value)

Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, the version is moved to disabled state and it is scheduled for destruction. The version is destroyed only after the scheduled_destroy_time.

.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SecretVersion.Builder

setScheduledDestroyTime(Timestamp.Builder builderForValue)

public SecretVersion.Builder setScheduledDestroyTime(Timestamp.Builder builderForValue)

Optional. Output only. Scheduled destroy time for secret version. This is a part of the Delayed secret version destroy feature. For a Secret with a valid version destroy TTL, when a secert version is destroyed, the version is moved to disabled state and it is scheduled for destruction. The version is destroyed only after the scheduled_destroy_time.

.google.protobuf.Timestamp scheduled_destroy_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SecretVersion.Builder

setState(SecretVersion.State value)

public SecretVersion.Builder setState(SecretVersion.State value)

Output only. The current state of the SecretVersion.

.google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SecretVersion.State

The state to set.

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

setStateValue(int value)

public SecretVersion.Builder setStateValue(int value)

Output only. The current state of the SecretVersion.

.google.cloud.secretmanager.v1.SecretVersion.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
SecretVersion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SecretVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecretVersion.Builder
Overrides