Class GenerationConfig.ThinkingConfig.Builder (3.64.0)

public static final class GenerationConfig.ThinkingConfig.Builder extends GeneratedMessageV3.Builder<GenerationConfig.ThinkingConfig.Builder> implements GenerationConfig.ThinkingConfigOrBuilder

Config for thinking features.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearThinkingBudget()

public GenerationConfig.ThinkingConfig.Builder clearThinkingBudget()

Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.

optional int32 thinking_budget = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerationConfig.ThinkingConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

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

getThinkingBudget()

public int getThinkingBudget()

Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.

optional int32 thinking_budget = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The thinkingBudget.

hasThinkingBudget()

public boolean hasThinkingBudget()

Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.

optional int32 thinking_budget = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the thinkingBudget 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.ThinkingConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setThinkingBudget(int value)

public GenerationConfig.ThinkingConfig.Builder setThinkingBudget(int value)

Optional. Indicates the thinking budget in tokens. This is only applied when enable_thinking is true.

optional int32 thinking_budget = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The thinkingBudget to set.

Returns
Type Description
GenerationConfig.ThinkingConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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