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 void
buildPartial0
(HttpUri result) private void
buildPartialOneofs
(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.ByteString
A cluster is created in the Envoy "cluster_manager" config section.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Duration
Sets the maximum duration in milliseconds that a response can take to arrive upon request.com.google.protobuf.Duration.Builder
Sets 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.DurationOrBuilder
Sets the maximum duration in milliseconds that a response can take to arrive upon request.getUri()
The HTTP server URI.com.google.protobuf.ByteString
The HTTP server URI.boolean
A cluster is created in the Envoy "cluster_manager" config section.boolean
Sets the maximum duration in milliseconds that a response can take to arrive upon request.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) 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, 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
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<HttpUri.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<HttpUri.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<HttpUri.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
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpUri.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpUri.Builder>
- Throws:
IOException
-
getHttpUpstreamTypeCase
- Specified by:
getHttpUpstreamTypeCase
in 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:
getUri
in 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:
getUriBytes
in 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:
hasCluster
in 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:
getCluster
in 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:
getClusterBytes
in 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:
hasTimeout
in 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:
getTimeout
in 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:
getTimeoutOrBuilder
in 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) = { ... }
-