Class GenerationConfig.ThinkingConfig.Builder (1.43.0)

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

Config for thinking features.

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

Static Methods

getDescriptor()

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

Methods

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

clearIncludeThoughts()

public GenerationConfig.ThinkingConfig.Builder clearIncludeThoughts()

Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.

optional bool include_thoughts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerationConfig.ThinkingConfig.Builder

This builder for chaining.

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.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getIncludeThoughts()

public boolean getIncludeThoughts()

Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.

optional bool include_thoughts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The includeThoughts.

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.

hasIncludeThoughts()

public boolean hasIncludeThoughts()

Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.

optional bool include_thoughts = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the includeThoughts field is set.

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 GeneratedMessage.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

setIncludeThoughts(boolean value)

public GenerationConfig.ThinkingConfig.Builder setIncludeThoughts(boolean value)

Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.

optional bool include_thoughts = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The includeThoughts to set.

Returns
Type Description
GenerationConfig.ThinkingConfig.Builder

This builder for chaining.

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.