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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
    • getDefaultInstanceForType

      public GenerationConfig.ThinkingConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GenerationConfig.ThinkingConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GenerationConfig.ThinkingConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerationConfig.ThinkingConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasIncludeThoughts in interface GenerationConfig.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:
      getIncludeThoughts in interface GenerationConfig.ThinkingConfigOrBuilder
      Returns:
      The includeThoughts.
    • setIncludeThoughts

      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];
      Parameters:
      value - The includeThoughts to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasThinkingBudget in interface GenerationConfig.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:
      getThinkingBudget in interface GenerationConfig.ThinkingConfigOrBuilder
      Returns:
      The thinkingBudget.
    • setThinkingBudget

      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];
      Parameters:
      value - The thinkingBudget to set.
      Returns:
      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:
      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:
      hasThinkingLevel in interface GenerationConfig.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:
      getThinkingLevelValue in interface GenerationConfig.ThinkingConfigOrBuilder
      Returns:
      The enum numeric value on the wire for thinkingLevel.
    • setThinkingLevelValue

      public 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];
      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:
      getThinkingLevel in interface GenerationConfig.ThinkingConfigOrBuilder
      Returns:
      The thinkingLevel.
    • setThinkingLevel

       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

      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];
      Returns:
      This builder for chaining.