public static final class FulfillmentInstance.Builder extends GeneratedMessage.Builder<FulfillmentInstance.Builder> implements FulfillmentInstanceOrBuilderSpec for fulfillment instance.
Protobuf type google.cloud.aiplatform.v1beta1.FulfillmentInstance
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FulfillmentInstance.BuilderImplements
FulfillmentInstanceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FulfillmentInstance build()| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance |
|
buildPartial()
public FulfillmentInstance buildPartial()| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance |
|
clear()
public FulfillmentInstance.Builder clear()| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance.Builder |
|
clearInstruction()
public FulfillmentInstance.Builder clearInstruction()Required. Inference instruction prompt to compare prediction with.
optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance.Builder |
This builder for chaining. |
clearPrediction()
public FulfillmentInstance.Builder clearPrediction()Required. Output of the evaluated model.
optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public FulfillmentInstance getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInstruction()
public String getInstruction()Required. Inference instruction prompt to compare prediction with.
optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The instruction. |
getInstructionBytes()
public ByteString getInstructionBytes()Required. Inference instruction prompt to compare prediction with.
optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instruction. |
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. |
hasInstruction()
public boolean hasInstruction()Required. Inference instruction prompt to compare prediction with.
optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the instruction 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(FulfillmentInstance other)
public FulfillmentInstance.Builder mergeFrom(FulfillmentInstance other)| Parameter | |
|---|---|
| Name | Description |
other |
FulfillmentInstance |
| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FulfillmentInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FulfillmentInstance.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance.Builder |
|
setInstruction(String value)
public FulfillmentInstance.Builder setInstruction(String value)Required. Inference instruction prompt to compare prediction with.
optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe instruction to set. |
| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance.Builder |
This builder for chaining. |
setInstructionBytes(ByteString value)
public FulfillmentInstance.Builder setInstructionBytes(ByteString value)Required. Inference instruction prompt to compare prediction with.
optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for instruction to set. |
| Returns | |
|---|---|
| Type | Description |
FulfillmentInstance.Builder |
This builder for chaining. |
setPrediction(String value)
public FulfillmentInstance.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 |
FulfillmentInstance.Builder |
This builder for chaining. |
setPredictionBytes(ByteString value)
public FulfillmentInstance.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 |
FulfillmentInstance.Builder |
This builder for chaining. |