Class ResponseRecallSpec.Builder (3.40.0)

public static final class ResponseRecallSpec.Builder extends GeneratedMessageV3.Builder<ResponseRecallSpec.Builder> implements ResponseRecallSpecOrBuilder

Spec for response recall metric.

Protobuf type google.cloud.aiplatform.v1beta1.ResponseRecallSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ResponseRecallSpec build()
Returns
TypeDescription
ResponseRecallSpec

buildPartial()

public ResponseRecallSpec buildPartial()
Returns
TypeDescription
ResponseRecallSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public ResponseRecallSpec.Builder clearVersion()

Optional. Which version to use for evaluation.

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

Returns
TypeDescription
ResponseRecallSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ResponseRecallSpec getDefaultInstanceForType()
Returns
TypeDescription
ResponseRecallSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

int32 version = 1 [(.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(ResponseRecallSpec other)

public ResponseRecallSpec.Builder mergeFrom(ResponseRecallSpec other)
Parameter
NameDescription
otherResponseRecallSpec
Returns
TypeDescription
ResponseRecallSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(int value)

public ResponseRecallSpec.Builder setVersion(int value)

Optional. Which version to use for evaluation.

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

Parameter
NameDescription
valueint

The version to set.

Returns
TypeDescription
ResponseRecallSpec.Builder

This builder for chaining.