Class GroundednessInstance.Builder (3.56.0)

public static final class GroundednessInstance.Builder extends GeneratedMessageV3.Builder<GroundednessInstance.Builder> implements GroundednessInstanceOrBuilder

Spec for groundedness instance.

Protobuf type google.cloud.aiplatform.v1beta1.GroundednessInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GroundednessInstance build()
Returns
Type Description
GroundednessInstance

buildPartial()

public GroundednessInstance buildPartial()
Returns
Type Description
GroundednessInstance

clear()

public GroundednessInstance.Builder clear()
Returns
Type Description
GroundednessInstance.Builder
Overrides

clearContext()

public GroundednessInstance.Builder clearContext()

Required. Background information provided in context used to compare against the prediction.

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

Returns
Type Description
GroundednessInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GroundednessInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GroundednessInstance.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrediction()

public GroundednessInstance.Builder clearPrediction()

Required. Output of the evaluated model.

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

Returns
Type Description
GroundednessInstance.Builder

This builder for chaining.

clone()

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

getContext()

public String getContext()

Required. Background information provided in context used to compare against the prediction.

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

Returns
Type Description
String

The context.

getContextBytes()

public ByteString getContextBytes()

Required. Background information provided in context used to compare against the prediction.

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

Returns
Type Description
ByteString

The bytes for context.

getDefaultInstanceForType()

public GroundednessInstance getDefaultInstanceForType()
Returns
Type Description
GroundednessInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

hasContext()

public boolean hasContext()

Required. Background information provided in context used to compare against the prediction.

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

Returns
Type Description
boolean

Whether the context 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(GroundednessInstance other)

public GroundednessInstance.Builder mergeFrom(GroundednessInstance other)
Parameter
Name Description
other GroundednessInstance
Returns
Type Description
GroundednessInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GroundednessInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GroundednessInstance.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContext(String value)

public GroundednessInstance.Builder setContext(String value)

Required. Background information provided in context used to compare against the prediction.

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

Parameter
Name Description
value String

The context to set.

Returns
Type Description
GroundednessInstance.Builder

This builder for chaining.

setContextBytes(ByteString value)

public GroundednessInstance.Builder setContextBytes(ByteString value)

Required. Background information provided in context used to compare against the prediction.

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

Parameter
Name Description
value ByteString

The bytes for context to set.

Returns
Type Description
GroundednessInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrediction(String value)

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

This builder for chaining.

setPredictionBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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