Class HttpService.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<HttpService.Builder>
io.envoyproxy.envoy.config.filter.http.ext_authz.v2.HttpService.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HttpServiceOrBuilder,Cloneable
- Enclosing class:
- HttpService
public static final class HttpService.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<HttpService.Builder>
implements HttpServiceOrBuilder
HttpService is used for raw HTTP communication between the filter and the authorization service. When configured, the filter will parse the client request and use these attributes to call the authorization server. Depending on the response, the filter may reject or accept the client request. Note that in any of these events, metadata can be added, removed or overridden by the filter: *On authorization request*, a list of allowed request headers may be supplied. See :ref:`allowed_headers <envoy_api_field_config.filter.http.ext_authz.v2.AuthorizationRequest.allowed_headers>` for details. Additional headers metadata may be added to the authorization request. See :ref:`headers_to_add <envoy_api_field_config.filter.http.ext_authz.v2.AuthorizationRequest.headers_to_add>` for details. On authorization response status HTTP 200 OK, the filter will allow traffic to the upstream and additional headers metadata may be added to the original client request. See :ref:`allowed_upstream_headers <envoy_api_field_config.filter.http.ext_authz.v2.AuthorizationResponse.allowed_upstream_headers>` for details. On other authorization response statuses, the filter will not allow traffic. Additional headers metadata as well as body may be added to the client's response. See :ref:`allowed_client_headers <envoy_api_field_config.filter.http.ext_authz.v2.AuthorizationResponse.allowed_client_headers>` for details. [#next-free-field: 9]Protobuf type
envoy.config.filter.http.ext_authz.v2.HttpService-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Settings used for controlling authorization request metadata.Settings used for controlling authorization response metadata.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Sets a prefix to the value of authorization request header *Path*.Sets the HTTP server URI which the authorization requests must be sent to.clone()Settings used for controlling authorization request metadata.Settings used for controlling authorization request metadata.Settings used for controlling authorization request metadata.Settings used for controlling authorization response metadata.Settings used for controlling authorization response metadata.Settings used for controlling authorization response metadata.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSets a prefix to the value of authorization request header *Path*.com.google.protobuf.ByteStringSets a prefix to the value of authorization request header *Path*.Sets the HTTP server URI which the authorization requests must be sent to.Sets the HTTP server URI which the authorization requests must be sent to.Sets the HTTP server URI which the authorization requests must be sent to.booleanSettings used for controlling authorization request metadata.booleanSettings used for controlling authorization response metadata.booleanSets the HTTP server URI which the authorization requests must be sent to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanSettings used for controlling authorization request metadata.Settings used for controlling authorization response metadata.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(HttpService other) mergeServerUri(HttpUri value) Sets the HTTP server URI which the authorization requests must be sent to.final HttpService.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Settings used for controlling authorization request metadata.setAuthorizationRequest(AuthorizationRequest.Builder builderForValue) Settings used for controlling authorization request metadata.Settings used for controlling authorization response metadata.setAuthorizationResponse(AuthorizationResponse.Builder builderForValue) Settings used for controlling authorization response metadata.setPathPrefix(String value) Sets a prefix to the value of authorization request header *Path*.setPathPrefixBytes(com.google.protobuf.ByteString value) Sets a prefix to the value of authorization request header *Path*.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setServerUri(HttpUri value) Sets the HTTP server URI which the authorization requests must be sent to.setServerUri(HttpUri.Builder builderForValue) Sets the HTTP server URI which the authorization requests must be sent to.final HttpService.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<HttpService.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<HttpService.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<HttpService.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<HttpService.Builder>
-
setField
public HttpService.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<HttpService.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpService.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpService.Builder>
-
setRepeatedField
public HttpService.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<HttpService.Builder>
-
addRepeatedField
public HttpService.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<HttpService.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpService.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpService.Builder>
-
mergeFrom
public HttpService.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<HttpService.Builder>- Throws:
IOException
-
hasServerUri
public boolean hasServerUri()Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;- Specified by:
hasServerUriin interfaceHttpServiceOrBuilder- Returns:
- Whether the serverUri field is set.
-
getServerUri
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;- Specified by:
getServerUriin interfaceHttpServiceOrBuilder- Returns:
- The serverUri.
-
setServerUri
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1; -
setServerUri
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1; -
mergeServerUri
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1; -
clearServerUri
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1; -
getServerUriBuilder
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1; -
getServerUriOrBuilder
Sets the HTTP server URI which the authorization requests must be sent to.
.envoy.api.v2.core.HttpUri server_uri = 1;- Specified by:
getServerUriOrBuilderin interfaceHttpServiceOrBuilder
-
getPathPrefix
Sets a prefix to the value of authorization request header *Path*.
string path_prefix = 2;- Specified by:
getPathPrefixin interfaceHttpServiceOrBuilder- Returns:
- The pathPrefix.
-
getPathPrefixBytes
public com.google.protobuf.ByteString getPathPrefixBytes()Sets a prefix to the value of authorization request header *Path*.
string path_prefix = 2;- Specified by:
getPathPrefixBytesin interfaceHttpServiceOrBuilder- Returns:
- The bytes for pathPrefix.
-
setPathPrefix
Sets a prefix to the value of authorization request header *Path*.
string path_prefix = 2;- Parameters:
value- The pathPrefix to set.- Returns:
- This builder for chaining.
-
clearPathPrefix
Sets a prefix to the value of authorization request header *Path*.
string path_prefix = 2;- Returns:
- This builder for chaining.
-
setPathPrefixBytes
Sets a prefix to the value of authorization request header *Path*.
string path_prefix = 2;- Parameters:
value- The bytes for pathPrefix to set.- Returns:
- This builder for chaining.
-
hasAuthorizationRequest
public boolean hasAuthorizationRequest()Settings used for controlling authorization request metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest authorization_request = 7;- Specified by:
hasAuthorizationRequestin interfaceHttpServiceOrBuilder- Returns:
- Whether the authorizationRequest field is set.
-
getAuthorizationRequest
Settings used for controlling authorization request metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest authorization_request = 7;- Specified by:
getAuthorizationRequestin interfaceHttpServiceOrBuilder- Returns:
- The authorizationRequest.
-
setAuthorizationRequest
Settings used for controlling authorization request metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest authorization_request = 7; -
setAuthorizationRequest
Settings used for controlling authorization request metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest authorization_request = 7; -
mergeAuthorizationRequest
Settings used for controlling authorization request metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest authorization_request = 7; -
clearAuthorizationRequest
Settings used for controlling authorization request metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest authorization_request = 7; -
getAuthorizationRequestBuilder
Settings used for controlling authorization request metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest authorization_request = 7; -
getAuthorizationRequestOrBuilder
Settings used for controlling authorization request metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationRequest authorization_request = 7;- Specified by:
getAuthorizationRequestOrBuilderin interfaceHttpServiceOrBuilder
-
hasAuthorizationResponse
public boolean hasAuthorizationResponse()Settings used for controlling authorization response metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationResponse authorization_response = 8;- Specified by:
hasAuthorizationResponsein interfaceHttpServiceOrBuilder- Returns:
- Whether the authorizationResponse field is set.
-
getAuthorizationResponse
Settings used for controlling authorization response metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationResponse authorization_response = 8;- Specified by:
getAuthorizationResponsein interfaceHttpServiceOrBuilder- Returns:
- The authorizationResponse.
-
setAuthorizationResponse
Settings used for controlling authorization response metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationResponse authorization_response = 8; -
setAuthorizationResponse
Settings used for controlling authorization response metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationResponse authorization_response = 8; -
mergeAuthorizationResponse
Settings used for controlling authorization response metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationResponse authorization_response = 8; -
clearAuthorizationResponse
Settings used for controlling authorization response metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationResponse authorization_response = 8; -
getAuthorizationResponseBuilder
Settings used for controlling authorization response metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationResponse authorization_response = 8; -
getAuthorizationResponseOrBuilder
Settings used for controlling authorization response metadata.
.envoy.config.filter.http.ext_authz.v2.AuthorizationResponse authorization_response = 8;- Specified by:
getAuthorizationResponseOrBuilderin interfaceHttpServiceOrBuilder
-
setUnknownFields
public final HttpService.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpService.Builder>
-
mergeUnknownFields
public final HttpService.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<HttpService.Builder>
-