Class CreateAuthorizationPolicyRequest.Builder

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

public static final class CreateAuthorizationPolicyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateAuthorizationPolicyRequest.Builder> implements CreateAuthorizationPolicyRequestOrBuilder
 Request used by the CreateAuthorizationPolicy method.
 
Protobuf type google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest
  • 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<CreateAuthorizationPolicyRequest.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<CreateAuthorizationPolicyRequest.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<CreateAuthorizationPolicyRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

      public String getParent()
       Required. The parent resource of the AuthorizationPolicy. Must be in the
       format `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateAuthorizationPolicyRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource of the AuthorizationPolicy. Must be in the
       format `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateAuthorizationPolicyRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The parent resource of the AuthorizationPolicy. Must be in the
       format `projects/{project}/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

       Required. The parent resource of the AuthorizationPolicy. Must be in the
       format `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateAuthorizationPolicyRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource of the AuthorizationPolicy. Must be in the
       format `projects/{project}/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.
    • getAuthorizationPolicyId

      public String getAuthorizationPolicyId()
       Required. Short name of the AuthorizationPolicy resource to be created.
       This value should be 1-63 characters long, containing only
       letters, numbers, hyphens, and underscores, and should not start
       with a number. E.g. "authz_policy".
       
      string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizationPolicyId in interface CreateAuthorizationPolicyRequestOrBuilder
      Returns:
      The authorizationPolicyId.
    • getAuthorizationPolicyIdBytes

      public com.google.protobuf.ByteString getAuthorizationPolicyIdBytes()
       Required. Short name of the AuthorizationPolicy resource to be created.
       This value should be 1-63 characters long, containing only
       letters, numbers, hyphens, and underscores, and should not start
       with a number. E.g. "authz_policy".
       
      string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizationPolicyIdBytes in interface CreateAuthorizationPolicyRequestOrBuilder
      Returns:
      The bytes for authorizationPolicyId.
    • setAuthorizationPolicyId

      public CreateAuthorizationPolicyRequest.Builder setAuthorizationPolicyId(String value)
       Required. Short name of the AuthorizationPolicy resource to be created.
       This value should be 1-63 characters long, containing only
       letters, numbers, hyphens, and underscores, and should not start
       with a number. E.g. "authz_policy".
       
      string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The authorizationPolicyId to set.
      Returns:
      This builder for chaining.
    • clearAuthorizationPolicyId

      public CreateAuthorizationPolicyRequest.Builder clearAuthorizationPolicyId()
       Required. Short name of the AuthorizationPolicy resource to be created.
       This value should be 1-63 characters long, containing only
       letters, numbers, hyphens, and underscores, and should not start
       with a number. E.g. "authz_policy".
       
      string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAuthorizationPolicyIdBytes

      public CreateAuthorizationPolicyRequest.Builder setAuthorizationPolicyIdBytes(com.google.protobuf.ByteString value)
       Required. Short name of the AuthorizationPolicy resource to be created.
       This value should be 1-63 characters long, containing only
       letters, numbers, hyphens, and underscores, and should not start
       with a number. E.g. "authz_policy".
       
      string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for authorizationPolicyId to set.
      Returns:
      This builder for chaining.
    • hasAuthorizationPolicy

      public boolean hasAuthorizationPolicy()
       Required. AuthorizationPolicy resource to be created.
       
      .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAuthorizationPolicy in interface CreateAuthorizationPolicyRequestOrBuilder
      Returns:
      Whether the authorizationPolicy field is set.
    • getAuthorizationPolicy

      public AuthorizationPolicy getAuthorizationPolicy()
       Required. AuthorizationPolicy resource to be created.
       
      .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizationPolicy in interface CreateAuthorizationPolicyRequestOrBuilder
      Returns:
      The authorizationPolicy.
    • setAuthorizationPolicy

      public CreateAuthorizationPolicyRequest.Builder setAuthorizationPolicy(AuthorizationPolicy value)
       Required. AuthorizationPolicy resource to be created.
       
      .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • setAuthorizationPolicy

      public CreateAuthorizationPolicyRequest.Builder setAuthorizationPolicy(AuthorizationPolicy.Builder builderForValue)
       Required. AuthorizationPolicy resource to be created.
       
      .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeAuthorizationPolicy

      public CreateAuthorizationPolicyRequest.Builder mergeAuthorizationPolicy(AuthorizationPolicy value)
       Required. AuthorizationPolicy resource to be created.
       
      .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearAuthorizationPolicy

      public CreateAuthorizationPolicyRequest.Builder clearAuthorizationPolicy()
       Required. AuthorizationPolicy resource to be created.
       
      .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAuthorizationPolicyBuilder

      public AuthorizationPolicy.Builder getAuthorizationPolicyBuilder()
       Required. AuthorizationPolicy resource to be created.
       
      .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
    • getAuthorizationPolicyOrBuilder

      public AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder()
       Required. AuthorizationPolicy resource to be created.
       
      .google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAuthorizationPolicyOrBuilder in interface CreateAuthorizationPolicyRequestOrBuilder