public static final class GenerateGroundedContentRequest.GenerationSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder> implements GenerateGroundedContentRequest.GenerationSpecOrBuilder
Content generation specification.Protobuf type
google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec| Modifier and Type | Method and Description |
|---|---|
GenerateGroundedContentRequest.GenerationSpec |
build() |
GenerateGroundedContentRequest.GenerationSpec |
buildPartial() |
GenerateGroundedContentRequest.GenerationSpec.Builder |
clear() |
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearFrequencyPenalty()
If specified, custom value for frequency penalty will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearLanguageCode()
Language code for content.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearMaxOutputTokens()
If specified, custom value for max output tokens will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearModelId()
Specifies which Vertex model id to use for generation.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearPresencePenalty()
If specified, custom value for presence penalty will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearSeed()
If specified, custom value for the seed will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearTemperature()
If specified, custom value for the temperature will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearTopK()
If specified, custom value for top-k sampling will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearTopP()
If specified, custom value for nucleus sampling will be used.
|
GenerateGroundedContentRequest.GenerationSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
int |
getSeed()
If specified, custom value for the seed 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 |
hasSeed()
If specified, custom value for the seed 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.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GenerateGroundedContentRequest.GenerationSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GenerateGroundedContentRequest.GenerationSpec.Builder |
mergeFrom(GenerateGroundedContentRequest.GenerationSpec other) |
GenerateGroundedContentRequest.GenerationSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
GenerateGroundedContentRequest.GenerationSpec.Builder |
setFrequencyPenalty(float value)
If specified, custom value for frequency penalty will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setLanguageCode(String value)
Language code for content.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
Language code for content.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setMaxOutputTokens(int value)
If specified, custom value for max output tokens will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setModelId(String value)
Specifies which Vertex model id to use for generation.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setModelIdBytes(com.google.protobuf.ByteString value)
Specifies which Vertex model id to use for generation.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setPresencePenalty(float value)
If specified, custom value for presence penalty will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setSeed(int value)
If specified, custom value for the seed will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setTemperature(float value)
If specified, custom value for the temperature will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setTopK(int value)
If specified, custom value for top-k sampling will be used.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setTopP(float value)
If specified, custom value for nucleus sampling will be used.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerateGroundedContentRequest.GenerationSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerateGroundedContentRequest.GenerationSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec.Builder mergeFrom(GenerateGroundedContentRequest.GenerationSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>IOExceptionpublic String getModelId()
Specifies which Vertex model id to use for generation.
string model_id = 3;getModelId in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic com.google.protobuf.ByteString getModelIdBytes()
Specifies which Vertex model id to use for generation.
string model_id = 3;getModelIdBytes in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setModelId(String value)
Specifies which Vertex model id to use for generation.
string model_id = 3;value - The modelId to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearModelId()
Specifies which Vertex model id to use for generation.
string model_id = 3;public GenerateGroundedContentRequest.GenerationSpec.Builder setModelIdBytes(com.google.protobuf.ByteString value)
Specifies which Vertex model id to use for generation.
string model_id = 3;value - The bytes for modelId to set.public 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;getLanguageCode in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic 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;getLanguageCodeBytes in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setLanguageCode(String value)
Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
string language_code = 2;value - The languageCode to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearLanguageCode()
Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
string language_code = 2;public GenerateGroundedContentRequest.GenerationSpec.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
string language_code = 2;value - The bytes for languageCode to set.public boolean hasTemperature()
If specified, custom value for the temperature will be used.
optional float temperature = 4;hasTemperature in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic float getTemperature()
If specified, custom value for the temperature will be used.
optional float temperature = 4;getTemperature in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setTemperature(float value)
If specified, custom value for the temperature will be used.
optional float temperature = 4;value - The temperature to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearTemperature()
If specified, custom value for the temperature will be used.
optional float temperature = 4;public boolean hasTopP()
If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;hasTopP in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic float getTopP()
If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;getTopP in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setTopP(float value)
If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;value - The topP to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearTopP()
If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;public boolean hasTopK()
If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;hasTopK in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic int getTopK()
If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;getTopK in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setTopK(int value)
If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;value - The topK to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearTopK()
If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;public boolean hasFrequencyPenalty()
If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;hasFrequencyPenalty in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic float getFrequencyPenalty()
If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;getFrequencyPenalty in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setFrequencyPenalty(float value)
If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;value - The frequencyPenalty to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearFrequencyPenalty()
If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;public boolean hasSeed()
If specified, custom value for the seed will be used.
optional int32 seed = 12;hasSeed in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic int getSeed()
If specified, custom value for the seed will be used.
optional int32 seed = 12;getSeed in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setSeed(int value)
If specified, custom value for the seed will be used.
optional int32 seed = 12;value - The seed to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearSeed()
If specified, custom value for the seed will be used.
optional int32 seed = 12;public boolean hasPresencePenalty()
If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;hasPresencePenalty in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic float getPresencePenalty()
If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;getPresencePenalty in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setPresencePenalty(float value)
If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;value - The presencePenalty to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearPresencePenalty()
If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;public boolean hasMaxOutputTokens()
If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;hasMaxOutputTokens in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic int getMaxOutputTokens()
If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;getMaxOutputTokens in interface GenerateGroundedContentRequest.GenerationSpecOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec.Builder setMaxOutputTokens(int value)
If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;value - The maxOutputTokens to set.public GenerateGroundedContentRequest.GenerationSpec.Builder clearMaxOutputTokens()
If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;Copyright © 2026 Google LLC. All rights reserved.