Class PatchRuleRegionSecurityPolicyRequest.Builder

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

public static final class PatchRuleRegionSecurityPolicyRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<PatchRuleRegionSecurityPolicyRequest.Builder> implements PatchRuleRegionSecurityPolicyRequestOrBuilder
 A request message for RegionSecurityPolicies.PatchRule. See the method description for details.
 
Protobuf type google.cloud.compute.v1.PatchRuleRegionSecurityPolicyRequest
  • 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<PatchRuleRegionSecurityPolicyRequest.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<PatchRuleRegionSecurityPolicyRequest.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<PatchRuleRegionSecurityPolicyRequest.Builder>
    • getDefaultInstanceForType

      public PatchRuleRegionSecurityPolicyRequest 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 PatchRuleRegionSecurityPolicyRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public PatchRuleRegionSecurityPolicyRequest.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<PatchRuleRegionSecurityPolicyRequest.Builder>
      Throws:
      IOException
    • hasPriority

      public boolean hasPriority()
       The priority of the rule to patch.
       
      optional int32 priority = 445151652;
      Specified by:
      hasPriority in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      Whether the priority field is set.
    • getPriority

      public int getPriority()
       The priority of the rule to patch.
       
      optional int32 priority = 445151652;
      Specified by:
      getPriority in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The priority.
    • setPriority

      public PatchRuleRegionSecurityPolicyRequest.Builder setPriority(int value)
       The priority of the rule to patch.
       
      optional int32 priority = 445151652;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

       The priority of the rule to patch.
       
      optional int32 priority = 445151652;
      Returns:
      This builder for chaining.
    • getProject

      public String getProject()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
      Specified by:
      getProject in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
      Specified by:
      getProjectBytes in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The bytes for project.
    • setProject

       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
      Returns:
      This builder for chaining.
    • setProjectBytes

      public PatchRuleRegionSecurityPolicyRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Project ID for this request.
       
      string project = 227560217 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "project"];
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getRegion

      public String getRegion()
       Name of the region scoping this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];
      Specified by:
      getRegion in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Name of the region scoping this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];
      Specified by:
      getRegionBytes in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The bytes for region.
    • setRegion

       Name of the region scoping this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

       Name of the region scoping this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];
      Returns:
      This builder for chaining.
    • setRegionBytes

      public PatchRuleRegionSecurityPolicyRequest.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Name of the region scoping this request.
       
      string region = 138946292 [(.google.api.field_behavior) = REQUIRED, (.google.cloud.operation_request_field) = "region"];
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • getSecurityPolicy

      public String getSecurityPolicy()
       Name of the security policy to update.
       
      string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecurityPolicy in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The securityPolicy.
    • getSecurityPolicyBytes

      public com.google.protobuf.ByteString getSecurityPolicyBytes()
       Name of the security policy to update.
       
      string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecurityPolicyBytes in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The bytes for securityPolicy.
    • setSecurityPolicy

      public PatchRuleRegionSecurityPolicyRequest.Builder setSecurityPolicy(String value)
       Name of the security policy to update.
       
      string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The securityPolicy to set.
      Returns:
      This builder for chaining.
    • clearSecurityPolicy

      public PatchRuleRegionSecurityPolicyRequest.Builder clearSecurityPolicy()
       Name of the security policy to update.
       
      string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSecurityPolicyBytes

      public PatchRuleRegionSecurityPolicyRequest.Builder setSecurityPolicyBytes(com.google.protobuf.ByteString value)
       Name of the security policy to update.
       
      string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for securityPolicy to set.
      Returns:
      This builder for chaining.
    • hasSecurityPolicyRuleResource

      public boolean hasSecurityPolicyRuleResource()
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSecurityPolicyRuleResource in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      Whether the securityPolicyRuleResource field is set.
    • getSecurityPolicyRuleResource

      public SecurityPolicyRule getSecurityPolicyRuleResource()
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecurityPolicyRuleResource in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The securityPolicyRuleResource.
    • setSecurityPolicyRuleResource

      public PatchRuleRegionSecurityPolicyRequest.Builder setSecurityPolicyRuleResource(SecurityPolicyRule value)
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
    • setSecurityPolicyRuleResource

      public PatchRuleRegionSecurityPolicyRequest.Builder setSecurityPolicyRuleResource(SecurityPolicyRule.Builder builderForValue)
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
    • mergeSecurityPolicyRuleResource

      public PatchRuleRegionSecurityPolicyRequest.Builder mergeSecurityPolicyRuleResource(SecurityPolicyRule value)
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
    • clearSecurityPolicyRuleResource

      public PatchRuleRegionSecurityPolicyRequest.Builder clearSecurityPolicyRuleResource()
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
    • getSecurityPolicyRuleResourceBuilder

      public SecurityPolicyRule.Builder getSecurityPolicyRuleResourceBuilder()
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
    • getSecurityPolicyRuleResourceOrBuilder

      public SecurityPolicyRuleOrBuilder getSecurityPolicyRuleResourceOrBuilder()
       The body resource for this request
       
      .google.cloud.compute.v1.SecurityPolicyRule security_policy_rule_resource = 402693443 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSecurityPolicyRuleResourceOrBuilder in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Indicates fields to be cleared as part of this request.
       
      optional string update_mask = 500079778;
      Specified by:
      hasUpdateMask in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public String getUpdateMask()
       Indicates fields to be cleared as part of this request.
       
      optional string update_mask = 500079778;
      Specified by:
      getUpdateMask in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The updateMask.
    • getUpdateMaskBytes

      public com.google.protobuf.ByteString getUpdateMaskBytes()
       Indicates fields to be cleared as part of this request.
       
      optional string update_mask = 500079778;
      Specified by:
      getUpdateMaskBytes in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The bytes for updateMask.
    • setUpdateMask

       Indicates fields to be cleared as part of this request.
       
      optional string update_mask = 500079778;
      Parameters:
      value - The updateMask to set.
      Returns:
      This builder for chaining.
    • clearUpdateMask

       Indicates fields to be cleared as part of this request.
       
      optional string update_mask = 500079778;
      Returns:
      This builder for chaining.
    • setUpdateMaskBytes

      public PatchRuleRegionSecurityPolicyRequest.Builder setUpdateMaskBytes(com.google.protobuf.ByteString value)
       Indicates fields to be cleared as part of this request.
       
      optional string update_mask = 500079778;
      Parameters:
      value - The bytes for updateMask to set.
      Returns:
      This builder for chaining.
    • hasValidateOnly

      public boolean hasValidateOnly()
       If true, the request will not be committed.
       
      optional bool validate_only = 242744629;
      Specified by:
      hasValidateOnly in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      Whether the validateOnly field is set.
    • getValidateOnly

      public boolean getValidateOnly()
       If true, the request will not be committed.
       
      optional bool validate_only = 242744629;
      Specified by:
      getValidateOnly in interface PatchRuleRegionSecurityPolicyRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public PatchRuleRegionSecurityPolicyRequest.Builder setValidateOnly(boolean value)
       If true, the request will not be committed.
       
      optional bool validate_only = 242744629;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

       If true, the request will not be committed.
       
      optional bool validate_only = 242744629;
      Returns:
      This builder for chaining.