Class FirewallAction.SubstituteAction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FirewallAction.SubstituteAction.Builder>
com.google.recaptchaenterprise.v1.FirewallAction.SubstituteAction.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, FirewallAction.SubstituteActionOrBuilder, Cloneable
Enclosing class:
FirewallAction.SubstituteAction

public static final class FirewallAction.SubstituteAction.Builder extends com.google.protobuf.GeneratedMessage.Builder<FirewallAction.SubstituteAction.Builder> implements FirewallAction.SubstituteActionOrBuilder
 A substitute action transparently serves a different page than the one
 requested.
 
Protobuf type google.cloud.recaptchaenterprise.v1.FirewallAction.SubstituteAction
  • 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<FirewallAction.SubstituteAction.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<FirewallAction.SubstituteAction.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<FirewallAction.SubstituteAction.Builder>
    • getDefaultInstanceForType

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

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

      public FirewallAction.SubstituteAction.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<FirewallAction.SubstituteAction.Builder>
      Throws:
      IOException
    • getPath

      public String getPath()
       Optional. The address to redirect to. The target is a relative path in
       the current host. Example: "/blog/404.html".
       
      string path = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPath in interface FirewallAction.SubstituteActionOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Optional. The address to redirect to. The target is a relative path in
       the current host. Example: "/blog/404.html".
       
      string path = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathBytes in interface FirewallAction.SubstituteActionOrBuilder
      Returns:
      The bytes for path.
    • setPath

       Optional. The address to redirect to. The target is a relative path in
       the current host. Example: "/blog/404.html".
       
      string path = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

       Optional. The address to redirect to. The target is a relative path in
       the current host. Example: "/blog/404.html".
       
      string path = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPathBytes

      public FirewallAction.SubstituteAction.Builder setPathBytes(com.google.protobuf.ByteString value)
       Optional. The address to redirect to. The target is a relative path in
       the current host. Example: "/blog/404.html".
       
      string path = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.