Class 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, java.lang.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 Detail

      • bitField0_

        private int bitField0_
      • typeUrl_

        private java.lang.Object typeUrl_
      • name_

        private java.lang.Object name_
      • versionInfo_

        private java.lang.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_
      • isStaticResource_

        private boolean isStaticResource_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • 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()
      • 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

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

        public java.lang.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​(java.lang.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

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

        public ClientConfig.GenericXdsConfig.Builder setName​(java.lang.String value)
         Name of the xDS resource
         
        string name = 2;
        Parameters:
        value - The name to set.
        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 java.lang.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​(java.lang.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;
      • getXdsConfigBuilder

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

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Any,​com.google.protobuf.Any.Builder,​com.google.protobuf.AnyOrBuilder> getXdsConfigFieldBuilder()
         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;
      • getLastUpdatedBuilder

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

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Timestamp,​com.google.protobuf.Timestamp.Builder,​com.google.protobuf.TimestampOrBuilder> getLastUpdatedFieldBuilder()
         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.
      • setClientStatus

        public ClientConfig.GenericXdsConfig.Builder setClientStatus​(ClientResourceStatus value)
         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

        public ClientConfig.GenericXdsConfig.Builder setErrorState​(UpdateFailureState value)
         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

        public ClientConfig.GenericXdsConfig.Builder mergeErrorState​(UpdateFailureState value)
         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
      • 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 = 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.