Class FluencyInstance.Builder (3.41.0)

public static final class FluencyInstance.Builder extends GeneratedMessageV3.Builder<FluencyInstance.Builder> implements FluencyInstanceOrBuilder

Spec for fluency instance.

Protobuf type google.cloud.aiplatform.v1beta1.FluencyInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FluencyInstance build()
Returns
TypeDescription
FluencyInstance

buildPartial()

public FluencyInstance buildPartial()
Returns
TypeDescription
FluencyInstance

clear()

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

clearField(Descriptors.FieldDescriptor field)

public FluencyInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FluencyInstance.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrediction()

public FluencyInstance.Builder clearPrediction()

Required. Output of the evaluated model.

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

Returns
TypeDescription
FluencyInstance.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FluencyInstance getDefaultInstanceForType()
Returns
TypeDescription
FluencyInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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(FluencyInstance other)

public FluencyInstance.Builder mergeFrom(FluencyInstance other)
Parameter
NameDescription
otherFluencyInstance
Returns
TypeDescription
FluencyInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrediction(String value)

public FluencyInstance.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
FluencyInstance.Builder

This builder for chaining.

setPredictionBytes(ByteString value)

public FluencyInstance.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
FluencyInstance.Builder

This builder for chaining.

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

public FluencyInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FluencyInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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