Class TrainCustomModelResponse.Builder (0.37.0)

public static final class TrainCustomModelResponse.Builder extends GeneratedMessageV3.Builder<TrainCustomModelResponse.Builder> implements TrainCustomModelResponseOrBuilder

Response of the TrainCustomModelRequest. This message is returned by the google.longrunning.Operations.response field.

Protobuf type google.cloud.discoveryengine.v1alpha.TrainCustomModelResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllErrorSamples(Iterable<? extends Status> values)

public TrainCustomModelResponse.Builder addAllErrorSamples(Iterable<? extends Status> values)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.rpc.Status>
Returns
TypeDescription
TrainCustomModelResponse.Builder

addErrorSamples(Status value)

public TrainCustomModelResponse.Builder addErrorSamples(Status value)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
TrainCustomModelResponse.Builder

addErrorSamples(Status.Builder builderForValue)

public TrainCustomModelResponse.Builder addErrorSamples(Status.Builder builderForValue)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
TrainCustomModelResponse.Builder

addErrorSamples(int index, Status value)

public TrainCustomModelResponse.Builder addErrorSamples(int index, Status value)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameters
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
TrainCustomModelResponse.Builder

addErrorSamples(int index, Status.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
TrainCustomModelResponse.Builder

addErrorSamplesBuilder()

public Status.Builder addErrorSamplesBuilder()

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Returns
TypeDescription
com.google.rpc.Status.Builder

addErrorSamplesBuilder(int index)

public Status.Builder addErrorSamplesBuilder(int index)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TrainCustomModelResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

build()

public TrainCustomModelResponse build()
Returns
TypeDescription
TrainCustomModelResponse

buildPartial()

public TrainCustomModelResponse buildPartial()
Returns
TypeDescription
TrainCustomModelResponse

clear()

public TrainCustomModelResponse.Builder clear()
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

clearErrorConfig()

public TrainCustomModelResponse.Builder clearErrorConfig()

Echoes the destination for the complete errors in the request if set.

.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2;

Returns
TypeDescription
TrainCustomModelResponse.Builder

clearErrorSamples()

public TrainCustomModelResponse.Builder clearErrorSamples()

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Returns
TypeDescription
TrainCustomModelResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public TrainCustomModelResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

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 is in progress.
  • ready: The model is ready for serving.

string model_status = 3;

Returns
TypeDescription
TrainCustomModelResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TrainCustomModelResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

clone()

public TrainCustomModelResponse.Builder clone()
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

getDefaultInstanceForType()

public TrainCustomModelResponse getDefaultInstanceForType()
Returns
TypeDescription
TrainCustomModelResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrorConfig()

public ImportErrorConfig getErrorConfig()

Echoes the destination for the complete errors in the request if set.

.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2;

Returns
TypeDescription
ImportErrorConfig

The errorConfig.

getErrorConfigBuilder()

public ImportErrorConfig.Builder getErrorConfigBuilder()

Echoes the destination for the complete errors in the request if set.

.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2;

Returns
TypeDescription
ImportErrorConfig.Builder

getErrorConfigOrBuilder()

public ImportErrorConfigOrBuilder getErrorConfigOrBuilder()

Echoes the destination for the complete errors in the request if set.

.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2;

Returns
TypeDescription
ImportErrorConfigOrBuilder

getErrorSamples(int index)

public Status getErrorSamples(int index)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status

getErrorSamplesBuilder(int index)

public Status.Builder getErrorSamplesBuilder(int index)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorSamplesBuilderList()

public List<Status.Builder> getErrorSamplesBuilderList()

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Returns
TypeDescription
List<com.google.rpc.Status.Builder>

getErrorSamplesCount()

public int getErrorSamplesCount()

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Returns
TypeDescription
int

getErrorSamplesList()

public List<Status> getErrorSamplesList()

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Returns
TypeDescription
List<com.google.rpc.Status>

getErrorSamplesOrBuilder(int index)

public StatusOrBuilder getErrorSamplesOrBuilder(int index)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getErrorSamplesOrBuilderList()

public List<? extends StatusOrBuilder> getErrorSamplesOrBuilderList()

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Returns
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

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 is in progress.
  • ready: The model is ready for serving.

string model_status = 3;

Returns
TypeDescription
String

The modelStatus.

getModelStatusBytes()

public 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 is in progress.
  • ready: The model is ready for serving.

string model_status = 3;

Returns
TypeDescription
ByteString

The bytes for modelStatus.

hasErrorConfig()

public boolean hasErrorConfig()

Echoes the destination for the complete errors in the request if set.

.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2;

Returns
TypeDescription
boolean

Whether the errorConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeErrorConfig(ImportErrorConfig value)

public TrainCustomModelResponse.Builder mergeErrorConfig(ImportErrorConfig value)

Echoes the destination for the complete errors in the request if set.

.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2;

Parameter
NameDescription
valueImportErrorConfig
Returns
TypeDescription
TrainCustomModelResponse.Builder

mergeFrom(TrainCustomModelResponse other)

public TrainCustomModelResponse.Builder mergeFrom(TrainCustomModelResponse other)
Parameter
NameDescription
otherTrainCustomModelResponse
Returns
TypeDescription
TrainCustomModelResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TrainCustomModelResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TrainCustomModelResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrainCustomModelResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

removeErrorSamples(int index)

public TrainCustomModelResponse.Builder removeErrorSamples(int index)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TrainCustomModelResponse.Builder

setErrorConfig(ImportErrorConfig value)

public TrainCustomModelResponse.Builder setErrorConfig(ImportErrorConfig value)

Echoes the destination for the complete errors in the request if set.

.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2;

Parameter
NameDescription
valueImportErrorConfig
Returns
TypeDescription
TrainCustomModelResponse.Builder

setErrorConfig(ImportErrorConfig.Builder builderForValue)

public TrainCustomModelResponse.Builder setErrorConfig(ImportErrorConfig.Builder builderForValue)

Echoes the destination for the complete errors in the request if set.

.google.cloud.discoveryengine.v1alpha.ImportErrorConfig error_config = 2;

Parameter
NameDescription
builderForValueImportErrorConfig.Builder
Returns
TypeDescription
TrainCustomModelResponse.Builder

setErrorSamples(int index, Status value)

public TrainCustomModelResponse.Builder setErrorSamples(int index, Status value)

A sample of errors encountered while processing the data.

repeated .google.rpc.Status error_samples = 1;

Parameters
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
TrainCustomModelResponse.Builder

setErrorSamples(int index, Status.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
TrainCustomModelResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TrainCustomModelResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

setModelStatus(String value)

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 is in progress.
  • ready: The model is ready for serving.

string model_status = 3;

Parameter
NameDescription
valueString

The modelStatus to set.

Returns
TypeDescription
TrainCustomModelResponse.Builder

This builder for chaining.

setModelStatusBytes(ByteString value)

public TrainCustomModelResponse.Builder setModelStatusBytes(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 is in progress.
  • ready: The model is ready for serving.

string model_status = 3;

Parameter
NameDescription
valueByteString

The bytes for modelStatus to set.

Returns
TypeDescription
TrainCustomModelResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TrainCustomModelResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TrainCustomModelResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides