Class RagRetrievalConfig.Ranking.RankService.Builder (3.56.0)

public static final class RagRetrievalConfig.Ranking.RankService.Builder extends GeneratedMessageV3.Builder<RagRetrievalConfig.Ranking.RankService.Builder> implements RagRetrievalConfig.Ranking.RankServiceOrBuilder

Config for Rank Service.

Protobuf type google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking.RankService

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RagRetrievalConfig.Ranking.RankService build()
Returns
Type Description
RagRetrievalConfig.Ranking.RankService

buildPartial()

public RagRetrievalConfig.Ranking.RankService buildPartial()
Returns
Type Description
RagRetrievalConfig.Ranking.RankService

clear()

public RagRetrievalConfig.Ranking.RankService.Builder clear()
Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RagRetrievalConfig.Ranking.RankService.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder
Overrides

clearModelName()

public RagRetrievalConfig.Ranking.RankService.Builder clearModelName()

Optional. The model name of the rank service. Format: semantic-ranker-512@latest

optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RagRetrievalConfig.Ranking.RankService.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder
Overrides

clone()

public RagRetrievalConfig.Ranking.RankService.Builder clone()
Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder
Overrides

getDefaultInstanceForType()

public RagRetrievalConfig.Ranking.RankService getDefaultInstanceForType()
Returns
Type Description
RagRetrievalConfig.Ranking.RankService

getDescriptorForType()

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

getModelName()

public String getModelName()

Optional. The model name of the rank service. Format: semantic-ranker-512@latest

optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The modelName.

getModelNameBytes()

public ByteString getModelNameBytes()

Optional. The model name of the rank service. Format: semantic-ranker-512@latest

optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for modelName.

hasModelName()

public boolean hasModelName()

Optional. The model name of the rank service. Format: semantic-ranker-512@latest

optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the modelName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagRetrievalConfig.Ranking.RankService other)

public RagRetrievalConfig.Ranking.RankService.Builder mergeFrom(RagRetrievalConfig.Ranking.RankService other)
Parameter
Name Description
other RagRetrievalConfig.Ranking.RankService
Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RagRetrievalConfig.Ranking.RankService.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RagRetrievalConfig.Ranking.RankService.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelName(String value)

public RagRetrievalConfig.Ranking.RankService.Builder setModelName(String value)

Optional. The model name of the rank service. Format: semantic-ranker-512@latest

optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The modelName to set.

Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder

This builder for chaining.

setModelNameBytes(ByteString value)

public RagRetrievalConfig.Ranking.RankService.Builder setModelNameBytes(ByteString value)

Optional. The model name of the rank service. Format: semantic-ranker-512@latest

optional string model_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for modelName to set.

Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RagRetrievalConfig.Ranking.RankService.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagRetrievalConfig.Ranking.RankService.Builder
Overrides