Class CoherenceInstance.Builder (3.84.0)

public static final class CoherenceInstance.Builder extends GeneratedMessage.Builder<CoherenceInstance.Builder> implements CoherenceInstanceOrBuilder

Spec for coherence instance.

Protobuf type google.cloud.aiplatform.v1.CoherenceInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CoherenceInstance build()
Returns
Type Description
CoherenceInstance

buildPartial()

public CoherenceInstance buildPartial()
Returns
Type Description
CoherenceInstance

clear()

public CoherenceInstance.Builder clear()
Returns
Type Description
CoherenceInstance.Builder
Overrides

clearPrediction()

public CoherenceInstance.Builder clearPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CoherenceInstance.Builder

This builder for chaining.

getDefaultInstanceForType()

public CoherenceInstance getDefaultInstanceForType()
Returns
Type Description
CoherenceInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrediction()

public String getPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The prediction.

getPredictionBytes()

public ByteString getPredictionBytes()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for prediction.

hasPrediction()

public boolean hasPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the prediction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CoherenceInstance other)

public CoherenceInstance.Builder mergeFrom(CoherenceInstance other)
Parameter
Name Description
other CoherenceInstance
Returns
Type Description
CoherenceInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CoherenceInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CoherenceInstance.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CoherenceInstance.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CoherenceInstance.Builder
Overrides

setPrediction(String value)

public CoherenceInstance.Builder setPrediction(String value)

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The prediction to set.

Returns
Type Description
CoherenceInstance.Builder

This builder for chaining.

setPredictionBytes(ByteString value)

public CoherenceInstance.Builder setPredictionBytes(ByteString value)

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for prediction to set.

Returns
Type Description
CoherenceInstance.Builder

This builder for chaining.