Class GenerationConfig.ThinkingConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
All Implemented Interfaces:
GenerationConfig.ThinkingConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
GenerationConfig

public static final class GenerationConfig.ThinkingConfig extends com.google.protobuf.GeneratedMessage implements GenerationConfig.ThinkingConfigOrBuilder
 Config for thinking features.
 
Protobuf type google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig
See Also:
  • Field Details

    • INCLUDE_THOUGHTS_FIELD_NUMBER

      public static final int INCLUDE_THOUGHTS_FIELD_NUMBER
      See Also:
    • THINKING_BUDGET_FIELD_NUMBER

      public static final int THINKING_BUDGET_FIELD_NUMBER
      See Also:
    • THINKING_LEVEL_FIELD_NUMBER

      public static final int THINKING_LEVEL_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GenerationConfig.ThinkingConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GenerationConfig.ThinkingConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GenerationConfig.ThinkingConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static GenerationConfig.ThinkingConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GenerationConfig.ThinkingConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GenerationConfig.ThinkingConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GenerationConfig.ThinkingConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<GenerationConfig.ThinkingConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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