Interface GenerateGroundedContentRequest.GenerationSpecOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GenerateGroundedContentRequest.GenerationSpec,GenerateGroundedContentRequest.GenerationSpec.Builder
- Enclosing class:
- GenerateGroundedContentRequest
public static interface GenerateGroundedContentRequest.GenerationSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfloatIf specified, custom value for frequency penalty will be used.Language code for content.com.google.protobuf.ByteStringLanguage code for content.intIf specified, custom value for max output tokens will be used.Specifies which Vertex model id to use for generation.com.google.protobuf.ByteStringSpecifies which Vertex model id to use for generation.floatIf specified, custom value for presence penalty will be used.floatIf specified, custom value for the temperature will be used.intgetTopK()If specified, custom value for top-k sampling will be used.floatgetTopP()If specified, custom value for nucleus sampling will be used.booleanIf specified, custom value for frequency penalty will be used.booleanIf specified, custom value for max output tokens will be used.booleanIf specified, custom value for presence penalty will be used.booleanIf specified, custom value for the temperature will be used.booleanhasTopK()If specified, custom value for top-k sampling will be used.booleanhasTopP()If specified, custom value for nucleus sampling will be used.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getModelId
String getModelId()Specifies which Vertex model id to use for generation.
string model_id = 3;- Returns:
- The modelId.
-
getModelIdBytes
com.google.protobuf.ByteString getModelIdBytes()Specifies which Vertex model id to use for generation.
string model_id = 3;- Returns:
- The bytes for modelId.
-
getLanguageCode
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;- Returns:
- The languageCode.
-
getLanguageCodeBytes
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;- Returns:
- The bytes for languageCode.
-
hasTemperature
boolean hasTemperature()If specified, custom value for the temperature will be used.
optional float temperature = 4;- Returns:
- Whether the temperature field is set.
-
getTemperature
float getTemperature()If specified, custom value for the temperature will be used.
optional float temperature = 4;- Returns:
- The temperature.
-
hasTopP
boolean hasTopP()If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;- Returns:
- Whether the topP field is set.
-
getTopP
float getTopP()If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;- Returns:
- The topP.
-
hasTopK
boolean hasTopK()If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;- Returns:
- Whether the topK field is set.
-
getTopK
int getTopK()If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;- Returns:
- The topK.
-
hasFrequencyPenalty
boolean hasFrequencyPenalty()If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;- Returns:
- Whether the frequencyPenalty field is set.
-
getFrequencyPenalty
float getFrequencyPenalty()If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;- Returns:
- The frequencyPenalty.
-
hasPresencePenalty
boolean hasPresencePenalty()If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;- Returns:
- Whether the presencePenalty field is set.
-
getPresencePenalty
float getPresencePenalty()If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;- Returns:
- The presencePenalty.
-
hasMaxOutputTokens
boolean hasMaxOutputTokens()If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;- Returns:
- Whether the maxOutputTokens field is set.
-
getMaxOutputTokens
int getMaxOutputTokens()If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;- Returns:
- The maxOutputTokens.
-