Class Compute.HttpMatchRule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.HttpMatchRule.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.HttpMatchRule.Builder>
namespace.cloud.compute.v1beta.Compute.HttpMatchRule.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Compute.HttpMatchRuleOrBuilder
Enclosing class:
Compute.HttpMatchRule

public static final class Compute.HttpMatchRule.Builder extends com.google.protobuf.GeneratedMessage.Builder<Compute.HttpMatchRule.Builder> implements Compute.HttpMatchRuleOrBuilder
 Configures which HTTP requests match an ingress rule, and whether
 authentication is required.
 
Protobuf type namespace.cloud.compute.v1beta.HttpMatchRule
  • 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<Compute.HttpMatchRule.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<Compute.HttpMatchRule.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<Compute.HttpMatchRule.Builder>
    • getDefaultInstanceForType

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

      public Compute.HttpMatchRule build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public Compute.HttpMatchRule.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<Compute.HttpMatchRule.Builder>
      Throws:
      IOException
    • hasMatch

      public boolean hasMatch()
       The HTTP method and path pattern to match.
       
      .namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch match = 1;
      Specified by:
      hasMatch in interface Compute.HttpMatchRuleOrBuilder
      Returns:
      Whether the match field is set.
    • getMatch

       The HTTP method and path pattern to match.
       
      .namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch match = 1;
      Specified by:
      getMatch in interface Compute.HttpMatchRuleOrBuilder
      Returns:
      The match.
    • setMatch

       The HTTP method and path pattern to match.
       
      .namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch match = 1;
    • setMatch

       The HTTP method and path pattern to match.
       
      .namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch match = 1;
    • mergeMatch

       The HTTP method and path pattern to match.
       
      .namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch match = 1;
    • clearMatch

      public Compute.HttpMatchRule.Builder clearMatch()
       The HTTP method and path pattern to match.
       
      .namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch match = 1;
    • getMatchBuilder

      public Compute.HttpMatchRule.HttpMatch.Builder getMatchBuilder()
       The HTTP method and path pattern to match.
       
      .namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch match = 1;
    • getMatchOrBuilder

      public Compute.HttpMatchRule.HttpMatchOrBuilder getMatchOrBuilder()
       The HTTP method and path pattern to match.
       
      .namespace.cloud.compute.v1beta.HttpMatchRule.HttpMatch match = 1;
      Specified by:
      getMatchOrBuilder in interface Compute.HttpMatchRuleOrBuilder
    • getDoesNotRequireAuth

      public boolean getDoesNotRequireAuth()
       If true, requests matching this rule do not require authentication.
       By default, all requests require a valid Bearer token.
       
      bool does_not_require_auth = 2;
      Specified by:
      getDoesNotRequireAuth in interface Compute.HttpMatchRuleOrBuilder
      Returns:
      The doesNotRequireAuth.
    • setDoesNotRequireAuth

      public Compute.HttpMatchRule.Builder setDoesNotRequireAuth(boolean value)
       If true, requests matching this rule do not require authentication.
       By default, all requests require a valid Bearer token.
       
      bool does_not_require_auth = 2;
      Parameters:
      value - The doesNotRequireAuth to set.
      Returns:
      This builder for chaining.
    • clearDoesNotRequireAuth

      public Compute.HttpMatchRule.Builder clearDoesNotRequireAuth()
       If true, requests matching this rule do not require authentication.
       By default, all requests require a valid Bearer token.
       
      bool does_not_require_auth = 2;
      Returns:
      This builder for chaining.