Class CreateAccessPolicyRequest.Builder

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

public static final class CreateAccessPolicyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateAccessPolicyRequest.Builder> implements CreateAccessPolicyRequestOrBuilder
 Request message for CreateAccessPolicy method.
 
Protobuf type google.iam.v3beta.CreateAccessPolicyRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateAccessPolicyRequest.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<CreateAccessPolicyRequest.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<CreateAccessPolicyRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public CreateAccessPolicyRequest.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<CreateAccessPolicyRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource where this access policy will be created.
      
       Format:
       `projects/{project_id}/locations/{location}`
       `projects/{project_number}/locations/{location}`
       `folders/{folder_id}/locations/{location}`
       `organizations/{organization_id}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateAccessPolicyRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where this access policy will be created.
      
       Format:
       `projects/{project_id}/locations/{location}`
       `projects/{project_number}/locations/{location}`
       `folders/{folder_id}/locations/{location}`
       `organizations/{organization_id}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateAccessPolicyRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateAccessPolicyRequest.Builder setParent(String value)
       Required. The parent resource where this access policy will be created.
      
       Format:
       `projects/{project_id}/locations/{location}`
       `projects/{project_number}/locations/{location}`
       `folders/{folder_id}/locations/{location}`
       `organizations/{organization_id}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateAccessPolicyRequest.Builder clearParent()
       Required. The parent resource where this access policy will be created.
      
       Format:
       `projects/{project_id}/locations/{location}`
       `projects/{project_number}/locations/{location}`
       `folders/{folder_id}/locations/{location}`
       `organizations/{organization_id}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateAccessPolicyRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where this access policy will be created.
      
       Format:
       `projects/{project_id}/locations/{location}`
       `projects/{project_number}/locations/{location}`
       `folders/{folder_id}/locations/{location}`
       `organizations/{organization_id}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getAccessPolicyId

      public String getAccessPolicyId()
       Required. The ID to use for the access policy, which
       will become the final component of the access policy's
       resource name.
      
       This value must start with a lowercase letter followed by up to 62
       lowercase letters, numbers, hyphens, or dots. Pattern,
       /[a-z][a-z0-9-\.]{2,62}/.
      
       This value must be unique among all access policies with the same parent.
       
      string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccessPolicyId in interface CreateAccessPolicyRequestOrBuilder
      Returns:
      The accessPolicyId.
    • getAccessPolicyIdBytes

      public com.google.protobuf.ByteString getAccessPolicyIdBytes()
       Required. The ID to use for the access policy, which
       will become the final component of the access policy's
       resource name.
      
       This value must start with a lowercase letter followed by up to 62
       lowercase letters, numbers, hyphens, or dots. Pattern,
       /[a-z][a-z0-9-\.]{2,62}/.
      
       This value must be unique among all access policies with the same parent.
       
      string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccessPolicyIdBytes in interface CreateAccessPolicyRequestOrBuilder
      Returns:
      The bytes for accessPolicyId.
    • setAccessPolicyId

      public CreateAccessPolicyRequest.Builder setAccessPolicyId(String value)
       Required. The ID to use for the access policy, which
       will become the final component of the access policy's
       resource name.
      
       This value must start with a lowercase letter followed by up to 62
       lowercase letters, numbers, hyphens, or dots. Pattern,
       /[a-z][a-z0-9-\.]{2,62}/.
      
       This value must be unique among all access policies with the same parent.
       
      string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The accessPolicyId to set.
      Returns:
      This builder for chaining.
    • clearAccessPolicyId

      public CreateAccessPolicyRequest.Builder clearAccessPolicyId()
       Required. The ID to use for the access policy, which
       will become the final component of the access policy's
       resource name.
      
       This value must start with a lowercase letter followed by up to 62
       lowercase letters, numbers, hyphens, or dots. Pattern,
       /[a-z][a-z0-9-\.]{2,62}/.
      
       This value must be unique among all access policies with the same parent.
       
      string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAccessPolicyIdBytes

      public CreateAccessPolicyRequest.Builder setAccessPolicyIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the access policy, which
       will become the final component of the access policy's
       resource name.
      
       This value must start with a lowercase letter followed by up to 62
       lowercase letters, numbers, hyphens, or dots. Pattern,
       /[a-z][a-z0-9-\.]{2,62}/.
      
       This value must be unique among all access policies with the same parent.
       
      string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for accessPolicyId to set.
      Returns:
      This builder for chaining.
    • hasAccessPolicy

      public boolean hasAccessPolicy()
       Required. The access policy to create.
       
      .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAccessPolicy in interface CreateAccessPolicyRequestOrBuilder
      Returns:
      Whether the accessPolicy field is set.
    • getAccessPolicy

      public AccessPolicy getAccessPolicy()
       Required. The access policy to create.
       
      .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccessPolicy in interface CreateAccessPolicyRequestOrBuilder
      Returns:
      The accessPolicy.
    • setAccessPolicy

      public CreateAccessPolicyRequest.Builder setAccessPolicy(AccessPolicy value)
       Required. The access policy to create.
       
      .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • setAccessPolicy

      public CreateAccessPolicyRequest.Builder setAccessPolicy(AccessPolicy.Builder builderForValue)
       Required. The access policy to create.
       
      .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeAccessPolicy

      public CreateAccessPolicyRequest.Builder mergeAccessPolicy(AccessPolicy value)
       Required. The access policy to create.
       
      .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearAccessPolicy

      public CreateAccessPolicyRequest.Builder clearAccessPolicy()
       Required. The access policy to create.
       
      .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAccessPolicyBuilder

      public AccessPolicy.Builder getAccessPolicyBuilder()
       Required. The access policy to create.
       
      .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAccessPolicyOrBuilder

      public AccessPolicyOrBuilder getAccessPolicyOrBuilder()
       Required. The access policy to create.
       
      .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAccessPolicyOrBuilder in interface CreateAccessPolicyRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. If set, validate the request and preview the creation, but do not
       actually post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface CreateAccessPolicyRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateAccessPolicyRequest.Builder setValidateOnly(boolean value)
       Optional. If set, validate the request and preview the creation, but do not
       actually post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateAccessPolicyRequest.Builder clearValidateOnly()
       Optional. If set, validate the request and preview the creation, but do not
       actually post it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.