Class TcpProxy.OnDemand.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
io.envoyproxy.envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.OnDemand.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TcpProxy.OnDemandOrBuilder,Cloneable
- Enclosing class:
- TcpProxy.OnDemand
public static final class TcpProxy.OnDemand.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
implements TcpProxy.OnDemandOrBuilder
Protobuf type
envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy.OnDemand-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional configuration for the on-demand cluster discovery service.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) xdstp:// resource locator for on-demand cluster collection.The timeout for on-demand cluster lookup.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional configuration for the on-demand cluster discovery service.Optional configuration for the on-demand cluster discovery service.Optional configuration for the on-demand cluster discovery service.xdstp:// resource locator for on-demand cluster collection.com.google.protobuf.ByteStringxdstp:// resource locator for on-demand cluster collection.com.google.protobuf.DurationThe timeout for on-demand cluster lookup.com.google.protobuf.Duration.BuilderThe timeout for on-demand cluster lookup.com.google.protobuf.DurationOrBuilderThe timeout for on-demand cluster lookup.booleanOptional configuration for the on-demand cluster discovery service.booleanThe timeout for on-demand cluster lookup.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TcpProxy.OnDemand other) mergeOdcdsConfig(ConfigSource value) Optional configuration for the on-demand cluster discovery service.mergeTimeout(com.google.protobuf.Duration value) The timeout for on-demand cluster lookup.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setOdcdsConfig(ConfigSource value) Optional configuration for the on-demand cluster discovery service.setOdcdsConfig(ConfigSource.Builder builderForValue) Optional configuration for the on-demand cluster discovery service.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setResourcesLocator(String value) xdstp:// resource locator for on-demand cluster collection.setResourcesLocatorBytes(com.google.protobuf.ByteString value) xdstp:// resource locator for on-demand cluster collection.setTimeout(com.google.protobuf.Duration value) The timeout for on-demand cluster lookup.setTimeout(com.google.protobuf.Duration.Builder builderForValue) The timeout for on-demand cluster lookup.setUnknownFields(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<TcpProxy.OnDemand.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<TcpProxy.OnDemand.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<TcpProxy.OnDemand.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<TcpProxy.OnDemand.Builder>
-
setField
public TcpProxy.OnDemand.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<TcpProxy.OnDemand.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
-
setRepeatedField
public TcpProxy.OnDemand.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<TcpProxy.OnDemand.Builder>
-
addRepeatedField
public TcpProxy.OnDemand.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<TcpProxy.OnDemand.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TcpProxy.OnDemand.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
-
mergeFrom
public TcpProxy.OnDemand.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<TcpProxy.OnDemand.Builder>- Throws:
IOException
-
hasOdcdsConfig
public boolean hasOdcdsConfig()Optional configuration for the on-demand cluster discovery service. If not specified, on-demand cluster discovery is disabled. When specified, the filter pauses a request to an unknown cluster and begins a cluster discovery process. When discovery completes (successfully or not), the request is resumed.
.envoy.config.core.v3.ConfigSource odcds_config = 1;- Specified by:
hasOdcdsConfigin interfaceTcpProxy.OnDemandOrBuilder- Returns:
- Whether the odcdsConfig field is set.
-
getOdcdsConfig
Optional configuration for the on-demand cluster discovery service. If not specified, on-demand cluster discovery is disabled. When specified, the filter pauses a request to an unknown cluster and begins a cluster discovery process. When discovery completes (successfully or not), the request is resumed.
.envoy.config.core.v3.ConfigSource odcds_config = 1;- Specified by:
getOdcdsConfigin interfaceTcpProxy.OnDemandOrBuilder- Returns:
- The odcdsConfig.
-
setOdcdsConfig
Optional configuration for the on-demand cluster discovery service. If not specified, on-demand cluster discovery is disabled. When specified, the filter pauses a request to an unknown cluster and begins a cluster discovery process. When discovery completes (successfully or not), the request is resumed.
.envoy.config.core.v3.ConfigSource odcds_config = 1; -
setOdcdsConfig
Optional configuration for the on-demand cluster discovery service. If not specified, on-demand cluster discovery is disabled. When specified, the filter pauses a request to an unknown cluster and begins a cluster discovery process. When discovery completes (successfully or not), the request is resumed.
.envoy.config.core.v3.ConfigSource odcds_config = 1; -
mergeOdcdsConfig
Optional configuration for the on-demand cluster discovery service. If not specified, on-demand cluster discovery is disabled. When specified, the filter pauses a request to an unknown cluster and begins a cluster discovery process. When discovery completes (successfully or not), the request is resumed.
.envoy.config.core.v3.ConfigSource odcds_config = 1; -
clearOdcdsConfig
Optional configuration for the on-demand cluster discovery service. If not specified, on-demand cluster discovery is disabled. When specified, the filter pauses a request to an unknown cluster and begins a cluster discovery process. When discovery completes (successfully or not), the request is resumed.
.envoy.config.core.v3.ConfigSource odcds_config = 1; -
getOdcdsConfigBuilder
Optional configuration for the on-demand cluster discovery service. If not specified, on-demand cluster discovery is disabled. When specified, the filter pauses a request to an unknown cluster and begins a cluster discovery process. When discovery completes (successfully or not), the request is resumed.
.envoy.config.core.v3.ConfigSource odcds_config = 1; -
getOdcdsConfigOrBuilder
Optional configuration for the on-demand cluster discovery service. If not specified, on-demand cluster discovery is disabled. When specified, the filter pauses a request to an unknown cluster and begins a cluster discovery process. When discovery completes (successfully or not), the request is resumed.
.envoy.config.core.v3.ConfigSource odcds_config = 1;- Specified by:
getOdcdsConfigOrBuilderin interfaceTcpProxy.OnDemandOrBuilder
-
getResourcesLocator
xdstp:// resource locator for on-demand cluster collection. [#not-implemented-hide:]
string resources_locator = 2;- Specified by:
getResourcesLocatorin interfaceTcpProxy.OnDemandOrBuilder- Returns:
- The resourcesLocator.
-
getResourcesLocatorBytes
public com.google.protobuf.ByteString getResourcesLocatorBytes()xdstp:// resource locator for on-demand cluster collection. [#not-implemented-hide:]
string resources_locator = 2;- Specified by:
getResourcesLocatorBytesin interfaceTcpProxy.OnDemandOrBuilder- Returns:
- The bytes for resourcesLocator.
-
setResourcesLocator
xdstp:// resource locator for on-demand cluster collection. [#not-implemented-hide:]
string resources_locator = 2;- Parameters:
value- The resourcesLocator to set.- Returns:
- This builder for chaining.
-
clearResourcesLocator
xdstp:// resource locator for on-demand cluster collection. [#not-implemented-hide:]
string resources_locator = 2;- Returns:
- This builder for chaining.
-
setResourcesLocatorBytes
xdstp:// resource locator for on-demand cluster collection. [#not-implemented-hide:]
string resources_locator = 2;- Parameters:
value- The bytes for resourcesLocator to set.- Returns:
- This builder for chaining.
-
hasTimeout
public boolean hasTimeout()The timeout for on-demand cluster lookup. If the CDS cannot return the required cluster, the downstream request will be closed with the error code detail NO_CLUSTER_FOUND. [#not-implemented-hide:]
.google.protobuf.Duration timeout = 3;- Specified by:
hasTimeoutin interfaceTcpProxy.OnDemandOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()The timeout for on-demand cluster lookup. If the CDS cannot return the required cluster, the downstream request will be closed with the error code detail NO_CLUSTER_FOUND. [#not-implemented-hide:]
.google.protobuf.Duration timeout = 3;- Specified by:
getTimeoutin interfaceTcpProxy.OnDemandOrBuilder- Returns:
- The timeout.
-
setTimeout
The timeout for on-demand cluster lookup. If the CDS cannot return the required cluster, the downstream request will be closed with the error code detail NO_CLUSTER_FOUND. [#not-implemented-hide:]
.google.protobuf.Duration timeout = 3; -
setTimeout
The timeout for on-demand cluster lookup. If the CDS cannot return the required cluster, the downstream request will be closed with the error code detail NO_CLUSTER_FOUND. [#not-implemented-hide:]
.google.protobuf.Duration timeout = 3; -
mergeTimeout
The timeout for on-demand cluster lookup. If the CDS cannot return the required cluster, the downstream request will be closed with the error code detail NO_CLUSTER_FOUND. [#not-implemented-hide:]
.google.protobuf.Duration timeout = 3; -
clearTimeout
The timeout for on-demand cluster lookup. If the CDS cannot return the required cluster, the downstream request will be closed with the error code detail NO_CLUSTER_FOUND. [#not-implemented-hide:]
.google.protobuf.Duration timeout = 3; -
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()The timeout for on-demand cluster lookup. If the CDS cannot return the required cluster, the downstream request will be closed with the error code detail NO_CLUSTER_FOUND. [#not-implemented-hide:]
.google.protobuf.Duration timeout = 3; -
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()The timeout for on-demand cluster lookup. If the CDS cannot return the required cluster, the downstream request will be closed with the error code detail NO_CLUSTER_FOUND. [#not-implemented-hide:]
.google.protobuf.Duration timeout = 3;- Specified by:
getTimeoutOrBuilderin interfaceTcpProxy.OnDemandOrBuilder
-
setUnknownFields
public final TcpProxy.OnDemand.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
-
mergeUnknownFields
public final TcpProxy.OnDemand.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
-