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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GroundednessInstance build()
Returns
TypeDescription
GroundednessInstance

buildPartial()

public GroundednessInstance buildPartial()
Returns
TypeDescription
GroundednessInstance

clear()

public GroundednessInstance.Builder clear()
Returns
TypeDescription
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
TypeDescription
GroundednessInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrediction()

public GroundednessInstance.Builder clearPrediction()

Required. Output of the evaluated model.

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

Returns
TypeDescription
GroundednessInstance.Builder

This builder for chaining.

clone()

public GroundednessInstance.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for context.

getDefaultInstanceForType()

public GroundednessInstance getDefaultInstanceForType()
Returns
TypeDescription
GroundednessInstance

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.

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
TypeDescription
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
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(GroundednessInstance other)

public GroundednessInstance.Builder mergeFrom(GroundednessInstance other)
Parameter
NameDescription
otherGroundednessInstance
Returns
TypeDescription
GroundednessInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GroundednessInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The context to set.

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

The bytes for context to set.

Returns
TypeDescription
GroundednessInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The prediction to set.

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

The bytes for prediction to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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