public static final class GenerateGroundedContentRequest.GenerationSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder> implements GenerateGroundedContentRequest.GenerationSpecOrBuilder
Content generation specification.Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec| Modifier and Type | Method and Description |
|---|---|
GenerateGroundedContentRequest.GenerationSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateGroundedContentRequest.GenerationSpec |
build() |
GenerateGroundedContentRequest.GenerationSpec |
buildPartial() |
GenerateGroundedContentRequest.GenerationSpec.Builder |
clear() |
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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 |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GenerateGroundedContentRequest.GenerationSpec.Builder |
clearPresencePenalty()
If specified, custom value for presence penalty 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.Builder |
clone() |
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.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GenerateGroundedContentRequest.GenerationSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public GenerateGroundedContentRequest.GenerationSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public 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.GeneratedMessageV3.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 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;public final GenerateGroundedContentRequest.GenerationSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>public final GenerateGroundedContentRequest.GenerationSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GenerationSpec.Builder>Copyright © 2025 Google LLC. All rights reserved.