Package com.google.cloud.aiplatform.v1
Class GenerationConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.GenerationConfig
- All Implemented Interfaces:
GenerationConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class GenerationConfig
extends com.google.protobuf.GeneratedMessage
implements GenerationConfigOrBuilder
Generation config.Protobuf type
google.cloud.aiplatform.v1.GenerationConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classGeneration config.static enumMedia resolution for the input media.static enumThe modalities of the response.static final classThe configuration for routing the request to a specific model.static interfacestatic final classConfig for thinking features.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanOptional.intOptional.static GenerationConfigstatic final com.google.protobuf.Descriptors.DescriptorfloatOptional.Optional.Optional.intOptional.intOptional.Optional.intOptional.com.google.protobuf.Parser<GenerationConfig>floatOptional.com.google.protobuf.ValueOptional.com.google.protobuf.ValueOrBuilderOptional.booleanOptional.Optional.com.google.protobuf.ByteStringOptional.getResponseModalities(int index) Optional.intOptional.Optional.intgetResponseModalitiesValue(int index) Optional.Optional.Optional.Optional.Optional.Optional.intgetSeed()Optional.intOptional.Optional.getStopSequences(int index) Optional.com.google.protobuf.ByteStringgetStopSequencesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.floatOptional.Optional.Optional.floatgetTopK()Optional.floatgetTopP()Optional.booleanOptional.booleanOptional.booleanOptional.inthashCode()booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanhasSeed()Optional.booleanOptional.booleanOptional.booleanOptional.booleanhasTopK()Optional.booleanhasTopP()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic GenerationConfig.Builderstatic GenerationConfig.BuildernewBuilder(GenerationConfig prototype) protected GenerationConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GenerationConfigparseDelimitedFrom(InputStream input) static GenerationConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerationConfigparseFrom(byte[] data) static GenerationConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerationConfigparseFrom(com.google.protobuf.ByteString data) static GenerationConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerationConfigparseFrom(com.google.protobuf.CodedInputStream input) static GenerationConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerationConfigparseFrom(InputStream input) static GenerationConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GenerationConfigparseFrom(ByteBuffer data) static GenerationConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GenerationConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TEMPERATURE_FIELD_NUMBER
public static final int TEMPERATURE_FIELD_NUMBER- See Also:
-
TOP_P_FIELD_NUMBER
public static final int TOP_P_FIELD_NUMBER- See Also:
-
TOP_K_FIELD_NUMBER
public static final int TOP_K_FIELD_NUMBER- See Also:
-
CANDIDATE_COUNT_FIELD_NUMBER
public static final int CANDIDATE_COUNT_FIELD_NUMBER- See Also:
-
MAX_OUTPUT_TOKENS_FIELD_NUMBER
public static final int MAX_OUTPUT_TOKENS_FIELD_NUMBER- See Also:
-
STOP_SEQUENCES_FIELD_NUMBER
public static final int STOP_SEQUENCES_FIELD_NUMBER- See Also:
-
RESPONSE_LOGPROBS_FIELD_NUMBER
public static final int RESPONSE_LOGPROBS_FIELD_NUMBER- See Also:
-
LOGPROBS_FIELD_NUMBER
public static final int LOGPROBS_FIELD_NUMBER- See Also:
-
PRESENCE_PENALTY_FIELD_NUMBER
public static final int PRESENCE_PENALTY_FIELD_NUMBER- See Also:
-
FREQUENCY_PENALTY_FIELD_NUMBER
public static final int FREQUENCY_PENALTY_FIELD_NUMBER- See Also:
-
SEED_FIELD_NUMBER
public static final int SEED_FIELD_NUMBER- See Also:
-
RESPONSE_MIME_TYPE_FIELD_NUMBER
public static final int RESPONSE_MIME_TYPE_FIELD_NUMBER- See Also:
-
RESPONSE_SCHEMA_FIELD_NUMBER
public static final int RESPONSE_SCHEMA_FIELD_NUMBER- See Also:
-
RESPONSE_JSON_SCHEMA_FIELD_NUMBER
public static final int RESPONSE_JSON_SCHEMA_FIELD_NUMBER- See Also:
-
ROUTING_CONFIG_FIELD_NUMBER
public static final int ROUTING_CONFIG_FIELD_NUMBER- See Also:
-
AUDIO_TIMESTAMP_FIELD_NUMBER
public static final int AUDIO_TIMESTAMP_FIELD_NUMBER- See Also:
-
RESPONSE_MODALITIES_FIELD_NUMBER
public static final int RESPONSE_MODALITIES_FIELD_NUMBER- See Also:
-
MEDIA_RESOLUTION_FIELD_NUMBER
public static final int MEDIA_RESOLUTION_FIELD_NUMBER- See Also:
-
SPEECH_CONFIG_FIELD_NUMBER
public static final int SPEECH_CONFIG_FIELD_NUMBER- See Also:
-
THINKING_CONFIG_FIELD_NUMBER
public static final int THINKING_CONFIG_FIELD_NUMBER- See Also:
-
IMAGE_CONFIG_FIELD_NUMBER
public static final int IMAGE_CONFIG_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasTemperature
public boolean hasTemperature()Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTemperaturein interfaceGenerationConfigOrBuilder- 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:
getTemperaturein interfaceGenerationConfigOrBuilder- Returns:
- The temperature.
-
hasTopP
public boolean hasTopP()Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTopPin interfaceGenerationConfigOrBuilder- 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:
getTopPin interfaceGenerationConfigOrBuilder- Returns:
- The topP.
-
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:
hasTopKin interfaceGenerationConfigOrBuilder- 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:
getTopKin interfaceGenerationConfigOrBuilder- Returns:
- The topK.
-
hasCandidateCount
public boolean hasCandidateCount()Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCandidateCountin interfaceGenerationConfigOrBuilder- 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:
getCandidateCountin interfaceGenerationConfigOrBuilder- Returns:
- The candidateCount.
-
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:
hasMaxOutputTokensin interfaceGenerationConfigOrBuilder- 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:
getMaxOutputTokensin interfaceGenerationConfigOrBuilder- Returns:
- The maxOutputTokens.
-
getStopSequencesList
public com.google.protobuf.ProtocolStringList getStopSequencesList()Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStopSequencesListin interfaceGenerationConfigOrBuilder- 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:
getStopSequencesCountin interfaceGenerationConfigOrBuilder- Returns:
- The count of stopSequences.
-
getStopSequences
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStopSequencesin interfaceGenerationConfigOrBuilder- 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:
getStopSequencesBytesin interfaceGenerationConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the stopSequences at the given index.
-
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:
hasResponseLogprobsin interfaceGenerationConfigOrBuilder- 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:
getResponseLogprobsin interfaceGenerationConfigOrBuilder- Returns:
- The responseLogprobs.
-
hasLogprobs
public boolean hasLogprobs()Optional. Logit probabilities.
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasLogprobsin interfaceGenerationConfigOrBuilder- 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:
getLogprobsin interfaceGenerationConfigOrBuilder- Returns:
- The logprobs.
-
hasPresencePenalty
public boolean hasPresencePenalty()Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPresencePenaltyin interfaceGenerationConfigOrBuilder- 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:
getPresencePenaltyin interfaceGenerationConfigOrBuilder- Returns:
- The presencePenalty.
-
hasFrequencyPenalty
public boolean hasFrequencyPenalty()Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasFrequencyPenaltyin interfaceGenerationConfigOrBuilder- 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:
getFrequencyPenaltyin interfaceGenerationConfigOrBuilder- Returns:
- The frequencyPenalty.
-
hasSeed
public boolean hasSeed()Optional. Seed.
optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSeedin interfaceGenerationConfigOrBuilder- Returns:
- Whether the seed field is set.
-
getSeed
public int getSeed()Optional. Seed.
optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSeedin interfaceGenerationConfigOrBuilder- Returns:
- The seed.
-
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:
getResponseMimeTypein interfaceGenerationConfigOrBuilder- 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:
getResponseMimeTypeBytesin interfaceGenerationConfigOrBuilder- Returns:
- The bytes for responseMimeType.
-
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasResponseSchemain interfaceGenerationConfigOrBuilder- Returns:
- Whether the responseSchema field is set.
-
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseSchemain interfaceGenerationConfigOrBuilder- Returns:
- The responseSchema.
-
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseSchemaOrBuilderin interfaceGenerationConfigOrBuilder
-
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:
hasResponseJsonSchemain interfaceGenerationConfigOrBuilder- 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:
getResponseJsonSchemain interfaceGenerationConfigOrBuilder- Returns:
- The responseJsonSchema.
-
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:
getResponseJsonSchemaOrBuilderin interfaceGenerationConfigOrBuilder
-
hasRoutingConfig
public boolean hasRoutingConfig()Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRoutingConfigin interfaceGenerationConfigOrBuilder- Returns:
- Whether the routingConfig field is set.
-
getRoutingConfig
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingConfigin interfaceGenerationConfigOrBuilder- Returns:
- The routingConfig.
-
getRoutingConfigOrBuilder
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingConfigOrBuilderin interfaceGenerationConfigOrBuilder
-
hasAudioTimestamp
public boolean hasAudioTimestamp()Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAudioTimestampin interfaceGenerationConfigOrBuilder- Returns:
- Whether the audioTimestamp field is set.
-
getAudioTimestamp
public boolean getAudioTimestamp()Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTimestampin interfaceGenerationConfigOrBuilder- Returns:
- The audioTimestamp.
-
getResponseModalitiesList
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesListin interfaceGenerationConfigOrBuilder- Returns:
- A list containing the responseModalities.
-
getResponseModalitiesCount
public int getResponseModalitiesCount()Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesCountin interfaceGenerationConfigOrBuilder- Returns:
- The count of responseModalities.
-
getResponseModalities
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesin interfaceGenerationConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The responseModalities at the given index.
-
getResponseModalitiesValueList
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesValueListin interfaceGenerationConfigOrBuilder- 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. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesValuein interfaceGenerationConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of responseModalities at the given index.
-
hasMediaResolution
public boolean hasMediaResolution()Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMediaResolutionin interfaceGenerationConfigOrBuilder- Returns:
- Whether the mediaResolution field is set.
-
getMediaResolutionValue
public int getMediaResolutionValue()Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMediaResolutionValuein interfaceGenerationConfigOrBuilder- Returns:
- The enum numeric value on the wire for mediaResolution.
-
getMediaResolution
Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMediaResolutionin interfaceGenerationConfigOrBuilder- Returns:
- The mediaResolution.
-
hasSpeechConfig
public boolean hasSpeechConfig()Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSpeechConfigin interfaceGenerationConfigOrBuilder- Returns:
- Whether the speechConfig field is set.
-
getSpeechConfig
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechConfigin interfaceGenerationConfigOrBuilder- Returns:
- The speechConfig.
-
getSpeechConfigOrBuilder
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechConfigOrBuilderin interfaceGenerationConfigOrBuilder
-
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.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasThinkingConfigin interfaceGenerationConfigOrBuilder- Returns:
- Whether the thinkingConfig field is set.
-
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.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getThinkingConfigin interfaceGenerationConfigOrBuilder- Returns:
- The thinkingConfig.
-
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.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getThinkingConfigOrBuilderin interfaceGenerationConfigOrBuilder
-
hasImageConfig
public boolean hasImageConfig()Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasImageConfigin interfaceGenerationConfigOrBuilder- Returns:
- Whether the imageConfig field is set.
-
getImageConfig
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageConfigin interfaceGenerationConfigOrBuilder- Returns:
- The imageConfig.
-
getImageConfigOrBuilder
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageConfigOrBuilderin interfaceGenerationConfigOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GenerationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerationConfig 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GenerationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GenerationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GenerationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GenerationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GenerationConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-