Class GenerationConfig.RoutingConfig.AutoRoutingMode (3.55.0)

public static final class GenerationConfig.RoutingConfig.AutoRoutingMode extends GeneratedMessageV3 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<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerationConfig.RoutingConfig.AutoRoutingMode

Static Fields

MODEL_ROUTING_PREFERENCE_FIELD_NUMBER

public static final int MODEL_ROUTING_PREFERENCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerationConfig.RoutingConfig.AutoRoutingMode getDefaultInstance()
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode

getDescriptor()

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

newBuilder()

public static GenerationConfig.RoutingConfig.AutoRoutingMode.Builder newBuilder()
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder

newBuilder(GenerationConfig.RoutingConfig.AutoRoutingMode prototype)

public static GenerationConfig.RoutingConfig.AutoRoutingMode.Builder newBuilder(GenerationConfig.RoutingConfig.AutoRoutingMode prototype)
Parameter
Name Description
prototype GenerationConfig.RoutingConfig.AutoRoutingMode
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder

parseDelimitedFrom(InputStream input)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GenerationConfig.RoutingConfig.AutoRoutingMode parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GenerationConfig.RoutingConfig.AutoRoutingMode> parser()
Returns
Type Description
Parser<AutoRoutingMode>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<GenerationConfig.RoutingConfig.AutoRoutingMode> getParserForType()
Returns
Type Description
Parser<AutoRoutingMode>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GenerationConfig.RoutingConfig.AutoRoutingMode.Builder newBuilderForType()
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GenerationConfig.RoutingConfig.AutoRoutingMode.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GenerationConfig.RoutingConfig.AutoRoutingMode.Builder toBuilder()
Returns
Type Description
GenerationConfig.RoutingConfig.AutoRoutingMode.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException