Class HttpUri.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HttpUri.Builder>
com.google.protobuf.GeneratedMessage.Builder<HttpUri.Builder>
io.envoyproxy.envoy.config.core.v3.HttpUri.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HttpUriOrBuilder,Cloneable
- Enclosing class:
HttpUri
public static final class HttpUri.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpUri.Builder>
implements HttpUriOrBuilder
Envoy external URI descriptorProtobuf type
envoy.config.core.v3.HttpUri-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(HttpUri result) private voidbuildPartialOneofs(HttpUri result) clear()A cluster is created in the Envoy "cluster_manager" config section.Sets the maximum duration in milliseconds that a response can take to arrive upon request.clearUri()The HTTP server URI.A cluster is created in the Envoy "cluster_manager" config section.com.google.protobuf.ByteStringA cluster is created in the Envoy "cluster_manager" config section.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationSets the maximum duration in milliseconds that a response can take to arrive upon request.com.google.protobuf.Duration.BuilderSets the maximum duration in milliseconds that a response can take to arrive upon request.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> Sets the maximum duration in milliseconds that a response can take to arrive upon request.com.google.protobuf.DurationOrBuilderSets the maximum duration in milliseconds that a response can take to arrive upon request.getUri()The HTTP server URI.com.google.protobuf.ByteStringThe HTTP server URI.booleanA cluster is created in the Envoy "cluster_manager" config section.booleanSets the maximum duration in milliseconds that a response can take to arrive upon request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTimeout(com.google.protobuf.Duration value) Sets the maximum duration in milliseconds that a response can take to arrive upon request.setCluster(String value) A cluster is created in the Envoy "cluster_manager" config section.setClusterBytes(com.google.protobuf.ByteString value) A cluster is created in the Envoy "cluster_manager" config section.setTimeout(com.google.protobuf.Duration value) Sets the maximum duration in milliseconds that a response can take to arrive upon request.setTimeout(com.google.protobuf.Duration.Builder builderForValue) Sets the maximum duration in milliseconds that a response can take to arrive upon request.The HTTP server URI.setUriBytes(com.google.protobuf.ByteString value) The HTTP server URI.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, 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
-
Field Details
-
httpUpstreamTypeCase_
private int httpUpstreamTypeCase_ -
httpUpstreamType_
-
bitField0_
private int bitField0_ -
uri_
-
timeout_
private com.google.protobuf.Duration timeout_ -
timeoutBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, timeoutBuilder_com.google.protobuf.DurationOrBuilder>
-
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpUri.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpUri.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.GeneratedMessage.Builder<HttpUri.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
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpUri.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpUri.Builder>
-
mergeFrom
public HttpUri.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<HttpUri.Builder>- Throws:
IOException
-
getHttpUpstreamTypeCase
- Specified by:
getHttpUpstreamTypeCasein interfaceHttpUriOrBuilder
-
clearHttpUpstreamType
-
getUri
The HTTP server URI. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.googleapis.com/oauth2/v1/certs
string uri = 1 [(.validate.rules) = { ... }- Specified by:
getUriin interfaceHttpUriOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The HTTP server URI. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.googleapis.com/oauth2/v1/certs
string uri = 1 [(.validate.rules) = { ... }- Specified by:
getUriBytesin interfaceHttpUriOrBuilder- Returns:
- The bytes for uri.
-
setUri
The HTTP server URI. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.googleapis.com/oauth2/v1/certs
string uri = 1 [(.validate.rules) = { ... }- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
The HTTP server URI. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.googleapis.com/oauth2/v1/certs
string uri = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setUriBytes
The HTTP server URI. It should be a full FQDN with protocol, host and path. Example: .. code-block:: yaml uri: https://www.googleapis.com/oauth2/v1/certs
string uri = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
hasCluster
public boolean hasCluster()A cluster is created in the Envoy "cluster_manager" config section. This field specifies the cluster name. Example: .. code-block:: yaml cluster: jwks_cluster
string cluster = 2 [(.validate.rules) = { ... }- Specified by:
hasClusterin interfaceHttpUriOrBuilder- Returns:
- Whether the cluster field is set.
-
getCluster
A cluster is created in the Envoy "cluster_manager" config section. This field specifies the cluster name. Example: .. code-block:: yaml cluster: jwks_cluster
string cluster = 2 [(.validate.rules) = { ... }- Specified by:
getClusterin interfaceHttpUriOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()A cluster is created in the Envoy "cluster_manager" config section. This field specifies the cluster name. Example: .. code-block:: yaml cluster: jwks_cluster
string cluster = 2 [(.validate.rules) = { ... }- Specified by:
getClusterBytesin interfaceHttpUriOrBuilder- Returns:
- The bytes for cluster.
-
setCluster
A cluster is created in the Envoy "cluster_manager" config section. This field specifies the cluster name. Example: .. code-block:: yaml cluster: jwks_cluster
string cluster = 2 [(.validate.rules) = { ... }- Parameters:
value- The cluster to set.- Returns:
- This builder for chaining.
-
clearCluster
A cluster is created in the Envoy "cluster_manager" config section. This field specifies the cluster name. Example: .. code-block:: yaml cluster: jwks_cluster
string cluster = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setClusterBytes
A cluster is created in the Envoy "cluster_manager" config section. This field specifies the cluster name. Example: .. code-block:: yaml cluster: jwks_cluster
string cluster = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for cluster to set.- Returns:
- This builder for chaining.
-
hasTimeout
public boolean hasTimeout()Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... }- Specified by:
hasTimeoutin interfaceHttpUriOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... }- Specified by:
getTimeoutin interfaceHttpUriOrBuilder- Returns:
- The timeout.
-
setTimeout
Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... } -
setTimeout
Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... } -
mergeTimeout
Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... } -
clearTimeout
Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... } -
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... } -
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... }- Specified by:
getTimeoutOrBuilderin interfaceHttpUriOrBuilder
-
getTimeoutFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, getTimeoutFieldBuilder()com.google.protobuf.DurationOrBuilder> Sets the maximum duration in milliseconds that a response can take to arrive upon request.
.google.protobuf.Duration timeout = 3 [(.validate.rules) = { ... }
-