Class DeniedHttpResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DeniedHttpResponse.Builder>
io.envoyproxy.envoy.service.auth.v3.DeniedHttpResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DeniedHttpResponseOrBuilder, Cloneable
Enclosing class:
DeniedHttpResponse

public static final class DeniedHttpResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DeniedHttpResponse.Builder> implements DeniedHttpResponseOrBuilder
 HTTP attributes for a denied response.
 
Protobuf type envoy.service.auth.v3.DeniedHttpResponse
  • 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<DeniedHttpResponse.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<DeniedHttpResponse.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<DeniedHttpResponse.Builder>
    • getDefaultInstanceForType

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

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

      public DeniedHttpResponse 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<DeniedHttpResponse.Builder>
    • setField

      public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
    • clearField

      public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
    • clearOneof

      public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
    • setRepeatedField

      public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
    • addRepeatedField

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

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

      public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
      Throws:
      IOException
    • hasStatus

      public boolean hasStatus()
       This field allows the authorization service to send an HTTP response status code to the
       downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
       
      .envoy.type.v3.HttpStatus status = 1;
      Specified by:
      hasStatus in interface DeniedHttpResponseOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public HttpStatus getStatus()
       This field allows the authorization service to send an HTTP response status code to the
       downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
       
      .envoy.type.v3.HttpStatus status = 1;
      Specified by:
      getStatus in interface DeniedHttpResponseOrBuilder
      Returns:
      The status.
    • setStatus

      public DeniedHttpResponse.Builder setStatus(HttpStatus value)
       This field allows the authorization service to send an HTTP response status code to the
       downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
       
      .envoy.type.v3.HttpStatus status = 1;
    • setStatus

      public DeniedHttpResponse.Builder setStatus(HttpStatus.Builder builderForValue)
       This field allows the authorization service to send an HTTP response status code to the
       downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
       
      .envoy.type.v3.HttpStatus status = 1;
    • mergeStatus

      public DeniedHttpResponse.Builder mergeStatus(HttpStatus value)
       This field allows the authorization service to send an HTTP response status code to the
       downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
       
      .envoy.type.v3.HttpStatus status = 1;
    • clearStatus

      public DeniedHttpResponse.Builder clearStatus()
       This field allows the authorization service to send an HTTP response status code to the
       downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
       
      .envoy.type.v3.HttpStatus status = 1;
    • getStatusBuilder

      public HttpStatus.Builder getStatusBuilder()
       This field allows the authorization service to send an HTTP response status code to the
       downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
       
      .envoy.type.v3.HttpStatus status = 1;
    • getStatusOrBuilder

      public HttpStatusOrBuilder getStatusOrBuilder()
       This field allows the authorization service to send an HTTP response status code to the
       downstream client. If not set, Envoy sends ``403 Forbidden`` HTTP status code by default.
       
      .envoy.type.v3.HttpStatus status = 1;
      Specified by:
      getStatusOrBuilder in interface DeniedHttpResponseOrBuilder
    • getHeadersList

      public List<HeaderValueOption> getHeadersList()
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
      Specified by:
      getHeadersList in interface DeniedHttpResponseOrBuilder
    • getHeadersCount

      public int getHeadersCount()
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
      Specified by:
      getHeadersCount in interface DeniedHttpResponseOrBuilder
    • getHeaders

      public HeaderValueOption getHeaders(int index)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
      Specified by:
      getHeaders in interface DeniedHttpResponseOrBuilder
    • setHeaders

      public DeniedHttpResponse.Builder setHeaders(int index, HeaderValueOption value)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • setHeaders

      public DeniedHttpResponse.Builder setHeaders(int index, HeaderValueOption.Builder builderForValue)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • addHeaders

      public DeniedHttpResponse.Builder addHeaders(HeaderValueOption value)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • addHeaders

      public DeniedHttpResponse.Builder addHeaders(int index, HeaderValueOption value)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • addHeaders

      public DeniedHttpResponse.Builder addHeaders(HeaderValueOption.Builder builderForValue)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • addHeaders

      public DeniedHttpResponse.Builder addHeaders(int index, HeaderValueOption.Builder builderForValue)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • addAllHeaders

      public DeniedHttpResponse.Builder addAllHeaders(Iterable<? extends HeaderValueOption> values)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • clearHeaders

      public DeniedHttpResponse.Builder clearHeaders()
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • removeHeaders

      public DeniedHttpResponse.Builder removeHeaders(int index)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • getHeadersBuilder

      public HeaderValueOption.Builder getHeadersBuilder(int index)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • getHeadersOrBuilder

      public HeaderValueOptionOrBuilder getHeadersOrBuilder(int index)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
      Specified by:
      getHeadersOrBuilder in interface DeniedHttpResponseOrBuilder
    • getHeadersOrBuilderList

      public List<? extends HeaderValueOptionOrBuilder> getHeadersOrBuilderList()
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
      Specified by:
      getHeadersOrBuilderList in interface DeniedHttpResponseOrBuilder
    • addHeadersBuilder

      public HeaderValueOption.Builder addHeadersBuilder()
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • addHeadersBuilder

      public HeaderValueOption.Builder addHeadersBuilder(int index)
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • getHeadersBuilderList

      public List<HeaderValueOption.Builder> getHeadersBuilderList()
       This field allows the authorization service to send HTTP response headers
       to the downstream client. Note that the :ref:`append field in HeaderValueOption <envoy_v3_api_field_config.core.v3.HeaderValueOption.append>` defaults to
       false when used in this message.
       
      repeated .envoy.config.core.v3.HeaderValueOption headers = 2;
    • getBody

      public String getBody()
       This field allows the authorization service to send a response body data
       to the downstream client.
       
      string body = 3;
      Specified by:
      getBody in interface DeniedHttpResponseOrBuilder
      Returns:
      The body.
    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
       This field allows the authorization service to send a response body data
       to the downstream client.
       
      string body = 3;
      Specified by:
      getBodyBytes in interface DeniedHttpResponseOrBuilder
      Returns:
      The bytes for body.
    • setBody

      public DeniedHttpResponse.Builder setBody(String value)
       This field allows the authorization service to send a response body data
       to the downstream client.
       
      string body = 3;
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public DeniedHttpResponse.Builder clearBody()
       This field allows the authorization service to send a response body data
       to the downstream client.
       
      string body = 3;
      Returns:
      This builder for chaining.
    • setBodyBytes

      public DeniedHttpResponse.Builder setBodyBytes(com.google.protobuf.ByteString value)
       This field allows the authorization service to send a response body data
       to the downstream client.
       
      string body = 3;
      Parameters:
      value - The bytes for body to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final DeniedHttpResponse.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<DeniedHttpResponse.Builder>
    • mergeUnknownFields

      public final DeniedHttpResponse.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<DeniedHttpResponse.Builder>