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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • clear

      public TcpProxy.OnDemand.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • getDefaultInstanceForType

      public TcpProxy.OnDemand getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TcpProxy.OnDemand build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TcpProxy.OnDemand buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public TcpProxy.OnDemand.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • setField

      public TcpProxy.OnDemand.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • clearField

      public TcpProxy.OnDemand.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • clearOneof

      public TcpProxy.OnDemand.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • addRepeatedField

      public TcpProxy.OnDemand.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • mergeFrom

      public TcpProxy.OnDemand.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TcpProxy.OnDemand.Builder>
    • mergeFrom

      public TcpProxy.OnDemand.Builder mergeFrom(TcpProxy.OnDemand other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TcpProxy.OnDemand.Builder>
      Throws:
      IOException
    • hasOdcdsConfig

      public boolean hasOdcdsConfig()
       An optional configuration for on-demand cluster discovery
       service. If not specified, the on-demand cluster discovery will
       be disabled. When it's specified, the filter will pause a request
       to an unknown cluster and will begin a cluster discovery
       process. When the discovery is finished (successfully or not),
       the request will be resumed.
       
      .envoy.config.core.v3.ConfigSource odcds_config = 1;
      Specified by:
      hasOdcdsConfig in interface TcpProxy.OnDemandOrBuilder
      Returns:
      Whether the odcdsConfig field is set.
    • getOdcdsConfig

      public ConfigSource getOdcdsConfig()
       An optional configuration for on-demand cluster discovery
       service. If not specified, the on-demand cluster discovery will
       be disabled. When it's specified, the filter will pause a request
       to an unknown cluster and will begin a cluster discovery
       process. When the discovery is finished (successfully or not),
       the request will be resumed.
       
      .envoy.config.core.v3.ConfigSource odcds_config = 1;
      Specified by:
      getOdcdsConfig in interface TcpProxy.OnDemandOrBuilder
      Returns:
      The odcdsConfig.
    • setOdcdsConfig

      public TcpProxy.OnDemand.Builder setOdcdsConfig(ConfigSource value)
       An optional configuration for on-demand cluster discovery
       service. If not specified, the on-demand cluster discovery will
       be disabled. When it's specified, the filter will pause a request
       to an unknown cluster and will begin a cluster discovery
       process. When the discovery is finished (successfully or not),
       the request will be resumed.
       
      .envoy.config.core.v3.ConfigSource odcds_config = 1;
    • setOdcdsConfig

      public TcpProxy.OnDemand.Builder setOdcdsConfig(ConfigSource.Builder builderForValue)
       An optional configuration for on-demand cluster discovery
       service. If not specified, the on-demand cluster discovery will
       be disabled. When it's specified, the filter will pause a request
       to an unknown cluster and will begin a cluster discovery
       process. When the discovery is finished (successfully or not),
       the request will be resumed.
       
      .envoy.config.core.v3.ConfigSource odcds_config = 1;
    • mergeOdcdsConfig

      public TcpProxy.OnDemand.Builder mergeOdcdsConfig(ConfigSource value)
       An optional configuration for on-demand cluster discovery
       service. If not specified, the on-demand cluster discovery will
       be disabled. When it's specified, the filter will pause a request
       to an unknown cluster and will begin a cluster discovery
       process. When the discovery is finished (successfully or not),
       the request will be resumed.
       
      .envoy.config.core.v3.ConfigSource odcds_config = 1;
    • clearOdcdsConfig

      public TcpProxy.OnDemand.Builder clearOdcdsConfig()
       An optional configuration for on-demand cluster discovery
       service. If not specified, the on-demand cluster discovery will
       be disabled. When it's specified, the filter will pause a request
       to an unknown cluster and will begin a cluster discovery
       process. When the discovery is finished (successfully or not),
       the request will be resumed.
       
      .envoy.config.core.v3.ConfigSource odcds_config = 1;
    • getOdcdsConfigBuilder

      public ConfigSource.Builder getOdcdsConfigBuilder()
       An optional configuration for on-demand cluster discovery
       service. If not specified, the on-demand cluster discovery will
       be disabled. When it's specified, the filter will pause a request
       to an unknown cluster and will begin a cluster discovery
       process. When the discovery is finished (successfully or not),
       the request will be resumed.
       
      .envoy.config.core.v3.ConfigSource odcds_config = 1;
    • getOdcdsConfigOrBuilder

      public ConfigSourceOrBuilder getOdcdsConfigOrBuilder()
       An optional configuration for on-demand cluster discovery
       service. If not specified, the on-demand cluster discovery will
       be disabled. When it's specified, the filter will pause a request
       to an unknown cluster and will begin a cluster discovery
       process. When the discovery is finished (successfully or not),
       the request will be resumed.
       
      .envoy.config.core.v3.ConfigSource odcds_config = 1;
      Specified by:
      getOdcdsConfigOrBuilder in interface TcpProxy.OnDemandOrBuilder
    • getResourcesLocator

      public String getResourcesLocator()
       xdstp:// resource locator for on-demand cluster collection.
       [#not-implemented-hide:]
       
      string resources_locator = 2;
      Specified by:
      getResourcesLocator in interface TcpProxy.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:
      getResourcesLocatorBytes in interface TcpProxy.OnDemandOrBuilder
      Returns:
      The bytes for resourcesLocator.
    • setResourcesLocator

      public TcpProxy.OnDemand.Builder setResourcesLocator(String value)
       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

      public TcpProxy.OnDemand.Builder clearResourcesLocator()
       xdstp:// resource locator for on-demand cluster collection.
       [#not-implemented-hide:]
       
      string resources_locator = 2;
      Returns:
      This builder for chaining.
    • setResourcesLocatorBytes

      public TcpProxy.OnDemand.Builder setResourcesLocatorBytes(com.google.protobuf.ByteString value)
       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:
      hasTimeout in interface TcpProxy.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:
      getTimeout in interface TcpProxy.OnDemandOrBuilder
      Returns:
      The timeout.
    • setTimeout

      public TcpProxy.OnDemand.Builder setTimeout(com.google.protobuf.Duration value)
       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

      public TcpProxy.OnDemand.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
       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

      public TcpProxy.OnDemand.Builder mergeTimeout(com.google.protobuf.Duration value)
       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

      public TcpProxy.OnDemand.Builder 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:
      getTimeoutOrBuilder in interface TcpProxy.OnDemandOrBuilder
    • setUnknownFields

      public final TcpProxy.OnDemand.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>
    • mergeUnknownFields

      public final TcpProxy.OnDemand.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TcpProxy.OnDemand.Builder>