public final class GenerationConfig extends com.google.protobuf.GeneratedMessageV3 implements GenerationConfigOrBuilder
Generation config.Protobuf type
google.cloud.aiplatform.v1beta1.GenerationConfig| Modifier and Type | Class and Description |
|---|---|
static class |
GenerationConfig.Builder
Generation config.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CANDIDATE_COUNT_FIELD_NUMBER |
static int |
FREQUENCY_PENALTY_FIELD_NUMBER |
static int |
MAX_OUTPUT_TOKENS_FIELD_NUMBER |
static int |
PRESENCE_PENALTY_FIELD_NUMBER |
static int |
RESPONSE_MIME_TYPE_FIELD_NUMBER |
static int |
RESPONSE_SCHEMA_FIELD_NUMBER |
static int |
STOP_SEQUENCES_FIELD_NUMBER |
static int |
TEMPERATURE_FIELD_NUMBER |
static int |
TOP_K_FIELD_NUMBER |
static int |
TOP_P_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getCandidateCount()
Optional.
|
static GenerationConfig |
getDefaultInstance() |
GenerationConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
float |
getFrequencyPenalty()
Optional.
|
int |
getMaxOutputTokens()
Optional.
|
com.google.protobuf.Parser<GenerationConfig> |
getParserForType() |
float |
getPresencePenalty()
Optional.
|
String |
getResponseMimeType()
Optional.
|
com.google.protobuf.ByteString |
getResponseMimeTypeBytes()
Optional.
|
Schema |
getResponseSchema()
Optional.
|
SchemaOrBuilder |
getResponseSchemaOrBuilder()
Optional.
|
int |
getSerializedSize() |
String |
getStopSequences(int index)
Optional.
|
com.google.protobuf.ByteString |
getStopSequencesBytes(int index)
Optional.
|
int |
getStopSequencesCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getStopSequencesList()
Optional.
|
float |
getTemperature()
Optional.
|
float |
getTopK()
Optional.
|
float |
getTopP()
Optional.
|
boolean |
hasCandidateCount()
Optional.
|
boolean |
hasFrequencyPenalty()
Optional.
|
int |
hashCode() |
boolean |
hasMaxOutputTokens()
Optional.
|
boolean |
hasPresencePenalty()
Optional.
|
boolean |
hasResponseSchema()
Optional.
|
boolean |
hasTemperature()
Optional.
|
boolean |
hasTopK()
Optional.
|
boolean |
hasTopP()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GenerationConfig.Builder |
newBuilder() |
static GenerationConfig.Builder |
newBuilder(GenerationConfig prototype) |
GenerationConfig.Builder |
newBuilderForType() |
protected GenerationConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GenerationConfig |
parseDelimitedFrom(InputStream input) |
static GenerationConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(byte[] data) |
static GenerationConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(ByteBuffer data) |
static GenerationConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(com.google.protobuf.ByteString data) |
static GenerationConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GenerationConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerationConfig |
parseFrom(InputStream input) |
static GenerationConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GenerationConfig> |
parser() |
GenerationConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TEMPERATURE_FIELD_NUMBER
public static final int TOP_P_FIELD_NUMBER
public static final int TOP_K_FIELD_NUMBER
public static final int CANDIDATE_COUNT_FIELD_NUMBER
public static final int MAX_OUTPUT_TOKENS_FIELD_NUMBER
public static final int STOP_SEQUENCES_FIELD_NUMBER
public static final int PRESENCE_PENALTY_FIELD_NUMBER
public static final int FREQUENCY_PENALTY_FIELD_NUMBER
public static final int RESPONSE_MIME_TYPE_FIELD_NUMBER
public static final int RESPONSE_SCHEMA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasTemperature()
Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];hasTemperature in interface GenerationConfigOrBuilderpublic float getTemperature()
Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];getTemperature in interface GenerationConfigOrBuilderpublic boolean hasTopP()
Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];hasTopP in interface GenerationConfigOrBuilderpublic float getTopP()
Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];getTopP in interface GenerationConfigOrBuilderpublic boolean hasTopK()
Optional. If specified, top-k sampling will be used.
optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];hasTopK in interface GenerationConfigOrBuilderpublic float getTopK()
Optional. If specified, top-k sampling will be used.
optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];getTopK in interface GenerationConfigOrBuilderpublic boolean hasCandidateCount()
Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];hasCandidateCount in interface GenerationConfigOrBuilderpublic int getCandidateCount()
Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];getCandidateCount in interface GenerationConfigOrBuilderpublic boolean hasMaxOutputTokens()
Optional. The maximum number of output tokens to generate per message.
optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];hasMaxOutputTokens in interface GenerationConfigOrBuilderpublic int getMaxOutputTokens()
Optional. The maximum number of output tokens to generate per message.
optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];getMaxOutputTokens in interface GenerationConfigOrBuilderpublic com.google.protobuf.ProtocolStringList getStopSequencesList()
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];getStopSequencesList in interface GenerationConfigOrBuilderpublic int getStopSequencesCount()
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];getStopSequencesCount in interface GenerationConfigOrBuilderpublic String getStopSequences(int index)
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];getStopSequences in interface GenerationConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getStopSequencesBytes(int index)
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];getStopSequencesBytes in interface GenerationConfigOrBuilderindex - The index of the value to return.public boolean hasPresencePenalty()
Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];hasPresencePenalty in interface GenerationConfigOrBuilderpublic float getPresencePenalty()
Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];getPresencePenalty in interface GenerationConfigOrBuilderpublic boolean hasFrequencyPenalty()
Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];hasFrequencyPenalty in interface GenerationConfigOrBuilderpublic float getFrequencyPenalty()
Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];getFrequencyPenalty in interface GenerationConfigOrBuilderpublic String getResponseMimeType()
Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
string response_mime_type = 13 [(.google.api.field_behavior) = OPTIONAL];getResponseMimeType in interface GenerationConfigOrBuilderpublic com.google.protobuf.ByteString getResponseMimeTypeBytes()
Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
string response_mime_type = 13 [(.google.api.field_behavior) = OPTIONAL];getResponseMimeTypeBytes in interface GenerationConfigOrBuilderpublic boolean hasResponseSchema()
Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
hasResponseSchema in interface GenerationConfigOrBuilderpublic Schema getResponseSchema()
Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
getResponseSchema in interface GenerationConfigOrBuilderpublic SchemaOrBuilder getResponseSchemaOrBuilder()
Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
optional .google.cloud.aiplatform.v1beta1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];
getResponseSchemaOrBuilder in interface GenerationConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GenerationConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerationConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static GenerationConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerationConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GenerationConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerationConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GenerationConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GenerationConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GenerationConfig.Builder newBuilder()
public static GenerationConfig.Builder newBuilder(GenerationConfig prototype)
public GenerationConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GenerationConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GenerationConfig getDefaultInstance()
public static com.google.protobuf.Parser<GenerationConfig> parser()
public com.google.protobuf.Parser<GenerationConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GenerationConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.