Class ClustersConfigDump.DynamicCluster.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ClustersConfigDump.DynamicCluster.Builder>
com.google.protobuf.GeneratedMessage.Builder<ClustersConfigDump.DynamicCluster.Builder>
io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClustersConfigDump.DynamicClusterOrBuilder, Cloneable
Enclosing class:
ClustersConfigDump.DynamicCluster

public static final class ClustersConfigDump.DynamicCluster.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClustersConfigDump.DynamicCluster.Builder> implements ClustersConfigDump.DynamicClusterOrBuilder
 Describes a dynamically loaded cluster via the CDS API.
 [#next-free-field: 6]
 
Protobuf type envoy.admin.v3.ClustersConfigDump.DynamicCluster
  • Field Details

    • bitField0_

      private int bitField0_
    • versionInfo_

      private Object versionInfo_
    • cluster_

      private com.google.protobuf.Any cluster_
    • clusterBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> clusterBuilder_
    • lastUpdated_

      private com.google.protobuf.Timestamp lastUpdated_
    • lastUpdatedBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder> lastUpdatedBuilder_
    • errorState_

      private UpdateFailureState errorState_
    • errorStateBuilder_

      private com.google.protobuf.SingleFieldBuilder<UpdateFailureState,UpdateFailureState.Builder,UpdateFailureStateOrBuilder> errorStateBuilder_
    • clientStatus_

      private int clientStatus_
  • 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<ClustersConfigDump.DynamicCluster.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<ClustersConfigDump.DynamicCluster.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<ClustersConfigDump.DynamicCluster.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ClustersConfigDump.DynamicCluster 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(ClustersConfigDump.DynamicCluster result)
    • mergeFrom

      public ClustersConfigDump.DynamicCluster.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<ClustersConfigDump.DynamicCluster.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<ClustersConfigDump.DynamicCluster.Builder>
    • mergeFrom

      public ClustersConfigDump.DynamicCluster.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<ClustersConfigDump.DynamicCluster.Builder>
      Throws:
      IOException
    • getVersionInfo

      public String getVersionInfo()
       This is the per-resource version information. This version is currently taken from the
       :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time
       that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       the API.
       
      string version_info = 1;
      Specified by:
      getVersionInfo in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      The versionInfo.
    • getVersionInfoBytes

      public com.google.protobuf.ByteString getVersionInfoBytes()
       This is the per-resource version information. This version is currently taken from the
       :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time
       that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       the API.
       
      string version_info = 1;
      Specified by:
      getVersionInfoBytes in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      The bytes for versionInfo.
    • setVersionInfo

      public ClustersConfigDump.DynamicCluster.Builder setVersionInfo(String value)
       This is the per-resource version information. This version is currently taken from the
       :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time
       that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       the API.
       
      string version_info = 1;
      Parameters:
      value - The versionInfo to set.
      Returns:
      This builder for chaining.
    • clearVersionInfo

      public ClustersConfigDump.DynamicCluster.Builder clearVersionInfo()
       This is the per-resource version information. This version is currently taken from the
       :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time
       that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       the API.
       
      string version_info = 1;
      Returns:
      This builder for chaining.
    • setVersionInfoBytes

      public ClustersConfigDump.DynamicCluster.Builder setVersionInfoBytes(com.google.protobuf.ByteString value)
       This is the per-resource version information. This version is currently taken from the
       :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` field at the time
       that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       the API.
       
      string version_info = 1;
      Parameters:
      value - The bytes for versionInfo to set.
      Returns:
      This builder for chaining.
    • hasCluster

      public boolean hasCluster()
       The cluster config.
       
      .google.protobuf.Any cluster = 2;
      Specified by:
      hasCluster in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      Whether the cluster field is set.
    • getCluster

      public com.google.protobuf.Any getCluster()
       The cluster config.
       
      .google.protobuf.Any cluster = 2;
      Specified by:
      getCluster in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      The cluster.
    • setCluster

      public ClustersConfigDump.DynamicCluster.Builder setCluster(com.google.protobuf.Any value)
       The cluster config.
       
      .google.protobuf.Any cluster = 2;
    • setCluster

      public ClustersConfigDump.DynamicCluster.Builder setCluster(com.google.protobuf.Any.Builder builderForValue)
       The cluster config.
       
      .google.protobuf.Any cluster = 2;
    • mergeCluster

      public ClustersConfigDump.DynamicCluster.Builder mergeCluster(com.google.protobuf.Any value)
       The cluster config.
       
      .google.protobuf.Any cluster = 2;
    • clearCluster

       The cluster config.
       
      .google.protobuf.Any cluster = 2;
    • getClusterBuilder

      public com.google.protobuf.Any.Builder getClusterBuilder()
       The cluster config.
       
      .google.protobuf.Any cluster = 2;
    • getClusterOrBuilder

      public com.google.protobuf.AnyOrBuilder getClusterOrBuilder()
       The cluster config.
       
      .google.protobuf.Any cluster = 2;
      Specified by:
      getClusterOrBuilder in interface ClustersConfigDump.DynamicClusterOrBuilder
    • getClusterFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> getClusterFieldBuilder()
       The cluster config.
       
      .google.protobuf.Any cluster = 2;
    • hasLastUpdated

      public boolean hasLastUpdated()
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
      Specified by:
      hasLastUpdated in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      Whether the lastUpdated field is set.
    • getLastUpdated

      public com.google.protobuf.Timestamp getLastUpdated()
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
      Specified by:
      getLastUpdated in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      The lastUpdated.
    • setLastUpdated

      public ClustersConfigDump.DynamicCluster.Builder setLastUpdated(com.google.protobuf.Timestamp value)
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
    • setLastUpdated

      public ClustersConfigDump.DynamicCluster.Builder setLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue)
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
    • mergeLastUpdated

      public ClustersConfigDump.DynamicCluster.Builder mergeLastUpdated(com.google.protobuf.Timestamp value)
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
    • clearLastUpdated

      public ClustersConfigDump.DynamicCluster.Builder clearLastUpdated()
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
    • getLastUpdatedBuilder

      public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder()
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
    • getLastUpdatedOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder()
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
      Specified by:
      getLastUpdatedOrBuilder in interface ClustersConfigDump.DynamicClusterOrBuilder
    • getLastUpdatedFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder> getLastUpdatedFieldBuilder()
       The timestamp when the Cluster was last updated.
       
      .google.protobuf.Timestamp last_updated = 3;
    • hasErrorState

      public boolean hasErrorState()
       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
      Specified by:
      hasErrorState in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      Whether the errorState field is set.
    • getErrorState

      public UpdateFailureState getErrorState()
       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
      Specified by:
      getErrorState in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      The errorState.
    • setErrorState

       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
    • setErrorState

       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
    • mergeErrorState

       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
    • clearErrorState

       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
    • getErrorStateBuilder

      public UpdateFailureState.Builder getErrorStateBuilder()
       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
    • getErrorStateOrBuilder

      public UpdateFailureStateOrBuilder getErrorStateOrBuilder()
       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
      Specified by:
      getErrorStateOrBuilder in interface ClustersConfigDump.DynamicClusterOrBuilder
    • getErrorStateFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<UpdateFailureState,UpdateFailureState.Builder,UpdateFailureStateOrBuilder> getErrorStateFieldBuilder()
       Set if the last update failed, cleared after the next successful update.
       The ``error_state`` field contains the rejected version of this particular
       resource along with the reason and timestamp. For successfully updated or
       acknowledged resource, this field should be empty.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.UpdateFailureState error_state = 4;
    • getClientStatusValue

      public int getClientStatusValue()
       The client status of this resource.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.ClientResourceStatus client_status = 5;
      Specified by:
      getClientStatusValue in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      The enum numeric value on the wire for clientStatus.
    • setClientStatusValue

      public ClustersConfigDump.DynamicCluster.Builder setClientStatusValue(int value)
       The client status of this resource.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.ClientResourceStatus client_status = 5;
      Parameters:
      value - The enum numeric value on the wire for clientStatus to set.
      Returns:
      This builder for chaining.
    • getClientStatus

      public ClientResourceStatus getClientStatus()
       The client status of this resource.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.ClientResourceStatus client_status = 5;
      Specified by:
      getClientStatus in interface ClustersConfigDump.DynamicClusterOrBuilder
      Returns:
      The clientStatus.
    • setClientStatus

       The client status of this resource.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.ClientResourceStatus client_status = 5;
      Parameters:
      value - The clientStatus to set.
      Returns:
      This builder for chaining.
    • clearClientStatus

      public ClustersConfigDump.DynamicCluster.Builder clearClientStatus()
       The client status of this resource.
       [#not-implemented-hide:]
       
      .envoy.admin.v3.ClientResourceStatus client_status = 5;
      Returns:
      This builder for chaining.