Class Policy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Policy.Builder>
com.google.iam.v2.Policy.Builder
All Implemented Interfaces:
PolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Policy

public static final class Policy.Builder extends com.google.protobuf.GeneratedMessage.Builder<Policy.Builder> implements PolicyOrBuilder
 Data for an IAM policy.
 
Protobuf type google.iam.v2.Policy
  • 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<Policy.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public Policy.Builder mergeFrom(Policy other)
    • isInitialized

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

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

      public String getName()
       Immutable. The resource name of the `Policy`, which must be unique. Format:
       `policies/{attachment_point}/denypolicies/{policy_id}`
      
      
       The attachment point is identified by its URL-encoded full resource name,
       which means that the forward-slash character, `/`, must be written as
       `%2F`. For example,
       `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
      
       For organizations and folders, use the numeric ID in the full resource
       name. For projects, requests can use the alphanumeric or the numeric ID.
       Responses always contain the numeric ID.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface PolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. The resource name of the `Policy`, which must be unique. Format:
       `policies/{attachment_point}/denypolicies/{policy_id}`
      
      
       The attachment point is identified by its URL-encoded full resource name,
       which means that the forward-slash character, `/`, must be written as
       `%2F`. For example,
       `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
      
       For organizations and folders, use the numeric ID in the full resource
       name. For projects, requests can use the alphanumeric or the numeric ID.
       Responses always contain the numeric ID.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface PolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Policy.Builder setName(String value)
       Immutable. The resource name of the `Policy`, which must be unique. Format:
       `policies/{attachment_point}/denypolicies/{policy_id}`
      
      
       The attachment point is identified by its URL-encoded full resource name,
       which means that the forward-slash character, `/`, must be written as
       `%2F`. For example,
       `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
      
       For organizations and folders, use the numeric ID in the full resource
       name. For projects, requests can use the alphanumeric or the numeric ID.
       Responses always contain the numeric ID.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Policy.Builder clearName()
       Immutable. The resource name of the `Policy`, which must be unique. Format:
       `policies/{attachment_point}/denypolicies/{policy_id}`
      
      
       The attachment point is identified by its URL-encoded full resource name,
       which means that the forward-slash character, `/`, must be written as
       `%2F`. For example,
       `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
      
       For organizations and folders, use the numeric ID in the full resource
       name. For projects, requests can use the alphanumeric or the numeric ID.
       Responses always contain the numeric ID.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Policy.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the `Policy`, which must be unique. Format:
       `policies/{attachment_point}/denypolicies/{policy_id}`
      
      
       The attachment point is identified by its URL-encoded full resource name,
       which means that the forward-slash character, `/`, must be written as
       `%2F`. For example,
       `policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy`.
      
       For organizations and folders, use the numeric ID in the full resource
       name. For projects, requests can use the alphanumeric or the numeric ID.
       Responses always contain the numeric ID.
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
       `Policy` is created.
       
      string uid = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getUid in interface PolicyOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
       `Policy` is created.
       
      string uid = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getUidBytes in interface PolicyOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Policy.Builder setUid(String value)
       Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
       `Policy` is created.
       
      string uid = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Policy.Builder clearUid()
       Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
       `Policy` is created.
       
      string uid = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setUidBytes

      public Policy.Builder setUidBytes(com.google.protobuf.ByteString value)
       Immutable. The globally unique ID of the `Policy`. Assigned automatically when the
       `Policy` is created.
       
      string uid = 2 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getKind

      public String getKind()
       Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
       
      string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKind in interface PolicyOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
       
      string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKindBytes in interface PolicyOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public Policy.Builder setKind(String value)
       Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
       
      string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public Policy.Builder clearKind()
       Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
       
      string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setKindBytes

      public Policy.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. The kind of the `Policy`. Always contains the value `DenyPolicy`.
       
      string kind = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       A user-specified description of the `Policy`. This value can be up to 63
       characters.
       
      string display_name = 4;
      Specified by:
      getDisplayName in interface PolicyOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       A user-specified description of the `Policy`. This value can be up to 63
       characters.
       
      string display_name = 4;
      Specified by:
      getDisplayNameBytes in interface PolicyOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Policy.Builder setDisplayName(String value)
       A user-specified description of the `Policy`. This value can be up to 63
       characters.
       
      string display_name = 4;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Policy.Builder clearDisplayName()
       A user-specified description of the `Policy`. This value can be up to 63
       characters.
       
      string display_name = 4;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Policy.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       A user-specified description of the `Policy`. This value can be up to 63
       characters.
       
      string display_name = 4;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: PolicyOrBuilder
       A key-value map to store arbitrary metadata for the `Policy`. Keys
       can be up to 63 characters. Values can be up to 255 characters.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsCount in interface PolicyOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       A key-value map to store arbitrary metadata for the `Policy`. Keys
       can be up to 63 characters. Values can be up to 255 characters.
       
      map<string, string> annotations = 5;
      Specified by:
      containsAnnotations in interface PolicyOrBuilder
    • getAnnotations

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

      public Map<String,String> getAnnotationsMap()
       A key-value map to store arbitrary metadata for the `Policy`. Keys
       can be up to 63 characters. Values can be up to 255 characters.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsMap in interface PolicyOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       A key-value map to store arbitrary metadata for the `Policy`. Keys
       can be up to 63 characters. Values can be up to 255 characters.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsOrDefault in interface PolicyOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       A key-value map to store arbitrary metadata for the `Policy`. Keys
       can be up to 63 characters. Values can be up to 255 characters.
       
      map<string, string> annotations = 5;
      Specified by:
      getAnnotationsOrThrow in interface PolicyOrBuilder
    • clearAnnotations

      public Policy.Builder clearAnnotations()
    • removeAnnotations

      public Policy.Builder removeAnnotations(String key)
       A key-value map to store arbitrary metadata for the `Policy`. Keys
       can be up to 63 characters. Values can be up to 255 characters.
       
      map<string, string> annotations = 5;
    • getMutableAnnotations

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

      public Policy.Builder putAnnotations(String key, String value)
       A key-value map to store arbitrary metadata for the `Policy`. Keys
       can be up to 63 characters. Values can be up to 255 characters.
       
      map<string, string> annotations = 5;
    • putAllAnnotations

      public Policy.Builder putAllAnnotations(Map<String,String> values)
       A key-value map to store arbitrary metadata for the `Policy`. Keys
       can be up to 63 characters. Values can be up to 255 characters.
       
      map<string, string> annotations = 5;
    • getEtag

      public String getEtag()
       An opaque tag that identifies the current version of the `Policy`. IAM uses
       this value to help manage concurrent updates, so they do not cause one
       update to be overwritten by another.
      
       If this field is present in a [CreatePolicy][] request, the value is
       ignored.
       
      string etag = 6;
      Specified by:
      getEtag in interface PolicyOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       An opaque tag that identifies the current version of the `Policy`. IAM uses
       this value to help manage concurrent updates, so they do not cause one
       update to be overwritten by another.
      
       If this field is present in a [CreatePolicy][] request, the value is
       ignored.
       
      string etag = 6;
      Specified by:
      getEtagBytes in interface PolicyOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public Policy.Builder setEtag(String value)
       An opaque tag that identifies the current version of the `Policy`. IAM uses
       this value to help manage concurrent updates, so they do not cause one
       update to be overwritten by another.
      
       If this field is present in a [CreatePolicy][] request, the value is
       ignored.
       
      string etag = 6;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public Policy.Builder clearEtag()
       An opaque tag that identifies the current version of the `Policy`. IAM uses
       this value to help manage concurrent updates, so they do not cause one
       update to be overwritten by another.
      
       If this field is present in a [CreatePolicy][] request, the value is
       ignored.
       
      string etag = 6;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Policy.Builder setEtagBytes(com.google.protobuf.ByteString value)
       An opaque tag that identifies the current version of the `Policy`. IAM uses
       this value to help manage concurrent updates, so they do not cause one
       update to be overwritten by another.
      
       If this field is present in a [CreatePolicy][] request, the value is
       ignored.
       
      string etag = 6;
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when the `Policy` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface PolicyOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the `Policy` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface PolicyOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Policy.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the `Policy` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Policy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the `Policy` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Policy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the `Policy` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Policy.Builder clearCreateTime()
       Output only. The time when the `Policy` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when the `Policy` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the `Policy` was created.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface PolicyOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time when the `Policy` was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PolicyOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time when the `Policy` was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PolicyOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Policy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the `Policy` was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Policy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the `Policy` was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Policy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the `Policy` was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Policy.Builder clearUpdateTime()
       Output only. The time when the `Policy` was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time when the `Policy` was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time when the `Policy` was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PolicyOrBuilder
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
       
      .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeleteTime in interface PolicyOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
       
      .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTime in interface PolicyOrBuilder
      Returns:
      The deleteTime.
    • setDeleteTime

      public Policy.Builder setDeleteTime(com.google.protobuf.Timestamp value)
       Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
       
      .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeleteTime

      public Policy.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
       
      .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeleteTime

      public Policy.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
       Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
       
      .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeleteTime

      public Policy.Builder clearDeleteTime()
       Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
       
      .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
       Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
       
      .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
       Output only. The time when the `Policy` was deleted. Empty if the policy is not deleted.
       
      .google.protobuf.Timestamp delete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface PolicyOrBuilder
    • getRulesList

      public List<PolicyRule> getRulesList()
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
      Specified by:
      getRulesList in interface PolicyOrBuilder
    • getRulesCount

      public int getRulesCount()
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
      Specified by:
      getRulesCount in interface PolicyOrBuilder
    • getRules

      public PolicyRule getRules(int index)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
      Specified by:
      getRules in interface PolicyOrBuilder
    • setRules

      public Policy.Builder setRules(int index, PolicyRule value)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • setRules

      public Policy.Builder setRules(int index, PolicyRule.Builder builderForValue)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • addRules

      public Policy.Builder addRules(PolicyRule value)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • addRules

      public Policy.Builder addRules(int index, PolicyRule value)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • addRules

      public Policy.Builder addRules(PolicyRule.Builder builderForValue)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • addRules

      public Policy.Builder addRules(int index, PolicyRule.Builder builderForValue)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • addAllRules

      public Policy.Builder addAllRules(Iterable<? extends PolicyRule> values)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • clearRules

      public Policy.Builder clearRules()
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • removeRules

      public Policy.Builder removeRules(int index)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • getRulesBuilder

      public PolicyRule.Builder getRulesBuilder(int index)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • getRulesOrBuilder

      public PolicyRuleOrBuilder getRulesOrBuilder(int index)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
      Specified by:
      getRulesOrBuilder in interface PolicyOrBuilder
    • getRulesOrBuilderList

      public List<? extends PolicyRuleOrBuilder> getRulesOrBuilderList()
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
      Specified by:
      getRulesOrBuilderList in interface PolicyOrBuilder
    • addRulesBuilder

      public PolicyRule.Builder addRulesBuilder()
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • addRulesBuilder

      public PolicyRule.Builder addRulesBuilder(int index)
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • getRulesBuilderList

      public List<PolicyRule.Builder> getRulesBuilderList()
       A list of rules that specify the behavior of the `Policy`. All of the rules
       should be of the `kind` specified in the `Policy`.
       
      repeated .google.iam.v2.PolicyRule rules = 10;
    • getManagingAuthority

      public String getManagingAuthority()
       Immutable. Specifies that this policy is managed by an authority and can only be
       modified by that authority. Usage is restricted.
       
      string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getManagingAuthority in interface PolicyOrBuilder
      Returns:
      The managingAuthority.
    • getManagingAuthorityBytes

      public com.google.protobuf.ByteString getManagingAuthorityBytes()
       Immutable. Specifies that this policy is managed by an authority and can only be
       modified by that authority. Usage is restricted.
       
      string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getManagingAuthorityBytes in interface PolicyOrBuilder
      Returns:
      The bytes for managingAuthority.
    • setManagingAuthority

      public Policy.Builder setManagingAuthority(String value)
       Immutable. Specifies that this policy is managed by an authority and can only be
       modified by that authority. Usage is restricted.
       
      string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The managingAuthority to set.
      Returns:
      This builder for chaining.
    • clearManagingAuthority

      public Policy.Builder clearManagingAuthority()
       Immutable. Specifies that this policy is managed by an authority and can only be
       modified by that authority. Usage is restricted.
       
      string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setManagingAuthorityBytes

      public Policy.Builder setManagingAuthorityBytes(com.google.protobuf.ByteString value)
       Immutable. Specifies that this policy is managed by an authority and can only be
       modified by that authority. Usage is restricted.
       
      string managing_authority = 11 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for managingAuthority to set.
      Returns:
      This builder for chaining.