Class TrainCustomModelResponse (0.30.0)

public final class TrainCustomModelResponse extends GeneratedMessageV3 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 Fields

ERROR_CONFIG_FIELD_NUMBER

public static final int ERROR_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_SAMPLES_FIELD_NUMBER

public static final int ERROR_SAMPLES_FIELD_NUMBER
Field Value
TypeDescription
int

MODEL_STATUS_FIELD_NUMBER

public static final int MODEL_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TrainCustomModelResponse getDefaultInstance()
Returns
TypeDescription
TrainCustomModelResponse

getDescriptor()

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

newBuilder()

public static TrainCustomModelResponse.Builder newBuilder()
Returns
TypeDescription
TrainCustomModelResponse.Builder

newBuilder(TrainCustomModelResponse prototype)

public static TrainCustomModelResponse.Builder newBuilder(TrainCustomModelResponse prototype)
Parameter
NameDescription
prototypeTrainCustomModelResponse
Returns
TypeDescription
TrainCustomModelResponse.Builder

parseDelimitedFrom(InputStream input)

public static TrainCustomModelResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrainCustomModelResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TrainCustomModelResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TrainCustomModelResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TrainCustomModelResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TrainCustomModelResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TrainCustomModelResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TrainCustomModelResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TrainCustomModelResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrainCustomModelResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TrainCustomModelResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TrainCustomModelResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainCustomModelResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TrainCustomModelResponse> parser()
Returns
TypeDescription
Parser<TrainCustomModelResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TrainCustomModelResponse getDefaultInstanceForType()
Returns
TypeDescription
TrainCustomModelResponse

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.

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

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.

getParserForType()

public Parser<TrainCustomModelResponse> getParserForType()
Returns
TypeDescription
Parser<TrainCustomModelResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TrainCustomModelResponse.Builder newBuilderForType()
Returns
TypeDescription
TrainCustomModelResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TrainCustomModelResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TrainCustomModelResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TrainCustomModelResponse.Builder toBuilder()
Returns
TypeDescription
TrainCustomModelResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException