Class DeployPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeployPolicy.Builder>
com.google.cloud.deploy.v1.DeployPolicy.Builder
All Implemented Interfaces:
DeployPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DeployPolicy

public static final class DeployPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeployPolicy.Builder> implements DeployPolicyOrBuilder
 A `DeployPolicy` resource in the Cloud Deploy API.

 A `DeployPolicy` inhibits manual or automation-driven actions within a
 Delivery Pipeline or Target.
 
Protobuf type google.cloud.deploy.v1.DeployPolicy
  • 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<DeployPolicy.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public DeployPolicy.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<DeployPolicy.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<DeployPolicy.Builder>
    • getDefaultInstanceForType

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

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

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

      public DeployPolicy.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<DeployPolicy.Builder>
    • mergeFrom

      public DeployPolicy.Builder mergeFrom(DeployPolicy other)
    • isInitialized

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

      public DeployPolicy.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<DeployPolicy.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Name of the `DeployPolicy`. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface DeployPolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Name of the `DeployPolicy`. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface DeployPolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public DeployPolicy.Builder setName(String value)
       Output only. Name of the `DeployPolicy`. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public DeployPolicy.Builder clearName()
       Output only. Name of the `DeployPolicy`. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public DeployPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Name of the `DeployPolicy`. Format is
       `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`.
       The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. Unique identifier of the `DeployPolicy`.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface DeployPolicyOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Unique identifier of the `DeployPolicy`.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface DeployPolicyOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public DeployPolicy.Builder setUid(String value)
       Output only. Unique identifier of the `DeployPolicy`.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public DeployPolicy.Builder clearUid()
       Output only. Unique identifier of the `DeployPolicy`.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      public DeployPolicy.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Unique identifier of the `DeployPolicy`.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Description of the `DeployPolicy`. Max length is 255 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface DeployPolicyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the `DeployPolicy`. Max length is 255 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface DeployPolicyOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public DeployPolicy.Builder setDescription(String value)
       Optional. Description of the `DeployPolicy`. Max length is 255 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public DeployPolicy.Builder clearDescription()
       Optional. Description of the `DeployPolicy`. Max length is 255 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public DeployPolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description of the `DeployPolicy`. Max length is 255 characters.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: DeployPolicyOrBuilder
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. Annotations must meet the following
       constraints:
      
       * Annotations are key/value pairs.
       * Valid annotation keys have two segments: an optional prefix and name,
       separated by a slash (`/`).
       * The name segment is required and must be 63 characters or less,
       beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
       dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
       * The prefix is optional. If specified, the prefix must be a DNS subdomain:
       a series of DNS labels separated by dots(`.`), not longer than 253
       characters in total, followed by a slash (`/`).
      
       See
       https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
       for more details.
       
      map<string, string> annotations = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface DeployPolicyOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. Annotations must meet the following
       constraints:
      
       * Annotations are key/value pairs.
       * Valid annotation keys have two segments: an optional prefix and name,
       separated by a slash (`/`).
       * The name segment is required and must be 63 characters or less,
       beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
       dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
       * The prefix is optional. If specified, the prefix must be a DNS subdomain:
       a series of DNS labels separated by dots(`.`), not longer than 253
       characters in total, followed by a slash (`/`).
      
       See
       https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
       for more details.
       
      map<string, string> annotations = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface DeployPolicyOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface DeployPolicyOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. Annotations must meet the following
       constraints:
      
       * Annotations are key/value pairs.
       * Valid annotation keys have two segments: an optional prefix and name,
       separated by a slash (`/`).
       * The name segment is required and must be 63 characters or less,
       beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
       dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
       * The prefix is optional. If specified, the prefix must be a DNS subdomain:
       a series of DNS labels separated by dots(`.`), not longer than 253
       characters in total, followed by a slash (`/`).
      
       See
       https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
       for more details.
       
      map<string, string> annotations = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface DeployPolicyOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. Annotations must meet the following
       constraints:
      
       * Annotations are key/value pairs.
       * Valid annotation keys have two segments: an optional prefix and name,
       separated by a slash (`/`).
       * The name segment is required and must be 63 characters or less,
       beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
       dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
       * The prefix is optional. If specified, the prefix must be a DNS subdomain:
       a series of DNS labels separated by dots(`.`), not longer than 253
       characters in total, followed by a slash (`/`).
      
       See
       https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
       for more details.
       
      map<string, string> annotations = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface DeployPolicyOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. Annotations must meet the following
       constraints:
      
       * Annotations are key/value pairs.
       * Valid annotation keys have two segments: an optional prefix and name,
       separated by a slash (`/`).
       * The name segment is required and must be 63 characters or less,
       beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
       dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
       * The prefix is optional. If specified, the prefix must be a DNS subdomain:
       a series of DNS labels separated by dots(`.`), not longer than 253
       characters in total, followed by a slash (`/`).
      
       See
       https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
       for more details.
       
      map<string, string> annotations = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface DeployPolicyOrBuilder
    • clearAnnotations

      public DeployPolicy.Builder clearAnnotations()
    • removeAnnotations

      public DeployPolicy.Builder removeAnnotations(String key)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. Annotations must meet the following
       constraints:
      
       * Annotations are key/value pairs.
       * Valid annotation keys have two segments: an optional prefix and name,
       separated by a slash (`/`).
       * The name segment is required and must be 63 characters or less,
       beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
       dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
       * The prefix is optional. If specified, the prefix must be a DNS subdomain:
       a series of DNS labels separated by dots(`.`), not longer than 253
       characters in total, followed by a slash (`/`).
      
       See
       https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
       for more details.
       
      map<string, string> annotations = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAnnotations

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

      public DeployPolicy.Builder putAnnotations(String key, String value)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. Annotations must meet the following
       constraints:
      
       * Annotations are key/value pairs.
       * Valid annotation keys have two segments: an optional prefix and name,
       separated by a slash (`/`).
       * The name segment is required and must be 63 characters or less,
       beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
       dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
       * The prefix is optional. If specified, the prefix must be a DNS subdomain:
       a series of DNS labels separated by dots(`.`), not longer than 253
       characters in total, followed by a slash (`/`).
      
       See
       https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
       for more details.
       
      map<string, string> annotations = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAnnotations

      public DeployPolicy.Builder putAllAnnotations(Map<String,String> values)
       Optional. User annotations. These attributes can only be set and used by
       the user, and not by Cloud Deploy. Annotations must meet the following
       constraints:
      
       * Annotations are key/value pairs.
       * Valid annotation keys have two segments: an optional prefix and name,
       separated by a slash (`/`).
       * The name segment is required and must be 63 characters or less,
       beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with
       dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
       * The prefix is optional. If specified, the prefix must be a DNS subdomain:
       a series of DNS labels separated by dots(`.`), not longer than 253
       characters in total, followed by a slash (`/`).
      
       See
       https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set
       for more details.
       
      map<string, string> annotations = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: DeployPolicyOrBuilder
       Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsCount in interface DeployPolicyOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5;
      Specified by:
      containsLabels in interface DeployPolicyOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface DeployPolicyOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsMap in interface DeployPolicyOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrDefault in interface DeployPolicyOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrThrow in interface DeployPolicyOrBuilder
    • clearLabels

      public DeployPolicy.Builder clearLabels()
    • removeLabels

      public DeployPolicy.Builder removeLabels(String key)
       Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5;
    • getMutableLabels

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

      public DeployPolicy.Builder putLabels(String key, String value)
       Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5;
    • putAllLabels

      public DeployPolicy.Builder putAllLabels(Map<String,String> values)
       Labels are attributes that can be set and used by both the
       user and by Cloud Deploy. Labels must meet the following constraints:
      
       * Keys and values can contain only lowercase letters, numeric characters,
       underscores, and dashes.
       * All characters must use UTF-8 encoding, and international characters are
       allowed.
       * Keys must start with a lowercase letter or international character.
       * Each resource is limited to a maximum of 64 labels.
      
       Both keys and values are additionally constrained to be <= 128 bytes.
       
      map<string, string> labels = 5;
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time at which the deploy policy was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DeployPolicyOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time at which the deploy policy was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DeployPolicyOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public DeployPolicy.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time at which the deploy policy was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public DeployPolicy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Time at which the deploy policy was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public DeployPolicy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Time at which the deploy policy was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public DeployPolicy.Builder clearCreateTime()
       Output only. Time at which the deploy policy was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Time at which the deploy policy was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time at which the deploy policy was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DeployPolicyOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Most recent time at which the deploy policy was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DeployPolicyOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Most recent time at which the deploy policy was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DeployPolicyOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public DeployPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Most recent time at which the deploy policy was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public DeployPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Most recent time at which the deploy policy was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public DeployPolicy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Most recent time at which the deploy policy was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public DeployPolicy.Builder clearUpdateTime()
       Output only. Most recent time at which the deploy policy was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Most recent time at which the deploy policy was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Most recent time at which the deploy policy was updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DeployPolicyOrBuilder
    • getSuspended

      public boolean getSuspended()
       Optional. When suspended, the policy will not prevent actions from
       occurring, even if the action violates the policy.
       
      bool suspended = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSuspended in interface DeployPolicyOrBuilder
      Returns:
      The suspended.
    • setSuspended

      public DeployPolicy.Builder setSuspended(boolean value)
       Optional. When suspended, the policy will not prevent actions from
       occurring, even if the action violates the policy.
       
      bool suspended = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The suspended to set.
      Returns:
      This builder for chaining.
    • clearSuspended

      public DeployPolicy.Builder clearSuspended()
       Optional. When suspended, the policy will not prevent actions from
       occurring, even if the action violates the policy.
       
      bool suspended = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getSelectorsList

      public List<DeployPolicyResourceSelector> getSelectorsList()
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSelectorsList in interface DeployPolicyOrBuilder
    • getSelectorsCount

      public int getSelectorsCount()
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSelectorsCount in interface DeployPolicyOrBuilder
    • getSelectors

      public DeployPolicyResourceSelector getSelectors(int index)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSelectors in interface DeployPolicyOrBuilder
    • setSelectors

      public DeployPolicy.Builder setSelectors(int index, DeployPolicyResourceSelector value)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • setSelectors

      public DeployPolicy.Builder setSelectors(int index, DeployPolicyResourceSelector.Builder builderForValue)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • addSelectors

       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • addSelectors

      public DeployPolicy.Builder addSelectors(int index, DeployPolicyResourceSelector value)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • addSelectors

      public DeployPolicy.Builder addSelectors(DeployPolicyResourceSelector.Builder builderForValue)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • addSelectors

      public DeployPolicy.Builder addSelectors(int index, DeployPolicyResourceSelector.Builder builderForValue)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • addAllSelectors

      public DeployPolicy.Builder addAllSelectors(Iterable<? extends DeployPolicyResourceSelector> values)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • clearSelectors

      public DeployPolicy.Builder clearSelectors()
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • removeSelectors

      public DeployPolicy.Builder removeSelectors(int index)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • getSelectorsBuilder

      public DeployPolicyResourceSelector.Builder getSelectorsBuilder(int index)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • getSelectorsOrBuilder

      public DeployPolicyResourceSelectorOrBuilder getSelectorsOrBuilder(int index)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSelectorsOrBuilder in interface DeployPolicyOrBuilder
    • getSelectorsOrBuilderList

      public List<? extends DeployPolicyResourceSelectorOrBuilder> getSelectorsOrBuilderList()
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSelectorsOrBuilderList in interface DeployPolicyOrBuilder
    • addSelectorsBuilder

      public DeployPolicyResourceSelector.Builder addSelectorsBuilder()
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • addSelectorsBuilder

      public DeployPolicyResourceSelector.Builder addSelectorsBuilder(int index)
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • getSelectorsBuilderList

      public List<DeployPolicyResourceSelector.Builder> getSelectorsBuilderList()
       Required. Selected resources to which the policy will be applied. At least
       one selector is required. If one selector matches the resource the policy
       applies. For example, if there are two selectors and the action being
       attempted matches one of them, the policy will apply to that action.
       
      repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED];
    • getRulesList

      public List<PolicyRule> getRulesList()
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesList in interface DeployPolicyOrBuilder
    • getRulesCount

      public int getRulesCount()
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesCount in interface DeployPolicyOrBuilder
    • getRules

      public PolicyRule getRules(int index)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRules in interface DeployPolicyOrBuilder
    • setRules

      public DeployPolicy.Builder setRules(int index, PolicyRule value)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • setRules

      public DeployPolicy.Builder setRules(int index, PolicyRule.Builder builderForValue)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public DeployPolicy.Builder addRules(PolicyRule value)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public DeployPolicy.Builder addRules(int index, PolicyRule value)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public DeployPolicy.Builder addRules(PolicyRule.Builder builderForValue)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • addRules

      public DeployPolicy.Builder addRules(int index, PolicyRule.Builder builderForValue)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • addAllRules

      public DeployPolicy.Builder addAllRules(Iterable<? extends PolicyRule> values)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • clearRules

      public DeployPolicy.Builder clearRules()
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • removeRules

      public DeployPolicy.Builder removeRules(int index)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • getRulesBuilder

      public PolicyRule.Builder getRulesBuilder(int index)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • getRulesOrBuilder

      public PolicyRuleOrBuilder getRulesOrBuilder(int index)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesOrBuilder in interface DeployPolicyOrBuilder
    • getRulesOrBuilderList

      public List<? extends PolicyRuleOrBuilder> getRulesOrBuilderList()
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRulesOrBuilderList in interface DeployPolicyOrBuilder
    • addRulesBuilder

      public PolicyRule.Builder addRulesBuilder()
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • addRulesBuilder

      public PolicyRule.Builder addRulesBuilder(int index)
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • getRulesBuilderList

      public List<PolicyRule.Builder> getRulesBuilderList()
       Required. Rules to apply. At least one rule must be present.
       
      repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED];
    • getEtag

      public String getEtag()
       The weak etag of the `DeployPolicy` resource.
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 11;
      Specified by:
      getEtag in interface DeployPolicyOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       The weak etag of the `DeployPolicy` resource.
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 11;
      Specified by:
      getEtagBytes in interface DeployPolicyOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public DeployPolicy.Builder setEtag(String value)
       The weak etag of the `DeployPolicy` resource.
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 11;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public DeployPolicy.Builder clearEtag()
       The weak etag of the `DeployPolicy` resource.
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 11;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public DeployPolicy.Builder setEtagBytes(com.google.protobuf.ByteString value)
       The weak etag of the `DeployPolicy` resource.
       This checksum is computed by the server based on the value of other
       fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 11;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.