- 2.53.0 (latest)
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.10
- 2.2.0
- 2.1.7
- 2.0.7
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SecretVersion.BuilderImplements
SecretVersionOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecretVersion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SecretVersion.Builder |
build()
public SecretVersion build()
Type | Description |
SecretVersion |
buildPartial()
public SecretVersion buildPartial()
Type | Description |
SecretVersion |
clear()
public SecretVersion.Builder clear()
Type | Description |
SecretVersion.Builder |
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];
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];
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];
Type | Description |
SecretVersion.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SecretVersion.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SecretVersion.Builder |
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];
Type | Description |
SecretVersion.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SecretVersion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SecretVersion.Builder |
clearReplicationStatus()
public SecretVersion.Builder clearReplicationStatus()
The replication status of the SecretVersion.
.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;
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];
Type | Description |
SecretVersion.Builder | This builder for chaining. |
clone()
public SecretVersion.Builder clone()
Type | Description |
SecretVersion.Builder |
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];
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];
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];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public SecretVersion getDefaultInstanceForType()
Type | Description |
SecretVersion |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
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];
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];
Type | Description |
TimestampOrBuilder |
getEtag()
public String getEtag()
Output only. Etag of the currently stored SecretVersion.
string etag = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
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];
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];
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;
Type | Description |
ReplicationStatus | The replicationStatus. |
getReplicationStatusBuilder()
public ReplicationStatus.Builder getReplicationStatusBuilder()
The replication status of the SecretVersion.
.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;
Type | Description |
ReplicationStatus.Builder |
getReplicationStatusOrBuilder()
public ReplicationStatusOrBuilder getReplicationStatusOrBuilder()
The replication status of the SecretVersion.
.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;
Type | Description |
ReplicationStatusOrBuilder |
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];
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];
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];
Type | Description |
boolean | Whether the createTime 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];
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;
Type | Description |
boolean | Whether the replicationStatus field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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];
Name | Description |
value | Timestamp |
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];
Name | Description |
value | Timestamp |
Type | Description |
SecretVersion.Builder |
mergeFrom(SecretVersion other)
public SecretVersion.Builder mergeFrom(SecretVersion other)
Name | Description |
other | SecretVersion |
Type | Description |
SecretVersion.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SecretVersion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SecretVersion.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SecretVersion.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SecretVersion.Builder |
mergeReplicationStatus(ReplicationStatus value)
public SecretVersion.Builder mergeReplicationStatus(ReplicationStatus value)
The replication status of the SecretVersion.
.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;
Name | Description |
value | ReplicationStatus |
Type | Description |
SecretVersion.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SecretVersion.Builder |
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];
Name | Description |
value | Timestamp |
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];
Name | Description |
builderForValue | Builder |
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];
Name | Description |
value | Timestamp |
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];
Name | Description |
builderForValue | Builder |
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];
Name | Description |
value | String The etag to set. |
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];
Name | Description |
value | ByteString The bytes for etag to set. |
Type | Description |
SecretVersion.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SecretVersion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SecretVersion.Builder |
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];
Name | Description |
value | String The name to set. |
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];
Name | Description |
value | ByteString The bytes for name to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SecretVersion.Builder |
setReplicationStatus(ReplicationStatus value)
public SecretVersion.Builder setReplicationStatus(ReplicationStatus value)
The replication status of the SecretVersion.
.google.cloud.secretmanager.v1.ReplicationStatus replication_status = 5;
Name | Description |
value | ReplicationStatus |
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;
Name | Description |
builderForValue | ReplicationStatus.Builder |
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];
Name | Description |
value | SecretVersion.State The state to set. |
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];
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
SecretVersion.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SecretVersion.Builder |