Class GenerationConfig.RoutingConfig.AutoRoutingMode.Builder (3.50.0)

public static final class GenerationConfig.RoutingConfig.AutoRoutingMode.Builder extends GeneratedMessageV3.Builder<GenerationConfig.RoutingConfig.AutoRoutingMode.Builder> implements GenerationConfig.RoutingConfig.AutoRoutingModeOrBuilder

When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference.

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

Inheritance

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModelRoutingPreference()

public GenerationConfig.RoutingConfig.AutoRoutingMode.Builder clearModelRoutingPreference()

The model routing preference.

optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference model_routing_preference = 1;

Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getModelRoutingPreference()

public GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference getModelRoutingPreference()

The model routing preference.

optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference model_routing_preference = 1;

Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference

The modelRoutingPreference.

getModelRoutingPreferenceValue()

public int getModelRoutingPreferenceValue()

The model routing preference.

optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference model_routing_preference = 1;

Returns
Type Description
int

The enum numeric value on the wire for modelRoutingPreference.

hasModelRoutingPreference()

public boolean hasModelRoutingPreference()

The model routing preference.

optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference model_routing_preference = 1;

Returns
Type Description
boolean

Whether the modelRoutingPreference 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.AutoRoutingMode other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelRoutingPreference(GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference value)

public GenerationConfig.RoutingConfig.AutoRoutingMode.Builder setModelRoutingPreference(GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference value)

The model routing preference.

optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference model_routing_preference = 1;

Parameter
Name Description
value GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference

The modelRoutingPreference to set.

Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder

This builder for chaining.

setModelRoutingPreferenceValue(int value)

public GenerationConfig.RoutingConfig.AutoRoutingMode.Builder setModelRoutingPreferenceValue(int value)

The model routing preference.

optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference model_routing_preference = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for modelRoutingPreference to set.

Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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