Package com.google.cloud.aiplatform.v1
Class GenerationConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.Builder>
com.google.cloud.aiplatform.v1.GenerationConfig.Builder
- All Implemented Interfaces:
GenerationConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerationConfig
public static final class GenerationConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerationConfig.Builder>
implements GenerationConfigOrBuilder
Generation config.Protobuf type
google.cloud.aiplatform.v1.GenerationConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllResponseModalities(Iterable<? extends GenerationConfig.Modality> values) Optional.addAllResponseModalitiesValue(Iterable<Integer> values) Optional.addAllStopSequences(Iterable<String> values) Optional.Optional.addResponseModalitiesValue(int value) Optional.addStopSequences(String value) Optional.addStopSequencesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.booleanOptional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatOptional.Optional.Optional.Optional.intOptional.intOptional.Optional.intOptional.floatOptional.com.google.protobuf.ValueOptional.com.google.protobuf.Value.BuilderOptional.com.google.protobuf.ValueOrBuilderOptional.booleanOptional.Optional.com.google.protobuf.ByteStringOptional.getResponseModalities(int index) Optional.intOptional.Optional.intgetResponseModalitiesValue(int index) Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.intgetSeed()Optional.Optional.Optional.Optional.getStopSequences(int index) Optional.com.google.protobuf.ByteStringgetStopSequencesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.floatOptional.Optional.Optional.Optional.floatgetTopK()Optional.floatgetTopP()Optional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanhasSeed()Optional.booleanOptional.booleanOptional.booleanOptional.booleanhasTopK()Optional.booleanhasTopP()Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GenerationConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeImageConfig(ImageConfig value) Optional.mergeResponseJsonSchema(com.google.protobuf.Value value) Optional.mergeResponseSchema(Schema value) Optional.Optional.mergeSpeechConfig(SpeechConfig value) Optional.Optional.setAudioTimestamp(boolean value) Optional.setCandidateCount(int value) Optional.setFrequencyPenalty(float value) Optional.setImageConfig(ImageConfig value) Optional.setImageConfig(ImageConfig.Builder builderForValue) Optional.setLogprobs(int value) Optional.setMaxOutputTokens(int value) Optional.Optional.setMediaResolutionValue(int value) Optional.setPresencePenalty(float value) Optional.setResponseJsonSchema(com.google.protobuf.Value value) Optional.setResponseJsonSchema(com.google.protobuf.Value.Builder builderForValue) Optional.setResponseLogprobs(boolean value) Optional.setResponseMimeType(String value) Optional.setResponseMimeTypeBytes(com.google.protobuf.ByteString value) Optional.setResponseModalities(int index, GenerationConfig.Modality value) Optional.setResponseModalitiesValue(int index, int value) Optional.setResponseSchema(Schema value) Optional.setResponseSchema(Schema.Builder builderForValue) Optional.Optional.setRoutingConfig(GenerationConfig.RoutingConfig.Builder builderForValue) Optional.setSeed(int value) Optional.setSpeechConfig(SpeechConfig value) Optional.setSpeechConfig(SpeechConfig.Builder builderForValue) Optional.setStopSequences(int index, String value) Optional.setTemperature(float value) Optional.Optional.setThinkingConfig(GenerationConfig.ThinkingConfig.Builder builderForValue) Optional.setTopK(float value) Optional.setTopP(float value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<GenerationConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerationConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenerationConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerationConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerationConfig.Builder>
-
mergeFrom
public GenerationConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerationConfig.Builder>- Throws:
IOException
-
hasTemperature
public boolean hasTemperature()Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTemperaturein interfaceGenerationConfigOrBuilder- Returns:
- Whether the temperature field is set.
-
getTemperature
public float getTemperature()Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTemperaturein interfaceGenerationConfigOrBuilder- Returns:
- The temperature.
-
setTemperature
Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The temperature to set.- Returns:
- This builder for chaining.
-
clearTemperature
Optional. Controls the randomness of predictions.
optional float temperature = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasTopP
public boolean hasTopP()Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTopPin interfaceGenerationConfigOrBuilder- Returns:
- Whether the topP field is set.
-
getTopP
public float getTopP()Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTopPin interfaceGenerationConfigOrBuilder- Returns:
- The topP.
-
setTopP
Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The topP to set.- Returns:
- This builder for chaining.
-
clearTopP
Optional. If specified, nucleus sampling will be used.
optional float top_p = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasTopK
public boolean hasTopK()Optional. If specified, top-k sampling will be used.
optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTopKin interfaceGenerationConfigOrBuilder- Returns:
- Whether the topK field is set.
-
getTopK
public float getTopK()Optional. If specified, top-k sampling will be used.
optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTopKin interfaceGenerationConfigOrBuilder- Returns:
- The topK.
-
setTopK
Optional. If specified, top-k sampling will be used.
optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The topK to set.- Returns:
- This builder for chaining.
-
clearTopK
Optional. If specified, top-k sampling will be used.
optional float top_k = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasCandidateCount
public boolean hasCandidateCount()Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCandidateCountin interfaceGenerationConfigOrBuilder- Returns:
- Whether the candidateCount field is set.
-
getCandidateCount
public int getCandidateCount()Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCandidateCountin interfaceGenerationConfigOrBuilder- Returns:
- The candidateCount.
-
setCandidateCount
Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The candidateCount to set.- Returns:
- This builder for chaining.
-
clearCandidateCount
Optional. Number of candidates to generate.
optional int32 candidate_count = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasMaxOutputTokens
public boolean hasMaxOutputTokens()Optional. The maximum number of output tokens to generate per message.
optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMaxOutputTokensin interfaceGenerationConfigOrBuilder- Returns:
- Whether the maxOutputTokens field is set.
-
getMaxOutputTokens
public int getMaxOutputTokens()Optional. The maximum number of output tokens to generate per message.
optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMaxOutputTokensin interfaceGenerationConfigOrBuilder- Returns:
- The maxOutputTokens.
-
setMaxOutputTokens
Optional. The maximum number of output tokens to generate per message.
optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The maxOutputTokens to set.- Returns:
- This builder for chaining.
-
clearMaxOutputTokens
Optional. The maximum number of output tokens to generate per message.
optional int32 max_output_tokens = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getStopSequencesList
public com.google.protobuf.ProtocolStringList getStopSequencesList()Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStopSequencesListin interfaceGenerationConfigOrBuilder- Returns:
- A list containing the stopSequences.
-
getStopSequencesCount
public int getStopSequencesCount()Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStopSequencesCountin interfaceGenerationConfigOrBuilder- Returns:
- The count of stopSequences.
-
getStopSequences
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStopSequencesin interfaceGenerationConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The stopSequences at the given index.
-
getStopSequencesBytes
public com.google.protobuf.ByteString getStopSequencesBytes(int index) Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStopSequencesBytesin interfaceGenerationConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the stopSequences at the given index.
-
setStopSequences
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The stopSequences to set.- Returns:
- This builder for chaining.
-
addStopSequences
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The stopSequences to add.- Returns:
- This builder for chaining.
-
addAllStopSequences
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The stopSequences to add.- Returns:
- This builder for chaining.
-
clearStopSequences
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addStopSequencesBytes
Optional. Stop sequences.
repeated string stop_sequences = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the stopSequences to add.- Returns:
- This builder for chaining.
-
hasResponseLogprobs
public boolean hasResponseLogprobs()Optional. If true, export the logprobs results in response.
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasResponseLogprobsin interfaceGenerationConfigOrBuilder- Returns:
- Whether the responseLogprobs field is set.
-
getResponseLogprobs
public boolean getResponseLogprobs()Optional. If true, export the logprobs results in response.
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseLogprobsin interfaceGenerationConfigOrBuilder- Returns:
- The responseLogprobs.
-
setResponseLogprobs
Optional. If true, export the logprobs results in response.
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The responseLogprobs to set.- Returns:
- This builder for chaining.
-
clearResponseLogprobs
Optional. If true, export the logprobs results in response.
optional bool response_logprobs = 18 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasLogprobs
public boolean hasLogprobs()Optional. Logit probabilities.
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasLogprobsin interfaceGenerationConfigOrBuilder- Returns:
- Whether the logprobs field is set.
-
getLogprobs
public int getLogprobs()Optional. Logit probabilities.
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLogprobsin interfaceGenerationConfigOrBuilder- Returns:
- The logprobs.
-
setLogprobs
Optional. Logit probabilities.
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The logprobs to set.- Returns:
- This builder for chaining.
-
clearLogprobs
Optional. Logit probabilities.
optional int32 logprobs = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasPresencePenalty
public boolean hasPresencePenalty()Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPresencePenaltyin interfaceGenerationConfigOrBuilder- Returns:
- Whether the presencePenalty field is set.
-
getPresencePenalty
public float getPresencePenalty()Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPresencePenaltyin interfaceGenerationConfigOrBuilder- Returns:
- The presencePenalty.
-
setPresencePenalty
Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The presencePenalty to set.- Returns:
- This builder for chaining.
-
clearPresencePenalty
Optional. Positive penalties.
optional float presence_penalty = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasFrequencyPenalty
public boolean hasFrequencyPenalty()Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasFrequencyPenaltyin interfaceGenerationConfigOrBuilder- Returns:
- Whether the frequencyPenalty field is set.
-
getFrequencyPenalty
public float getFrequencyPenalty()Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFrequencyPenaltyin interfaceGenerationConfigOrBuilder- Returns:
- The frequencyPenalty.
-
setFrequencyPenalty
Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The frequencyPenalty to set.- Returns:
- This builder for chaining.
-
clearFrequencyPenalty
Optional. Frequency penalties.
optional float frequency_penalty = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasSeed
public boolean hasSeed()Optional. Seed.
optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSeedin interfaceGenerationConfigOrBuilder- Returns:
- Whether the seed field is set.
-
getSeed
public int getSeed()Optional. Seed.
optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSeedin interfaceGenerationConfigOrBuilder- Returns:
- The seed.
-
setSeed
Optional. Seed.
optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The seed to set.- Returns:
- This builder for chaining.
-
clearSeed
Optional. Seed.
optional int32 seed = 12 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
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];- Specified by:
getResponseMimeTypein interfaceGenerationConfigOrBuilder- Returns:
- The responseMimeType.
-
getResponseMimeTypeBytes
public 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];- Specified by:
getResponseMimeTypeBytesin interfaceGenerationConfigOrBuilder- Returns:
- The bytes for responseMimeType.
-
setResponseMimeType
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];- Parameters:
value- The responseMimeType to set.- Returns:
- This builder for chaining.
-
clearResponseMimeType
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];- Returns:
- This builder for chaining.
-
setResponseMimeTypeBytes
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];- Parameters:
value- The bytes for responseMimeType to set.- Returns:
- This builder for chaining.
-
hasResponseSchema
public 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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasResponseSchemain interfaceGenerationConfigOrBuilder- Returns:
- Whether the responseSchema field is set.
-
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseSchemain interfaceGenerationConfigOrBuilder- Returns:
- The responseSchema.
-
setResponseSchema
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; -
setResponseSchema
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; -
mergeResponseSchema
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; -
clearResponseSchema
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; -
getResponseSchemaBuilder
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseSchemaOrBuilderin interfaceGenerationConfigOrBuilder
-
hasResponseJsonSchema
public boolean hasResponseJsonSchema()Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasResponseJsonSchemain interfaceGenerationConfigOrBuilder- Returns:
- Whether the responseJsonSchema field is set.
-
getResponseJsonSchema
public com.google.protobuf.Value getResponseJsonSchema()Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseJsonSchemain interfaceGenerationConfigOrBuilder- Returns:
- The responseJsonSchema.
-
setResponseJsonSchema
Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; -
setResponseJsonSchema
public GenerationConfig.Builder setResponseJsonSchema(com.google.protobuf.Value.Builder builderForValue) Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; -
mergeResponseJsonSchema
Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; -
clearResponseJsonSchema
Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; -
getResponseJsonSchemaBuilder
public com.google.protobuf.Value.Builder getResponseJsonSchemaBuilder()Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL]; -
getResponseJsonSchemaOrBuilder
public com.google.protobuf.ValueOrBuilder getResponseJsonSchemaOrBuilder()Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set.
optional .google.protobuf.Value response_json_schema = 28 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseJsonSchemaOrBuilderin interfaceGenerationConfigOrBuilder
-
hasRoutingConfig
public boolean hasRoutingConfig()Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRoutingConfigin interfaceGenerationConfigOrBuilder- Returns:
- Whether the routingConfig field is set.
-
getRoutingConfig
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingConfigin interfaceGenerationConfigOrBuilder- Returns:
- The routingConfig.
-
setRoutingConfig
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; -
setRoutingConfig
public GenerationConfig.Builder setRoutingConfig(GenerationConfig.RoutingConfig.Builder builderForValue) Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRoutingConfig
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; -
clearRoutingConfig
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; -
getRoutingConfigBuilder
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL]; -
getRoutingConfigOrBuilder
Optional. Routing configuration.
optional .google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig routing_config = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRoutingConfigOrBuilderin interfaceGenerationConfigOrBuilder
-
hasAudioTimestamp
public boolean hasAudioTimestamp()Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAudioTimestampin interfaceGenerationConfigOrBuilder- Returns:
- Whether the audioTimestamp field is set.
-
getAudioTimestamp
public boolean getAudioTimestamp()Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAudioTimestampin interfaceGenerationConfigOrBuilder- Returns:
- The audioTimestamp.
-
setAudioTimestamp
Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The audioTimestamp to set.- Returns:
- This builder for chaining.
-
clearAudioTimestamp
Optional. If enabled, audio timestamps will be included in the request to the model. This can be useful for synchronizing audio with other modalities in the response.
optional bool audio_timestamp = 20 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getResponseModalitiesList
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesListin interfaceGenerationConfigOrBuilder- Returns:
- A list containing the responseModalities.
-
getResponseModalitiesCount
public int getResponseModalitiesCount()Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesCountin interfaceGenerationConfigOrBuilder- Returns:
- The count of responseModalities.
-
getResponseModalities
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesin interfaceGenerationConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The responseModalities at the given index.
-
setResponseModalities
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The responseModalities to set.- Returns:
- This builder for chaining.
-
addResponseModalities
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The responseModalities to add.- Returns:
- This builder for chaining.
-
addAllResponseModalities
public GenerationConfig.Builder addAllResponseModalities(Iterable<? extends GenerationConfig.Modality> values) Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The responseModalities to add.- Returns:
- This builder for chaining.
-
clearResponseModalities
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getResponseModalitiesValueList
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesValueListin interfaceGenerationConfigOrBuilder- Returns:
- A list containing the enum numeric values on the wire for responseModalities.
-
getResponseModalitiesValue
public int getResponseModalitiesValue(int index) Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getResponseModalitiesValuein interfaceGenerationConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of responseModalities at the given index.
-
setResponseModalitiesValue
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for responseModalities to set.- Returns:
- This builder for chaining.
-
addResponseModalitiesValue
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for responseModalities to add.- Returns:
- This builder for chaining.
-
addAllResponseModalitiesValue
Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.
repeated .google.cloud.aiplatform.v1.GenerationConfig.Modality response_modalities = 21 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The enum numeric values on the wire for responseModalities to add.- Returns:
- This builder for chaining.
-
hasMediaResolution
public boolean hasMediaResolution()Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMediaResolutionin interfaceGenerationConfigOrBuilder- Returns:
- Whether the mediaResolution field is set.
-
getMediaResolutionValue
public int getMediaResolutionValue()Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMediaResolutionValuein interfaceGenerationConfigOrBuilder- Returns:
- The enum numeric value on the wire for mediaResolution.
-
setMediaResolutionValue
Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for mediaResolution to set.- Returns:
- This builder for chaining.
-
getMediaResolution
Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMediaResolutionin interfaceGenerationConfigOrBuilder- Returns:
- The mediaResolution.
-
setMediaResolution
Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The mediaResolution to set.- Returns:
- This builder for chaining.
-
clearMediaResolution
Optional. The token resolution at which input media content is sampled. This is used to control the trade-off between the quality of the response and the number of tokens used to represent the media. A higher resolution allows the model to perceive more detail, which can lead to a more nuanced response, but it will also use more tokens. This does not affect the image dimensions sent to the model.
optional .google.cloud.aiplatform.v1.GenerationConfig.MediaResolution media_resolution = 22 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasSpeechConfig
public boolean hasSpeechConfig()Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSpeechConfigin interfaceGenerationConfigOrBuilder- Returns:
- Whether the speechConfig field is set.
-
getSpeechConfig
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechConfigin interfaceGenerationConfigOrBuilder- Returns:
- The speechConfig.
-
setSpeechConfig
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
setSpeechConfig
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
mergeSpeechConfig
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
clearSpeechConfig
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
getSpeechConfigBuilder
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; -
getSpeechConfigOrBuilder
Optional. The speech generation config.
optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSpeechConfigOrBuilderin interfaceGenerationConfigOrBuilder
-
hasThinkingConfig
public boolean hasThinkingConfig()Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasThinkingConfigin interfaceGenerationConfigOrBuilder- Returns:
- Whether the thinkingConfig field is set.
-
getThinkingConfig
Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getThinkingConfigin interfaceGenerationConfigOrBuilder- Returns:
- The thinkingConfig.
-
setThinkingConfig
Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL]; -
setThinkingConfig
public GenerationConfig.Builder setThinkingConfig(GenerationConfig.ThinkingConfig.Builder builderForValue) Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL]; -
mergeThinkingConfig
Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL]; -
clearThinkingConfig
Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL]; -
getThinkingConfigBuilder
Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL]; -
getThinkingConfigOrBuilder
Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinking_config = 25 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getThinkingConfigOrBuilderin interfaceGenerationConfigOrBuilder
-
hasImageConfig
public boolean hasImageConfig()Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasImageConfigin interfaceGenerationConfigOrBuilder- Returns:
- Whether the imageConfig field is set.
-
getImageConfig
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageConfigin interfaceGenerationConfigOrBuilder- Returns:
- The imageConfig.
-
setImageConfig
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL]; -
setImageConfig
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL]; -
mergeImageConfig
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL]; -
clearImageConfig
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL]; -
getImageConfigBuilder
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL]; -
getImageConfigOrBuilder
Optional. Config for image generation features.
optional .google.cloud.aiplatform.v1.ImageConfig image_config = 30 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImageConfigOrBuilderin interfaceGenerationConfigOrBuilder
-