Class GenerationConfig.RoutingConfig.Builder (3.50.0)

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

The configuration for routing the request to a specific model.

Protobuf type google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAutoMode()

public GenerationConfig.RoutingConfig.Builder clearAutoMode()

Automated routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;

Returns
Type Description
GenerationConfig.RoutingConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearManualMode()

public GenerationConfig.RoutingConfig.Builder clearManualMode()

Manual routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;

Returns
Type Description
GenerationConfig.RoutingConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRoutingConfig()

public GenerationConfig.RoutingConfig.Builder clearRoutingConfig()
Returns
Type Description
GenerationConfig.RoutingConfig.Builder

clone()

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

getAutoMode()

public GenerationConfig.RoutingConfig.AutoRoutingMode getAutoMode()

Automated routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;

Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode

The autoMode.

getAutoModeBuilder()

public GenerationConfig.RoutingConfig.AutoRoutingMode.Builder getAutoModeBuilder()

Automated routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;

Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder

getAutoModeOrBuilder()

public GenerationConfig.RoutingConfig.AutoRoutingModeOrBuilder getAutoModeOrBuilder()

Automated routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;

Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingModeOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

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

getManualMode()

public GenerationConfig.RoutingConfig.ManualRoutingMode getManualMode()

Manual routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;

Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode

The manualMode.

getManualModeBuilder()

public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder getManualModeBuilder()

Manual routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;

Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingMode.Builder

getManualModeOrBuilder()

public GenerationConfig.RoutingConfig.ManualRoutingModeOrBuilder getManualModeOrBuilder()

Manual routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;

Returns
Type Description
GenerationConfig.RoutingConfig.ManualRoutingModeOrBuilder

getRoutingConfigCase()

public GenerationConfig.RoutingConfig.RoutingConfigCase getRoutingConfigCase()
Returns
Type Description
GenerationConfig.RoutingConfig.RoutingConfigCase

hasAutoMode()

public boolean hasAutoMode()

Automated routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;

Returns
Type Description
boolean

Whether the autoMode field is set.

hasManualMode()

public boolean hasManualMode()

Manual routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;

Returns
Type Description
boolean

Whether the manualMode field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode value)

public GenerationConfig.RoutingConfig.Builder mergeAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode value)

Automated routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;

Parameter
Name Description
value GenerationConfig.RoutingConfig.AutoRoutingMode
Returns
Type Description
GenerationConfig.RoutingConfig.Builder

mergeFrom(GenerationConfig.RoutingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode value)

public GenerationConfig.RoutingConfig.Builder mergeManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode value)

Manual routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;

Parameter
Name Description
value GenerationConfig.RoutingConfig.ManualRoutingMode
Returns
Type Description
GenerationConfig.RoutingConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode value)

public GenerationConfig.RoutingConfig.Builder setAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode value)

Automated routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;

Parameter
Name Description
value GenerationConfig.RoutingConfig.AutoRoutingMode
Returns
Type Description
GenerationConfig.RoutingConfig.Builder

setAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode.Builder builderForValue)

public GenerationConfig.RoutingConfig.Builder setAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode.Builder builderForValue)

Automated routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;

Parameter
Name Description
builderForValue GenerationConfig.RoutingConfig.AutoRoutingMode.Builder
Returns
Type Description
GenerationConfig.RoutingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode value)

public GenerationConfig.RoutingConfig.Builder setManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode value)

Manual routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;

Parameter
Name Description
value GenerationConfig.RoutingConfig.ManualRoutingMode
Returns
Type Description
GenerationConfig.RoutingConfig.Builder

setManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode.Builder builderForValue)

public GenerationConfig.RoutingConfig.Builder setManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode.Builder builderForValue)

Manual routing.

.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;

Parameter
Name Description
builderForValue GenerationConfig.RoutingConfig.ManualRoutingMode.Builder
Returns
Type Description
GenerationConfig.RoutingConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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