Class GenerateGroundedContentRequest.GenerationSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec
- All Implemented Interfaces:
GenerateGroundedContentRequest.GenerationSpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- GenerateGroundedContentRequest
public static final class GenerateGroundedContentRequest.GenerationSpec
extends com.google.protobuf.GeneratedMessage
implements GenerateGroundedContentRequest.GenerationSpecOrBuilder
Content generation specification.Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContent generation specification.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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 extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.DescriptorfloatIf 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.com.google.protobuf.Parser<GenerateGroundedContentRequest.GenerationSpec>floatIf specified, custom value for presence penalty will be used.intfloatIf 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.inthashCode()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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GenerateGroundedContentRequest.GenerationSpec>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MODEL_ID_FIELD_NUMBER
public static final int MODEL_ID_FIELD_NUMBER- See Also:
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
TEMPERATURE_FIELD_NUMBER
public static final int TEMPERATURE_FIELD_NUMBER- See Also:
-
TOP_P_FIELD_NUMBER
public static final int TOP_P_FIELD_NUMBER- See Also:
-
TOP_K_FIELD_NUMBER
public static final int TOP_K_FIELD_NUMBER- See Also:
-
FREQUENCY_PENALTY_FIELD_NUMBER
public static final int FREQUENCY_PENALTY_FIELD_NUMBER- See Also:
-
PRESENCE_PENALTY_FIELD_NUMBER
public static final int PRESENCE_PENALTY_FIELD_NUMBER- See Also:
-
MAX_OUTPUT_TOKENS_FIELD_NUMBER
public static final int MAX_OUTPUT_TOKENS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getModelId
Specifies which Vertex model id to use for generation.
string model_id = 3;- Specified by:
getModelIdin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The modelId.
-
getModelIdBytes
public com.google.protobuf.ByteString getModelIdBytes()Specifies which Vertex model id to use for generation.
string model_id = 3;- Specified by:
getModelIdBytesin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The bytes for modelId.
-
getLanguageCode
Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
string language_code = 2;- Specified by:
getLanguageCodein interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public 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;- Specified by:
getLanguageCodeBytesin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The bytes for languageCode.
-
hasTemperature
public boolean hasTemperature()If specified, custom value for the temperature will be used.
optional float temperature = 4;- Specified by:
hasTemperaturein interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- Whether the temperature field is set.
-
getTemperature
public float getTemperature()If specified, custom value for the temperature will be used.
optional float temperature = 4;- Specified by:
getTemperaturein interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The temperature.
-
hasTopP
public boolean hasTopP()If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;- Specified by:
hasTopPin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- Whether the topP field is set.
-
getTopP
public float getTopP()If specified, custom value for nucleus sampling will be used.
optional float top_p = 5;- Specified by:
getTopPin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The topP.
-
hasTopK
public boolean hasTopK()If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;- Specified by:
hasTopKin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- Whether the topK field is set.
-
getTopK
public int getTopK()If specified, custom value for top-k sampling will be used.
optional int32 top_k = 7;- Specified by:
getTopKin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The topK.
-
hasFrequencyPenalty
public boolean hasFrequencyPenalty()If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;- Specified by:
hasFrequencyPenaltyin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- Whether the frequencyPenalty field is set.
-
getFrequencyPenalty
public float getFrequencyPenalty()If specified, custom value for frequency penalty will be used.
optional float frequency_penalty = 8;- Specified by:
getFrequencyPenaltyin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The frequencyPenalty.
-
hasPresencePenalty
public boolean hasPresencePenalty()If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;- Specified by:
hasPresencePenaltyin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- Whether the presencePenalty field is set.
-
getPresencePenalty
public float getPresencePenalty()If specified, custom value for presence penalty will be used.
optional float presence_penalty = 9;- Specified by:
getPresencePenaltyin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The presencePenalty.
-
hasMaxOutputTokens
public boolean hasMaxOutputTokens()If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;- Specified by:
hasMaxOutputTokensin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- Whether the maxOutputTokens field is set.
-
getMaxOutputTokens
public int getMaxOutputTokens()If specified, custom value for max output tokens will be used.
optional int32 max_output_tokens = 10;- Specified by:
getMaxOutputTokensin interfaceGenerateGroundedContentRequest.GenerationSpecOrBuilder- Returns:
- The maxOutputTokens.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static GenerateGroundedContentRequest.GenerationSpec parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static GenerateGroundedContentRequest.GenerationSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GenerateGroundedContentRequest.GenerationSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static GenerateGroundedContentRequest.GenerationSpec.Builder newBuilder(GenerateGroundedContentRequest.GenerationSpec prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GenerateGroundedContentRequest.GenerationSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-