- 2.54.0 (latest)
- 2.53.0
- 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 Secret.Builder extends GeneratedMessageV3.Builder<Secret.Builder> implements SecretOrBuilder
A Secret is a logical secret whose value and versions can be accessed. A Secret is made up of zero or more SecretVersions that represent the secret data.
Protobuf type google.cloud.secretmanager.v1.Secret
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Secret.BuilderImplements
SecretOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllTopics(Iterable<? extends Topic> values)
public Secret.Builder addAllTopics(Iterable<? extends Topic> values)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
values | Iterable<? extends com.google.cloud.secretmanager.v1.Topic> |
Type | Description |
Secret.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Secret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Secret.Builder |
addTopics(Topic value)
public Secret.Builder addTopics(Topic value)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Topic |
Type | Description |
Secret.Builder |
addTopics(Topic.Builder builderForValue)
public Secret.Builder addTopics(Topic.Builder builderForValue)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | Topic.Builder |
Type | Description |
Secret.Builder |
addTopics(int index, Topic value)
public Secret.Builder addTopics(int index, Topic value)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
value | Topic |
Type | Description |
Secret.Builder |
addTopics(int index, Topic.Builder builderForValue)
public Secret.Builder addTopics(int index, Topic.Builder builderForValue)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
builderForValue | Topic.Builder |
Type | Description |
Secret.Builder |
addTopicsBuilder()
public Topic.Builder addTopicsBuilder()
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Topic.Builder |
addTopicsBuilder(int index)
public Topic.Builder addTopicsBuilder(int index)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
Topic.Builder |
build()
public Secret build()
Type | Description |
Secret |
buildPartial()
public Secret buildPartial()
Type | Description |
Secret |
clear()
public Secret.Builder clear()
Type | Description |
Secret.Builder |
clearCreateTime()
public Secret.Builder clearCreateTime()
Output only. The time at which the Secret was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Secret.Builder |
clearEtag()
public Secret.Builder clearEtag()
Optional. Etag of the currently stored Secret.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Secret.Builder | This builder for chaining. |
clearExpiration()
public Secret.Builder clearExpiration()
Type | Description |
Secret.Builder |
clearExpireTime()
public Secret.Builder clearExpireTime()
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Secret.Builder |
clearField(Descriptors.FieldDescriptor field)
public Secret.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Secret.Builder |
clearLabels()
public Secret.Builder clearLabels()
Type | Description |
Secret.Builder |
clearName()
public Secret.Builder clearName()
Output only. The resource name of the Secret in the format projects/*/secrets/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Secret.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Secret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Secret.Builder |
clearReplication()
public Secret.Builder clearReplication()
Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
.google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Type | Description |
Secret.Builder |
clearRotation()
public Secret.Builder clearRotation()
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Secret.Builder |
clearTopics()
public Secret.Builder clearTopics()
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Secret.Builder |
clearTtl()
public Secret.Builder clearTtl()
Input only. The TTL for the Secret.
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
Type | Description |
Secret.Builder |
clearVersionAliases()
public Secret.Builder clearVersionAliases()
Type | Description |
Secret.Builder |
clone()
public Secret.Builder clone()
Type | Description |
Secret.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: \p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
map<string, string> labels = 4;
Name | Description |
key | String |
Type | Description |
boolean |
containsVersionAliases(String key)
public boolean containsVersionAliases(String key)
Optional. Mapping from version alias to version name.
A version alias is a string with a maximum length of 63 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-
)
and underscore ('_') characters. An alias string must start with a
letter and cannot be the string 'latest' or 'NEW'.
No more than 50 aliases can be assigned to a given secret.
Version-Alias pairs will be viewable via GetSecret and modifiable via
UpdateSecret. At launch access by alias will only be supported on
GetSecretVersion and AccessSecretVersion.
map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time at which the Secret was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time at which the Secret was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which the Secret was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Secret getDefaultInstanceForType()
Type | Description |
Secret |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEtag()
public String getEtag()
Optional. Etag of the currently stored Secret.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The etag. |
getEtagBytes()
public ByteString getEtagBytes()
Optional. Etag of the currently stored Secret.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for etag. |
getExpirationCase()
public Secret.ExpirationCase getExpirationCase()
Type | Description |
Secret.ExpirationCase |
getExpireTime()
public Timestamp getExpireTime()
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Timestamp | The expireTime. |
getExpireTimeBuilder()
public Timestamp.Builder getExpireTimeBuilder()
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Builder |
getExpireTimeOrBuilder()
public TimestampOrBuilder getExpireTimeOrBuilder()
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
TimestampOrBuilder |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: \p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
map<string, string> labels = 4;
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: \p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
map<string, string> labels = 4;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: \p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
map<string, string> labels = 4;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: \p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
map<string, string> labels = 4;
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getMutableVersionAliases()
public Map<String,Long> getMutableVersionAliases()
Use alternate mutation accessors instead.
Type | Description |
Map<String,java.lang.Long> |
getName()
public String getName()
Output only. The resource name of the Secret in the format projects/*/secrets/*
.
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 Secret in the format projects/*/secrets/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for name. |
getReplication()
public Replication getReplication()
Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
.google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Type | Description |
Replication | The replication. |
getReplicationBuilder()
public Replication.Builder getReplicationBuilder()
Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
.google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Type | Description |
Replication.Builder |
getReplicationOrBuilder()
public ReplicationOrBuilder getReplicationOrBuilder()
Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
.google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Type | Description |
ReplicationOrBuilder |
getRotation()
public Rotation getRotation()
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Rotation | The rotation. |
getRotationBuilder()
public Rotation.Builder getRotationBuilder()
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Rotation.Builder |
getRotationOrBuilder()
public RotationOrBuilder getRotationOrBuilder()
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
RotationOrBuilder |
getTopics(int index)
public Topic getTopics(int index)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
Topic |
getTopicsBuilder(int index)
public Topic.Builder getTopicsBuilder(int index)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
Topic.Builder |
getTopicsBuilderList()
public List<Topic.Builder> getTopicsBuilderList()
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<Builder> |
getTopicsCount()
public int getTopicsCount()
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int |
getTopicsList()
public List<Topic> getTopicsList()
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<Topic> |
getTopicsOrBuilder(int index)
public TopicOrBuilder getTopicsOrBuilder(int index)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
TopicOrBuilder |
getTopicsOrBuilderList()
public List<? extends TopicOrBuilder> getTopicsOrBuilderList()
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<? extends com.google.cloud.secretmanager.v1.TopicOrBuilder> |
getTtl()
public Duration getTtl()
Input only. The TTL for the Secret.
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
Type | Description |
Duration | The ttl. |
getTtlBuilder()
public Duration.Builder getTtlBuilder()
Input only. The TTL for the Secret.
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
Type | Description |
Builder |
getTtlOrBuilder()
public DurationOrBuilder getTtlOrBuilder()
Input only. The TTL for the Secret.
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
Type | Description |
DurationOrBuilder |
getVersionAliases()
public Map<String,Long> getVersionAliases()
Use #getVersionAliasesMap() instead.
Type | Description |
Map<String,java.lang.Long> |
getVersionAliasesCount()
public int getVersionAliasesCount()
Optional. Mapping from version alias to version name.
A version alias is a string with a maximum length of 63 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-
)
and underscore ('_') characters. An alias string must start with a
letter and cannot be the string 'latest' or 'NEW'.
No more than 50 aliases can be assigned to a given secret.
Version-Alias pairs will be viewable via GetSecret and modifiable via
UpdateSecret. At launch access by alias will only be supported on
GetSecretVersion and AccessSecretVersion.
map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int |
getVersionAliasesMap()
public Map<String,Long> getVersionAliasesMap()
Optional. Mapping from version alias to version name.
A version alias is a string with a maximum length of 63 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-
)
and underscore ('_') characters. An alias string must start with a
letter and cannot be the string 'latest' or 'NEW'.
No more than 50 aliases can be assigned to a given secret.
Version-Alias pairs will be viewable via GetSecret and modifiable via
UpdateSecret. At launch access by alias will only be supported on
GetSecretVersion and AccessSecretVersion.
map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Map<String,java.lang.Long> |
getVersionAliasesOrDefault(String key, long defaultValue)
public long getVersionAliasesOrDefault(String key, long defaultValue)
Optional. Mapping from version alias to version name.
A version alias is a string with a maximum length of 63 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-
)
and underscore ('_') characters. An alias string must start with a
letter and cannot be the string 'latest' or 'NEW'.
No more than 50 aliases can be assigned to a given secret.
Version-Alias pairs will be viewable via GetSecret and modifiable via
UpdateSecret. At launch access by alias will only be supported on
GetSecretVersion and AccessSecretVersion.
map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
defaultValue | long |
Type | Description |
long |
getVersionAliasesOrThrow(String key)
public long getVersionAliasesOrThrow(String key)
Optional. Mapping from version alias to version name.
A version alias is a string with a maximum length of 63 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-
)
and underscore ('_') characters. An alias string must start with a
letter and cannot be the string 'latest' or 'NEW'.
No more than 50 aliases can be assigned to a given secret.
Version-Alias pairs will be viewable via GetSecret and modifiable via
UpdateSecret. At launch access by alias will only be supported on
GetSecretVersion and AccessSecretVersion.
map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
long |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time at which the Secret was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the createTime field is set. |
hasExpireTime()
public boolean hasExpireTime()
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the expireTime field is set. |
hasReplication()
public boolean hasReplication()
Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
.google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the replication field is set. |
hasRotation()
public boolean hasRotation()
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the rotation field is set. |
hasTtl()
public boolean hasTtl()
Input only. The TTL for the Secret.
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
Type | Description |
boolean | Whether the ttl field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Secret.Builder mergeCreateTime(Timestamp value)
Output only. The time at which the Secret was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Secret.Builder |
mergeExpireTime(Timestamp value)
public Secret.Builder mergeExpireTime(Timestamp value)
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Timestamp |
Type | Description |
Secret.Builder |
mergeFrom(Secret other)
public Secret.Builder mergeFrom(Secret other)
Name | Description |
other | Secret |
Type | Description |
Secret.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Secret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Secret.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Secret.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Secret.Builder |
mergeReplication(Replication value)
public Secret.Builder mergeReplication(Replication value)
Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
.google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Replication |
Type | Description |
Secret.Builder |
mergeRotation(Rotation value)
public Secret.Builder mergeRotation(Rotation value)
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Rotation |
Type | Description |
Secret.Builder |
mergeTtl(Duration value)
public Secret.Builder mergeTtl(Duration value)
Input only. The TTL for the Secret.
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
Name | Description |
value | Duration |
Type | Description |
Secret.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Secret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Secret.Builder |
putAllLabels(Map<String,String> values)
public Secret.Builder putAllLabels(Map<String,String> values)
The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: \p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
map<string, string> labels = 4;
Name | Description |
values | Map<String,String> |
Type | Description |
Secret.Builder |
putAllVersionAliases(Map<String,Long> values)
public Secret.Builder putAllVersionAliases(Map<String,Long> values)
Optional. Mapping from version alias to version name.
A version alias is a string with a maximum length of 63 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-
)
and underscore ('_') characters. An alias string must start with a
letter and cannot be the string 'latest' or 'NEW'.
No more than 50 aliases can be assigned to a given secret.
Version-Alias pairs will be viewable via GetSecret and modifiable via
UpdateSecret. At launch access by alias will only be supported on
GetSecretVersion and AccessSecretVersion.
map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
values | Map<String,java.lang.Long> |
Type | Description |
Secret.Builder |
putLabels(String key, String value)
public Secret.Builder putLabels(String key, String value)
The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: \p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
map<string, string> labels = 4;
Name | Description |
key | String |
value | String |
Type | Description |
Secret.Builder |
putVersionAliases(String key, long value)
public Secret.Builder putVersionAliases(String key, long value)
Optional. Mapping from version alias to version name.
A version alias is a string with a maximum length of 63 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-
)
and underscore ('_') characters. An alias string must start with a
letter and cannot be the string 'latest' or 'NEW'.
No more than 50 aliases can be assigned to a given secret.
Version-Alias pairs will be viewable via GetSecret and modifiable via
UpdateSecret. At launch access by alias will only be supported on
GetSecretVersion and AccessSecretVersion.
map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
value | long |
Type | Description |
Secret.Builder |
removeLabels(String key)
public Secret.Builder removeLabels(String key)
The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
of maximum 128 bytes, and must conform to the following PCRE regular
expression: \p{Ll}\p{Lo}{0,62}
Label values must be between 0 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE
regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
No more than 64 labels can be assigned to a given resource.
map<string, string> labels = 4;
Name | Description |
key | String |
Type | Description |
Secret.Builder |
removeTopics(int index)
public Secret.Builder removeTopics(int index)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
Secret.Builder |
removeVersionAliases(String key)
public Secret.Builder removeVersionAliases(String key)
Optional. Mapping from version alias to version name.
A version alias is a string with a maximum length of 63 characters and can
contain uppercase and lowercase letters, numerals, and the hyphen (-
)
and underscore ('_') characters. An alias string must start with a
letter and cannot be the string 'latest' or 'NEW'.
No more than 50 aliases can be assigned to a given secret.
Version-Alias pairs will be viewable via GetSecret and modifiable via
UpdateSecret. At launch access by alias will only be supported on
GetSecretVersion and AccessSecretVersion.
map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
Secret.Builder |
setCreateTime(Timestamp value)
public Secret.Builder setCreateTime(Timestamp value)
Output only. The time at which the Secret was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Secret.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Secret.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time at which the Secret was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Secret.Builder |
setEtag(String value)
public Secret.Builder setEtag(String value)
Optional. Etag of the currently stored Secret.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The etag to set. |
Type | Description |
Secret.Builder | This builder for chaining. |
setEtagBytes(ByteString value)
public Secret.Builder setEtagBytes(ByteString value)
Optional. Etag of the currently stored Secret.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for etag to set. |
Type | Description |
Secret.Builder | This builder for chaining. |
setExpireTime(Timestamp value)
public Secret.Builder setExpireTime(Timestamp value)
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Timestamp |
Type | Description |
Secret.Builder |
setExpireTime(Timestamp.Builder builderForValue)
public Secret.Builder setExpireTime(Timestamp.Builder builderForValue)
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is always provided on output, regardless of what was sent on input.
.google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | Builder |
Type | Description |
Secret.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Secret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Secret.Builder |
setName(String value)
public Secret.Builder setName(String value)
Output only. The resource name of the Secret in the format projects/*/secrets/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The name to set. |
Type | Description |
Secret.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Secret.Builder setNameBytes(ByteString value)
Output only. The resource name of the Secret in the format projects/*/secrets/*
.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Secret.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Secret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Secret.Builder |
setReplication(Replication value)
public Secret.Builder setReplication(Replication value)
Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
.google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Replication |
Type | Description |
Secret.Builder |
setReplication(Replication.Builder builderForValue)
public Secret.Builder setReplication(Replication.Builder builderForValue)
Required. Immutable. The replication policy of the secret data attached to the Secret. The replication policy cannot be changed after the Secret has been created.
.google.cloud.secretmanager.v1.Replication replication = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | Replication.Builder |
Type | Description |
Secret.Builder |
setRotation(Rotation value)
public Secret.Builder setRotation(Rotation value)
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Rotation |
Type | Description |
Secret.Builder |
setRotation(Rotation.Builder builderForValue)
public Secret.Builder setRotation(Rotation.Builder builderForValue)
Optional. Rotation policy attached to the Secret. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | Rotation.Builder |
Type | Description |
Secret.Builder |
setTopics(int index, Topic value)
public Secret.Builder setTopics(int index, Topic value)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
value | Topic |
Type | Description |
Secret.Builder |
setTopics(int index, Topic.Builder builderForValue)
public Secret.Builder setTopics(int index, Topic.Builder builderForValue)
Optional. A list of up to 10 Pub/Sub topics to which messages are published when control plane operations are called on the secret or its versions.
repeated .google.cloud.secretmanager.v1.Topic topics = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
builderForValue | Topic.Builder |
Type | Description |
Secret.Builder |
setTtl(Duration value)
public Secret.Builder setTtl(Duration value)
Input only. The TTL for the Secret.
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
Name | Description |
value | Duration |
Type | Description |
Secret.Builder |
setTtl(Duration.Builder builderForValue)
public Secret.Builder setTtl(Duration.Builder builderForValue)
Input only. The TTL for the Secret.
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Secret.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Secret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Secret.Builder |