public static final class ExactMatchInstance.Builder extends GeneratedMessage.Builder<ExactMatchInstance.Builder> implements ExactMatchInstanceOrBuilderSpec for exact match instance.
Protobuf type google.cloud.aiplatform.v1.ExactMatchInstance
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ExactMatchInstance.BuilderImplements
ExactMatchInstanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ExactMatchInstance build()| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance |
|
buildPartial()
public ExactMatchInstance buildPartial()| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance |
|
clear()
public ExactMatchInstance.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
|
clearPrediction()
public ExactMatchInstance.Builder clearPrediction()Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
This builder for chaining. |
clearReference()
public ExactMatchInstance.Builder clearReference()Required. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ExactMatchInstance getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getReference()
public String getReference()Required. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The reference. |
getReferenceBytes()
public ByteString getReferenceBytes()Required. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for reference. |
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. |
hasReference()
public boolean hasReference()Required. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the reference field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExactMatchInstance other)
public ExactMatchInstance.Builder mergeFrom(ExactMatchInstance other)| Parameter | |
|---|---|
| Name | Description |
other |
ExactMatchInstance |
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExactMatchInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExactMatchInstance.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
|
setPrediction(String value)
public ExactMatchInstance.Builder setPrediction(String value)Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe prediction to set. |
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
This builder for chaining. |
setPredictionBytes(ByteString value)
public ExactMatchInstance.Builder setPredictionBytes(ByteString value)Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for prediction to set. |
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
This builder for chaining. |
setReference(String value)
public ExactMatchInstance.Builder setReference(String value)Required. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe reference to set. |
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
This builder for chaining. |
setReferenceBytes(ByteString value)
public ExactMatchInstance.Builder setReferenceBytes(ByteString value)Required. Ground truth used to compare against the prediction.
optional string reference = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for reference to set. |
| Returns | |
|---|---|
| Type | Description |
ExactMatchInstance.Builder |
This builder for chaining. |