Class DeniedHttpResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DeniedHttpResponse.Builder>
-
- io.envoyproxy.envoy.service.auth.v2.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 typeenvoy.service.auth.v2.DeniedHttpResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeniedHttpResponse.BuilderaddAllHeaders(Iterable<? extends HeaderValueOption> values)This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuilderaddHeaders(int index, HeaderValueOption value)This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuilderaddHeaders(int index, HeaderValueOption.Builder builderForValue)This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuilderaddHeaders(HeaderValueOption value)This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuilderaddHeaders(HeaderValueOption.Builder builderForValue)This field allows the authorization service to send HTTP response headers to the downstream client.HeaderValueOption.BuilderaddHeadersBuilder()This field allows the authorization service to send HTTP response headers to the downstream client.HeaderValueOption.BuilderaddHeadersBuilder(int index)This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DeniedHttpResponsebuild()DeniedHttpResponsebuildPartial()DeniedHttpResponse.Builderclear()DeniedHttpResponse.BuilderclearBody()This field allows the authorization service to send a response body data to the downstream client.DeniedHttpResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DeniedHttpResponse.BuilderclearHeaders()This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DeniedHttpResponse.BuilderclearStatus()This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).DeniedHttpResponse.Builderclone()StringgetBody()This field allows the authorization service to send a response body data to the downstream client.com.google.protobuf.ByteStringgetBodyBytes()This field allows the authorization service to send a response body data to the downstream client.DeniedHttpResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()HeaderValueOptiongetHeaders(int index)This field allows the authorization service to send HTTP response headers to the downstream client.HeaderValueOption.BuildergetHeadersBuilder(int index)This field allows the authorization service to send HTTP response headers to the downstream client.List<HeaderValueOption.Builder>getHeadersBuilderList()This field allows the authorization service to send HTTP response headers to the downstream client.intgetHeadersCount()This field allows the authorization service to send HTTP response headers to the downstream client.List<HeaderValueOption>getHeadersList()This field allows the authorization service to send HTTP response headers to the downstream client.HeaderValueOptionOrBuildergetHeadersOrBuilder(int index)This field allows the authorization service to send HTTP response headers to the downstream client.List<? extends HeaderValueOptionOrBuilder>getHeadersOrBuilderList()This field allows the authorization service to send HTTP response headers to the downstream client.HttpStatusgetStatus()This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).HttpStatus.BuildergetStatusBuilder()This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).HttpStatusOrBuildergetStatusOrBuilder()This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).booleanhasStatus()This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DeniedHttpResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DeniedHttpResponse.BuildermergeFrom(com.google.protobuf.Message other)DeniedHttpResponse.BuildermergeFrom(DeniedHttpResponse other)DeniedHttpResponse.BuildermergeStatus(HttpStatus value)This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).DeniedHttpResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DeniedHttpResponse.BuilderremoveHeaders(int index)This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuildersetBody(String value)This field allows the authorization service to send a response body data to the downstream client.DeniedHttpResponse.BuildersetBodyBytes(com.google.protobuf.ByteString value)This field allows the authorization service to send a response body data to the downstream client.DeniedHttpResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DeniedHttpResponse.BuildersetHeaders(int index, HeaderValueOption value)This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuildersetHeaders(int index, HeaderValueOption.Builder builderForValue)This field allows the authorization service to send HTTP response headers to the downstream client.DeniedHttpResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DeniedHttpResponse.BuildersetStatus(HttpStatus value)This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).DeniedHttpResponse.BuildersetStatus(HttpStatus.Builder builderForValue)This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).DeniedHttpResponse.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<DeniedHttpResponse.Builder>
-
clear
public DeniedHttpResponse.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<DeniedHttpResponse.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<DeniedHttpResponse.Builder>
-
getDefaultInstanceForType
public DeniedHttpResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DeniedHttpResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DeniedHttpResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
-
setField
public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
-
clearField
public DeniedHttpResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeniedHttpResponse.Builder>
-
clearOneof
public DeniedHttpResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DeniedHttpResponse.Builder>
-
setRepeatedField
public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
-
addRepeatedField
public DeniedHttpResponse.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<DeniedHttpResponse.Builder>
-
mergeFrom
public DeniedHttpResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeniedHttpResponse.Builder>
-
mergeFrom
public DeniedHttpResponse.Builder mergeFrom(DeniedHttpResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeniedHttpResponse.Builder>- Throws:
IOException
-
hasStatus
public boolean hasStatus()
This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
.envoy.type.HttpStatus status = 1 [(.validate.rules) = { ... }- Specified by:
hasStatusin interfaceDeniedHttpResponseOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public HttpStatus getStatus()
This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
.envoy.type.HttpStatus status = 1 [(.validate.rules) = { ... }- Specified by:
getStatusin interfaceDeniedHttpResponseOrBuilder- Returns:
- The status.
-
setStatus
public DeniedHttpResponse.Builder setStatus(HttpStatus value)
This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
.envoy.type.HttpStatus status = 1 [(.validate.rules) = { ... }
-
setStatus
public DeniedHttpResponse.Builder setStatus(HttpStatus.Builder builderForValue)
This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
.envoy.type.HttpStatus status = 1 [(.validate.rules) = { ... }
-
mergeStatus
public DeniedHttpResponse.Builder mergeStatus(HttpStatus value)
This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
.envoy.type.HttpStatus status = 1 [(.validate.rules) = { ... }
-
clearStatus
public DeniedHttpResponse.Builder clearStatus()
This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
.envoy.type.HttpStatus status = 1 [(.validate.rules) = { ... }
-
getStatusBuilder
public HttpStatus.Builder getStatusBuilder()
This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
.envoy.type.HttpStatus status = 1 [(.validate.rules) = { ... }
-
getStatusOrBuilder
public HttpStatusOrBuilder getStatusOrBuilder()
This field allows the authorization service to send a HTTP response status code to the downstream client other than 403 (Forbidden).
.envoy.type.HttpStatus status = 1 [(.validate.rules) = { ... }- Specified by:
getStatusOrBuilderin interfaceDeniedHttpResponseOrBuilder
-
getHeadersList
public List<HeaderValueOption> getHeadersList()
This field allows the authorization service to send HTTP response headers to the downstream client. Note that the `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.HeaderValueOption headers = 2;- Specified by:
getHeadersListin interfaceDeniedHttpResponseOrBuilder
-
getHeadersCount
public int getHeadersCount()
This field allows the authorization service to send HTTP response headers to the downstream client. Note that the `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.HeaderValueOption headers = 2;- Specified by:
getHeadersCountin interfaceDeniedHttpResponseOrBuilder
-
getHeaders
public HeaderValueOption getHeaders(int index)
This field allows the authorization service to send HTTP response headers to the downstream client. Note that the `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.HeaderValueOption headers = 2;- Specified by:
getHeadersin interfaceDeniedHttpResponseOrBuilder
-
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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.HeaderValueOption headers = 2;- Specified by:
getHeadersOrBuilderin interfaceDeniedHttpResponseOrBuilder
-
getHeadersOrBuilderList
public List<? extends HeaderValueOptionOrBuilder> getHeadersOrBuilderList()
This field allows the authorization service to send HTTP response headers to the downstream client. Note that the `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.HeaderValueOption headers = 2;- Specified by:
getHeadersOrBuilderListin interfaceDeniedHttpResponseOrBuilder
-
addHeadersBuilder
public HeaderValueOption.Builder addHeadersBuilder()
This field allows the authorization service to send HTTP response headers to the downstream client. Note that the `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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 `append` field in `HeaderValueOption` defaults to false when used in this message.
repeated .envoy.api.v2.core.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:
getBodyin interfaceDeniedHttpResponseOrBuilder- 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:
getBodyBytesin interfaceDeniedHttpResponseOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeniedHttpResponse.Builder>
-
mergeUnknownFields
public final DeniedHttpResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeniedHttpResponse.Builder>
-
-