Class OkHttpResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.service.auth.v2.OkHttpResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OkHttpResponse.BuilderaddAllHeaders(Iterable<? extends HeaderValueOption> values)HTTP entity headers in addition to the original request headers.OkHttpResponse.BuilderaddHeaders(int index, HeaderValueOption value)HTTP entity headers in addition to the original request headers.OkHttpResponse.BuilderaddHeaders(int index, HeaderValueOption.Builder builderForValue)HTTP entity headers in addition to the original request headers.OkHttpResponse.BuilderaddHeaders(HeaderValueOption value)HTTP entity headers in addition to the original request headers.OkHttpResponse.BuilderaddHeaders(HeaderValueOption.Builder builderForValue)HTTP entity headers in addition to the original request headers.HeaderValueOption.BuilderaddHeadersBuilder()HTTP entity headers in addition to the original request headers.HeaderValueOption.BuilderaddHeadersBuilder(int index)HTTP entity headers in addition to the original request headers.OkHttpResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OkHttpResponsebuild()OkHttpResponsebuildPartial()OkHttpResponse.Builderclear()OkHttpResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OkHttpResponse.BuilderclearHeaders()HTTP entity headers in addition to the original request headers.OkHttpResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OkHttpResponse.Builderclone()OkHttpResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()HeaderValueOptiongetHeaders(int index)HTTP entity headers in addition to the original request headers.HeaderValueOption.BuildergetHeadersBuilder(int index)HTTP entity headers in addition to the original request headers.List<HeaderValueOption.Builder>getHeadersBuilderList()HTTP entity headers in addition to the original request headers.intgetHeadersCount()HTTP entity headers in addition to the original request headers.List<HeaderValueOption>getHeadersList()HTTP entity headers in addition to the original request headers.HeaderValueOptionOrBuildergetHeadersOrBuilder(int index)HTTP entity headers in addition to the original request headers.List<? extends HeaderValueOptionOrBuilder>getHeadersOrBuilderList()HTTP entity headers in addition to the original request headers.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OkHttpResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OkHttpResponse.BuildermergeFrom(com.google.protobuf.Message other)OkHttpResponse.BuildermergeFrom(OkHttpResponse other)OkHttpResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OkHttpResponse.BuilderremoveHeaders(int index)HTTP entity headers in addition to the original request headers.OkHttpResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OkHttpResponse.BuildersetHeaders(int index, HeaderValueOption value)HTTP entity headers in addition to the original request headers.OkHttpResponse.BuildersetHeaders(int index, HeaderValueOption.Builder builderForValue)HTTP entity headers in addition to the original request headers.OkHttpResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OkHttpResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
clear
public OkHttpResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
getDefaultInstanceForType
public OkHttpResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OkHttpResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OkHttpResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OkHttpResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
setField
public OkHttpResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
clearField
public OkHttpResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
clearOneof
public OkHttpResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
setRepeatedField
public OkHttpResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
addRepeatedField
public OkHttpResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
mergeFrom
public OkHttpResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OkHttpResponse.Builder>
-
mergeFrom
public OkHttpResponse.Builder mergeFrom(OkHttpResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getHeadersListin interfaceOkHttpResponseOrBuilder
-
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:
getHeadersCountin interfaceOkHttpResponseOrBuilder
-
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:
getHeadersin interfaceOkHttpResponseOrBuilder
-
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:
getHeadersOrBuilderin interfaceOkHttpResponseOrBuilder
-
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:
getHeadersOrBuilderListin interfaceOkHttpResponseOrBuilder
-
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
mergeUnknownFields
public final OkHttpResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OkHttpResponse.Builder>
-
-