Class ClientConfig.GenericXdsConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ClientConfig.GenericXdsConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<ClientConfig.GenericXdsConfig.Builder>
io.envoyproxy.envoy.service.status.v3.ClientConfig.GenericXdsConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClientConfig.GenericXdsConfigOrBuilder, Cloneable
Enclosing class:
ClientConfig.GenericXdsConfig

public static final class ClientConfig.GenericXdsConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClientConfig.GenericXdsConfig.Builder> implements ClientConfig.GenericXdsConfigOrBuilder
 GenericXdsConfig is used to specify the config status and the dump
 of any xDS resource identified by their type URL. It is the generalized
 version of the now deprecated ListenersConfigDump, ClustersConfigDump etc
 [#next-free-field: 10]
 
Protobuf type envoy.service.status.v3.ClientConfig.GenericXdsConfig
  • Field Details

    • bitField0_

      private int bitField0_
    • typeUrl_

      private Object typeUrl_
    • name_

      private Object name_
    • versionInfo_

      private Object versionInfo_
    • xdsConfig_

      private com.google.protobuf.Any xdsConfig_
    • xdsConfigBuilder_

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> xdsConfigBuilder_
    • 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_
    • configStatus_

      private int configStatus_
    • clientStatus_

      private int clientStatus_
    • errorState_

      private UpdateFailureState errorState_
    • errorStateBuilder_

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

      private boolean isStaticResource_
  • 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<ClientConfig.GenericXdsConfig.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<ClientConfig.GenericXdsConfig.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<ClientConfig.GenericXdsConfig.Builder>
    • getDefaultInstanceForType

      public ClientConfig.GenericXdsConfig 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 ClientConfig.GenericXdsConfig 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(ClientConfig.GenericXdsConfig result)
    • mergeFrom

      public ClientConfig.GenericXdsConfig.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<ClientConfig.GenericXdsConfig.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<ClientConfig.GenericXdsConfig.Builder>
    • mergeFrom

      public ClientConfig.GenericXdsConfig.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<ClientConfig.GenericXdsConfig.Builder>
      Throws:
      IOException
    • getTypeUrl

      public String getTypeUrl()
       Type_url represents the fully qualified name of xDS resource type
       like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
       
      string type_url = 1;
      Specified by:
      getTypeUrl in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The typeUrl.
    • getTypeUrlBytes

      public com.google.protobuf.ByteString getTypeUrlBytes()
       Type_url represents the fully qualified name of xDS resource type
       like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
       
      string type_url = 1;
      Specified by:
      getTypeUrlBytes in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The bytes for typeUrl.
    • setTypeUrl

      public ClientConfig.GenericXdsConfig.Builder setTypeUrl(String value)
       Type_url represents the fully qualified name of xDS resource type
       like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
       
      string type_url = 1;
      Parameters:
      value - The typeUrl to set.
      Returns:
      This builder for chaining.
    • clearTypeUrl

       Type_url represents the fully qualified name of xDS resource type
       like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
       
      string type_url = 1;
      Returns:
      This builder for chaining.
    • setTypeUrlBytes

      public ClientConfig.GenericXdsConfig.Builder setTypeUrlBytes(com.google.protobuf.ByteString value)
       Type_url represents the fully qualified name of xDS resource type
       like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc.
       
      string type_url = 1;
      Parameters:
      value - The bytes for typeUrl to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       Name of the xDS resource
       
      string name = 2;
      Specified by:
      getName in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the xDS resource
       
      string name = 2;
      Specified by:
      getNameBytes in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

       Name of the xDS resource
       
      string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Name of the xDS resource
       
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ClientConfig.GenericXdsConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the xDS resource
       
      string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getVersionInfo

      public String getVersionInfo()
       This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
       in the last processed xDS discovery response. If there are only
       static bootstrap listeners, this field will be ""
       
      string version_info = 3;
      Specified by:
      getVersionInfo in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The versionInfo.
    • getVersionInfoBytes

      public com.google.protobuf.ByteString getVersionInfoBytes()
       This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
       in the last processed xDS discovery response. If there are only
       static bootstrap listeners, this field will be ""
       
      string version_info = 3;
      Specified by:
      getVersionInfoBytes in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The bytes for versionInfo.
    • setVersionInfo

      public ClientConfig.GenericXdsConfig.Builder setVersionInfo(String value)
       This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
       in the last processed xDS discovery response. If there are only
       static bootstrap listeners, this field will be ""
       
      string version_info = 3;
      Parameters:
      value - The versionInfo to set.
      Returns:
      This builder for chaining.
    • clearVersionInfo

      public ClientConfig.GenericXdsConfig.Builder clearVersionInfo()
       This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
       in the last processed xDS discovery response. If there are only
       static bootstrap listeners, this field will be ""
       
      string version_info = 3;
      Returns:
      This builder for chaining.
    • setVersionInfoBytes

      public ClientConfig.GenericXdsConfig.Builder setVersionInfoBytes(com.google.protobuf.ByteString value)
       This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>`
       in the last processed xDS discovery response. If there are only
       static bootstrap listeners, this field will be ""
       
      string version_info = 3;
      Parameters:
      value - The bytes for versionInfo to set.
      Returns:
      This builder for chaining.
    • hasXdsConfig

      public boolean hasXdsConfig()
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
      Specified by:
      hasXdsConfig in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      Whether the xdsConfig field is set.
    • getXdsConfig

      public com.google.protobuf.Any getXdsConfig()
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
      Specified by:
      getXdsConfig in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The xdsConfig.
    • setXdsConfig

      public ClientConfig.GenericXdsConfig.Builder setXdsConfig(com.google.protobuf.Any value)
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
    • setXdsConfig

      public ClientConfig.GenericXdsConfig.Builder setXdsConfig(com.google.protobuf.Any.Builder builderForValue)
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
    • mergeXdsConfig

      public ClientConfig.GenericXdsConfig.Builder mergeXdsConfig(com.google.protobuf.Any value)
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
    • clearXdsConfig

      public ClientConfig.GenericXdsConfig.Builder clearXdsConfig()
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
    • getXdsConfigBuilder

      public com.google.protobuf.Any.Builder getXdsConfigBuilder()
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
    • getXdsConfigOrBuilder

      public com.google.protobuf.AnyOrBuilder getXdsConfigOrBuilder()
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
      Specified by:
      getXdsConfigOrBuilder in interface ClientConfig.GenericXdsConfigOrBuilder
    • internalGetXdsConfigFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,com.google.protobuf.Any.Builder,com.google.protobuf.AnyOrBuilder> internalGetXdsConfigFieldBuilder()
       The xDS resource config. Actual content depends on the type
       
      .google.protobuf.Any xds_config = 4;
    • hasLastUpdated

      public boolean hasLastUpdated()
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
      Specified by:
      hasLastUpdated in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      Whether the lastUpdated field is set.
    • getLastUpdated

      public com.google.protobuf.Timestamp getLastUpdated()
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
      Specified by:
      getLastUpdated in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The lastUpdated.
    • setLastUpdated

      public ClientConfig.GenericXdsConfig.Builder setLastUpdated(com.google.protobuf.Timestamp value)
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
    • setLastUpdated

      public ClientConfig.GenericXdsConfig.Builder setLastUpdated(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
    • mergeLastUpdated

      public ClientConfig.GenericXdsConfig.Builder mergeLastUpdated(com.google.protobuf.Timestamp value)
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
    • clearLastUpdated

      public ClientConfig.GenericXdsConfig.Builder clearLastUpdated()
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
    • getLastUpdatedBuilder

      public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder()
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
    • getLastUpdatedOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder()
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
      Specified by:
      getLastUpdatedOrBuilder in interface ClientConfig.GenericXdsConfigOrBuilder
    • internalGetLastUpdatedFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,com.google.protobuf.Timestamp.Builder,com.google.protobuf.TimestampOrBuilder> internalGetLastUpdatedFieldBuilder()
       Timestamp when the xDS resource was last updated
       
      .google.protobuf.Timestamp last_updated = 5;
    • getConfigStatusValue

      public int getConfigStatusValue()
       Per xDS resource config status. It is generated by management servers.
       It will not be present if the CSDS server is an xDS client.
       
      .envoy.service.status.v3.ConfigStatus config_status = 6;
      Specified by:
      getConfigStatusValue in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The enum numeric value on the wire for configStatus.
    • setConfigStatusValue

      public ClientConfig.GenericXdsConfig.Builder setConfigStatusValue(int value)
       Per xDS resource config status. It is generated by management servers.
       It will not be present if the CSDS server is an xDS client.
       
      .envoy.service.status.v3.ConfigStatus config_status = 6;
      Parameters:
      value - The enum numeric value on the wire for configStatus to set.
      Returns:
      This builder for chaining.
    • getConfigStatus

      public ConfigStatus getConfigStatus()
       Per xDS resource config status. It is generated by management servers.
       It will not be present if the CSDS server is an xDS client.
       
      .envoy.service.status.v3.ConfigStatus config_status = 6;
      Specified by:
      getConfigStatus in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The configStatus.
    • setConfigStatus

      public ClientConfig.GenericXdsConfig.Builder setConfigStatus(ConfigStatus value)
       Per xDS resource config status. It is generated by management servers.
       It will not be present if the CSDS server is an xDS client.
       
      .envoy.service.status.v3.ConfigStatus config_status = 6;
      Parameters:
      value - The configStatus to set.
      Returns:
      This builder for chaining.
    • clearConfigStatus

      public ClientConfig.GenericXdsConfig.Builder clearConfigStatus()
       Per xDS resource config status. It is generated by management servers.
       It will not be present if the CSDS server is an xDS client.
       
      .envoy.service.status.v3.ConfigStatus config_status = 6;
      Returns:
      This builder for chaining.
    • getClientStatusValue

      public int getClientStatusValue()
       Per xDS resource status from the view of a xDS client
       
      .envoy.admin.v3.ClientResourceStatus client_status = 7;
      Specified by:
      getClientStatusValue in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The enum numeric value on the wire for clientStatus.
    • setClientStatusValue

      public ClientConfig.GenericXdsConfig.Builder setClientStatusValue(int value)
       Per xDS resource status from the view of a xDS client
       
      .envoy.admin.v3.ClientResourceStatus client_status = 7;
      Parameters:
      value - The enum numeric value on the wire for clientStatus to set.
      Returns:
      This builder for chaining.
    • getClientStatus

      public ClientResourceStatus getClientStatus()
       Per xDS resource status from the view of a xDS client
       
      .envoy.admin.v3.ClientResourceStatus client_status = 7;
      Specified by:
      getClientStatus in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The clientStatus.
    • setClientStatus

       Per xDS resource status from the view of a xDS client
       
      .envoy.admin.v3.ClientResourceStatus client_status = 7;
      Parameters:
      value - The clientStatus to set.
      Returns:
      This builder for chaining.
    • clearClientStatus

      public ClientConfig.GenericXdsConfig.Builder clearClientStatus()
       Per xDS resource status from the view of a xDS client
       
      .envoy.admin.v3.ClientResourceStatus client_status = 7;
      Returns:
      This builder for chaining.
    • 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 = 8;
      Specified by:
      hasErrorState in interface ClientConfig.GenericXdsConfigOrBuilder
      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 = 8;
      Specified by:
      getErrorState in interface ClientConfig.GenericXdsConfigOrBuilder
      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 = 8;
    • setErrorState

      public ClientConfig.GenericXdsConfig.Builder setErrorState(UpdateFailureState.Builder builderForValue)
       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 = 8;
    • 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 = 8;
    • clearErrorState

      public ClientConfig.GenericXdsConfig.Builder 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 = 8;
    • 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 = 8;
    • 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 = 8;
      Specified by:
      getErrorStateOrBuilder in interface ClientConfig.GenericXdsConfigOrBuilder
    • internalGetErrorStateFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<UpdateFailureState,UpdateFailureState.Builder,UpdateFailureStateOrBuilder> internalGetErrorStateFieldBuilder()
       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 = 8;
    • getIsStaticResource

      public boolean getIsStaticResource()
       Is static resource is true if it is specified in the config supplied
       through the file at the startup.
       
      bool is_static_resource = 9;
      Specified by:
      getIsStaticResource in interface ClientConfig.GenericXdsConfigOrBuilder
      Returns:
      The isStaticResource.
    • setIsStaticResource

      public ClientConfig.GenericXdsConfig.Builder setIsStaticResource(boolean value)
       Is static resource is true if it is specified in the config supplied
       through the file at the startup.
       
      bool is_static_resource = 9;
      Parameters:
      value - The isStaticResource to set.
      Returns:
      This builder for chaining.
    • clearIsStaticResource

      public ClientConfig.GenericXdsConfig.Builder clearIsStaticResource()
       Is static resource is true if it is specified in the config supplied
       through the file at the startup.
       
      bool is_static_resource = 9;
      Returns:
      This builder for chaining.