Class CreateAuthorizationPolicyRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public CreateAuthorizationPolicyRequest 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAuthorizationPolicyRequest.Builder>
      • 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

        public CreateAuthorizationPolicyRequest.Builder setParent​(String 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 parent to set.
        Returns:
        This builder for chaining.
      • clearParent

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