Package com.google.cloud.aiplatform.v1
Class GenerationConfig.ThinkingConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder
- All Implemented Interfaces:
GenerationConfig.ThinkingConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerationConfig.ThinkingConfig
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.ThinkingConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Indicates whether to include thoughts in the response.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates whether to include thoughts in the response.intOptional.Optional.intOptional.booleanIndicates whether to include thoughts in the response.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setIncludeThoughts(boolean value) Indicates whether to include thoughts in the response.setThinkingBudget(int value) Optional.Optional.setThinkingLevelValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
-
mergeFrom
public GenerationConfig.ThinkingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerationConfig.ThinkingConfig.Builder>- Throws:
IOException
-
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];- Specified by:
hasIncludeThoughtsin interfaceGenerationConfig.ThinkingConfigOrBuilder- Returns:
- Whether the includeThoughts field is set.
-
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];- Specified by:
getIncludeThoughtsin interfaceGenerationConfig.ThinkingConfigOrBuilder- Returns:
- The includeThoughts.
-
setIncludeThoughts
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];- Parameters:
value- The includeThoughts to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasThinkingBudgetin interfaceGenerationConfig.ThinkingConfigOrBuilder- Returns:
- Whether the thinkingBudget field is set.
-
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];- Specified by:
getThinkingBudgetin interfaceGenerationConfig.ThinkingConfigOrBuilder- Returns:
- The thinkingBudget.
-
setThinkingBudget
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];- Parameters:
value- The thinkingBudget to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasThinkingLevel
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];- Specified by:
hasThinkingLevelin interfaceGenerationConfig.ThinkingConfigOrBuilder- Returns:
- Whether the thinkingLevel field is set.
-
getThinkingLevelValue
public 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];- Specified by:
getThinkingLevelValuein interfaceGenerationConfig.ThinkingConfigOrBuilder- Returns:
- The enum numeric value on the wire for thinkingLevel.
-
setThinkingLevelValue
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];- Parameters:
value- The enum numeric value on the wire for thinkingLevel to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getThinkingLevelin interfaceGenerationConfig.ThinkingConfigOrBuilder- Returns:
- The thinkingLevel.
-
setThinkingLevel
public 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];- Parameters:
value- The thinkingLevel to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-