Class RagContextRecallSpec.Builder (3.42.0)

public static final class RagContextRecallSpec.Builder extends GeneratedMessageV3.Builder<RagContextRecallSpec.Builder> implements RagContextRecallSpecOrBuilder

Spec for rag context recall metric.

Protobuf type google.cloud.aiplatform.v1beta1.RagContextRecallSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RagContextRecallSpec build()
Returns
Type Description
RagContextRecallSpec

buildPartial()

public RagContextRecallSpec buildPartial()
Returns
Type Description
RagContextRecallSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public RagContextRecallSpec.Builder clearVersion()

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagContextRecallSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RagContextRecallSpec getDefaultInstanceForType()
Returns
Type Description
RagContextRecallSpec

getDescriptorForType()

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

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagContextRecallSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(int value)

public RagContextRecallSpec.Builder setVersion(int value)

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The version to set.

Returns
Type Description
RagContextRecallSpec.Builder

This builder for chaining.