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.extensions.filters.http.ext_authz.v3.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.extensions.filters.http.ext_authz.v3.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

      @Deprecated public boolean hasAllowedHeaders()
      Deprecated.
      envoy.extensions.filters.http.ext_authz.v3.AuthorizationRequest.allowed_headers is deprecated. See envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto;l=477
       Authorization request includes the client request headers that have a corresponding match
       in the list.
       This field has been deprecated in favor of :ref:`allowed_headers
       <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.allowed_headers>`.
      
       .. note::
      
         In addition to the user's supplied matchers, ``Host``, ``Method``, ``Path``,
         ``Content-Length``, and ``Authorization`` are **automatically included** in the list.
      
       .. note::
      
         By default, the ``Content-Length`` header is set to ``0`` and the request to the authorization
         service has no message body. However, the authorization request *may* include the buffered
         client request body (controlled by :ref:`with_request_body
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.with_request_body>`
         setting); hence the value of its ``Content-Length`` reflects the size of its payload.
       
      .envoy.type.matcher.v3.ListStringMatcher allowed_headers = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      Specified by:
      hasAllowedHeaders in interface AuthorizationRequestOrBuilder
      Returns:
      Whether the allowedHeaders field is set.
    • getAllowedHeaders

      @Deprecated public ListStringMatcher getAllowedHeaders()
      Deprecated.
      envoy.extensions.filters.http.ext_authz.v3.AuthorizationRequest.allowed_headers is deprecated. See envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto;l=477
       Authorization request includes the client request headers that have a corresponding match
       in the list.
       This field has been deprecated in favor of :ref:`allowed_headers
       <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.allowed_headers>`.
      
       .. note::
      
         In addition to the user's supplied matchers, ``Host``, ``Method``, ``Path``,
         ``Content-Length``, and ``Authorization`` are **automatically included** in the list.
      
       .. note::
      
         By default, the ``Content-Length`` header is set to ``0`` and the request to the authorization
         service has no message body. However, the authorization request *may* include the buffered
         client request body (controlled by :ref:`with_request_body
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.with_request_body>`
         setting); hence the value of its ``Content-Length`` reflects the size of its payload.
       
      .envoy.type.matcher.v3.ListStringMatcher allowed_headers = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      Specified by:
      getAllowedHeaders in interface AuthorizationRequestOrBuilder
      Returns:
      The allowedHeaders.
    • setAllowedHeaders

      Deprecated.
       Authorization request includes the client request headers that have a corresponding match
       in the list.
       This field has been deprecated in favor of :ref:`allowed_headers
       <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.allowed_headers>`.
      
       .. note::
      
         In addition to the user's supplied matchers, ``Host``, ``Method``, ``Path``,
         ``Content-Length``, and ``Authorization`` are **automatically included** in the list.
      
       .. note::
      
         By default, the ``Content-Length`` header is set to ``0`` and the request to the authorization
         service has no message body. However, the authorization request *may* include the buffered
         client request body (controlled by :ref:`with_request_body
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.with_request_body>`
         setting); hence the value of its ``Content-Length`` reflects the size of its payload.
       
      .envoy.type.matcher.v3.ListStringMatcher allowed_headers = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
    • setAllowedHeaders

      @Deprecated public AuthorizationRequest.Builder setAllowedHeaders(ListStringMatcher.Builder builderForValue)
      Deprecated.
       Authorization request includes the client request headers that have a corresponding match
       in the list.
       This field has been deprecated in favor of :ref:`allowed_headers
       <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.allowed_headers>`.
      
       .. note::
      
         In addition to the user's supplied matchers, ``Host``, ``Method``, ``Path``,
         ``Content-Length``, and ``Authorization`` are **automatically included** in the list.
      
       .. note::
      
         By default, the ``Content-Length`` header is set to ``0`` and the request to the authorization
         service has no message body. However, the authorization request *may* include the buffered
         client request body (controlled by :ref:`with_request_body
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.with_request_body>`
         setting); hence the value of its ``Content-Length`` reflects the size of its payload.
       
      .envoy.type.matcher.v3.ListStringMatcher allowed_headers = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
    • mergeAllowedHeaders

      @Deprecated public AuthorizationRequest.Builder mergeAllowedHeaders(ListStringMatcher value)
      Deprecated.
       Authorization request includes the client request headers that have a corresponding match
       in the list.
       This field has been deprecated in favor of :ref:`allowed_headers
       <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.allowed_headers>`.
      
       .. note::
      
         In addition to the user's supplied matchers, ``Host``, ``Method``, ``Path``,
         ``Content-Length``, and ``Authorization`` are **automatically included** in the list.
      
       .. note::
      
         By default, the ``Content-Length`` header is set to ``0`` and the request to the authorization
         service has no message body. However, the authorization request *may* include the buffered
         client request body (controlled by :ref:`with_request_body
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.with_request_body>`
         setting); hence the value of its ``Content-Length`` reflects the size of its payload.
       
      .envoy.type.matcher.v3.ListStringMatcher allowed_headers = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
    • clearAllowedHeaders

      @Deprecated public AuthorizationRequest.Builder clearAllowedHeaders()
      Deprecated.
       Authorization request includes the client request headers that have a corresponding match
       in the list.
       This field has been deprecated in favor of :ref:`allowed_headers
       <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.allowed_headers>`.
      
       .. note::
      
         In addition to the user's supplied matchers, ``Host``, ``Method``, ``Path``,
         ``Content-Length``, and ``Authorization`` are **automatically included** in the list.
      
       .. note::
      
         By default, the ``Content-Length`` header is set to ``0`` and the request to the authorization
         service has no message body. However, the authorization request *may* include the buffered
         client request body (controlled by :ref:`with_request_body
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.with_request_body>`
         setting); hence the value of its ``Content-Length`` reflects the size of its payload.
       
      .envoy.type.matcher.v3.ListStringMatcher allowed_headers = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
    • getAllowedHeadersBuilder

      @Deprecated public ListStringMatcher.Builder getAllowedHeadersBuilder()
      Deprecated.
       Authorization request includes the client request headers that have a corresponding match
       in the list.
       This field has been deprecated in favor of :ref:`allowed_headers
       <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.allowed_headers>`.
      
       .. note::
      
         In addition to the user's supplied matchers, ``Host``, ``Method``, ``Path``,
         ``Content-Length``, and ``Authorization`` are **automatically included** in the list.
      
       .. note::
      
         By default, the ``Content-Length`` header is set to ``0`` and the request to the authorization
         service has no message body. However, the authorization request *may* include the buffered
         client request body (controlled by :ref:`with_request_body
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.with_request_body>`
         setting); hence the value of its ``Content-Length`` reflects the size of its payload.
       
      .envoy.type.matcher.v3.ListStringMatcher allowed_headers = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
    • getAllowedHeadersOrBuilder

      @Deprecated public ListStringMatcherOrBuilder getAllowedHeadersOrBuilder()
      Deprecated.
       Authorization request includes the client request headers that have a corresponding match
       in the list.
       This field has been deprecated in favor of :ref:`allowed_headers
       <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.allowed_headers>`.
      
       .. note::
      
         In addition to the user's supplied matchers, ``Host``, ``Method``, ``Path``,
         ``Content-Length``, and ``Authorization`` are **automatically included** in the list.
      
       .. note::
      
         By default, the ``Content-Length`` header is set to ``0`` and the request to the authorization
         service has no message body. However, the authorization request *may* include the buffered
         client request body (controlled by :ref:`with_request_body
         <envoy_v3_api_field_extensions.filters.http.ext_authz.v3.ExtAuthz.with_request_body>`
         setting); hence the value of its ``Content-Length`` reflects the size of its payload.
       
      .envoy.type.matcher.v3.ListStringMatcher allowed_headers = 1 [deprecated = true, (.envoy.annotations.deprecated_at_minor_version) = "3.0"];
      Specified by:
      getAllowedHeadersOrBuilder in interface AuthorizationRequestOrBuilder
    • getHeadersToAddList

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

      public int getHeadersToAddCount()
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.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 in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.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 in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • setHeadersToAdd

      public AuthorizationRequest.Builder setHeadersToAdd(int index, HeaderValue.Builder builderForValue)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • addHeadersToAdd

      public AuthorizationRequest.Builder addHeadersToAdd(HeaderValue value)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • addHeadersToAdd

      public AuthorizationRequest.Builder addHeadersToAdd(int index, HeaderValue value)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • addHeadersToAdd

      public AuthorizationRequest.Builder addHeadersToAdd(HeaderValue.Builder builderForValue)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • addHeadersToAdd

      public AuthorizationRequest.Builder addHeadersToAdd(int index, HeaderValue.Builder builderForValue)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • addAllHeadersToAdd

      public AuthorizationRequest.Builder addAllHeadersToAdd(Iterable<? extends HeaderValue> values)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • clearHeadersToAdd

      public AuthorizationRequest.Builder clearHeadersToAdd()
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • removeHeadersToAdd

      public AuthorizationRequest.Builder removeHeadersToAdd(int index)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • getHeadersToAddBuilder

      public HeaderValue.Builder getHeadersToAddBuilder(int index)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • getHeadersToAddOrBuilder

      public HeaderValueOrBuilder getHeadersToAddOrBuilder(int index)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.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 in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.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 in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • addHeadersToAddBuilder

      public HeaderValue.Builder addHeadersToAddBuilder(int index)
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.HeaderValue headers_to_add = 2;
    • getHeadersToAddBuilderList

      public List<HeaderValue.Builder> getHeadersToAddBuilderList()
       Sets a list of headers that will be included in the request to the authorization service.
      
       .. note::
         Client request headers with the same key will be overridden.
       
      repeated .envoy.config.core.v3.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>