Class Cluster.EdsClusterConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Cluster.EdsClusterConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<Cluster.EdsClusterConfig.Builder>
io.envoyproxy.envoy.config.cluster.v3.Cluster.EdsClusterConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cluster.EdsClusterConfigOrBuilder, Cloneable
Enclosing class:
Cluster.EdsClusterConfig

public static final class Cluster.EdsClusterConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Cluster.EdsClusterConfig.Builder> implements Cluster.EdsClusterConfigOrBuilder
 Only valid when discovery type is EDS.
 
Protobuf type envoy.config.cluster.v3.Cluster.EdsClusterConfig
  • Field Details

  • 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 class com.google.protobuf.GeneratedMessage.Builder<Cluster.EdsClusterConfig.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • 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.GeneratedMessage.Builder<Cluster.EdsClusterConfig.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.GeneratedMessage.Builder<Cluster.EdsClusterConfig.Builder>
    • getDefaultInstanceForType

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

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

      public Cluster.EdsClusterConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • buildPartial0

      private void buildPartial0(Cluster.EdsClusterConfig result)
    • mergeFrom

      public Cluster.EdsClusterConfig.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<Cluster.EdsClusterConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Cluster.EdsClusterConfig.Builder>
    • mergeFrom

      public Cluster.EdsClusterConfig.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<Cluster.EdsClusterConfig.Builder>
      Throws:
      IOException
    • hasEdsConfig

      public boolean hasEdsConfig()
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
      Specified by:
      hasEdsConfig in interface Cluster.EdsClusterConfigOrBuilder
      Returns:
      Whether the edsConfig field is set.
    • getEdsConfig

      public ConfigSource getEdsConfig()
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
      Specified by:
      getEdsConfig in interface Cluster.EdsClusterConfigOrBuilder
      Returns:
      The edsConfig.
    • setEdsConfig

      public Cluster.EdsClusterConfig.Builder setEdsConfig(ConfigSource value)
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
    • setEdsConfig

      public Cluster.EdsClusterConfig.Builder setEdsConfig(ConfigSource.Builder builderForValue)
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
    • mergeEdsConfig

      public Cluster.EdsClusterConfig.Builder mergeEdsConfig(ConfigSource value)
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
    • clearEdsConfig

      public Cluster.EdsClusterConfig.Builder clearEdsConfig()
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
    • getEdsConfigBuilder

      public ConfigSource.Builder getEdsConfigBuilder()
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
    • getEdsConfigOrBuilder

      public ConfigSourceOrBuilder getEdsConfigOrBuilder()
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
      Specified by:
      getEdsConfigOrBuilder in interface Cluster.EdsClusterConfigOrBuilder
    • getEdsConfigFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<ConfigSource,ConfigSource.Builder,ConfigSourceOrBuilder> getEdsConfigFieldBuilder()
       Configuration for the source of EDS updates for this Cluster.
       
      .envoy.config.core.v3.ConfigSource eds_config = 1;
    • getServiceName

      public String getServiceName()
       Optional alternative to cluster name to present to EDS. This does not
       have the same restrictions as cluster name, i.e. it may be arbitrary
       length. This may be a xdstp:// URL.
       
      string service_name = 2;
      Specified by:
      getServiceName in interface Cluster.EdsClusterConfigOrBuilder
      Returns:
      The serviceName.
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       Optional alternative to cluster name to present to EDS. This does not
       have the same restrictions as cluster name, i.e. it may be arbitrary
       length. This may be a xdstp:// URL.
       
      string service_name = 2;
      Specified by:
      getServiceNameBytes in interface Cluster.EdsClusterConfigOrBuilder
      Returns:
      The bytes for serviceName.
    • setServiceName

      public Cluster.EdsClusterConfig.Builder setServiceName(String value)
       Optional alternative to cluster name to present to EDS. This does not
       have the same restrictions as cluster name, i.e. it may be arbitrary
       length. This may be a xdstp:// URL.
       
      string service_name = 2;
      Parameters:
      value - The serviceName to set.
      Returns:
      This builder for chaining.
    • clearServiceName

      public Cluster.EdsClusterConfig.Builder clearServiceName()
       Optional alternative to cluster name to present to EDS. This does not
       have the same restrictions as cluster name, i.e. it may be arbitrary
       length. This may be a xdstp:// URL.
       
      string service_name = 2;
      Returns:
      This builder for chaining.
    • setServiceNameBytes

      public Cluster.EdsClusterConfig.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       Optional alternative to cluster name to present to EDS. This does not
       have the same restrictions as cluster name, i.e. it may be arbitrary
       length. This may be a xdstp:// URL.
       
      string service_name = 2;
      Parameters:
      value - The bytes for serviceName to set.
      Returns:
      This builder for chaining.