Class GenerationConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.Builder>
com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder
All Implemented Interfaces:
GenerationConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GenerationConfig

public static final class GenerationConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.Builder> implements GenerationConfigOrBuilder
 Generation config.
 
Protobuf type google.cloud.aiplatform.v1beta1.GenerationConfig
  • 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.Builder>
    • clear

      public GenerationConfig.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.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.Builder>
    • getDefaultInstanceForType

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

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

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

      public GenerationConfig.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.Builder>
    • mergeFrom

      public GenerationConfig.Builder mergeFrom(GenerationConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.Builder>
    • mergeFrom

      public GenerationConfig.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.Builder>
      Throws:
      IOException
    • hasTemperature

      public boolean hasTemperature()
       Optional. Controls the randomness of predictions.
       
      optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTemperature in interface GenerationConfigOrBuilder
      Returns:
      Whether the temperature field is set.
    • getTemperature

      public float getTemperature()
       Optional. Controls the randomness of predictions.
       
      optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTemperature in interface GenerationConfigOrBuilder
      Returns:
      The temperature.
    • setTemperature

      public GenerationConfig.Builder setTemperature(float value)
       Optional. Controls the randomness of predictions.
       
      optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The temperature to set.
      Returns:
      This builder for chaining.
    • clearTemperature

      public GenerationConfig.Builder clearTemperature()
       Optional. Controls the randomness of predictions.
       
      optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasTopP

      public boolean hasTopP()
       Optional. If specified, nucleus sampling will be used.
       
      optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTopP in interface GenerationConfigOrBuilder
      Returns:
      Whether the topP field is set.
    • getTopP

      public float getTopP()
       Optional. If specified, nucleus sampling will be used.
       
      optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTopP in interface GenerationConfigOrBuilder
      Returns:
      The topP.
    • setTopP

      public GenerationConfig.Builder setTopP(float value)
       Optional. If specified, nucleus sampling will be used.
       
      optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The topP to set.
      Returns:
      This builder for chaining.
    • clearTopP

      public GenerationConfig.Builder clearTopP()
       Optional. If specified, nucleus sampling will be used.
       
      optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasTopK

      public boolean hasTopK()
       Optional. If specified, top-k sampling will be used.
       
      optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTopK in interface GenerationConfigOrBuilder
      Returns:
      Whether the topK field is set.
    • getTopK

      public float getTopK()
       Optional. If specified, top-k sampling will be used.
       
      optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTopK in interface GenerationConfigOrBuilder
      Returns:
      The topK.
    • setTopK

      public GenerationConfig.Builder setTopK(float value)
       Optional. If specified, top-k sampling will be used.
       
      optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The topK to set.
      Returns:
      This builder for chaining.
    • clearTopK

      public GenerationConfig.Builder clearTopK()
       Optional. If specified, top-k sampling will be used.
       
      optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasCandidateCount

      public boolean hasCandidateCount()
       Optional. Number of candidates to generate.
       
      optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCandidateCount in interface GenerationConfigOrBuilder
      Returns:
      Whether the candidateCount field is set.
    • getCandidateCount

      public int getCandidateCount()
       Optional. Number of candidates to generate.
       
      optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCandidateCount in interface GenerationConfigOrBuilder
      Returns:
      The candidateCount.
    • setCandidateCount

      public GenerationConfig.Builder setCandidateCount(int value)
       Optional. Number of candidates to generate.
       
      optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The candidateCount to set.
      Returns:
      This builder for chaining.
    • clearCandidateCount

      public GenerationConfig.Builder clearCandidateCount()
       Optional. Number of candidates to generate.
       
      optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasMaxOutputTokens

      public boolean hasMaxOutputTokens()
       Optional. The maximum number of output tokens to generate per message.
       
      optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMaxOutputTokens in interface GenerationConfigOrBuilder
      Returns:
      Whether the maxOutputTokens field is set.
    • getMaxOutputTokens

      public int getMaxOutputTokens()
       Optional. The maximum number of output tokens to generate per message.
       
      optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxOutputTokens in interface GenerationConfigOrBuilder
      Returns:
      The maxOutputTokens.
    • setMaxOutputTokens

      public GenerationConfig.Builder setMaxOutputTokens(int value)
       Optional. The maximum number of output tokens to generate per message.
       
      optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxOutputTokens to set.
      Returns:
      This builder for chaining.
    • clearMaxOutputTokens

      public GenerationConfig.Builder clearMaxOutputTokens()
       Optional. The maximum number of output tokens to generate per message.
       
      optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStopSequencesList

      public com.google.protobuf.ProtocolStringList getStopSequencesList()
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStopSequencesList in interface GenerationConfigOrBuilder
      Returns:
      A list containing the stopSequences.
    • getStopSequencesCount

      public int getStopSequencesCount()
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStopSequencesCount in interface GenerationConfigOrBuilder
      Returns:
      The count of stopSequences.
    • getStopSequences

      public String getStopSequences(int index)
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStopSequences in interface GenerationConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The stopSequences at the given index.
    • getStopSequencesBytes

      public com.google.protobuf.ByteString getStopSequencesBytes(int index)
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStopSequencesBytes in interface GenerationConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the stopSequences at the given index.
    • setStopSequences

      public GenerationConfig.Builder setStopSequences(int index, String value)
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The stopSequences to set.
      Returns:
      This builder for chaining.
    • addStopSequences

      public GenerationConfig.Builder addStopSequences(String value)
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The stopSequences to add.
      Returns:
      This builder for chaining.
    • addAllStopSequences

      public GenerationConfig.Builder addAllStopSequences(Iterable<String> values)
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The stopSequences to add.
      Returns:
      This builder for chaining.
    • clearStopSequences

      public GenerationConfig.Builder clearStopSequences()
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addStopSequencesBytes

      public GenerationConfig.Builder addStopSequencesBytes(com.google.protobuf.ByteString value)
       Optional. Stop sequences.
       
      repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the stopSequences to add.
      Returns:
      This builder for chaining.
    • hasResponseLogprobs

      public boolean hasResponseLogprobs()
       Optional. If true, export the logprobs results in response.
       
      optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasResponseLogprobs in interface GenerationConfigOrBuilder
      Returns:
      Whether the responseLogprobs field is set.
    • getResponseLogprobs

      public boolean getResponseLogprobs()
       Optional. If true, export the logprobs results in response.
       
      optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseLogprobs in interface GenerationConfigOrBuilder
      Returns:
      The responseLogprobs.
    • setResponseLogprobs

      public GenerationConfig.Builder setResponseLogprobs(boolean value)
       Optional. If true, export the logprobs results in response.
       
      optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The responseLogprobs to set.
      Returns:
      This builder for chaining.
    • clearResponseLogprobs

      public GenerationConfig.Builder clearResponseLogprobs()
       Optional. If true, export the logprobs results in response.
       
      optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasLogprobs

      public boolean hasLogprobs()
       Optional. Logit probabilities.
       
      optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLogprobs in interface GenerationConfigOrBuilder
      Returns:
      Whether the logprobs field is set.
    • getLogprobs

      public int getLogprobs()
       Optional. Logit probabilities.
       
      optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLogprobs in interface GenerationConfigOrBuilder
      Returns:
      The logprobs.
    • setLogprobs

      public GenerationConfig.Builder setLogprobs(int value)
       Optional. Logit probabilities.
       
      optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The logprobs to set.
      Returns:
      This builder for chaining.
    • clearLogprobs

      public GenerationConfig.Builder clearLogprobs()
       Optional. Logit probabilities.
       
      optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasPresencePenalty

      public boolean hasPresencePenalty()
       Optional. Positive penalties.
       
      optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPresencePenalty in interface GenerationConfigOrBuilder
      Returns:
      Whether the presencePenalty field is set.
    • getPresencePenalty

      public float getPresencePenalty()
       Optional. Positive penalties.
       
      optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPresencePenalty in interface GenerationConfigOrBuilder
      Returns:
      The presencePenalty.
    • setPresencePenalty

      public GenerationConfig.Builder setPresencePenalty(float value)
       Optional. Positive penalties.
       
      optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The presencePenalty to set.
      Returns:
      This builder for chaining.
    • clearPresencePenalty

      public GenerationConfig.Builder clearPresencePenalty()
       Optional. Positive penalties.
       
      optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasFrequencyPenalty

      public boolean hasFrequencyPenalty()
       Optional. Frequency penalties.
       
      optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFrequencyPenalty in interface GenerationConfigOrBuilder
      Returns:
      Whether the frequencyPenalty field is set.
    • getFrequencyPenalty

      public float getFrequencyPenalty()
       Optional. Frequency penalties.
       
      optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFrequencyPenalty in interface GenerationConfigOrBuilder
      Returns:
      The frequencyPenalty.
    • setFrequencyPenalty

      public GenerationConfig.Builder setFrequencyPenalty(float value)
       Optional. Frequency penalties.
       
      optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The frequencyPenalty to set.
      Returns:
      This builder for chaining.
    • clearFrequencyPenalty

      public GenerationConfig.Builder clearFrequencyPenalty()
       Optional. Frequency penalties.
       
      optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasSeed

      public boolean hasSeed()
       Optional. Seed.
       
      optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSeed in interface GenerationConfigOrBuilder
      Returns:
      Whether the seed field is set.
    • getSeed

      public int getSeed()
       Optional. Seed.
       
      optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSeed in interface GenerationConfigOrBuilder
      Returns:
      The seed.
    • setSeed

      public GenerationConfig.Builder setSeed(int value)
       Optional. Seed.
       
      optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The seed to set.
      Returns:
      This builder for chaining.
    • clearSeed

      public GenerationConfig.Builder clearSeed()
       Optional. Seed.
       
      optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getResponseMimeType

      public String getResponseMimeType()
       Optional. Output response mimetype of the generated candidate text.
       Supported mimetype:
       - `text/plain`: (default) Text output.
       - `application/json`: JSON response in the candidates.
       The model needs to be prompted to output the appropriate response type,
       otherwise the behavior is undefined.
       This is a preview feature.
       
      string response_mime_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseMimeType in interface GenerationConfigOrBuilder
      Returns:
      The responseMimeType.
    • getResponseMimeTypeBytes

      public com.google.protobuf.ByteString getResponseMimeTypeBytes()
       Optional. Output response mimetype of the generated candidate text.
       Supported mimetype:
       - `text/plain`: (default) Text output.
       - `application/json`: JSON response in the candidates.
       The model needs to be prompted to output the appropriate response type,
       otherwise the behavior is undefined.
       This is a preview feature.
       
      string response_mime_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseMimeTypeBytes in interface GenerationConfigOrBuilder
      Returns:
      The bytes for responseMimeType.
    • setResponseMimeType

      public GenerationConfig.Builder setResponseMimeType(String value)
       Optional. Output response mimetype of the generated candidate text.
       Supported mimetype:
       - `text/plain`: (default) Text output.
       - `application/json`: JSON response in the candidates.
       The model needs to be prompted to output the appropriate response type,
       otherwise the behavior is undefined.
       This is a preview feature.
       
      string response_mime_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The responseMimeType to set.
      Returns:
      This builder for chaining.
    • clearResponseMimeType

      public GenerationConfig.Builder clearResponseMimeType()
       Optional. Output response mimetype of the generated candidate text.
       Supported mimetype:
       - `text/plain`: (default) Text output.
       - `application/json`: JSON response in the candidates.
       The model needs to be prompted to output the appropriate response type,
       otherwise the behavior is undefined.
       This is a preview feature.
       
      string response_mime_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setResponseMimeTypeBytes

      public GenerationConfig.Builder setResponseMimeTypeBytes(com.google.protobuf.ByteString value)
       Optional. Output response mimetype of the generated candidate text.
       Supported mimetype:
       - `text/plain`: (default) Text output.
       - `application/json`: JSON response in the candidates.
       The model needs to be prompted to output the appropriate response type,
       otherwise the behavior is undefined.
       This is a preview feature.
       
      string response_mime_type = 13 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for responseMimeType to set.
      Returns:
      This builder for chaining.
    • hasResponseSchema

      public boolean hasResponseSchema()
       Optional. The `Schema` object allows the definition of input and output
       data types. These types can be objects, but also primitives and arrays.
       Represents a select subset of an [OpenAPI 3.0 schema
       object](https://spec.openapis.org/oas/v3.0.3#schema).
       If set, a compatible response_mime_type must also be set.
       Compatible mimetypes:
       `application/json`: Schema for JSON response.
       
      optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasResponseSchema in interface GenerationConfigOrBuilder
      Returns:
      Whether the responseSchema field is set.
    • getResponseSchema

      public Schema getResponseSchema()
       Optional. The `Schema` object allows the definition of input and output
       data types. These types can be objects, but also primitives and arrays.
       Represents a select subset of an [OpenAPI 3.0 schema
       object](https://spec.openapis.org/oas/v3.0.3#schema).
       If set, a compatible response_mime_type must also be set.
       Compatible mimetypes:
       `application/json`: Schema for JSON response.
       
      optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseSchema in interface GenerationConfigOrBuilder
      Returns:
      The responseSchema.
    • setResponseSchema

      public GenerationConfig.Builder setResponseSchema(Schema value)
       Optional. The `Schema` object allows the definition of input and output
       data types. These types can be objects, but also primitives and arrays.
       Represents a select subset of an [OpenAPI 3.0 schema
       object](https://spec.openapis.org/oas/v3.0.3#schema).
       If set, a compatible response_mime_type must also be set.
       Compatible mimetypes:
       `application/json`: Schema for JSON response.
       
      optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
    • setResponseSchema

      public GenerationConfig.Builder setResponseSchema(Schema.Builder builderForValue)
       Optional. The `Schema` object allows the definition of input and output
       data types. These types can be objects, but also primitives and arrays.
       Represents a select subset of an [OpenAPI 3.0 schema
       object](https://spec.openapis.org/oas/v3.0.3#schema).
       If set, a compatible response_mime_type must also be set.
       Compatible mimetypes:
       `application/json`: Schema for JSON response.
       
      optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
    • mergeResponseSchema

      public GenerationConfig.Builder mergeResponseSchema(Schema value)
       Optional. The `Schema` object allows the definition of input and output
       data types. These types can be objects, but also primitives and arrays.
       Represents a select subset of an [OpenAPI 3.0 schema
       object](https://spec.openapis.org/oas/v3.0.3#schema).
       If set, a compatible response_mime_type must also be set.
       Compatible mimetypes:
       `application/json`: Schema for JSON response.
       
      optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
    • clearResponseSchema

      public GenerationConfig.Builder clearResponseSchema()
       Optional. The `Schema` object allows the definition of input and output
       data types. These types can be objects, but also primitives and arrays.
       Represents a select subset of an [OpenAPI 3.0 schema
       object](https://spec.openapis.org/oas/v3.0.3#schema).
       If set, a compatible response_mime_type must also be set.
       Compatible mimetypes:
       `application/json`: Schema for JSON response.
       
      optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
    • getResponseSchemaBuilder

      public Schema.Builder getResponseSchemaBuilder()
       Optional. The `Schema` object allows the definition of input and output
       data types. These types can be objects, but also primitives and arrays.
       Represents a select subset of an [OpenAPI 3.0 schema
       object](https://spec.openapis.org/oas/v3.0.3#schema).
       If set, a compatible response_mime_type must also be set.
       Compatible mimetypes:
       `application/json`: Schema for JSON response.
       
      optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
    • getResponseSchemaOrBuilder

      public SchemaOrBuilder getResponseSchemaOrBuilder()
       Optional. The `Schema` object allows the definition of input and output
       data types. These types can be objects, but also primitives and arrays.
       Represents a select subset of an [OpenAPI 3.0 schema
       object](https://spec.openapis.org/oas/v3.0.3#schema).
       If set, a compatible response_mime_type must also be set.
       Compatible mimetypes:
       `application/json`: Schema for JSON response.
       
      optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseSchemaOrBuilder in interface GenerationConfigOrBuilder
    • hasResponseJsonSchema

      public boolean hasResponseJsonSchema()
       Optional. Output schema of the generated response. This is an alternative
       to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
      
       If set, `response_schema` must be omitted, but `response_mime_type` is
       required.
      
       While the full JSON Schema may be sent, not all features are supported.
       Specifically, only the following properties are supported:
      
       - `$id`
       - `$defs`
       - `$ref`
       - `$anchor`
       - `type`
       - `format`
       - `title`
       - `description`
       - `enum` (for strings and numbers)
       - `items`
       - `prefixItems`
       - `minItems`
       - `maxItems`
       - `minimum`
       - `maximum`
       - `anyOf`
       - `oneOf` (interpreted the same as `anyOf`)
       - `properties`
       - `additionalProperties`
       - `required`
      
       The non-standard `propertyOrdering` property may also be set.
      
       Cyclic references are unrolled to a limited degree and, as such, may only
       be used within non-required properties. (Nullable properties are not
       sufficient.) If `$ref` is set on a sub-schema, no other properties, except
       for than those starting as a `$`, may be set.
       
      optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasResponseJsonSchema in interface GenerationConfigOrBuilder
      Returns:
      Whether the responseJsonSchema field is set.
    • getResponseJsonSchema

      public com.google.protobuf.Value getResponseJsonSchema()
       Optional. Output schema of the generated response. This is an alternative
       to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
      
       If set, `response_schema` must be omitted, but `response_mime_type` is
       required.
      
       While the full JSON Schema may be sent, not all features are supported.
       Specifically, only the following properties are supported:
      
       - `$id`
       - `$defs`
       - `$ref`
       - `$anchor`
       - `type`
       - `format`
       - `title`
       - `description`
       - `enum` (for strings and numbers)
       - `items`
       - `prefixItems`
       - `minItems`
       - `maxItems`
       - `minimum`
       - `maximum`
       - `anyOf`
       - `oneOf` (interpreted the same as `anyOf`)
       - `properties`
       - `additionalProperties`
       - `required`
      
       The non-standard `propertyOrdering` property may also be set.
      
       Cyclic references are unrolled to a limited degree and, as such, may only
       be used within non-required properties. (Nullable properties are not
       sufficient.) If `$ref` is set on a sub-schema, no other properties, except
       for than those starting as a `$`, may be set.
       
      optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseJsonSchema in interface GenerationConfigOrBuilder
      Returns:
      The responseJsonSchema.
    • setResponseJsonSchema

      public GenerationConfig.Builder setResponseJsonSchema(com.google.protobuf.Value value)
       Optional. Output schema of the generated response. This is an alternative
       to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
      
       If set, `response_schema` must be omitted, but `response_mime_type` is
       required.
      
       While the full JSON Schema may be sent, not all features are supported.
       Specifically, only the following properties are supported:
      
       - `$id`
       - `$defs`
       - `$ref`
       - `$anchor`
       - `type`
       - `format`
       - `title`
       - `description`
       - `enum` (for strings and numbers)
       - `items`
       - `prefixItems`
       - `minItems`
       - `maxItems`
       - `minimum`
       - `maximum`
       - `anyOf`
       - `oneOf` (interpreted the same as `anyOf`)
       - `properties`
       - `additionalProperties`
       - `required`
      
       The non-standard `propertyOrdering` property may also be set.
      
       Cyclic references are unrolled to a limited degree and, as such, may only
       be used within non-required properties. (Nullable properties are not
       sufficient.) If `$ref` is set on a sub-schema, no other properties, except
       for than those starting as a `$`, may be set.
       
      optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
    • setResponseJsonSchema

      public GenerationConfig.Builder setResponseJsonSchema(com.google.protobuf.Value.Builder builderForValue)
       Optional. Output schema of the generated response. This is an alternative
       to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
      
       If set, `response_schema` must be omitted, but `response_mime_type` is
       required.
      
       While the full JSON Schema may be sent, not all features are supported.
       Specifically, only the following properties are supported:
      
       - `$id`
       - `$defs`
       - `$ref`
       - `$anchor`
       - `type`
       - `format`
       - `title`
       - `description`
       - `enum` (for strings and numbers)
       - `items`
       - `prefixItems`
       - `minItems`
       - `maxItems`
       - `minimum`
       - `maximum`
       - `anyOf`
       - `oneOf` (interpreted the same as `anyOf`)
       - `properties`
       - `additionalProperties`
       - `required`
      
       The non-standard `propertyOrdering` property may also be set.
      
       Cyclic references are unrolled to a limited degree and, as such, may only
       be used within non-required properties. (Nullable properties are not
       sufficient.) If `$ref` is set on a sub-schema, no other properties, except
       for than those starting as a `$`, may be set.
       
      optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
    • mergeResponseJsonSchema

      public GenerationConfig.Builder mergeResponseJsonSchema(com.google.protobuf.Value value)
       Optional. Output schema of the generated response. This is an alternative
       to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
      
       If set, `response_schema` must be omitted, but `response_mime_type` is
       required.
      
       While the full JSON Schema may be sent, not all features are supported.
       Specifically, only the following properties are supported:
      
       - `$id`
       - `$defs`
       - `$ref`
       - `$anchor`
       - `type`
       - `format`
       - `title`
       - `description`
       - `enum` (for strings and numbers)
       - `items`
       - `prefixItems`
       - `minItems`
       - `maxItems`
       - `minimum`
       - `maximum`
       - `anyOf`
       - `oneOf` (interpreted the same as `anyOf`)
       - `properties`
       - `additionalProperties`
       - `required`
      
       The non-standard `propertyOrdering` property may also be set.
      
       Cyclic references are unrolled to a limited degree and, as such, may only
       be used within non-required properties. (Nullable properties are not
       sufficient.) If `$ref` is set on a sub-schema, no other properties, except
       for than those starting as a `$`, may be set.
       
      optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
    • clearResponseJsonSchema

      public GenerationConfig.Builder clearResponseJsonSchema()
       Optional. Output schema of the generated response. This is an alternative
       to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
      
       If set, `response_schema` must be omitted, but `response_mime_type` is
       required.
      
       While the full JSON Schema may be sent, not all features are supported.
       Specifically, only the following properties are supported:
      
       - `$id`
       - `$defs`
       - `$ref`
       - `$anchor`
       - `type`
       - `format`
       - `title`
       - `description`
       - `enum` (for strings and numbers)
       - `items`
       - `prefixItems`
       - `minItems`
       - `maxItems`
       - `minimum`
       - `maximum`
       - `anyOf`
       - `oneOf` (interpreted the same as `anyOf`)
       - `properties`
       - `additionalProperties`
       - `required`
      
       The non-standard `propertyOrdering` property may also be set.
      
       Cyclic references are unrolled to a limited degree and, as such, may only
       be used within non-required properties. (Nullable properties are not
       sufficient.) If `$ref` is set on a sub-schema, no other properties, except
       for than those starting as a `$`, may be set.
       
      optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
    • getResponseJsonSchemaBuilder

      public com.google.protobuf.Value.Builder getResponseJsonSchemaBuilder()
       Optional. Output schema of the generated response. This is an alternative
       to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
      
       If set, `response_schema` must be omitted, but `response_mime_type` is
       required.
      
       While the full JSON Schema may be sent, not all features are supported.
       Specifically, only the following properties are supported:
      
       - `$id`
       - `$defs`
       - `$ref`
       - `$anchor`
       - `type`
       - `format`
       - `title`
       - `description`
       - `enum` (for strings and numbers)
       - `items`
       - `prefixItems`
       - `minItems`
       - `maxItems`
       - `minimum`
       - `maximum`
       - `anyOf`
       - `oneOf` (interpreted the same as `anyOf`)
       - `properties`
       - `additionalProperties`
       - `required`
      
       The non-standard `propertyOrdering` property may also be set.
      
       Cyclic references are unrolled to a limited degree and, as such, may only
       be used within non-required properties. (Nullable properties are not
       sufficient.) If `$ref` is set on a sub-schema, no other properties, except
       for than those starting as a `$`, may be set.
       
      optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
    • getResponseJsonSchemaOrBuilder

      public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder()
       Optional. Output schema of the generated response. This is an alternative
       to `response_schema` that accepts [JSON Schema](https://json-schema.org/).
      
       If set, `response_schema` must be omitted, but `response_mime_type` is
       required.
      
       While the full JSON Schema may be sent, not all features are supported.
       Specifically, only the following properties are supported:
      
       - `$id`
       - `$defs`
       - `$ref`
       - `$anchor`
       - `type`
       - `format`
       - `title`
       - `description`
       - `enum` (for strings and numbers)
       - `items`
       - `prefixItems`
       - `minItems`
       - `maxItems`
       - `minimum`
       - `maximum`
       - `anyOf`
       - `oneOf` (interpreted the same as `anyOf`)
       - `properties`
       - `additionalProperties`
       - `required`
      
       The non-standard `propertyOrdering` property may also be set.
      
       Cyclic references are unrolled to a limited degree and, as such, may only
       be used within non-required properties. (Nullable properties are not
       sufficient.) If `$ref` is set on a sub-schema, no other properties, except
       for than those starting as a `$`, may be set.
       
      optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseJsonSchemaOrBuilder in interface GenerationConfigOrBuilder
    • hasRoutingConfig

      public boolean hasRoutingConfig()
       Optional. Routing configuration.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRoutingConfig in interface GenerationConfigOrBuilder
      Returns:
      Whether the routingConfig field is set.
    • getRoutingConfig

      public GenerationConfig.RoutingConfig getRoutingConfig()
       Optional. Routing configuration.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRoutingConfig in interface GenerationConfigOrBuilder
      Returns:
      The routingConfig.
    • setRoutingConfig

       Optional. Routing configuration.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • setRoutingConfig

      public GenerationConfig.Builder setRoutingConfig(GenerationConfig.RoutingConfig.Builder builderForValue)
       Optional. Routing configuration.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRoutingConfig

      public GenerationConfig.Builder mergeRoutingConfig(GenerationConfig.RoutingConfig value)
       Optional. Routing configuration.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • clearRoutingConfig

      public GenerationConfig.Builder clearRoutingConfig()
       Optional. Routing configuration.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • getRoutingConfigBuilder

      public GenerationConfig.RoutingConfig.Builder getRoutingConfigBuilder()
       Optional. Routing configuration.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
    • getRoutingConfigOrBuilder

      public GenerationConfig.RoutingConfigOrBuilder getRoutingConfigOrBuilder()
       Optional. Routing configuration.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRoutingConfigOrBuilder in interface GenerationConfigOrBuilder
    • hasAudioTimestamp

      public boolean hasAudioTimestamp()
       Optional. If enabled, audio timestamp will be included in the request to
       the model.
       
      optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAudioTimestamp in interface GenerationConfigOrBuilder
      Returns:
      Whether the audioTimestamp field is set.
    • getAudioTimestamp

      public boolean getAudioTimestamp()
       Optional. If enabled, audio timestamp will be included in the request to
       the model.
       
      optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAudioTimestamp in interface GenerationConfigOrBuilder
      Returns:
      The audioTimestamp.
    • setAudioTimestamp

      public GenerationConfig.Builder setAudioTimestamp(boolean value)
       Optional. If enabled, audio timestamp will be included in the request to
       the model.
       
      optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The audioTimestamp to set.
      Returns:
      This builder for chaining.
    • clearAudioTimestamp

      public GenerationConfig.Builder clearAudioTimestamp()
       Optional. If enabled, audio timestamp will be included in the request to
       the model.
       
      optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getResponseModalitiesList

      public List<GenerationConfig.Modality> getResponseModalitiesList()
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseModalitiesList in interface GenerationConfigOrBuilder
      Returns:
      A list containing the responseModalities.
    • getResponseModalitiesCount

      public int getResponseModalitiesCount()
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseModalitiesCount in interface GenerationConfigOrBuilder
      Returns:
      The count of responseModalities.
    • getResponseModalities

      public GenerationConfig.Modality getResponseModalities(int index)
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseModalities in interface GenerationConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The responseModalities at the given index.
    • setResponseModalities

      public GenerationConfig.Builder setResponseModalities(int index, GenerationConfig.Modality value)
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The responseModalities to set.
      Returns:
      This builder for chaining.
    • addResponseModalities

      public GenerationConfig.Builder addResponseModalities(GenerationConfig.Modality value)
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The responseModalities to add.
      Returns:
      This builder for chaining.
    • addAllResponseModalities

      public GenerationConfig.Builder addAllResponseModalities(Iterable<? extends GenerationConfig.Modality> values)
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The responseModalities to add.
      Returns:
      This builder for chaining.
    • clearResponseModalities

      public GenerationConfig.Builder clearResponseModalities()
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getResponseModalitiesValueList

      public List<Integer> getResponseModalitiesValueList()
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseModalitiesValueList in interface GenerationConfigOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for responseModalities.
    • getResponseModalitiesValue

      public int getResponseModalitiesValue(int index)
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getResponseModalitiesValue in interface GenerationConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of responseModalities at the given index.
    • setResponseModalitiesValue

      public GenerationConfig.Builder setResponseModalitiesValue(int index, int value)
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for responseModalities to set.
      Returns:
      This builder for chaining.
    • addResponseModalitiesValue

      public GenerationConfig.Builder addResponseModalitiesValue(int value)
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for responseModalities to add.
      Returns:
      This builder for chaining.
    • addAllResponseModalitiesValue

      public GenerationConfig.Builder addAllResponseModalitiesValue(Iterable<Integer> values)
       Optional. The modalities of the response.
       
      repeated .google.cloud.aiplatform.v1beta1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for responseModalities to add.
      Returns:
      This builder for chaining.
    • hasMediaResolution

      public boolean hasMediaResolution()
       Optional. If specified, the media resolution specified will be used.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMediaResolution in interface GenerationConfigOrBuilder
      Returns:
      Whether the mediaResolution field is set.
    • getMediaResolutionValue

      public int getMediaResolutionValue()
       Optional. If specified, the media resolution specified will be used.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMediaResolutionValue in interface GenerationConfigOrBuilder
      Returns:
      The enum numeric value on the wire for mediaResolution.
    • setMediaResolutionValue

      public GenerationConfig.Builder setMediaResolutionValue(int value)
       Optional. If specified, the media resolution specified will be used.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for mediaResolution to set.
      Returns:
      This builder for chaining.
    • getMediaResolution

      public GenerationConfig.MediaResolution getMediaResolution()
       Optional. If specified, the media resolution specified will be used.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMediaResolution in interface GenerationConfigOrBuilder
      Returns:
      The mediaResolution.
    • setMediaResolution

       Optional. If specified, the media resolution specified will be used.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The mediaResolution to set.
      Returns:
      This builder for chaining.
    • clearMediaResolution

      public GenerationConfig.Builder clearMediaResolution()
       Optional. If specified, the media resolution specified will be used.
       
      optional .google.cloud.aiplatform.v1beta1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasSpeechConfig

      public boolean hasSpeechConfig()
       Optional. The speech generation config.
       
      optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSpeechConfig in interface GenerationConfigOrBuilder
      Returns:
      Whether the speechConfig field is set.
    • getSpeechConfig

      public SpeechConfig getSpeechConfig()
       Optional. The speech generation config.
       
      optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpeechConfig in interface GenerationConfigOrBuilder
      Returns:
      The speechConfig.
    • setSpeechConfig

      public GenerationConfig.Builder setSpeechConfig(SpeechConfig value)
       Optional. The speech generation config.
       
      optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
    • setSpeechConfig

      public GenerationConfig.Builder setSpeechConfig(SpeechConfig.Builder builderForValue)
       Optional. The speech generation config.
       
      optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSpeechConfig

      public GenerationConfig.Builder mergeSpeechConfig(SpeechConfig value)
       Optional. The speech generation config.
       
      optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
    • clearSpeechConfig

      public GenerationConfig.Builder clearSpeechConfig()
       Optional. The speech generation config.
       
      optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
    • getSpeechConfigBuilder

      public SpeechConfig.Builder getSpeechConfigBuilder()
       Optional. The speech generation config.
       
      optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
    • getSpeechConfigOrBuilder

      public SpeechConfigOrBuilder getSpeechConfigOrBuilder()
       Optional. The speech generation config.
       
      optional .google.cloud.aiplatform.v1beta1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSpeechConfigOrBuilder in interface GenerationConfigOrBuilder
    • hasThinkingConfig

      public boolean hasThinkingConfig()
       Optional. Config for thinking features.
       An error will be returned if this field is set for models that don't
       support thinking.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasThinkingConfig in interface GenerationConfigOrBuilder
      Returns:
      Whether the thinkingConfig field is set.
    • getThinkingConfig

      public GenerationConfig.ThinkingConfig getThinkingConfig()
       Optional. Config for thinking features.
       An error will be returned if this field is set for models that don't
       support thinking.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getThinkingConfig in interface GenerationConfigOrBuilder
      Returns:
      The thinkingConfig.
    • setThinkingConfig

       Optional. Config for thinking features.
       An error will be returned if this field is set for models that don't
       support thinking.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
    • setThinkingConfig

      public GenerationConfig.Builder setThinkingConfig(GenerationConfig.ThinkingConfig.Builder builderForValue)
       Optional. Config for thinking features.
       An error will be returned if this field is set for models that don't
       support thinking.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
    • mergeThinkingConfig

      public GenerationConfig.Builder mergeThinkingConfig(GenerationConfig.ThinkingConfig value)
       Optional. Config for thinking features.
       An error will be returned if this field is set for models that don't
       support thinking.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
    • clearThinkingConfig

      public GenerationConfig.Builder clearThinkingConfig()
       Optional. Config for thinking features.
       An error will be returned if this field is set for models that don't
       support thinking.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
    • getThinkingConfigBuilder

      public GenerationConfig.ThinkingConfig.Builder getThinkingConfigBuilder()
       Optional. Config for thinking features.
       An error will be returned if this field is set for models that don't
       support thinking.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
    • getThinkingConfigOrBuilder

      public GenerationConfig.ThinkingConfigOrBuilder getThinkingConfigOrBuilder()
       Optional. Config for thinking features.
       An error will be returned if this field is set for models that don't
       support thinking.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getThinkingConfigOrBuilder in interface GenerationConfigOrBuilder
    • hasModelConfig

      public boolean hasModelConfig()
       Optional. Config for model selection.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfig model_config = 27 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasModelConfig in interface GenerationConfigOrBuilder
      Returns:
      Whether the modelConfig field is set.
    • getModelConfig

      public GenerationConfig.ModelConfig getModelConfig()
       Optional. Config for model selection.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfig model_config = 27 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelConfig in interface GenerationConfigOrBuilder
      Returns:
      The modelConfig.
    • setModelConfig

       Optional. Config for model selection.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfig model_config = 27 [(.google.api.field_behavior) = OPTIONAL];
    • setModelConfig

      public GenerationConfig.Builder setModelConfig(GenerationConfig.ModelConfig.Builder builderForValue)
       Optional. Config for model selection.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfig model_config = 27 [(.google.api.field_behavior) = OPTIONAL];
    • mergeModelConfig

      public GenerationConfig.Builder mergeModelConfig(GenerationConfig.ModelConfig value)
       Optional. Config for model selection.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfig model_config = 27 [(.google.api.field_behavior) = OPTIONAL];
    • clearModelConfig

      public GenerationConfig.Builder clearModelConfig()
       Optional. Config for model selection.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfig model_config = 27 [(.google.api.field_behavior) = OPTIONAL];
    • getModelConfigBuilder

      public GenerationConfig.ModelConfig.Builder getModelConfigBuilder()
       Optional. Config for model selection.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfig model_config = 27 [(.google.api.field_behavior) = OPTIONAL];
    • getModelConfigOrBuilder

      public GenerationConfig.ModelConfigOrBuilder getModelConfigOrBuilder()
       Optional. Config for model selection.
       
      .google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfig model_config = 27 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelConfigOrBuilder in interface GenerationConfigOrBuilder
    • hasImageConfig

      public boolean hasImageConfig()
       Optional. Config for image generation features.
       
      optional .google.cloud.aiplatform.v1beta1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasImageConfig in interface GenerationConfigOrBuilder
      Returns:
      Whether the imageConfig field is set.
    • getImageConfig

      public ImageConfig getImageConfig()
       Optional. Config for image generation features.
       
      optional .google.cloud.aiplatform.v1beta1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getImageConfig in interface GenerationConfigOrBuilder
      Returns:
      The imageConfig.
    • setImageConfig

      public GenerationConfig.Builder setImageConfig(ImageConfig value)
       Optional. Config for image generation features.
       
      optional .google.cloud.aiplatform.v1beta1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
    • setImageConfig

      public GenerationConfig.Builder setImageConfig(ImageConfig.Builder builderForValue)
       Optional. Config for image generation features.
       
      optional .google.cloud.aiplatform.v1beta1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
    • mergeImageConfig

      public GenerationConfig.Builder mergeImageConfig(ImageConfig value)
       Optional. Config for image generation features.
       
      optional .google.cloud.aiplatform.v1beta1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
    • clearImageConfig

      public GenerationConfig.Builder clearImageConfig()
       Optional. Config for image generation features.
       
      optional .google.cloud.aiplatform.v1beta1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
    • getImageConfigBuilder

      public ImageConfig.Builder getImageConfigBuilder()
       Optional. Config for image generation features.
       
      optional .google.cloud.aiplatform.v1beta1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
    • getImageConfigOrBuilder

      public ImageConfigOrBuilder getImageConfigOrBuilder()
       Optional. Config for image generation features.
       
      optional .google.cloud.aiplatform.v1beta1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getImageConfigOrBuilder in interface GenerationConfigOrBuilder