Class FulfillmentInstance.Builder (3.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FulfillmentInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides

build()

public FulfillmentInstance build()
Returns
TypeDescription
FulfillmentInstance

buildPartial()

public FulfillmentInstance buildPartial()
Returns
TypeDescription
FulfillmentInstance

clear()

public FulfillmentInstance.Builder clear()
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FulfillmentInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
FulfillmentInstance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FulfillmentInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides

clearPrediction()

public FulfillmentInstance.Builder clearPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
FulfillmentInstance.Builder

This builder for chaining.

clone()

public FulfillmentInstance.Builder clone()
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides

getDefaultInstanceForType()

public FulfillmentInstance getDefaultInstanceForType()
Returns
TypeDescription
FulfillmentInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstruction()

public String getInstruction()

Required. Inference instruction prompt to compare prediction with.

optional string instruction = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The prediction.

getPredictionBytes()

public ByteString getPredictionBytes()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the prediction field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FulfillmentInstance other)

public FulfillmentInstance.Builder mergeFrom(FulfillmentInstance other)
Parameter
NameDescription
otherFulfillmentInstance
Returns
TypeDescription
FulfillmentInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FulfillmentInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FulfillmentInstance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FulfillmentInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FulfillmentInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The instruction to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instruction to set.

Returns
TypeDescription
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
NameDescription
valueString

The prediction to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for prediction to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FulfillmentInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FulfillmentInstance.Builder
Overrides