Class Secret.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
- com.google.cloud.secretmanager.v1.Secret.Builder
-
- All Implemented Interfaces:
SecretOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Secret
public static final class Secret.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder> implements SecretOrBuilder
A [Secret][google.cloud.secretmanager.v1.Secret] is a logical secret whose value and versions can be accessed. A [Secret][google.cloud.secretmanager.v1.Secret] is made up of zero or more [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] that represent the secret data.
Protobuf typegoogle.cloud.secretmanager.v1.Secret
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Secret.BuilderaddAllTopics(Iterable<? extends Topic> values)Optional.Secret.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Secret.BuilderaddTopics(int index, Topic value)Optional.Secret.BuilderaddTopics(int index, Topic.Builder builderForValue)Optional.Secret.BuilderaddTopics(Topic value)Optional.Secret.BuilderaddTopics(Topic.Builder builderForValue)Optional.Topic.BuilderaddTopicsBuilder()Optional.Topic.BuilderaddTopicsBuilder(int index)Optional.Secretbuild()SecretbuildPartial()Secret.Builderclear()Secret.BuilderclearAnnotations()Secret.BuilderclearCreateTime()Output only.Secret.BuilderclearEtag()Optional.Secret.BuilderclearExpiration()Secret.BuilderclearExpireTime()Optional.Secret.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Secret.BuilderclearLabels()Secret.BuilderclearName()Output only.Secret.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Secret.BuilderclearReplication()Required.Secret.BuilderclearRotation()Optional.Secret.BuilderclearTopics()Optional.Secret.BuilderclearTtl()Input only.Secret.BuilderclearVersionAliases()Secret.Builderclone()booleancontainsAnnotations(String key)Optional.booleancontainsLabels(String key)The labels assigned to this Secret.booleancontainsVersionAliases(String key)Optional.Map<String,String>getAnnotations()Deprecated.intgetAnnotationsCount()Optional.Map<String,String>getAnnotationsMap()Optional.StringgetAnnotationsOrDefault(String key, String defaultValue)Optional.StringgetAnnotationsOrThrow(String key)Optional.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.SecretgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEtag()Optional.com.google.protobuf.ByteStringgetEtagBytes()Optional.Secret.ExpirationCasegetExpirationCase()com.google.protobuf.TimestampgetExpireTime()Optional.com.google.protobuf.Timestamp.BuildergetExpireTimeBuilder()Optional.com.google.protobuf.TimestampOrBuildergetExpireTimeOrBuilder()Optional.Map<String,String>getLabels()Deprecated.intgetLabelsCount()The labels assigned to this Secret.Map<String,String>getLabelsMap()The labels assigned to this Secret.StringgetLabelsOrDefault(String key, String defaultValue)The labels assigned to this Secret.StringgetLabelsOrThrow(String key)The labels assigned to this Secret.Map<String,String>getMutableAnnotations()Deprecated.Map<String,String>getMutableLabels()Deprecated.Map<String,Long>getMutableVersionAliases()Deprecated.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.ReplicationgetReplication()Required.Replication.BuildergetReplicationBuilder()Required.ReplicationOrBuildergetReplicationOrBuilder()Required.RotationgetRotation()Optional.Rotation.BuildergetRotationBuilder()Optional.RotationOrBuildergetRotationOrBuilder()Optional.TopicgetTopics(int index)Optional.Topic.BuildergetTopicsBuilder(int index)Optional.List<Topic.Builder>getTopicsBuilderList()Optional.intgetTopicsCount()Optional.List<Topic>getTopicsList()Optional.TopicOrBuildergetTopicsOrBuilder(int index)Optional.List<? extends TopicOrBuilder>getTopicsOrBuilderList()Optional.com.google.protobuf.DurationgetTtl()Input only.com.google.protobuf.Duration.BuildergetTtlBuilder()Input only.com.google.protobuf.DurationOrBuildergetTtlOrBuilder()Input only.Map<String,Long>getVersionAliases()Deprecated.intgetVersionAliasesCount()Optional.Map<String,Long>getVersionAliasesMap()Optional.longgetVersionAliasesOrDefault(String key, long defaultValue)Optional.longgetVersionAliasesOrThrow(String key)Optional.booleanhasCreateTime()Output only.booleanhasExpireTime()Optional.booleanhasReplication()Required.booleanhasRotation()Optional.booleanhasTtl()Input only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Secret.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Secret.BuildermergeExpireTime(com.google.protobuf.Timestamp value)Optional.Secret.BuildermergeFrom(Secret other)Secret.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Secret.BuildermergeFrom(com.google.protobuf.Message other)Secret.BuildermergeReplication(Replication value)Required.Secret.BuildermergeRotation(Rotation value)Optional.Secret.BuildermergeTtl(com.google.protobuf.Duration value)Input only.Secret.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Secret.BuilderputAllAnnotations(Map<String,String> values)Optional.Secret.BuilderputAllLabels(Map<String,String> values)The labels assigned to this Secret.Secret.BuilderputAllVersionAliases(Map<String,Long> values)Optional.Secret.BuilderputAnnotations(String key, String value)Optional.Secret.BuilderputLabels(String key, String value)The labels assigned to this Secret.Secret.BuilderputVersionAliases(String key, long value)Optional.Secret.BuilderremoveAnnotations(String key)Optional.Secret.BuilderremoveLabels(String key)The labels assigned to this Secret.Secret.BuilderremoveTopics(int index)Optional.Secret.BuilderremoveVersionAliases(String key)Optional.Secret.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Secret.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Secret.BuildersetEtag(String value)Optional.Secret.BuildersetEtagBytes(com.google.protobuf.ByteString value)Optional.Secret.BuildersetExpireTime(com.google.protobuf.Timestamp value)Optional.Secret.BuildersetExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)Optional.Secret.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Secret.BuildersetName(String value)Output only.Secret.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Secret.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Secret.BuildersetReplication(Replication value)Required.Secret.BuildersetReplication(Replication.Builder builderForValue)Required.Secret.BuildersetRotation(Rotation value)Optional.Secret.BuildersetRotation(Rotation.Builder builderForValue)Optional.Secret.BuildersetTopics(int index, Topic value)Optional.Secret.BuildersetTopics(int index, Topic.Builder builderForValue)Optional.Secret.BuildersetTtl(com.google.protobuf.Duration value)Input only.Secret.BuildersetTtl(com.google.protobuf.Duration.Builder builderForValue)Input only.Secret.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
clear
public Secret.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
getDefaultInstanceForType
public Secret getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Secret build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Secret buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Secret.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
setField
public Secret.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
clearField
public Secret.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
clearOneof
public Secret.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
setRepeatedField
public Secret.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
addRepeatedField
public Secret.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
mergeFrom
public Secret.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Secret.Builder>
-
mergeFrom
public Secret.Builder mergeFrom(Secret other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
mergeFrom
public Secret.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Secret.Builder>- Throws:
IOException
-
getExpirationCase
public Secret.ExpirationCase getExpirationCase()
- Specified by:
getExpirationCasein interfaceSecretOrBuilder
-
clearExpiration
public Secret.Builder clearExpiration()
-
getName
public String getName()
Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceSecretOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceSecretOrBuilder- Returns:
- The bytes for name.
-
setName
public Secret.Builder setName(String value)
Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Secret.Builder clearName()
Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public Secret.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the [Secret][google.cloud.secretmanager.v1.Secret] in the format `projects/*/secrets/*`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasReplication
public boolean hasReplication()
Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.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];- Specified by:
hasReplicationin interfaceSecretOrBuilder- Returns:
- Whether the replication field is set.
-
getReplication
public Replication getReplication()
Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.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];- Specified by:
getReplicationin interfaceSecretOrBuilder- Returns:
- The replication.
-
setReplication
public Secret.Builder setReplication(Replication value)
Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.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];
-
setReplication
public Secret.Builder setReplication(Replication.Builder builderForValue)
Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.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];
-
mergeReplication
public Secret.Builder mergeReplication(Replication value)
Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.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];
-
clearReplication
public Secret.Builder clearReplication()
Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.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];
-
getReplicationBuilder
public Replication.Builder getReplicationBuilder()
Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.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];
-
getReplicationOrBuilder
public ReplicationOrBuilder getReplicationOrBuilder()
Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secretmanager.v1.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];- Specified by:
getReplicationOrBuilderin interfaceSecretOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceSecretOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceSecretOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Secret.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Secret.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Secret.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Secret.Builder clearCreateTime()
Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which the [Secret][google.cloud.secretmanager.v1.Secret] was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceSecretOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:SecretOrBuilderThe 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}][\p{Ll}\p{Lo}\p{N}_-]{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;- Specified by:
getLabelsCountin interfaceSecretOrBuilder
-
containsLabels
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}][\p{Ll}\p{Lo}\p{N}_-]{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;- Specified by:
containsLabelsin interfaceSecretOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceSecretOrBuilder
-
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}][\p{Ll}\p{Lo}\p{N}_-]{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;- Specified by:
getLabelsMapin interfaceSecretOrBuilder
-
getLabelsOrDefault
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}][\p{Ll}\p{Lo}\p{N}_-]{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;- Specified by:
getLabelsOrDefaultin interfaceSecretOrBuilder
-
getLabelsOrThrow
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}][\p{Ll}\p{Lo}\p{N}_-]{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;- Specified by:
getLabelsOrThrowin interfaceSecretOrBuilder
-
clearLabels
public Secret.Builder clearLabels()
-
removeLabels
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}][\p{Ll}\p{Lo}\p{N}_-]{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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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}][\p{Ll}\p{Lo}\p{N}_-]{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;
-
putAllLabels
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}][\p{Ll}\p{Lo}\p{N}_-]{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;
-
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];- Specified by:
getTopicsListin interfaceSecretOrBuilder
-
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];- Specified by:
getTopicsCountin interfaceSecretOrBuilder
-
getTopics
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];- Specified by:
getTopicsin interfaceSecretOrBuilder
-
setTopics
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];
-
setTopics
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];
-
addTopics
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];
-
addTopics
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];
-
addTopics
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];
-
addTopics
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];
-
addAllTopics
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];
-
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];
-
removeTopics
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];
-
getTopicsBuilder
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];
-
getTopicsOrBuilder
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];- Specified by:
getTopicsOrBuilderin interfaceSecretOrBuilder
-
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];- Specified by:
getTopicsOrBuilderListin interfaceSecretOrBuilder
-
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];
-
addTopicsBuilder
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];
-
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];
-
hasExpireTime
public boolean hasExpireTime()
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.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];- Specified by:
hasExpireTimein interfaceSecretOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.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];- Specified by:
getExpireTimein interfaceSecretOrBuilder- Returns:
- The expireTime.
-
setExpireTime
public Secret.Builder setExpireTime(com.google.protobuf.Timestamp value)
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.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];
-
setExpireTime
public Secret.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.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];
-
mergeExpireTime
public Secret.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.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];
-
clearExpireTime
public Secret.Builder clearExpireTime()
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.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];
-
getExpireTimeBuilder
public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.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];
-
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.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];- Specified by:
getExpireTimeOrBuilderin interfaceSecretOrBuilder
-
hasTtl
public boolean hasTtl()
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
hasTtlin interfaceSecretOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.Duration getTtl()
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getTtlin interfaceSecretOrBuilder- Returns:
- The ttl.
-
setTtl
public Secret.Builder setTtl(com.google.protobuf.Duration value)
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
-
setTtl
public Secret.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
-
mergeTtl
public Secret.Builder mergeTtl(com.google.protobuf.Duration value)
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
-
clearTtl
public Secret.Builder clearTtl()
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
-
getTtlBuilder
public com.google.protobuf.Duration.Builder getTtlBuilder()
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];
-
getTtlOrBuilder
public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
.google.protobuf.Duration ttl = 7 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getTtlOrBuilderin interfaceSecretOrBuilder
-
getEtag
public String getEtag()
Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEtagin interfaceSecretOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEtagBytesin interfaceSecretOrBuilder- Returns:
- The bytes for etag.
-
setEtag
public Secret.Builder setEtag(String value)
Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public Secret.Builder clearEtag()
Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEtagBytes
public Secret.Builder setEtagBytes(com.google.protobuf.ByteString value)
Optional. Etag of the currently stored [Secret][google.cloud.secretmanager.v1.Secret].
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
hasRotation
public boolean hasRotation()
Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRotationin interfaceSecretOrBuilder- Returns:
- Whether the rotation field is set.
-
getRotation
public Rotation getRotation()
Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRotationin interfaceSecretOrBuilder- Returns:
- The rotation.
-
setRotation
public Secret.Builder setRotation(Rotation value)
Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
-
setRotation
public Secret.Builder setRotation(Rotation.Builder builderForValue)
Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
-
mergeRotation
public Secret.Builder mergeRotation(Rotation value)
Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
-
clearRotation
public Secret.Builder clearRotation()
Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
-
getRotationBuilder
public Rotation.Builder getRotationBuilder()
Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];
-
getRotationOrBuilder
public RotationOrBuilder getRotationOrBuilder()
Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no rotation policy.
.google.cloud.secretmanager.v1.Rotation rotation = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRotationOrBuilderin interfaceSecretOrBuilder
-
getVersionAliasesCount
public int getVersionAliasesCount()
Description copied from interface:SecretOrBuilderOptional. 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];- Specified by:
getVersionAliasesCountin interfaceSecretOrBuilder
-
containsVersionAliases
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];- Specified by:
containsVersionAliasesin interfaceSecretOrBuilder
-
getVersionAliases
@Deprecated public Map<String,Long> getVersionAliases()
Deprecated.UsegetVersionAliasesMap()instead.- Specified by:
getVersionAliasesin interfaceSecretOrBuilder
-
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];- Specified by:
getVersionAliasesMapin interfaceSecretOrBuilder
-
getVersionAliasesOrDefault
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];- Specified by:
getVersionAliasesOrDefaultin interfaceSecretOrBuilder
-
getVersionAliasesOrThrow
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];- Specified by:
getVersionAliasesOrThrowin interfaceSecretOrBuilder
-
clearVersionAliases
public Secret.Builder clearVersionAliases()
-
removeVersionAliases
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];
-
getMutableVersionAliases
@Deprecated public Map<String,Long> getMutableVersionAliases()
Deprecated.Use alternate mutation accessors instead.
-
putVersionAliases
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];
-
putAllVersionAliases
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];
-
getAnnotationsCount
public int getAnnotationsCount()
Description copied from interface:SecretOrBuilderOptional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsCountin interfaceSecretOrBuilder
-
containsAnnotations
public boolean containsAnnotations(String key)
Optional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsAnnotationsin interfaceSecretOrBuilder
-
getAnnotations
@Deprecated public Map<String,String> getAnnotations()
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceSecretOrBuilder
-
getAnnotationsMap
public Map<String,String> getAnnotationsMap()
Optional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsMapin interfaceSecretOrBuilder
-
getAnnotationsOrDefault
public String getAnnotationsOrDefault(String key, String defaultValue)
Optional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsOrDefaultin interfaceSecretOrBuilder
-
getAnnotationsOrThrow
public String getAnnotationsOrThrow(String key)
Optional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsOrThrowin interfaceSecretOrBuilder
-
clearAnnotations
public Secret.Builder clearAnnotations()
-
removeAnnotations
public Secret.Builder removeAnnotations(String key)
Optional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];
-
getMutableAnnotations
@Deprecated public Map<String,String> getMutableAnnotations()
Deprecated.Use alternate mutation accessors instead.
-
putAnnotations
public Secret.Builder putAnnotations(String key, String value)
Optional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];
-
putAllAnnotations
public Secret.Builder putAllAnnotations(Map<String,String> values)
Optional. Custom metadata about the secret. Annotations are distinct from various forms of labels. Annotations exist to allow client tools to store their own state information without requiring a database. Annotation keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, begin and end with an alphanumeric character ([a-z0-9A-Z]), and may have dashes (-), underscores (_), dots (.), and alphanumerics in between these symbols. The total size of annotation keys and values must be less than 16KiB.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OPTIONAL];
-
setUnknownFields
public final Secret.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
mergeUnknownFields
public final Secret.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Secret.Builder>
-
-