public static final class GroundednessInstance.Builder extends GeneratedMessage.Builder<GroundednessInstance.Builder> implements GroundednessInstanceOrBuilderSpec for groundedness instance.
Protobuf type google.cloud.aiplatform.v1.GroundednessInstance
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GroundednessInstance.BuilderImplements
GroundednessInstanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GroundednessInstance build()| Returns | |
|---|---|
| Type | Description |
GroundednessInstance |
|
buildPartial()
public GroundednessInstance buildPartial()| Returns | |
|---|---|
| Type | Description |
GroundednessInstance |
|
clear()
public GroundednessInstance.Builder clear()| Returns | |
|---|---|
| Type | Description |
GroundednessInstance.Builder |
|
clearContext()
public GroundednessInstance.Builder clearContext()Required. Background information provided in context used to compare against the prediction.
optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GroundednessInstance.Builder |
This builder for chaining. |
clearPrediction()
public GroundednessInstance.Builder clearPrediction()Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GroundednessInstance.Builder |
This builder for chaining. |
getContext()
public String getContext()Required. Background information provided in context used to compare against the prediction.
optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The context. |
getContextBytes()
public ByteString getContextBytes()Required. Background information provided in context used to compare against the prediction.
optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for context. |
getDefaultInstanceForType()
public GroundednessInstance getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GroundednessInstance |
|
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. |
hasContext()
public boolean hasContext()Required. Background information provided in context used to compare against the prediction.
optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the context field is set. |
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GroundednessInstance other)
public GroundednessInstance.Builder mergeFrom(GroundednessInstance other)| Parameter | |
|---|---|
| Name | Description |
other |
GroundednessInstance |
| Returns | |
|---|---|
| Type | Description |
GroundednessInstance.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GroundednessInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GroundednessInstance.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GroundednessInstance.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GroundednessInstance.Builder |
|
setContext(String value)
public GroundednessInstance.Builder setContext(String value)Required. Background information provided in context used to compare against the prediction.
optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe context to set. |
| Returns | |
|---|---|
| Type | Description |
GroundednessInstance.Builder |
This builder for chaining. |
setContextBytes(ByteString value)
public GroundednessInstance.Builder setContextBytes(ByteString value)Required. Background information provided in context used to compare against the prediction.
optional string context = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for context to set. |
| Returns | |
|---|---|
| Type | Description |
GroundednessInstance.Builder |
This builder for chaining. |
setPrediction(String value)
public GroundednessInstance.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 |
GroundednessInstance.Builder |
This builder for chaining. |
setPredictionBytes(ByteString value)
public GroundednessInstance.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 |
GroundednessInstance.Builder |
This builder for chaining. |