Class GenerationConfig.RoutingConfig.ManualRoutingMode.Builder (3.49.0)

public static final class GenerationConfig.RoutingConfig.ManualRoutingMode.Builder extends GeneratedMessageV3.Builder<GenerationConfig.RoutingConfig.ManualRoutingMode.Builder> implements GenerationConfig.RoutingConfig.ManualRoutingModeOrBuilder

When manual routing is set, the specified model will be used directly.

Protobuf type google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GenerationConfig.RoutingConfig.ManualRoutingMode.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerationConfig.RoutingConfig.ManualRoutingMode build()
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode

buildPartial()

public GenerationConfig.RoutingConfig.ManualRoutingMode buildPartial()
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode

clear()

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder clear()
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder
Overrides

clearModelName()

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder clearModelName()

The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.

optional string model_name = 1;

Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder
Overrides

clone()

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder clone()
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder
Overrides

getDefaultInstanceForType()

public GenerationConfig.RoutingConfig.ManualRoutingMode getDefaultInstanceForType()
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode

getDescriptorForType()

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

getModelName()

public String getModelName()

The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.

optional string model_name = 1;

Returns
Type Description
String

The modelName.

getModelNameBytes()

public ByteString getModelNameBytes()

The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.

optional string model_name = 1;

Returns
Type Description
ByteString

The bytes for modelName.

hasModelName()

public boolean hasModelName()

The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.

optional string model_name = 1;

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(GenerationConfig.RoutingConfig.ManualRoutingMode other)

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder mergeFrom(GenerationConfig.RoutingConfig.ManualRoutingMode other)
Parameter
Name Description
other GenerationConfig.RoutingConfig.ManualRoutingMode
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerationConfig.RoutingConfig.ManualRoutingMode.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelName(String value)

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder setModelName(String value)

The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.

optional string model_name = 1;

Parameter
Name Description
value String

The modelName to set.

Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder

This builder for chaining.

setModelNameBytes(ByteString value)

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder setModelNameBytes(ByteString value)

The model name to use. Only the public LLM models are accepted. e.g. 'gemini-1.5-pro-001'.

optional string model_name = 1;

Parameter
Name Description
value ByteString

The bytes for modelName to set.

Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerationConfig.RoutingConfig.ManualRoutingMode.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder
Overrides