@Generated public final class GenerationConfig extends com.google.protobuf.GeneratedMessage implements GenerationConfigOrBuilder
Generation config.Protobuf type
google.cloud.aiplatform.v1.GenerationConfig| Modifier and Type | Class and Description |
|---|---|
static class |
GenerationConfig.Builder
Generation config.
|
static class |
GenerationConfig.MediaResolution
Media resolution for the input media.
|
static class |
GenerationConfig.Modality
The modalities of the response.
|
static class |
GenerationConfig.RoutingConfig
The configuration for routing the request to a specific model.
|
static interface |
GenerationConfig.RoutingConfigOrBuilder |
static class |
GenerationConfig.ThinkingConfig
Config for thinking features.
|
static interface |
GenerationConfig.ThinkingConfigOrBuilder |
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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUDIO_TIMESTAMP_FIELD_NUMBER |
static int |
CANDIDATE_COUNT_FIELD_NUMBER |
static int |
FREQUENCY_PENALTY_FIELD_NUMBER |
static int |
IMAGE_CONFIG_FIELD_NUMBER |
static int |
LOGPROBS_FIELD_NUMBER |
static int |
MAX_OUTPUT_TOKENS_FIELD_NUMBER |
static int |
MEDIA_RESOLUTION_FIELD_NUMBER |
static int |
PRESENCE_PENALTY_FIELD_NUMBER |
static int |
RESPONSE_JSON_SCHEMA_FIELD_NUMBER |
static int |
RESPONSE_LOGPROBS_FIELD_NUMBER |
static int |
RESPONSE_MIME_TYPE_FIELD_NUMBER |
static int |
RESPONSE_MODALITIES_FIELD_NUMBER |
static int |
RESPONSE_SCHEMA_FIELD_NUMBER |
static int |
ROUTING_CONFIG_FIELD_NUMBER |
static int |
SEED_FIELD_NUMBER |
static int |
SPEECH_CONFIG_FIELD_NUMBER |
static int |
STOP_SEQUENCES_FIELD_NUMBER |
static int |
TEMPERATURE_FIELD_NUMBER |
static int |
THINKING_CONFIG_FIELD_NUMBER |
static int |
TOP_K_FIELD_NUMBER |
static int |
TOP_P_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAudioTimestamp()
Optional.
|
int |
getCandidateCount()
Optional.
|
static GenerationConfig |
getDefaultInstance() |
GenerationConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
float |
getFrequencyPenalty()
Optional.
|
ImageConfig |
getImageConfig()
Optional.
|
ImageConfigOrBuilder |
getImageConfigOrBuilder()
Optional.
|
int |
getLogprobs()
Optional.
|
int |
getMaxOutputTokens()
Optional.
|
GenerationConfig.MediaResolution |
getMediaResolution()
Optional.
|
int |
getMediaResolutionValue()
Optional.
|
com.google.protobuf.Parser<GenerationConfig> |
getParserForType() |
float |
getPresencePenalty()
Optional.
|
com.google.protobuf.Value |
getResponseJsonSchema()
Optional.
|
com.google.protobuf.ValueOrBuilder |
getResponseJsonSchemaOrBuilder()
Optional.
|
boolean |
getResponseLogprobs()
Optional.
|
String |
getResponseMimeType()
Optional.
|
com.google.protobuf.ByteString |
getResponseMimeTypeBytes()
Optional.
|
GenerationConfig.Modality |
getResponseModalities(int index)
Optional.
|
int |
getResponseModalitiesCount()
Optional.
|
List<GenerationConfig.Modality> |
getResponseModalitiesList()
Optional.
|
int |
getResponseModalitiesValue(int index)
Optional.
|
List<Integer> |
getResponseModalitiesValueList()
Optional.
|
Schema |
getResponseSchema()
Optional.
|
SchemaOrBuilder |
getResponseSchemaOrBuilder()
Optional.
|
GenerationConfig.RoutingConfig |
getRoutingConfig()
Optional.
|
GenerationConfig.RoutingConfigOrBuilder |
getRoutingConfigOrBuilder()
Optional.
|
int |
getSeed()
Optional.
|
int |
getSerializedSize() |
SpeechConfig |
getSpeechConfig()
Optional.
|
SpeechConfigOrBuilder |
getSpeechConfigOrBuilder()
Optional.
|
String |
getStopSequences(int index)
Optional.
|
com.google.protobuf.ByteString |
getStopSequencesBytes(int index)
Optional.
|
int |
getStopSequencesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getStopSequencesList()
Optional.
|
float |
getTemperature()
Optional.
|
GenerationConfig.ThinkingConfig |
getThinkingConfig()
Optional.
|
GenerationConfig.ThinkingConfigOrBuilder |
getThinkingConfigOrBuilder()
Optional.
|
float |
getTopK()
Optional.
|
float |
getTopP()
Optional.
|
boolean |
hasAudioTimestamp()
Optional.
|
boolean |
hasCandidateCount()
Optional.
|
boolean |
hasFrequencyPenalty()
Optional.
|
int |
hashCode() |
boolean |
hasImageConfig()
Optional.
|
boolean |
hasLogprobs()
Optional.
|
boolean |
hasMaxOutputTokens()
Optional.
|
boolean |
hasMediaResolution()
Optional.
|
boolean |
hasPresencePenalty()
Optional.
|
boolean |
hasResponseJsonSchema()
Optional.
|
boolean |
hasResponseLogprobs()
Optional.
|
boolean |
hasResponseSchema()
Optional.
|
boolean |
hasRoutingConfig()
Optional.
|
boolean |
hasSeed()
Optional.
|
boolean |
hasSpeechConfig()
Optional.
|
boolean |
hasTemperature()
Optional.
|
boolean |
hasThinkingConfig()
Optional.
|
boolean |
hasTopK()
Optional.
|
boolean |
hasTopP()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GenerationConfig.Builder |
newBuilder() |
static GenerationConfig.Builder |
newBuilder(GenerationConfig prototype) |
GenerationConfig.Builder |
newBuilderForType() |
protected GenerationConfig.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static GenerationConfig |
parseDelimitedFrom(InputStream input) |
static GenerationConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(byte[] data) |
static GenerationConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(ByteBuffer data) |
static GenerationConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(com.google.protobuf.ByteString data) |
static GenerationConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GenerationConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(InputStream input) |
static GenerationConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GenerationConfig> |
parser() |
GenerationConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TEMPERATURE_FIELD_NUMBER
public static final int TOP_P_FIELD_NUMBER
public static final int TOP_K_FIELD_NUMBER
public static final int CANDIDATE_COUNT_FIELD_NUMBER
public static final int MAX_OUTPUT_TOKENS_FIELD_NUMBER
public static final int STOP_SEQUENCES_FIELD_NUMBER
public static final int RESPONSE_LOGPROBS_FIELD_NUMBER
public static final int LOGPROBS_FIELD_NUMBER
public static final int PRESENCE_PENALTY_FIELD_NUMBER
public static final int FREQUENCY_PENALTY_FIELD_NUMBER
public static final int SEED_FIELD_NUMBER
public static final int RESPONSE_MIME_TYPE_FIELD_NUMBER
public static final int RESPONSE_SCHEMA_FIELD_NUMBER
public static final int RESPONSE_JSON_SCHEMA_FIELD_NUMBER
public static final int ROUTING_CONFIG_FIELD_NUMBER
public static final int AUDIO_TIMESTAMP_FIELD_NUMBER
public static final int RESPONSE_MODALITIES_FIELD_NUMBER
public static final int MEDIA_RESOLUTION_FIELD_NUMBER
public static final int SPEECH_CONFIG_FIELD_NUMBER
public static final int THINKING_CONFIG_FIELD_NUMBER
public static final int IMAGE_CONFIG_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic boolean hasTemperature()
Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];hasTemperature in interface GenerationConfigOrBuilderpublic float getTemperature()
Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];getTemperature in interface GenerationConfigOrBuilderpublic boolean hasTopP()
Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];hasTopP in interface GenerationConfigOrBuilderpublic float getTopP()
Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];getTopP in interface GenerationConfigOrBuilderpublic boolean hasTopK()
Optional. If specified, top-k sampling will be used.
optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];hasTopK in interface GenerationConfigOrBuilderpublic float getTopK()
Optional. If specified, top-k sampling will be used.
optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];getTopK in interface GenerationConfigOrBuilderpublic boolean hasCandidateCount()
Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];hasCandidateCount in interface GenerationConfigOrBuilderpublic int getCandidateCount()
Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];getCandidateCount in interface GenerationConfigOrBuilderpublic boolean hasMaxOutputTokens()
Optional. The maximum number of output tokens to generate per message.
optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];hasMaxOutputTokens in interface GenerationConfigOrBuilderpublic int getMaxOutputTokens()
Optional. The maximum number of output tokens to generate per message.
optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];getMaxOutputTokens in interface GenerationConfigOrBuilderpublic com.google.protobuf.ProtocolStringList getStopSequencesList()
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];getStopSequencesList in interface GenerationConfigOrBuilderpublic int getStopSequencesCount()
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];getStopSequencesCount in interface GenerationConfigOrBuilderpublic String getStopSequences(int index)
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];getStopSequences in interface GenerationConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getStopSequencesBytes(int index)
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];getStopSequencesBytes in interface GenerationConfigOrBuilderindex - The index of the value to return.public boolean hasResponseLogprobs()
Optional. If true, export the logprobs results in response.
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];hasResponseLogprobs in interface GenerationConfigOrBuilderpublic boolean getResponseLogprobs()
Optional. If true, export the logprobs results in response.
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];getResponseLogprobs in interface GenerationConfigOrBuilderpublic boolean hasLogprobs()
Optional. Logit probabilities.
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];hasLogprobs in interface GenerationConfigOrBuilderpublic int getLogprobs()
Optional. Logit probabilities.
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];getLogprobs in interface GenerationConfigOrBuilderpublic boolean hasPresencePenalty()
Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];hasPresencePenalty in interface GenerationConfigOrBuilderpublic float getPresencePenalty()
Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];getPresencePenalty in interface GenerationConfigOrBuilderpublic boolean hasFrequencyPenalty()
Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];hasFrequencyPenalty in interface GenerationConfigOrBuilderpublic float getFrequencyPenalty()
Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];getFrequencyPenalty in interface GenerationConfigOrBuilderpublic boolean hasSeed()
Optional. Seed.
optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];hasSeed in interface GenerationConfigOrBuilderpublic int getSeed()
Optional. Seed.
optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];getSeed in interface GenerationConfigOrBuilderpublic 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];getResponseMimeType in interface GenerationConfigOrBuilderpublic 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];getResponseMimeTypeBytes in interface GenerationConfigOrBuilderpublic 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];
hasResponseSchema in interface GenerationConfigOrBuilderpublic 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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
getResponseSchema in interface GenerationConfigOrBuilderpublic 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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
getResponseSchemaOrBuilder in interface GenerationConfigOrBuilderpublic 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];
hasResponseJsonSchema in interface GenerationConfigOrBuilderpublic 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];
getResponseJsonSchema in interface GenerationConfigOrBuilderpublic 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];
getResponseJsonSchemaOrBuilder in interface GenerationConfigOrBuilderpublic boolean hasRoutingConfig()
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
hasRoutingConfig in interface GenerationConfigOrBuilderpublic GenerationConfig.RoutingConfig getRoutingConfig()
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
getRoutingConfig in interface GenerationConfigOrBuilderpublic GenerationConfig.RoutingConfigOrBuilder getRoutingConfigOrBuilder()
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];
getRoutingConfigOrBuilder in interface GenerationConfigOrBuilderpublic 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];hasAudioTimestamp in interface GenerationConfigOrBuilderpublic 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];getAudioTimestamp in interface GenerationConfigOrBuilderpublic List<GenerationConfig.Modality> 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];
getResponseModalitiesList in interface GenerationConfigOrBuilderpublic 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];
getResponseModalitiesCount in interface GenerationConfigOrBuilderpublic GenerationConfig.Modality getResponseModalities(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];
getResponseModalities in interface GenerationConfigOrBuilderindex - The index of the element to return.public List<Integer> 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];
getResponseModalitiesValueList in interface GenerationConfigOrBuilderpublic 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];
getResponseModalitiesValue in interface GenerationConfigOrBuilderindex - The index of the value to return.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];
hasMediaResolution in interface GenerationConfigOrBuilderpublic 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];
getMediaResolutionValue in interface GenerationConfigOrBuilderpublic GenerationConfig.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];
getMediaResolution in interface GenerationConfigOrBuilderpublic boolean hasSpeechConfig()
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
hasSpeechConfig in interface GenerationConfigOrBuilderpublic SpeechConfig getSpeechConfig()
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
getSpeechConfig in interface GenerationConfigOrBuilderpublic SpeechConfigOrBuilder getSpeechConfigOrBuilder()
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];
getSpeechConfigOrBuilder in interface GenerationConfigOrBuilderpublic 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];
hasThinkingConfig in interface GenerationConfigOrBuilderpublic 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.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
getThinkingConfig in interface GenerationConfigOrBuilderpublic 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.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];
getThinkingConfigOrBuilder in interface GenerationConfigOrBuilderpublic boolean hasImageConfig()
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
hasImageConfig in interface GenerationConfigOrBuilderpublic ImageConfig getImageConfig()
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
getImageConfig in interface GenerationConfigOrBuilderpublic ImageConfigOrBuilder getImageConfigOrBuilder()
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];
getImageConfigOrBuilder in interface GenerationConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GenerationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static GenerationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerationConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GenerationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GenerationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GenerationConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GenerationConfig.Builder newBuilder()
public static GenerationConfig.Builder newBuilder(GenerationConfig prototype)
public GenerationConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GenerationConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static GenerationConfig getDefaultInstance()
public static com.google.protobuf.Parser<GenerationConfig> parser()
public com.google.protobuf.Parser<GenerationConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic GenerationConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.