Class FulfillmentInstance.Builder (3.84.0)

public static final class FulfillmentInstance.Builder extends GeneratedMessage.Builder<FulfillmentInstance.Builder> implements FulfillmentInstanceOrBuilder

Spec for fulfillment instance.

Protobuf type google.cloud.aiplatform.v1beta1.FulfillmentInstance

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for prediction to set.

Returns
Type Description
FulfillmentInstance.Builder

This builder for chaining.