Class SecurityPolicyRuleRedirectOptions.Builder

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

public static final class SecurityPolicyRuleRedirectOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyRuleRedirectOptions.Builder> implements SecurityPolicyRuleRedirectOptionsOrBuilder
 
Protobuf type google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions
  • 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<SecurityPolicyRuleRedirectOptions.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<SecurityPolicyRuleRedirectOptions.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<SecurityPolicyRuleRedirectOptions.Builder>
    • getDefaultInstanceForType

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

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

      public SecurityPolicyRuleRedirectOptions.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<SecurityPolicyRuleRedirectOptions.Builder>
      Throws:
      IOException
    • hasTarget

      public boolean hasTarget()
       Target for the redirect action. This is required if the type is
       EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
       
      optional string target = 192835985;
      Specified by:
      hasTarget in interface SecurityPolicyRuleRedirectOptionsOrBuilder
      Returns:
      Whether the target field is set.
    • getTarget

      public String getTarget()
       Target for the redirect action. This is required if the type is
       EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
       
      optional string target = 192835985;
      Specified by:
      getTarget in interface SecurityPolicyRuleRedirectOptionsOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       Target for the redirect action. This is required if the type is
       EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
       
      optional string target = 192835985;
      Specified by:
      getTargetBytes in interface SecurityPolicyRuleRedirectOptionsOrBuilder
      Returns:
      The bytes for target.
    • setTarget

       Target for the redirect action. This is required if the type is
       EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
       
      optional string target = 192835985;
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

       Target for the redirect action. This is required if the type is
       EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
       
      optional string target = 192835985;
      Returns:
      This builder for chaining.
    • setTargetBytes

      public SecurityPolicyRuleRedirectOptions.Builder setTargetBytes(com.google.protobuf.ByteString value)
       Target for the redirect action. This is required if the type is
       EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA.
       
      optional string target = 192835985;
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Type of the redirect action. Possible values are:
      
       - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual
       challenge assessment.
       - EXTERNAL_302: redirect to a different URL via a 302
       response.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      hasType in interface SecurityPolicyRuleRedirectOptionsOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Type of the redirect action. Possible values are:
      
       - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual
       challenge assessment.
       - EXTERNAL_302: redirect to a different URL via a 302
       response.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getType in interface SecurityPolicyRuleRedirectOptionsOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Type of the redirect action. Possible values are:
      
       - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual
       challenge assessment.
       - EXTERNAL_302: redirect to a different URL via a 302
       response.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Specified by:
      getTypeBytes in interface SecurityPolicyRuleRedirectOptionsOrBuilder
      Returns:
      The bytes for type.
    • setType

       Type of the redirect action. Possible values are:
      
       - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual
       challenge assessment.
       - EXTERNAL_302: redirect to a different URL via a 302
       response.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Type of the redirect action. Possible values are:
      
       - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual
       challenge assessment.
       - EXTERNAL_302: redirect to a different URL via a 302
       response.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public SecurityPolicyRuleRedirectOptions.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Type of the redirect action. Possible values are:
      
       - GOOGLE_RECAPTCHA: redirect to reCAPTCHA for manual
       challenge assessment.
       - EXTERNAL_302: redirect to a different URL via a 302
       response.
       Check the Type enum for the list of possible values.
       
      optional string type = 3575610;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.