Class TrainCustomModelResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder>
com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.Builder
All Implemented Interfaces:
TrainCustomModelResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TrainCustomModelResponse

public static final class TrainCustomModelResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder> implements TrainCustomModelResponseOrBuilder
 Response of the
 [TrainCustomModelRequest][google.cloud.discoveryengine.v1beta.TrainCustomModelRequest].
 This message is returned by the google.longrunning.Operations.response field.
 
Protobuf type google.cloud.discoveryengine.v1beta.TrainCustomModelResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TrainCustomModelResponse.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.GeneratedMessage.Builder<TrainCustomModelResponse.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<TrainCustomModelResponse.Builder>
    • getDefaultInstanceForType

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

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

      public TrainCustomModelResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public TrainCustomModelResponse.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<TrainCustomModelResponse.Builder>
      Throws:
      IOException
    • getErrorSamplesList

      public List<Status> getErrorSamplesList()
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
      Specified by:
      getErrorSamplesList in interface TrainCustomModelResponseOrBuilder
    • getErrorSamplesCount

      public int getErrorSamplesCount()
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
      Specified by:
      getErrorSamplesCount in interface TrainCustomModelResponseOrBuilder
    • getErrorSamples

      public Status getErrorSamples(int index)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
      Specified by:
      getErrorSamples in interface TrainCustomModelResponseOrBuilder
    • setErrorSamples

      public TrainCustomModelResponse.Builder setErrorSamples(int index, Status value)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • setErrorSamples

      public TrainCustomModelResponse.Builder setErrorSamples(int index, Status.Builder builderForValue)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • addErrorSamples

      public TrainCustomModelResponse.Builder addErrorSamples(Status value)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • addErrorSamples

      public TrainCustomModelResponse.Builder addErrorSamples(int index, Status value)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • addErrorSamples

      public TrainCustomModelResponse.Builder addErrorSamples(Status.Builder builderForValue)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • addErrorSamples

      public TrainCustomModelResponse.Builder addErrorSamples(int index, Status.Builder builderForValue)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • addAllErrorSamples

      public TrainCustomModelResponse.Builder addAllErrorSamples(Iterable<? extends Status> values)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • clearErrorSamples

      public TrainCustomModelResponse.Builder clearErrorSamples()
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • removeErrorSamples

      public TrainCustomModelResponse.Builder removeErrorSamples(int index)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • getErrorSamplesBuilder

      public Status.Builder getErrorSamplesBuilder(int index)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • getErrorSamplesOrBuilder

      public StatusOrBuilder getErrorSamplesOrBuilder(int index)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
      Specified by:
      getErrorSamplesOrBuilder in interface TrainCustomModelResponseOrBuilder
    • getErrorSamplesOrBuilderList

      public List<? extends StatusOrBuilder> getErrorSamplesOrBuilderList()
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
      Specified by:
      getErrorSamplesOrBuilderList in interface TrainCustomModelResponseOrBuilder
    • addErrorSamplesBuilder

      public Status.Builder addErrorSamplesBuilder()
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • addErrorSamplesBuilder

      public Status.Builder addErrorSamplesBuilder(int index)
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • getErrorSamplesBuilderList

      public List<Status.Builder> getErrorSamplesBuilderList()
       A sample of errors encountered while processing the data.
       
      repeated .google.rpc.Status error_samples = 1;
    • hasErrorConfig

      public boolean hasErrorConfig()
       Echoes the destination for the complete errors in the request if set.
       
      .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
      Specified by:
      hasErrorConfig in interface TrainCustomModelResponseOrBuilder
      Returns:
      Whether the errorConfig field is set.
    • getErrorConfig

      public ImportErrorConfig getErrorConfig()
       Echoes the destination for the complete errors in the request if set.
       
      .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
      Specified by:
      getErrorConfig in interface TrainCustomModelResponseOrBuilder
      Returns:
      The errorConfig.
    • setErrorConfig

      public TrainCustomModelResponse.Builder setErrorConfig(ImportErrorConfig value)
       Echoes the destination for the complete errors in the request if set.
       
      .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
    • setErrorConfig

      public TrainCustomModelResponse.Builder setErrorConfig(ImportErrorConfig.Builder builderForValue)
       Echoes the destination for the complete errors in the request if set.
       
      .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
    • mergeErrorConfig

      public TrainCustomModelResponse.Builder mergeErrorConfig(ImportErrorConfig value)
       Echoes the destination for the complete errors in the request if set.
       
      .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
    • clearErrorConfig

      public TrainCustomModelResponse.Builder clearErrorConfig()
       Echoes the destination for the complete errors in the request if set.
       
      .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
    • getErrorConfigBuilder

      public ImportErrorConfig.Builder getErrorConfigBuilder()
       Echoes the destination for the complete errors in the request if set.
       
      .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
    • getErrorConfigOrBuilder

      public ImportErrorConfigOrBuilder getErrorConfigOrBuilder()
       Echoes the destination for the complete errors in the request if set.
       
      .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2;
      Specified by:
      getErrorConfigOrBuilder in interface TrainCustomModelResponseOrBuilder
    • getModelStatus

      public String getModelStatus()
       The trained model status. Possible values are:
      
       * **bad-data**: The training data quality is bad.
       * **no-improvement**: Tuning didn't improve performance. Won't deploy.
       * **in-progress**: Model training job creation is in progress.
       * **training**: Model is actively training.
       * **evaluating**: The model is evaluating trained metrics.
       * **indexing**: The model trained metrics are indexing.
       * **ready**: The model is ready for serving.
       
      string model_status = 3;
      Specified by:
      getModelStatus in interface TrainCustomModelResponseOrBuilder
      Returns:
      The modelStatus.
    • getModelStatusBytes

      public com.google.protobuf.ByteString getModelStatusBytes()
       The trained model status. Possible values are:
      
       * **bad-data**: The training data quality is bad.
       * **no-improvement**: Tuning didn't improve performance. Won't deploy.
       * **in-progress**: Model training job creation is in progress.
       * **training**: Model is actively training.
       * **evaluating**: The model is evaluating trained metrics.
       * **indexing**: The model trained metrics are indexing.
       * **ready**: The model is ready for serving.
       
      string model_status = 3;
      Specified by:
      getModelStatusBytes in interface TrainCustomModelResponseOrBuilder
      Returns:
      The bytes for modelStatus.
    • setModelStatus

      public TrainCustomModelResponse.Builder setModelStatus(String value)
       The trained model status. Possible values are:
      
       * **bad-data**: The training data quality is bad.
       * **no-improvement**: Tuning didn't improve performance. Won't deploy.
       * **in-progress**: Model training job creation is in progress.
       * **training**: Model is actively training.
       * **evaluating**: The model is evaluating trained metrics.
       * **indexing**: The model trained metrics are indexing.
       * **ready**: The model is ready for serving.
       
      string model_status = 3;
      Parameters:
      value - The modelStatus to set.
      Returns:
      This builder for chaining.
    • clearModelStatus

      public TrainCustomModelResponse.Builder clearModelStatus()
       The trained model status. Possible values are:
      
       * **bad-data**: The training data quality is bad.
       * **no-improvement**: Tuning didn't improve performance. Won't deploy.
       * **in-progress**: Model training job creation is in progress.
       * **training**: Model is actively training.
       * **evaluating**: The model is evaluating trained metrics.
       * **indexing**: The model trained metrics are indexing.
       * **ready**: The model is ready for serving.
       
      string model_status = 3;
      Returns:
      This builder for chaining.
    • setModelStatusBytes

      public TrainCustomModelResponse.Builder setModelStatusBytes(com.google.protobuf.ByteString value)
       The trained model status. Possible values are:
      
       * **bad-data**: The training data quality is bad.
       * **no-improvement**: Tuning didn't improve performance. Won't deploy.
       * **in-progress**: Model training job creation is in progress.
       * **training**: Model is actively training.
       * **evaluating**: The model is evaluating trained metrics.
       * **indexing**: The model trained metrics are indexing.
       * **ready**: The model is ready for serving.
       
      string model_status = 3;
      Parameters:
      value - The bytes for modelStatus to set.
      Returns:
      This builder for chaining.
    • getMetricsCount

      public int getMetricsCount()
      Description copied from interface: TrainCustomModelResponseOrBuilder
       The metrics of the trained model.
       
      map<string, double> metrics = 4;
      Specified by:
      getMetricsCount in interface TrainCustomModelResponseOrBuilder
    • containsMetrics

      public boolean containsMetrics(String key)
       The metrics of the trained model.
       
      map<string, double> metrics = 4;
      Specified by:
      containsMetrics in interface TrainCustomModelResponseOrBuilder
    • getMetrics

      @Deprecated public Map<String,Double> getMetrics()
      Deprecated.
      Use getMetricsMap() instead.
      Specified by:
      getMetrics in interface TrainCustomModelResponseOrBuilder
    • getMetricsMap

      public Map<String,Double> getMetricsMap()
       The metrics of the trained model.
       
      map<string, double> metrics = 4;
      Specified by:
      getMetricsMap in interface TrainCustomModelResponseOrBuilder
    • getMetricsOrDefault

      public double getMetricsOrDefault(String key, double defaultValue)
       The metrics of the trained model.
       
      map<string, double> metrics = 4;
      Specified by:
      getMetricsOrDefault in interface TrainCustomModelResponseOrBuilder
    • getMetricsOrThrow

      public double getMetricsOrThrow(String key)
       The metrics of the trained model.
       
      map<string, double> metrics = 4;
      Specified by:
      getMetricsOrThrow in interface TrainCustomModelResponseOrBuilder
    • clearMetrics

      public TrainCustomModelResponse.Builder clearMetrics()
    • removeMetrics

      public TrainCustomModelResponse.Builder removeMetrics(String key)
       The metrics of the trained model.
       
      map<string, double> metrics = 4;
    • getMutableMetrics

      @Deprecated public Map<String,Double> getMutableMetrics()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMetrics

      public TrainCustomModelResponse.Builder putMetrics(String key, double value)
       The metrics of the trained model.
       
      map<string, double> metrics = 4;
    • putAllMetrics

      public TrainCustomModelResponse.Builder putAllMetrics(Map<String,Double> values)
       The metrics of the trained model.
       
      map<string, double> metrics = 4;
    • getModelName

      public String getModelName()
       Fully qualified name of the CustomTuningModel.
       
      string model_name = 5;
      Specified by:
      getModelName in interface TrainCustomModelResponseOrBuilder
      Returns:
      The modelName.
    • getModelNameBytes

      public com.google.protobuf.ByteString getModelNameBytes()
       Fully qualified name of the CustomTuningModel.
       
      string model_name = 5;
      Specified by:
      getModelNameBytes in interface TrainCustomModelResponseOrBuilder
      Returns:
      The bytes for modelName.
    • setModelName

      public TrainCustomModelResponse.Builder setModelName(String value)
       Fully qualified name of the CustomTuningModel.
       
      string model_name = 5;
      Parameters:
      value - The modelName to set.
      Returns:
      This builder for chaining.
    • clearModelName

      public TrainCustomModelResponse.Builder clearModelName()
       Fully qualified name of the CustomTuningModel.
       
      string model_name = 5;
      Returns:
      This builder for chaining.
    • setModelNameBytes

      public TrainCustomModelResponse.Builder setModelNameBytes(com.google.protobuf.ByteString value)
       Fully qualified name of the CustomTuningModel.
       
      string model_name = 5;
      Parameters:
      value - The bytes for modelName to set.
      Returns:
      This builder for chaining.