Class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder
All Implemented Interfaces:
AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AuthorizationPolicy.Rule.Destination.HttpHeaderMatch

public static final class AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder> implements AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
 Specification of HTTP header match attributes.
 
Protobuf type google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch
  • 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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
    • getDefaultInstanceForType

      public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch 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

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
    • mergeFrom

      public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.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<AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder>
      Throws:
      IOException
    • getTypeCase

      Specified by:
      getTypeCase in interface AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
    • clearType

    • hasRegexMatch

      public boolean hasRegexMatch()
       Required. The value of the header must match the regular expression
       specified in regexMatch. For regular expression grammar,
       please see: en.cppreference.com/w/cpp/regex/ecmascript
       For matching against a port specified in the HTTP
       request, use a headerMatch with headerName set to Host
       and a regular expression that satisfies the RFC2616 Host
       header's port specifier.
       
      string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRegexMatch in interface AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
      Returns:
      Whether the regexMatch field is set.
    • getRegexMatch

      public String getRegexMatch()
       Required. The value of the header must match the regular expression
       specified in regexMatch. For regular expression grammar,
       please see: en.cppreference.com/w/cpp/regex/ecmascript
       For matching against a port specified in the HTTP
       request, use a headerMatch with headerName set to Host
       and a regular expression that satisfies the RFC2616 Host
       header's port specifier.
       
      string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegexMatch in interface AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
      Returns:
      The regexMatch.
    • getRegexMatchBytes

      public com.google.protobuf.ByteString getRegexMatchBytes()
       Required. The value of the header must match the regular expression
       specified in regexMatch. For regular expression grammar,
       please see: en.cppreference.com/w/cpp/regex/ecmascript
       For matching against a port specified in the HTTP
       request, use a headerMatch with headerName set to Host
       and a regular expression that satisfies the RFC2616 Host
       header's port specifier.
       
      string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRegexMatchBytes in interface AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
      Returns:
      The bytes for regexMatch.
    • setRegexMatch

       Required. The value of the header must match the regular expression
       specified in regexMatch. For regular expression grammar,
       please see: en.cppreference.com/w/cpp/regex/ecmascript
       For matching against a port specified in the HTTP
       request, use a headerMatch with headerName set to Host
       and a regular expression that satisfies the RFC2616 Host
       header's port specifier.
       
      string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The regexMatch to set.
      Returns:
      This builder for chaining.
    • clearRegexMatch

       Required. The value of the header must match the regular expression
       specified in regexMatch. For regular expression grammar,
       please see: en.cppreference.com/w/cpp/regex/ecmascript
       For matching against a port specified in the HTTP
       request, use a headerMatch with headerName set to Host
       and a regular expression that satisfies the RFC2616 Host
       header's port specifier.
       
      string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setRegexMatchBytes

      public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setRegexMatchBytes(com.google.protobuf.ByteString value)
       Required. The value of the header must match the regular expression
       specified in regexMatch. For regular expression grammar,
       please see: en.cppreference.com/w/cpp/regex/ecmascript
       For matching against a port specified in the HTTP
       request, use a headerMatch with headerName set to Host
       and a regular expression that satisfies the RFC2616 Host
       header's port specifier.
       
      string regex_match = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for regexMatch to set.
      Returns:
      This builder for chaining.
    • getHeaderName

      public String getHeaderName()
       Required. The name of the HTTP header to match. For matching
       against the HTTP request's authority, use a headerMatch
       with the header name ":authority". For matching a
       request's method, use the headerName ":method".
       
      string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHeaderName in interface AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
      Returns:
      The headerName.
    • getHeaderNameBytes

      public com.google.protobuf.ByteString getHeaderNameBytes()
       Required. The name of the HTTP header to match. For matching
       against the HTTP request's authority, use a headerMatch
       with the header name ":authority". For matching a
       request's method, use the headerName ":method".
       
      string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHeaderNameBytes in interface AuthorizationPolicy.Rule.Destination.HttpHeaderMatchOrBuilder
      Returns:
      The bytes for headerName.
    • setHeaderName

       Required. The name of the HTTP header to match. For matching
       against the HTTP request's authority, use a headerMatch
       with the header name ":authority". For matching a
       request's method, use the headerName ":method".
       
      string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The headerName to set.
      Returns:
      This builder for chaining.
    • clearHeaderName

       Required. The name of the HTTP header to match. For matching
       against the HTTP request's authority, use a headerMatch
       with the header name ":authority". For matching a
       request's method, use the headerName ":method".
       
      string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setHeaderNameBytes

      public AuthorizationPolicy.Rule.Destination.HttpHeaderMatch.Builder setHeaderNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the HTTP header to match. For matching
       against the HTTP request's authority, use a headerMatch
       with the header name ":authority". For matching a
       request's method, use the headerName ":method".
       
      string header_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for headerName to set.
      Returns:
      This builder for chaining.