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.v1beta1.GenerationConfig.RoutingConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public GenerationConfig.RoutingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public GenerationConfig.RoutingConfig build()
public GenerationConfig.RoutingConfig buildPartial()
public GenerationConfig.RoutingConfig.Builder clear()
Overrides
public GenerationConfig.RoutingConfig.Builder clearAutoMode()
Automated routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;
public GenerationConfig.RoutingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public GenerationConfig.RoutingConfig.Builder clearManualMode()
Manual routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;
public GenerationConfig.RoutingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public GenerationConfig.RoutingConfig.Builder clearRoutingConfig()
public GenerationConfig.RoutingConfig.Builder clone()
Overrides
public GenerationConfig.RoutingConfig.AutoRoutingMode getAutoMode()
Automated routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;
public GenerationConfig.RoutingConfig.AutoRoutingMode.Builder getAutoModeBuilder()
Automated routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;
public GenerationConfig.RoutingConfig.AutoRoutingModeOrBuilder getAutoModeOrBuilder()
Automated routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;
public GenerationConfig.RoutingConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public GenerationConfig.RoutingConfig.ManualRoutingMode getManualMode()
Manual routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;
public GenerationConfig.RoutingConfig.ManualRoutingMode.Builder getManualModeBuilder()
Manual routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;
public GenerationConfig.RoutingConfig.ManualRoutingModeOrBuilder getManualModeOrBuilder()
Manual routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;
public GenerationConfig.RoutingConfig.RoutingConfigCase getRoutingConfigCase()
public boolean hasAutoMode()
Automated routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;
Returns |
Type |
Description |
boolean |
Whether the autoMode field is set.
|
public boolean hasManualMode()
Manual routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;
Returns |
Type |
Description |
boolean |
Whether the manualMode field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public GenerationConfig.RoutingConfig.Builder mergeAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode value)
Automated routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;
public GenerationConfig.RoutingConfig.Builder mergeFrom(GenerationConfig.RoutingConfig other)
public GenerationConfig.RoutingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public GenerationConfig.RoutingConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public GenerationConfig.RoutingConfig.Builder mergeManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode value)
Manual routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;
public final GenerationConfig.RoutingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public GenerationConfig.RoutingConfig.Builder setAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode value)
Automated routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;
public GenerationConfig.RoutingConfig.Builder setAutoMode(GenerationConfig.RoutingConfig.AutoRoutingMode.Builder builderForValue)
Automated routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode auto_mode = 1;
public GenerationConfig.RoutingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public GenerationConfig.RoutingConfig.Builder setManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode value)
Manual routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;
public GenerationConfig.RoutingConfig.Builder setManualMode(GenerationConfig.RoutingConfig.ManualRoutingMode.Builder builderForValue)
Manual routing.
.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode manual_mode = 2;
public GenerationConfig.RoutingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final GenerationConfig.RoutingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides