Class RagContextRecallSpec.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RagContextRecallSpec build()
Returns
TypeDescription
RagContextRecallSpec

buildPartial()

public RagContextRecallSpec buildPartial()
Returns
TypeDescription
RagContextRecallSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public RagContextRecallSpec.Builder clearVersion()

Optional. Which version to use for evaluation.

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

Returns
TypeDescription
RagContextRecallSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RagContextRecallSpec getDefaultInstanceForType()
Returns
TypeDescription
RagContextRecallSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

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

Returns
TypeDescription
int

The version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RagContextRecallSpec other)

public RagContextRecallSpec.Builder mergeFrom(RagContextRecallSpec other)
Parameter
NameDescription
otherRagContextRecallSpec
Returns
TypeDescription
RagContextRecallSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RagContextRecallSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The version to set.

Returns
TypeDescription
RagContextRecallSpec.Builder

This builder for chaining.