Class HttpService.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HttpService.Builder>
com.google.protobuf.GeneratedMessage.Builder<HttpService.Builder>
io.envoyproxy.envoy.config.core.v3.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.GeneratedMessage.Builder<HttpService.Builder>
implements HttpServiceOrBuilder
HTTP service configuration.Protobuf type
envoy.config.core.v3.HttpService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private HttpUri
private com.google.protobuf.SingleFieldBuilder
<HttpUri, HttpUri.Builder, HttpUriOrBuilder> private List
<HeaderValueOption> private com.google.protobuf.RepeatedFieldBuilder
<HeaderValueOption, HeaderValueOption.Builder, HeaderValueOptionOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllRequestHeadersToAdd
(Iterable<? extends HeaderValueOption> values) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.addRequestHeadersToAdd
(int index, HeaderValueOption value) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.addRequestHeadersToAdd
(int index, HeaderValueOption.Builder builderForValue) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.Specifies a list of HTTP headers that should be added to each request handled by this virtual host.addRequestHeadersToAdd
(HeaderValueOption.Builder builderForValue) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.Specifies a list of HTTP headers that should be added to each request handled by this virtual host.addRequestHeadersToAddBuilder
(int index) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.build()
private void
buildPartial0
(HttpService result) private void
clear()
The service's HTTP URI.Specifies a list of HTTP headers that should be added to each request handled by this virtual host.private void
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The service's HTTP URI.The service's HTTP URI.private com.google.protobuf.SingleFieldBuilder
<HttpUri, HttpUri.Builder, HttpUriOrBuilder> The service's HTTP URI.The service's HTTP URI.getRequestHeadersToAdd
(int index) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.getRequestHeadersToAddBuilder
(int index) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.Specifies a list of HTTP headers that should be added to each request handled by this virtual host.int
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.private com.google.protobuf.RepeatedFieldBuilder
<HeaderValueOption, HeaderValueOption.Builder, HeaderValueOptionOrBuilder> Specifies a list of HTTP headers that should be added to each request handled by this virtual host.getRequestHeadersToAddOrBuilder
(int index) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.List
<? extends HeaderValueOptionOrBuilder> Specifies a list of HTTP headers that should be added to each request handled by this virtual host.boolean
The service's HTTP URI.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(HttpService other) mergeHttpUri
(HttpUri value) The service's HTTP URI.removeRequestHeadersToAdd
(int index) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.setHttpUri
(HttpUri value) The service's HTTP URI.setHttpUri
(HttpUri.Builder builderForValue) The service's HTTP URI.setRequestHeadersToAdd
(int index, HeaderValueOption value) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.setRequestHeadersToAdd
(int index, HeaderValueOption.Builder builderForValue) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
httpUri_
-
httpUriBuilder_
private com.google.protobuf.SingleFieldBuilder<HttpUri,HttpUri.Builder, httpUriBuilder_HttpUriOrBuilder> -
requestHeadersToAdd_
-
requestHeadersToAddBuilder_
private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption,HeaderValueOption.Builder, requestHeadersToAddBuilder_HeaderValueOptionOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<HttpService.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<HttpService.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<HttpService.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpService.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<HttpService.Builder>
-
mergeFrom
public HttpService.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpService.Builder>
- Throws:
IOException
-
hasHttpUri
public boolean hasHttpUri()The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
- Specified by:
hasHttpUri
in interfaceHttpServiceOrBuilder
- Returns:
- Whether the httpUri field is set.
-
getHttpUri
The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
- Specified by:
getHttpUri
in interfaceHttpServiceOrBuilder
- Returns:
- The httpUri.
-
setHttpUri
The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
-
setHttpUri
The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
-
mergeHttpUri
The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
-
clearHttpUri
The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
-
getHttpUriBuilder
The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
-
getHttpUriOrBuilder
The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
- Specified by:
getHttpUriOrBuilder
in interfaceHttpServiceOrBuilder
-
getHttpUriFieldBuilder
private com.google.protobuf.SingleFieldBuilder<HttpUri,HttpUri.Builder, getHttpUriFieldBuilder()HttpUriOrBuilder> The service's HTTP URI. For example: .. code-block:: yaml http_uri: uri: https://www.myserviceapi.com/v1/data cluster: www.myserviceapi.com|443
.envoy.config.core.v3.HttpUri http_uri = 1;
-
ensureRequestHeadersToAddIsMutable
private void ensureRequestHeadersToAddIsMutable() -
getRequestHeadersToAddList
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddList
in interfaceHttpServiceOrBuilder
-
getRequestHeadersToAddCount
public int getRequestHeadersToAddCount()Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddCount
in interfaceHttpServiceOrBuilder
-
getRequestHeadersToAdd
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAdd
in interfaceHttpServiceOrBuilder
-
setRequestHeadersToAdd
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
setRequestHeadersToAdd
public HttpService.Builder setRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
addRequestHeadersToAdd
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
addRequestHeadersToAdd
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
addRequestHeadersToAdd
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
addRequestHeadersToAdd
public HttpService.Builder addRequestHeadersToAdd(int index, HeaderValueOption.Builder builderForValue) Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
addAllRequestHeadersToAdd
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
clearRequestHeadersToAdd
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
removeRequestHeadersToAdd
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
getRequestHeadersToAddBuilder
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
getRequestHeadersToAddOrBuilder
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddOrBuilder
in interfaceHttpServiceOrBuilder
-
getRequestHeadersToAddOrBuilderList
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
- Specified by:
getRequestHeadersToAddOrBuilderList
in interfaceHttpServiceOrBuilder
-
addRequestHeadersToAddBuilder
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
addRequestHeadersToAddBuilder
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
getRequestHeadersToAddBuilderList
Specifies a list of HTTP headers that should be added to each request handled by this virtual host.
repeated .envoy.config.core.v3.HeaderValueOption request_headers_to_add = 2 [(.validate.rules) = { ... }
-
getRequestHeadersToAddFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<HeaderValueOption,HeaderValueOption.Builder, getRequestHeadersToAddFieldBuilder()HeaderValueOptionOrBuilder>
-