Class OkHttpResponse.Builder

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

public static final class OkHttpResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder> implements OkHttpResponseOrBuilder
 HTTP attributes for an ok response.
 
Protobuf type envoy.service.auth.v2.OkHttpResponse
  • 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<OkHttpResponse.Builder>
    • clear

      public OkHttpResponse.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<OkHttpResponse.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<OkHttpResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public OkHttpResponse.Builder mergeFrom(OkHttpResponse other)
    • isInitialized

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

      public OkHttpResponse.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<OkHttpResponse.Builder>
      Throws:
      IOException
    • getHeadersList

      public List<HeaderValueOption> getHeadersList()
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
      Specified by:
      getHeadersList in interface OkHttpResponseOrBuilder
    • getHeadersCount

      public int getHeadersCount()
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
      Specified by:
      getHeadersCount in interface OkHttpResponseOrBuilder
    • getHeaders

      public HeaderValueOption getHeaders(int index)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
      Specified by:
      getHeaders in interface OkHttpResponseOrBuilder
    • setHeaders

      public OkHttpResponse.Builder setHeaders(int index, HeaderValueOption value)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • setHeaders

      public OkHttpResponse.Builder setHeaders(int index, HeaderValueOption.Builder builderForValue)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • addHeaders

      public OkHttpResponse.Builder addHeaders(HeaderValueOption value)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • addHeaders

      public OkHttpResponse.Builder addHeaders(int index, HeaderValueOption value)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • addHeaders

      public OkHttpResponse.Builder addHeaders(HeaderValueOption.Builder builderForValue)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • addHeaders

      public OkHttpResponse.Builder addHeaders(int index, HeaderValueOption.Builder builderForValue)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • addAllHeaders

      public OkHttpResponse.Builder addAllHeaders(Iterable<? extends HeaderValueOption> values)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • clearHeaders

      public OkHttpResponse.Builder clearHeaders()
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • removeHeaders

      public OkHttpResponse.Builder removeHeaders(int index)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • getHeadersBuilder

      public HeaderValueOption.Builder getHeadersBuilder(int index)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • getHeadersOrBuilder

      public HeaderValueOptionOrBuilder getHeadersOrBuilder(int index)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
      Specified by:
      getHeadersOrBuilder in interface OkHttpResponseOrBuilder
    • getHeadersOrBuilderList

      public List<? extends HeaderValueOptionOrBuilder> getHeadersOrBuilderList()
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
      Specified by:
      getHeadersOrBuilderList in interface OkHttpResponseOrBuilder
    • addHeadersBuilder

      public HeaderValueOption.Builder addHeadersBuilder()
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • addHeadersBuilder

      public HeaderValueOption.Builder addHeadersBuilder(int index)
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • getHeadersBuilderList

      public List<HeaderValueOption.Builder> getHeadersBuilderList()
       HTTP entity headers in addition to the original request headers. This allows the authorization
       service to append, to add or to override headers from the original request before
       dispatching it to the upstream. Note that the `append` field in `HeaderValueOption` defaults to
       false when used in this message. By setting the `append` field to `true`,
       the filter will append the correspondent header value to the matched request header.
       By leaving `append` as false, the filter will either add a new header, or override an existing
       one if there is a match.
       
      repeated .envoy.api.v2.core.HeaderValueOption headers = 2;
    • setUnknownFields

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

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