Class AuthorizationRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
io.envoyproxy.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AuthorizationRequestOrBuilder, Cloneable
Enclosing class:
AuthorizationRequest

public static final class AuthorizationRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder> implements AuthorizationRequestOrBuilder
Protobuf type envoy.config.filter.http.ext_authz.v2.AuthorizationRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.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.GeneratedMessageV3.Builder<AuthorizationRequest.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.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • getDefaultInstanceForType

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

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

      public AuthorizationRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • setField

      public AuthorizationRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • clearField

      public AuthorizationRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • clearOneof

      public AuthorizationRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • setRepeatedField

      public AuthorizationRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • addRepeatedField

      public AuthorizationRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • mergeFrom

      public AuthorizationRequest.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<AuthorizationRequest.Builder>
      Throws:
      IOException
    • hasAllowedHeaders

      public boolean hasAllowedHeaders()
       Authorization request will include the client request headers that have a correspondent match
       in the :ref:`list <envoy_api_msg_type.matcher.ListStringMatcher>`. Note that in addition to the
       user's supplied matchers:
      
       1. *Host*, *Method*, *Path* and *Content-Length* are automatically included to the list.
      
       2. *Content-Length* will be set to 0 and the request to the authorization service will not have
       a message body. However, the authorization request can include the buffered client request body
       (controlled by :ref:`with_request_body
       <envoy_api_field_config.filter.http.ext_authz.v2.ExtAuthz.with_request_body>` setting),
       consequently the value of *Content-Length* of the authorization request reflects the size of
       its payload size.
       
      .envoy.type.matcher.ListStringMatcher allowed_headers = 1;
      Specified by:
      hasAllowedHeaders in interface AuthorizationRequestOrBuilder
      Returns:
      Whether the allowedHeaders field is set.
    • getAllowedHeaders

      public ListStringMatcher getAllowedHeaders()
       Authorization request will include the client request headers that have a correspondent match
       in the :ref:`list <envoy_api_msg_type.matcher.ListStringMatcher>`. Note that in addition to the
       user's supplied matchers:
      
       1. *Host*, *Method*, *Path* and *Content-Length* are automatically included to the list.
      
       2. *Content-Length* will be set to 0 and the request to the authorization service will not have
       a message body. However, the authorization request can include the buffered client request body
       (controlled by :ref:`with_request_body
       <envoy_api_field_config.filter.http.ext_authz.v2.ExtAuthz.with_request_body>` setting),
       consequently the value of *Content-Length* of the authorization request reflects the size of
       its payload size.
       
      .envoy.type.matcher.ListStringMatcher allowed_headers = 1;
      Specified by:
      getAllowedHeaders in interface AuthorizationRequestOrBuilder
      Returns:
      The allowedHeaders.
    • setAllowedHeaders

      public AuthorizationRequest.Builder setAllowedHeaders(ListStringMatcher value)
       Authorization request will include the client request headers that have a correspondent match
       in the :ref:`list <envoy_api_msg_type.matcher.ListStringMatcher>`. Note that in addition to the
       user's supplied matchers:
      
       1. *Host*, *Method*, *Path* and *Content-Length* are automatically included to the list.
      
       2. *Content-Length* will be set to 0 and the request to the authorization service will not have
       a message body. However, the authorization request can include the buffered client request body
       (controlled by :ref:`with_request_body
       <envoy_api_field_config.filter.http.ext_authz.v2.ExtAuthz.with_request_body>` setting),
       consequently the value of *Content-Length* of the authorization request reflects the size of
       its payload size.
       
      .envoy.type.matcher.ListStringMatcher allowed_headers = 1;
    • setAllowedHeaders

      public AuthorizationRequest.Builder setAllowedHeaders(ListStringMatcher.Builder builderForValue)
       Authorization request will include the client request headers that have a correspondent match
       in the :ref:`list <envoy_api_msg_type.matcher.ListStringMatcher>`. Note that in addition to the
       user's supplied matchers:
      
       1. *Host*, *Method*, *Path* and *Content-Length* are automatically included to the list.
      
       2. *Content-Length* will be set to 0 and the request to the authorization service will not have
       a message body. However, the authorization request can include the buffered client request body
       (controlled by :ref:`with_request_body
       <envoy_api_field_config.filter.http.ext_authz.v2.ExtAuthz.with_request_body>` setting),
       consequently the value of *Content-Length* of the authorization request reflects the size of
       its payload size.
       
      .envoy.type.matcher.ListStringMatcher allowed_headers = 1;
    • mergeAllowedHeaders

      public AuthorizationRequest.Builder mergeAllowedHeaders(ListStringMatcher value)
       Authorization request will include the client request headers that have a correspondent match
       in the :ref:`list <envoy_api_msg_type.matcher.ListStringMatcher>`. Note that in addition to the
       user's supplied matchers:
      
       1. *Host*, *Method*, *Path* and *Content-Length* are automatically included to the list.
      
       2. *Content-Length* will be set to 0 and the request to the authorization service will not have
       a message body. However, the authorization request can include the buffered client request body
       (controlled by :ref:`with_request_body
       <envoy_api_field_config.filter.http.ext_authz.v2.ExtAuthz.with_request_body>` setting),
       consequently the value of *Content-Length* of the authorization request reflects the size of
       its payload size.
       
      .envoy.type.matcher.ListStringMatcher allowed_headers = 1;
    • clearAllowedHeaders

      public AuthorizationRequest.Builder clearAllowedHeaders()
       Authorization request will include the client request headers that have a correspondent match
       in the :ref:`list <envoy_api_msg_type.matcher.ListStringMatcher>`. Note that in addition to the
       user's supplied matchers:
      
       1. *Host*, *Method*, *Path* and *Content-Length* are automatically included to the list.
      
       2. *Content-Length* will be set to 0 and the request to the authorization service will not have
       a message body. However, the authorization request can include the buffered client request body
       (controlled by :ref:`with_request_body
       <envoy_api_field_config.filter.http.ext_authz.v2.ExtAuthz.with_request_body>` setting),
       consequently the value of *Content-Length* of the authorization request reflects the size of
       its payload size.
       
      .envoy.type.matcher.ListStringMatcher allowed_headers = 1;
    • getAllowedHeadersBuilder

      public ListStringMatcher.Builder getAllowedHeadersBuilder()
       Authorization request will include the client request headers that have a correspondent match
       in the :ref:`list <envoy_api_msg_type.matcher.ListStringMatcher>`. Note that in addition to the
       user's supplied matchers:
      
       1. *Host*, *Method*, *Path* and *Content-Length* are automatically included to the list.
      
       2. *Content-Length* will be set to 0 and the request to the authorization service will not have
       a message body. However, the authorization request can include the buffered client request body
       (controlled by :ref:`with_request_body
       <envoy_api_field_config.filter.http.ext_authz.v2.ExtAuthz.with_request_body>` setting),
       consequently the value of *Content-Length* of the authorization request reflects the size of
       its payload size.
       
      .envoy.type.matcher.ListStringMatcher allowed_headers = 1;
    • getAllowedHeadersOrBuilder

      public ListStringMatcherOrBuilder getAllowedHeadersOrBuilder()
       Authorization request will include the client request headers that have a correspondent match
       in the :ref:`list <envoy_api_msg_type.matcher.ListStringMatcher>`. Note that in addition to the
       user's supplied matchers:
      
       1. *Host*, *Method*, *Path* and *Content-Length* are automatically included to the list.
      
       2. *Content-Length* will be set to 0 and the request to the authorization service will not have
       a message body. However, the authorization request can include the buffered client request body
       (controlled by :ref:`with_request_body
       <envoy_api_field_config.filter.http.ext_authz.v2.ExtAuthz.with_request_body>` setting),
       consequently the value of *Content-Length* of the authorization request reflects the size of
       its payload size.
       
      .envoy.type.matcher.ListStringMatcher allowed_headers = 1;
      Specified by:
      getAllowedHeadersOrBuilder in interface AuthorizationRequestOrBuilder
    • getHeadersToAddList

      public List<HeaderValue> getHeadersToAddList()
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
      Specified by:
      getHeadersToAddList in interface AuthorizationRequestOrBuilder
    • getHeadersToAddCount

      public int getHeadersToAddCount()
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
      Specified by:
      getHeadersToAddCount in interface AuthorizationRequestOrBuilder
    • getHeadersToAdd

      public HeaderValue getHeadersToAdd(int index)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
      Specified by:
      getHeadersToAdd in interface AuthorizationRequestOrBuilder
    • setHeadersToAdd

      public AuthorizationRequest.Builder setHeadersToAdd(int index, HeaderValue value)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • setHeadersToAdd

      public AuthorizationRequest.Builder setHeadersToAdd(int index, HeaderValue.Builder builderForValue)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • addHeadersToAdd

      public AuthorizationRequest.Builder addHeadersToAdd(HeaderValue value)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • addHeadersToAdd

      public AuthorizationRequest.Builder addHeadersToAdd(int index, HeaderValue value)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • addHeadersToAdd

      public AuthorizationRequest.Builder addHeadersToAdd(HeaderValue.Builder builderForValue)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • addHeadersToAdd

      public AuthorizationRequest.Builder addHeadersToAdd(int index, HeaderValue.Builder builderForValue)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • addAllHeadersToAdd

      public AuthorizationRequest.Builder addAllHeadersToAdd(Iterable<? extends HeaderValue> values)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • clearHeadersToAdd

      public AuthorizationRequest.Builder clearHeadersToAdd()
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • removeHeadersToAdd

      public AuthorizationRequest.Builder removeHeadersToAdd(int index)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • getHeadersToAddBuilder

      public HeaderValue.Builder getHeadersToAddBuilder(int index)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • getHeadersToAddOrBuilder

      public HeaderValueOrBuilder getHeadersToAddOrBuilder(int index)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
      Specified by:
      getHeadersToAddOrBuilder in interface AuthorizationRequestOrBuilder
    • getHeadersToAddOrBuilderList

      public List<? extends HeaderValueOrBuilder> getHeadersToAddOrBuilderList()
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
      Specified by:
      getHeadersToAddOrBuilderList in interface AuthorizationRequestOrBuilder
    • addHeadersToAddBuilder

      public HeaderValue.Builder addHeadersToAddBuilder()
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • addHeadersToAddBuilder

      public HeaderValue.Builder addHeadersToAddBuilder(int index)
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • getHeadersToAddBuilderList

      public List<HeaderValue.Builder> getHeadersToAddBuilderList()
       Sets a list of headers that will be included to the request to authorization service. Note that
       client request of the same key will be overridden.
       
      repeated .envoy.api.v2.core.HeaderValue headers_to_add = 2;
    • setUnknownFields

      public final AuthorizationRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>
    • mergeUnknownFields

      public final AuthorizationRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AuthorizationRequest.Builder>