Package com.google.cloud.aiplatform.v1
Class GenerateContentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateContentRequest.Builder>
com.google.cloud.aiplatform.v1.GenerateContentRequest.Builder
- All Implemented Interfaces:
GenerateContentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateContentRequest
public static final class GenerateContentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerateContentRequest.Builder>
implements GenerateContentRequestOrBuilder
Request message for [PredictionService.GenerateContent].Protobuf type
google.cloud.aiplatform.v1.GenerateContentRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllContents(Iterable<? extends Content> values) Required.addAllSafetySettings(Iterable<? extends SafetySetting> values) Optional.addAllTools(Iterable<? extends Tool> values) Optional.addContents(int index, Content value) Required.addContents(int index, Content.Builder builderForValue) Required.addContents(Content value) Required.addContents(Content.Builder builderForValue) Required.Required.addContentsBuilder(int index) Required.addSafetySettings(int index, SafetySetting value) Optional.addSafetySettings(int index, SafetySetting.Builder builderForValue) Optional.addSafetySettings(SafetySetting value) Optional.addSafetySettings(SafetySetting.Builder builderForValue) Optional.Optional.addSafetySettingsBuilder(int index) Optional.Optional.addTools(int index, Tool.Builder builderForValue) Optional.Optional.addTools(Tool.Builder builderForValue) Optional.Optional.addToolsBuilder(int index) Optional.build()clear()Optional.Required.Optional.Required.Optional.Optional.Optional.Optional.Optional.booleancontainsLabels(String key) Optional.Optional.com.google.protobuf.ByteStringOptional.getContents(int index) Required.getContentsBuilder(int index) Required.Required.intRequired.Required.getContentsOrBuilder(int index) Required.List<? extends ContentOrBuilder>Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.getModel()Required.Optional.Optional.Optional.com.google.protobuf.ByteStringRequired.Deprecated.getSafetySettings(int index) Optional.getSafetySettingsBuilder(int index) Optional.Optional.intOptional.Optional.getSafetySettingsOrBuilder(int index) Optional.List<? extends SafetySettingOrBuilder>Optional.Optional.Optional.Optional.Optional.Optional.Optional.getTools(int index) Optional.getToolsBuilder(int index) Optional.Optional.intOptional.Optional.getToolsOrBuilder(int index) Optional.List<? extends ToolOrBuilder>Optional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(GenerateContentRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Optional.mergeSystemInstruction(Content value) Optional.mergeToolConfig(ToolConfig value) Optional.putAllLabels(Map<String, String> values) Optional.Optional.removeContents(int index) Required.removeLabels(String key) Optional.removeSafetySettings(int index) Optional.removeTools(int index) Optional.setCachedContent(String value) Optional.setCachedContentBytes(com.google.protobuf.ByteString value) Optional.setContents(int index, Content value) Required.setContents(int index, Content.Builder builderForValue) Required.Optional.setGenerationConfig(GenerationConfig.Builder builderForValue) Optional.Required.Optional.setModelArmorConfig(ModelArmorConfig.Builder builderForValue) Optional.setModelBytes(com.google.protobuf.ByteString value) Required.setSafetySettings(int index, SafetySetting value) Optional.setSafetySettings(int index, SafetySetting.Builder builderForValue) Optional.setSystemInstruction(Content value) Optional.setSystemInstruction(Content.Builder builderForValue) Optional.setToolConfig(ToolConfig value) Optional.setToolConfig(ToolConfig.Builder builderForValue) Optional.Optional.setTools(int index, Tool.Builder builderForValue) 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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateContentRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GenerateContentRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerateContentRequest.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<GenerateContentRequest.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<GenerateContentRequest.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<GenerateContentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateContentRequest.Builder>
-
mergeFrom
public GenerateContentRequest.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<GenerateContentRequest.Builder>- Throws:
IOException
-
getModel
Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string model = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getModelin interfaceGenerateContentRequestOrBuilder- Returns:
- The model.
-
getModelBytes
public com.google.protobuf.ByteString getModelBytes()Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string model = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getModelBytesin interfaceGenerateContentRequestOrBuilder- Returns:
- The bytes for model.
-
setModel
Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string model = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The model to set.- Returns:
- This builder for chaining.
-
clearModel
Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string model = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setModelBytes
Required. The fully qualified name of the publisher model or tuned model endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`string model = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for model to set.- Returns:
- This builder for chaining.
-
getContentsList
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsListin interfaceGenerateContentRequestOrBuilder
-
getContentsCount
public int getContentsCount()Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsCountin interfaceGenerateContentRequestOrBuilder
-
getContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsin interfaceGenerateContentRequestOrBuilder
-
setContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
setContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
addContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
addContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
addContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
addContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
addAllContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
removeContents
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
getContentsBuilder
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
getContentsOrBuilder
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsOrBuilderin interfaceGenerateContentRequestOrBuilder
-
getContentsOrBuilderList
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getContentsOrBuilderListin interfaceGenerateContentRequestOrBuilder
-
addContentsBuilder
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
addContentsBuilder
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
getContentsBuilderList
Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.aiplatform.v1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; -
hasSystemInstruction
public boolean hasSystemInstruction()Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
optional .google.cloud.aiplatform.v1.Content system_instruction = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSystemInstructionin interfaceGenerateContentRequestOrBuilder- Returns:
- Whether the systemInstruction field is set.
-
getSystemInstruction
Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
optional .google.cloud.aiplatform.v1.Content system_instruction = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemInstructionin interfaceGenerateContentRequestOrBuilder- Returns:
- The systemInstruction.
-
setSystemInstruction
Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
optional .google.cloud.aiplatform.v1.Content system_instruction = 8 [(.google.api.field_behavior) = OPTIONAL]; -
setSystemInstruction
Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
optional .google.cloud.aiplatform.v1.Content system_instruction = 8 [(.google.api.field_behavior) = OPTIONAL]; -
mergeSystemInstruction
Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
optional .google.cloud.aiplatform.v1.Content system_instruction = 8 [(.google.api.field_behavior) = OPTIONAL]; -
clearSystemInstruction
Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
optional .google.cloud.aiplatform.v1.Content system_instruction = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getSystemInstructionBuilder
Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
optional .google.cloud.aiplatform.v1.Content system_instruction = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getSystemInstructionOrBuilder
Optional. The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
optional .google.cloud.aiplatform.v1.Content system_instruction = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemInstructionOrBuilderin interfaceGenerateContentRequestOrBuilder
-
getCachedContent
Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getCachedContentin interfaceGenerateContentRequestOrBuilder- Returns:
- The cachedContent.
-
getCachedContentBytes
public com.google.protobuf.ByteString getCachedContentBytes()Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getCachedContentBytesin interfaceGenerateContentRequestOrBuilder- Returns:
- The bytes for cachedContent.
-
setCachedContent
Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The cachedContent to set.- Returns:
- This builder for chaining.
-
clearCachedContent
Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setCachedContentBytes
Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `projects/{project}/locations/{location}/cachedContents/{cachedContent}`string cached_content = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for cachedContent to set.- Returns:
- This builder for chaining.
-
getToolsList
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsListin interfaceGenerateContentRequestOrBuilder
-
getToolsCount
public int getToolsCount()Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsCountin interfaceGenerateContentRequestOrBuilder
-
getTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsin interfaceGenerateContentRequestOrBuilder
-
setTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addAllTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
removeTools
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getToolsBuilder
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getToolsOrBuilder
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsOrBuilderin interfaceGenerateContentRequestOrBuilder
-
getToolsOrBuilderList
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsOrBuilderListin interfaceGenerateContentRequestOrBuilder
-
addToolsBuilder
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addToolsBuilder
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getToolsBuilderList
Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
repeated .google.cloud.aiplatform.v1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL]; -
hasToolConfig
public boolean hasToolConfig()Optional. Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasToolConfigin interfaceGenerateContentRequestOrBuilder- Returns:
- Whether the toolConfig field is set.
-
getToolConfig
Optional. Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolConfigin interfaceGenerateContentRequestOrBuilder- Returns:
- The toolConfig.
-
setToolConfig
Optional. Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setToolConfig
Optional. Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
mergeToolConfig
Optional. Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearToolConfig
Optional. Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getToolConfigBuilder
Optional. Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getToolConfigOrBuilder
Optional. Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolConfigOrBuilderin interfaceGenerateContentRequestOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:GenerateContentRequestOrBuilderOptional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceGenerateContentRequestOrBuilder
-
containsLabels
Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceGenerateContentRequestOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceGenerateContentRequestOrBuilder
-
getLabelsMap
Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceGenerateContentRequestOrBuilder
-
getLabelsOrDefault
Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceGenerateContentRequestOrBuilder
-
getLabelsOrThrow
Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceGenerateContentRequestOrBuilder
-
clearLabels
-
removeLabels
Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. The labels with user-defined metadata for the request. It is used for billing and reporting only. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getSafetySettingsList
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSafetySettingsListin interfaceGenerateContentRequestOrBuilder
-
getSafetySettingsCount
public int getSafetySettingsCount()Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSafetySettingsCountin interfaceGenerateContentRequestOrBuilder
-
getSafetySettings
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSafetySettingsin interfaceGenerateContentRequestOrBuilder
-
setSafetySettings
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setSafetySettings
public GenerateContentRequest.Builder setSafetySettings(int index, SafetySetting.Builder builderForValue) Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addSafetySettings
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addSafetySettings
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addSafetySettings
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addSafetySettings
public GenerateContentRequest.Builder addSafetySettings(int index, SafetySetting.Builder builderForValue) Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAllSafetySettings
public GenerateContentRequest.Builder addAllSafetySettings(Iterable<? extends SafetySetting> values) Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearSafetySettings
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
removeSafetySettings
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getSafetySettingsBuilder
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getSafetySettingsOrBuilder
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSafetySettingsOrBuilderin interfaceGenerateContentRequestOrBuilder
-
getSafetySettingsOrBuilderList
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSafetySettingsOrBuilderListin interfaceGenerateContentRequestOrBuilder
-
addSafetySettingsBuilder
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addSafetySettingsBuilder
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getSafetySettingsBuilderList
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL]; -
hasModelArmorConfig
public boolean hasModelArmorConfig()Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied.
.google.cloud.aiplatform.v1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasModelArmorConfigin interfaceGenerateContentRequestOrBuilder- Returns:
- Whether the modelArmorConfig field is set.
-
getModelArmorConfig
Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied.
.google.cloud.aiplatform.v1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelArmorConfigin interfaceGenerateContentRequestOrBuilder- Returns:
- The modelArmorConfig.
-
setModelArmorConfig
Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied.
.google.cloud.aiplatform.v1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
setModelArmorConfig
Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied.
.google.cloud.aiplatform.v1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
mergeModelArmorConfig
Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied.
.google.cloud.aiplatform.v1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
clearModelArmorConfig
Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied.
.google.cloud.aiplatform.v1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getModelArmorConfigBuilder
Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied.
.google.cloud.aiplatform.v1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getModelArmorConfigOrBuilder
Optional. Settings for prompt and response sanitization using the Model Armor service. If supplied, safety_settings must not be supplied.
.google.cloud.aiplatform.v1.ModelArmorConfig model_armor_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelArmorConfigOrBuilderin interfaceGenerateContentRequestOrBuilder
-
hasGenerationConfig
public boolean hasGenerationConfig()Optional. Generation config.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasGenerationConfigin interfaceGenerateContentRequestOrBuilder- Returns:
- Whether the generationConfig field is set.
-
getGenerationConfig
Optional. Generation config.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGenerationConfigin interfaceGenerateContentRequestOrBuilder- Returns:
- The generationConfig.
-
setGenerationConfig
Optional. Generation config.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setGenerationConfig
Optional. Generation config.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeGenerationConfig
Optional. Generation config.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearGenerationConfig
Optional. Generation config.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getGenerationConfigBuilder
Optional. Generation config.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getGenerationConfigOrBuilder
Optional. Generation config.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGenerationConfigOrBuilderin interfaceGenerateContentRequestOrBuilder
-