public static final class GenerationConfig.ThinkingConfig.Builder extends GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder> implements GenerationConfig.ThinkingConfigOrBuilderConfig for thinking features.
Protobuf type google.cloud.vertexai.v1.GenerationConfig.ThinkingConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GenerationConfig.ThinkingConfig.BuilderImplements
GenerationConfig.ThinkingConfigOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
booleanThe 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 |
intThe thinkingBudget to set. |
| Returns | |
|---|---|
| Type | Description |
GenerationConfig.ThinkingConfig.Builder |
This builder for chaining. |