Class Secret.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 type google.cloud.secretmanager.v1.Secret
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Secret.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Secret.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Secret.Builder>
    • clear

      public Secret.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Secret.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Secret.Builder>
    • getDefaultInstanceForType

      public Secret getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Secret build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Secret buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Secret.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Secret.Builder>
    • mergeFrom

      public Secret.Builder mergeFrom(Secret other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Secret.Builder>
    • mergeFrom

      public Secret.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Secret.Builder>
      Throws:
      IOException
    • getExpirationCase

      public Secret.ExpirationCase getExpirationCase()
      Specified by:
      getExpirationCase in interface SecretOrBuilder
    • 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:
      getName in interface SecretOrBuilder
      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:
      getNameBytes in interface SecretOrBuilder
      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()
       Optional. 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) = OPTIONAL];
      Specified by:
      hasReplication in interface SecretOrBuilder
      Returns:
      Whether the replication field is set.
    • getReplication

      public Replication getReplication()
       Optional. 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) = OPTIONAL];
      Specified by:
      getReplication in interface SecretOrBuilder
      Returns:
      The replication.
    • setReplication

      public Secret.Builder setReplication(Replication value)
       Optional. 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) = OPTIONAL];
    • setReplication

      public Secret.Builder setReplication(Replication.Builder builderForValue)
       Optional. 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) = OPTIONAL];
    • mergeReplication

      public Secret.Builder mergeReplication(Replication value)
       Optional. 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) = OPTIONAL];
    • clearReplication

      public Secret.Builder clearReplication()
       Optional. 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) = OPTIONAL];
    • getReplicationBuilder

      public Replication.Builder getReplicationBuilder()
       Optional. 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) = OPTIONAL];
    • getReplicationOrBuilder

      public ReplicationOrBuilder getReplicationOrBuilder()
       Optional. 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) = OPTIONAL];
      Specified by:
      getReplicationOrBuilder in interface SecretOrBuilder
    • 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:
      hasCreateTime in interface SecretOrBuilder
      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:
      getCreateTime in interface SecretOrBuilder
      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:
      getCreateTimeOrBuilder in interface SecretOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: SecretOrBuilder
       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:
      getLabelsCount in interface SecretOrBuilder
    • 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:
      containsLabels in interface SecretOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface SecretOrBuilder
    • 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:
      getLabelsMap in interface SecretOrBuilder
    • 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:
      getLabelsOrDefault in interface SecretOrBuilder
    • 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:
      getLabelsOrThrow in interface SecretOrBuilder
    • 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:
      getTopicsList in interface SecretOrBuilder
    • 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:
      getTopicsCount in interface SecretOrBuilder
    • 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:
      getTopics in interface SecretOrBuilder
    • 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:
      getTopicsOrBuilder in interface SecretOrBuilder
    • 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:
      getTopicsOrBuilderList in interface SecretOrBuilder
    • 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:
      hasExpireTime in interface SecretOrBuilder
      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:
      getExpireTime in interface SecretOrBuilder
      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:
      getExpireTimeOrBuilder in interface SecretOrBuilder
    • 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:
      hasTtl in interface SecretOrBuilder
      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:
      getTtl in interface SecretOrBuilder
      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:
      getTtlOrBuilder in interface SecretOrBuilder
    • 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:
      getEtag in interface SecretOrBuilder
      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:
      getEtagBytes in interface SecretOrBuilder
      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:
      hasRotation in interface SecretOrBuilder
      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:
      getRotation in interface SecretOrBuilder
      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:
      getRotationOrBuilder in interface SecretOrBuilder
    • getVersionAliasesCount

      public int getVersionAliasesCount()
      Description copied from interface: SecretOrBuilder
       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. Access by alias is only be supported on
       GetSecretVersion and AccessSecretVersion.
       
      map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionAliasesCount in interface SecretOrBuilder
    • 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. Access by alias is only be supported on
       GetSecretVersion and AccessSecretVersion.
       
      map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsVersionAliases in interface SecretOrBuilder
    • getVersionAliases

      @Deprecated public Map<String,Long> getVersionAliases()
      Deprecated.
      Specified by:
      getVersionAliases in interface SecretOrBuilder
    • 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. Access by alias is only be supported on
       GetSecretVersion and AccessSecretVersion.
       
      map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionAliasesMap in interface SecretOrBuilder
    • 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. Access by alias is only be supported on
       GetSecretVersion and AccessSecretVersion.
       
      map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionAliasesOrDefault in interface SecretOrBuilder
    • 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. Access by alias is only be supported on
       GetSecretVersion and AccessSecretVersion.
       
      map<string, int64> version_aliases = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionAliasesOrThrow in interface SecretOrBuilder
    • 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. Access by alias is 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. Access by alias is 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. Access by alias is 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: SecretOrBuilder
       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:
      getAnnotationsCount in interface SecretOrBuilder
    • 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:
      containsAnnotations in interface SecretOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface SecretOrBuilder
    • 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:
      getAnnotationsMap in interface SecretOrBuilder
    • 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:
      getAnnotationsOrDefault in interface SecretOrBuilder
    • 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:
      getAnnotationsOrThrow in interface SecretOrBuilder
    • 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];
    • hasVersionDestroyTtl

      public boolean hasVersionDestroyTtl()
       Optional. Secret Version TTL after destruction request
      
       This is a part of the Delayed secret version destroy feature.
       For secret with TTL>0, version destruction doesn't happen immediately
       on calling destroy instead the version goes to a disabled state and
       destruction happens after the TTL expires.
       
      .google.protobuf.Duration version_destroy_ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVersionDestroyTtl in interface SecretOrBuilder
      Returns:
      Whether the versionDestroyTtl field is set.
    • getVersionDestroyTtl

      public com.google.protobuf.Duration getVersionDestroyTtl()
       Optional. Secret Version TTL after destruction request
      
       This is a part of the Delayed secret version destroy feature.
       For secret with TTL>0, version destruction doesn't happen immediately
       on calling destroy instead the version goes to a disabled state and
       destruction happens after the TTL expires.
       
      .google.protobuf.Duration version_destroy_ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionDestroyTtl in interface SecretOrBuilder
      Returns:
      The versionDestroyTtl.
    • setVersionDestroyTtl

      public Secret.Builder setVersionDestroyTtl(com.google.protobuf.Duration value)
       Optional. Secret Version TTL after destruction request
      
       This is a part of the Delayed secret version destroy feature.
       For secret with TTL>0, version destruction doesn't happen immediately
       on calling destroy instead the version goes to a disabled state and
       destruction happens after the TTL expires.
       
      .google.protobuf.Duration version_destroy_ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • setVersionDestroyTtl

      public Secret.Builder setVersionDestroyTtl(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Secret Version TTL after destruction request
      
       This is a part of the Delayed secret version destroy feature.
       For secret with TTL>0, version destruction doesn't happen immediately
       on calling destroy instead the version goes to a disabled state and
       destruction happens after the TTL expires.
       
      .google.protobuf.Duration version_destroy_ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • mergeVersionDestroyTtl

      public Secret.Builder mergeVersionDestroyTtl(com.google.protobuf.Duration value)
       Optional. Secret Version TTL after destruction request
      
       This is a part of the Delayed secret version destroy feature.
       For secret with TTL>0, version destruction doesn't happen immediately
       on calling destroy instead the version goes to a disabled state and
       destruction happens after the TTL expires.
       
      .google.protobuf.Duration version_destroy_ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • clearVersionDestroyTtl

      public Secret.Builder clearVersionDestroyTtl()
       Optional. Secret Version TTL after destruction request
      
       This is a part of the Delayed secret version destroy feature.
       For secret with TTL>0, version destruction doesn't happen immediately
       on calling destroy instead the version goes to a disabled state and
       destruction happens after the TTL expires.
       
      .google.protobuf.Duration version_destroy_ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getVersionDestroyTtlBuilder

      public com.google.protobuf.Duration.Builder getVersionDestroyTtlBuilder()
       Optional. Secret Version TTL after destruction request
      
       This is a part of the Delayed secret version destroy feature.
       For secret with TTL>0, version destruction doesn't happen immediately
       on calling destroy instead the version goes to a disabled state and
       destruction happens after the TTL expires.
       
      .google.protobuf.Duration version_destroy_ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getVersionDestroyTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getVersionDestroyTtlOrBuilder()
       Optional. Secret Version TTL after destruction request
      
       This is a part of the Delayed secret version destroy feature.
       For secret with TTL>0, version destruction doesn't happen immediately
       on calling destroy instead the version goes to a disabled state and
       destruction happens after the TTL expires.
       
      .google.protobuf.Duration version_destroy_ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionDestroyTtlOrBuilder in interface SecretOrBuilder
    • hasCustomerManagedEncryption

      public boolean hasCustomerManagedEncryption()
       Optional. The customer-managed encryption configuration of the regionalized
       secrets. If no configuration is provided, Google-managed default encryption
       is used.
      
       Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
       configuration only apply to
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
       afterwards. They do not apply retroactively to existing
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       
      .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomerManagedEncryption in interface SecretOrBuilder
      Returns:
      Whether the customerManagedEncryption field is set.
    • getCustomerManagedEncryption

      public CustomerManagedEncryption getCustomerManagedEncryption()
       Optional. The customer-managed encryption configuration of the regionalized
       secrets. If no configuration is provided, Google-managed default encryption
       is used.
      
       Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
       configuration only apply to
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
       afterwards. They do not apply retroactively to existing
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       
      .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerManagedEncryption in interface SecretOrBuilder
      Returns:
      The customerManagedEncryption.
    • setCustomerManagedEncryption

      public Secret.Builder setCustomerManagedEncryption(CustomerManagedEncryption value)
       Optional. The customer-managed encryption configuration of the regionalized
       secrets. If no configuration is provided, Google-managed default encryption
       is used.
      
       Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
       configuration only apply to
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
       afterwards. They do not apply retroactively to existing
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       
      .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 15 [(.google.api.field_behavior) = OPTIONAL];
    • setCustomerManagedEncryption

      public Secret.Builder setCustomerManagedEncryption(CustomerManagedEncryption.Builder builderForValue)
       Optional. The customer-managed encryption configuration of the regionalized
       secrets. If no configuration is provided, Google-managed default encryption
       is used.
      
       Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
       configuration only apply to
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
       afterwards. They do not apply retroactively to existing
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       
      .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 15 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCustomerManagedEncryption

      public Secret.Builder mergeCustomerManagedEncryption(CustomerManagedEncryption value)
       Optional. The customer-managed encryption configuration of the regionalized
       secrets. If no configuration is provided, Google-managed default encryption
       is used.
      
       Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
       configuration only apply to
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
       afterwards. They do not apply retroactively to existing
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       
      .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 15 [(.google.api.field_behavior) = OPTIONAL];
    • clearCustomerManagedEncryption

      public Secret.Builder clearCustomerManagedEncryption()
       Optional. The customer-managed encryption configuration of the regionalized
       secrets. If no configuration is provided, Google-managed default encryption
       is used.
      
       Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
       configuration only apply to
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
       afterwards. They do not apply retroactively to existing
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       
      .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 15 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomerManagedEncryptionBuilder

      public CustomerManagedEncryption.Builder getCustomerManagedEncryptionBuilder()
       Optional. The customer-managed encryption configuration of the regionalized
       secrets. If no configuration is provided, Google-managed default encryption
       is used.
      
       Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
       configuration only apply to
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
       afterwards. They do not apply retroactively to existing
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       
      .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 15 [(.google.api.field_behavior) = OPTIONAL];
    • getCustomerManagedEncryptionOrBuilder

      public CustomerManagedEncryptionOrBuilder getCustomerManagedEncryptionOrBuilder()
       Optional. The customer-managed encryption configuration of the regionalized
       secrets. If no configuration is provided, Google-managed default encryption
       is used.
      
       Updates to the [Secret][google.cloud.secretmanager.v1.Secret] encryption
       configuration only apply to
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] added
       afterwards. They do not apply retroactively to existing
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       
      .google.cloud.secretmanager.v1.CustomerManagedEncryption customer_managed_encryption = 15 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerManagedEncryptionOrBuilder in interface SecretOrBuilder
    • getTagsCount

      public int getTagsCount()
      Description copied from interface: SecretOrBuilder
       Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
       to this resource. For example:
       "123/environment": "production",
       "123/costCenter": "marketing"
      
       Tags are used to organize and group resources.
      
       Tags can be used to control policy evaluation for the resource.
       
      map<string, string> tags = 16 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsCount in interface SecretOrBuilder
    • containsTags

      public boolean containsTags(String key)
       Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
       to this resource. For example:
       "123/environment": "production",
       "123/costCenter": "marketing"
      
       Tags are used to organize and group resources.
      
       Tags can be used to control policy evaluation for the resource.
       
      map<string, string> tags = 16 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsTags in interface SecretOrBuilder
    • getTags

      @Deprecated public Map<String,String> getTags()
      Deprecated.
      Use getTagsMap() instead.
      Specified by:
      getTags in interface SecretOrBuilder
    • getTagsMap

      public Map<String,String> getTagsMap()
       Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
       to this resource. For example:
       "123/environment": "production",
       "123/costCenter": "marketing"
      
       Tags are used to organize and group resources.
      
       Tags can be used to control policy evaluation for the resource.
       
      map<string, string> tags = 16 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsMap in interface SecretOrBuilder
    • getTagsOrDefault

      public String getTagsOrDefault(String key, String defaultValue)
       Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
       to this resource. For example:
       "123/environment": "production",
       "123/costCenter": "marketing"
      
       Tags are used to organize and group resources.
      
       Tags can be used to control policy evaluation for the resource.
       
      map<string, string> tags = 16 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsOrDefault in interface SecretOrBuilder
    • getTagsOrThrow

      public String getTagsOrThrow(String key)
       Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
       to this resource. For example:
       "123/environment": "production",
       "123/costCenter": "marketing"
      
       Tags are used to organize and group resources.
      
       Tags can be used to control policy evaluation for the resource.
       
      map<string, string> tags = 16 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTagsOrThrow in interface SecretOrBuilder
    • clearTags

      public Secret.Builder clearTags()
    • removeTags

      public Secret.Builder removeTags(String key)
       Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
       to this resource. For example:
       "123/environment": "production",
       "123/costCenter": "marketing"
      
       Tags are used to organize and group resources.
      
       Tags can be used to control policy evaluation for the resource.
       
      map<string, string> tags = 16 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
    • getMutableTags

      @Deprecated public Map<String,String> getMutableTags()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTags

      public Secret.Builder putTags(String key, String value)
       Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
       to this resource. For example:
       "123/environment": "production",
       "123/costCenter": "marketing"
      
       Tags are used to organize and group resources.
      
       Tags can be used to control policy evaluation for the resource.
       
      map<string, string> tags = 16 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
    • putAllTags

      public Secret.Builder putAllTags(Map<String,String> values)
       Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
       to this resource. For example:
       "123/environment": "production",
       "123/costCenter": "marketing"
      
       Tags are used to organize and group resources.
      
       Tags can be used to control policy evaluation for the resource.
       
      map<string, string> tags = 16 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
    • getSecretTypeValue

      public int getSecretTypeValue()
       Optional. Immutable. This defines the type of the secret.
       Enforces certain structural requirements on the
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       For secret of type UNSPECIFIED, the SecretVersions can be of any type.
       
      .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecretTypeValue in interface SecretOrBuilder
      Returns:
      The enum numeric value on the wire for secretType.
    • setSecretTypeValue

      public Secret.Builder setSecretTypeValue(int value)
       Optional. Immutable. This defines the type of the secret.
       Enforces certain structural requirements on the
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       For secret of type UNSPECIFIED, the SecretVersions can be of any type.
       
      .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for secretType to set.
      Returns:
      This builder for chaining.
    • getSecretType

      public Secret.SecretType getSecretType()
       Optional. Immutable. This defines the type of the secret.
       Enforces certain structural requirements on the
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       For secret of type UNSPECIFIED, the SecretVersions can be of any type.
       
      .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecretType in interface SecretOrBuilder
      Returns:
      The secretType.
    • setSecretType

      public Secret.Builder setSecretType(Secret.SecretType value)
       Optional. Immutable. This defines the type of the secret.
       Enforces certain structural requirements on the
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       For secret of type UNSPECIFIED, the SecretVersions can be of any type.
       
      .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The secretType to set.
      Returns:
      This builder for chaining.
    • clearSecretType

      public Secret.Builder clearSecretType()
       Optional. Immutable. This defines the type of the secret.
       Enforces certain structural requirements on the
       [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
       For secret of type UNSPECIFIED, the SecretVersions can be of any type.
       
      .google.cloud.secretmanager.v1.Secret.SecretType secret_type = 17 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasPolicyMember

      public boolean hasPolicyMember()
       Output only. Defines the policy member for the secret.
       This will be used to check if the caller has the permission to perform
       certain operations on the typed secret.
       
      .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPolicyMember in interface SecretOrBuilder
      Returns:
      Whether the policyMember field is set.
    • getPolicyMember

      public ResourcePolicyMember getPolicyMember()
       Output only. Defines the policy member for the secret.
       This will be used to check if the caller has the permission to perform
       certain operations on the typed secret.
       
      .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicyMember in interface SecretOrBuilder
      Returns:
      The policyMember.
    • setPolicyMember

      public Secret.Builder setPolicyMember(ResourcePolicyMember value)
       Output only. Defines the policy member for the secret.
       This will be used to check if the caller has the permission to perform
       certain operations on the typed secret.
       
      .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPolicyMember

      public Secret.Builder setPolicyMember(ResourcePolicyMember.Builder builderForValue)
       Output only. Defines the policy member for the secret.
       This will be used to check if the caller has the permission to perform
       certain operations on the typed secret.
       
      .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePolicyMember

      public Secret.Builder mergePolicyMember(ResourcePolicyMember value)
       Output only. Defines the policy member for the secret.
       This will be used to check if the caller has the permission to perform
       certain operations on the typed secret.
       
      .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPolicyMember

      public Secret.Builder clearPolicyMember()
       Output only. Defines the policy member for the secret.
       This will be used to check if the caller has the permission to perform
       certain operations on the typed secret.
       
      .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPolicyMemberBuilder

      public ResourcePolicyMember.Builder getPolicyMemberBuilder()
       Output only. Defines the policy member for the secret.
       This will be used to check if the caller has the permission to perform
       certain operations on the typed secret.
       
      .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPolicyMemberOrBuilder

      public ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder()
       Output only. Defines the policy member for the secret.
       This will be used to check if the caller has the permission to perform
       certain operations on the typed secret.
       
      .google.iam.v1.ResourcePolicyMember policy_member = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPolicyMemberOrBuilder in interface SecretOrBuilder