public static final class GenerationConfig.ThinkingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder> implements GenerationConfig.ThinkingConfigOrBuilder
Config for thinking features.Protobuf type
google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfigaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>public GenerationConfig.ThinkingConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>public GenerationConfig.ThinkingConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerationConfig.ThinkingConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerationConfig.ThinkingConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerationConfig.ThinkingConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerationConfig.ThinkingConfig.Builder>public GenerationConfig.ThinkingConfig.Builder mergeFrom(GenerationConfig.ThinkingConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>public GenerationConfig.ThinkingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerationConfig.ThinkingConfig.Builder>IOExceptionpublic 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];hasIncludeThoughts in interface GenerationConfig.ThinkingConfigOrBuilderpublic 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];getIncludeThoughts in interface GenerationConfig.ThinkingConfigOrBuilderpublic 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];value - The includeThoughts to set.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];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];hasThinkingBudget in interface GenerationConfig.ThinkingConfigOrBuilderpublic 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];getThinkingBudget in interface GenerationConfig.ThinkingConfigOrBuilderpublic 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];value - The thinkingBudget to set.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];public boolean hasThinkingLevel()
Optional. The number of thoughts tokens that the model should generate.
optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
hasThinkingLevel in interface GenerationConfig.ThinkingConfigOrBuilderpublic int getThinkingLevelValue()
Optional. The number of thoughts tokens that the model should generate.
optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
getThinkingLevelValue in interface GenerationConfig.ThinkingConfigOrBuilderpublic GenerationConfig.ThinkingConfig.Builder setThinkingLevelValue(int value)
Optional. The number of thoughts tokens that the model should generate.
optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for thinkingLevel to set.public GenerationConfig.ThinkingConfig.ThinkingLevel getThinkingLevel()
Optional. The number of thoughts tokens that the model should generate.
optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
getThinkingLevel in interface GenerationConfig.ThinkingConfigOrBuilderpublic GenerationConfig.ThinkingConfig.Builder setThinkingLevel(GenerationConfig.ThinkingConfig.ThinkingLevel value)
Optional. The number of thoughts tokens that the model should generate.
optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The thinkingLevel to set.public GenerationConfig.ThinkingConfig.Builder clearThinkingLevel()
Optional. The number of thoughts tokens that the model should generate.
optional .google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.ThinkingLevel thinking_level = 4 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2026 Google LLC. All rights reserved.