public static interface GenerateGroundedContentRequest.GenerationSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
float |
getFrequencyPenalty()
If specified, custom value for frequency penalty will be used.
|
String |
getLanguageCode()
Language code for content.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
Language code for content.
|
int |
getMaxOutputTokens()
If specified, custom value for max output tokens will be used.
|
String |
getModelId()
Specifies which Vertex model id to use for generation.
|
com.google.protobuf.ByteString |
getModelIdBytes()
Specifies which Vertex model id to use for generation.
|
float |
getPresencePenalty()
If specified, custom value for presence penalty will be used.
|
float |
getTemperature()
If specified, custom value for the temperature will be used.
|
int |
getTopK()
If specified, custom value for top-k sampling will be used.
|
float |
getTopP()
If specified, custom value for nucleus sampling will be used.
|
boolean |
hasFrequencyPenalty()
If specified, custom value for frequency penalty will be used.
|
boolean |
hasMaxOutputTokens()
If specified, custom value for max output tokens will be used.
|
boolean |
hasPresencePenalty()
If specified, custom value for presence penalty will be used.
|
boolean |
hasTemperature()
If specified, custom value for the temperature will be used.
|
boolean |
hasTopK()
If specified, custom value for top-k sampling will be used.
|
boolean |
hasTopP()
If specified, custom value for nucleus sampling will be used.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getModelId()
Specifies which Vertex model id to use for generation.
string model_id = 3;com.google.protobuf.ByteString getModelIdBytes()
Specifies which Vertex model id to use for generation.
string model_id = 3;String getLanguageCode()
Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
string language_code = 2;com.google.protobuf.ByteString getLanguageCodeBytes()
Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
string language_code = 2;boolean hasTemperature()
If specified, custom value for the temperature will be used.
optional float temperature = 4;float getTemperature()
If specified, custom value for the temperature will be used.
optional float temperature = 4;boolean hasTopP()
If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;float getTopP()
If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;boolean hasTopK()
If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;int getTopK()
If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;boolean hasFrequencyPenalty()
If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;float getFrequencyPenalty()
If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;boolean hasPresencePenalty()
If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;float getPresencePenalty()
If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;boolean hasMaxOutputTokens()
If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;int getMaxOutputTokens()
If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;Copyright © 2025 Google LLC. All rights reserved.