Class FulfillmentInstance.Builder (3.49.0)

public static final class FulfillmentInstance.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FulfillmentInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FulfillmentInstance.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public FulfillmentInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public FulfillmentInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FulfillmentInstance.Builder
Overrides

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.

clone()

public FulfillmentInstance.Builder clone()
Returns
Type Description
FulfillmentInstance.Builder
Overrides

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FulfillmentInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FulfillmentInstance.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FulfillmentInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FulfillmentInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FulfillmentInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FulfillmentInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FulfillmentInstance.Builder
Overrides