- 3.52.0 (latest)
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class GenerateContentRequest.Builder extends GeneratedMessageV3.Builder<GenerateContentRequest.Builder> implements GenerateContentRequestOrBuilder
Request message for [PredictionService.GenerateContent].
Protobuf type google.cloud.aiplatform.v1beta1.GenerateContentRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GenerateContentRequest.BuilderImplements
GenerateContentRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllContents(Iterable<? extends Content> values)
public GenerateContentRequest.Builder addAllContents(Iterable<? extends Content> values)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.aiplatform.v1beta1.Content> |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addAllSafetySettings(Iterable<? extends SafetySetting> values)
public GenerateContentRequest.Builder addAllSafetySettings(Iterable<? extends SafetySetting> values)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.aiplatform.v1beta1.SafetySetting> |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addAllTools(Iterable<? extends Tool> values)
public GenerateContentRequest.Builder addAllTools(Iterable<? extends Tool> values)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.aiplatform.v1beta1.Tool> |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addContents(Content value)
public GenerateContentRequest.Builder addContents(Content value)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | Content |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addContents(Content.Builder builderForValue)
public GenerateContentRequest.Builder addContents(Content.Builder builderForValue)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue | Content.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addContents(int index, Content value)
public GenerateContentRequest.Builder addContents(int index, Content value)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index | int |
value | Content |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addContents(int index, Content.Builder builderForValue)
public GenerateContentRequest.Builder addContents(int index, Content.Builder builderForValue)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Content.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addContentsBuilder()
public Content.Builder 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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Content.Builder |
addContentsBuilder(int index)
public Content.Builder addContentsBuilder(int index)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Content.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateContentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addSafetySettings(SafetySetting value)
public GenerateContentRequest.Builder addSafetySettings(SafetySetting value)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | SafetySetting |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addSafetySettings(SafetySetting.Builder builderForValue)
public GenerateContentRequest.Builder addSafetySettings(SafetySetting.Builder builderForValue)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue | SafetySetting.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addSafetySettings(int index, SafetySetting value)
public GenerateContentRequest.Builder addSafetySettings(int index, SafetySetting value)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
value | SafetySetting |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addSafetySettings(int index, SafetySetting.Builder builderForValue)
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.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | SafetySetting.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addSafetySettingsBuilder()
public SafetySetting.Builder addSafetySettingsBuilder()
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
SafetySetting.Builder |
addSafetySettingsBuilder(int index)
public SafetySetting.Builder addSafetySettingsBuilder(int index)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
SafetySetting.Builder |
addTools(Tool value)
public GenerateContentRequest.Builder addTools(Tool value)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | Tool |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addTools(Tool.Builder builderForValue)
public GenerateContentRequest.Builder addTools(Tool.Builder builderForValue)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue | Tool.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addTools(int index, Tool value)
public GenerateContentRequest.Builder addTools(int index, Tool value)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
value | Tool |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addTools(int index, Tool.Builder builderForValue)
public GenerateContentRequest.Builder addTools(int index, Tool.Builder builderForValue)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Tool.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
addToolsBuilder()
public Tool.Builder 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Tool.Builder |
addToolsBuilder(int index)
public Tool.Builder addToolsBuilder(int index)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Tool.Builder |
build()
public GenerateContentRequest build()
Returns | |
---|---|
Type | Description |
GenerateContentRequest |
buildPartial()
public GenerateContentRequest buildPartial()
Returns | |
---|---|
Type | Description |
GenerateContentRequest |
clear()
public GenerateContentRequest.Builder clear()
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
clearContents()
public GenerateContentRequest.Builder 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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public GenerateContentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
clearGenerationConfig()
public GenerateContentRequest.Builder clearGenerationConfig()
Optional. Generation config.
.google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
clearModel()
public GenerateContentRequest.Builder clearModel()
Required. The name of the publisher model requested to serve the
prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*
string model = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateContentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
clearSafetySettings()
public GenerateContentRequest.Builder clearSafetySettings()
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
clearToolConfig()
public GenerateContentRequest.Builder clearToolConfig()
Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
clearTools()
public GenerateContentRequest.Builder 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
clone()
public GenerateContentRequest.Builder clone()
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
getContents(int index)
public Content getContents(int index)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Content |
getContentsBuilder(int index)
public Content.Builder getContentsBuilder(int index)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Content.Builder |
getContentsBuilderList()
public List<Content.Builder> 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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<Builder> |
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
int |
getContentsList()
public List<Content> 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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<Content> |
getContentsOrBuilder(int index)
public ContentOrBuilder getContentsOrBuilder(int index)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ContentOrBuilder |
getContentsOrBuilderList()
public List<? extends ContentOrBuilder> 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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> |
getDefaultInstanceForType()
public GenerateContentRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GenerateContentRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getGenerationConfig()
public GenerationConfig getGenerationConfig()
Optional. Generation config.
.google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GenerationConfig | The generationConfig. |
getGenerationConfigBuilder()
public GenerationConfig.Builder getGenerationConfigBuilder()
Optional. Generation config.
.google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GenerationConfig.Builder |
getGenerationConfigOrBuilder()
public GenerationConfigOrBuilder getGenerationConfigOrBuilder()
Optional. Generation config.
.google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GenerationConfigOrBuilder |
getModel()
public String getModel()
Required. The name of the publisher model requested to serve the
prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*
string model = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String | The model. |
getModelBytes()
public ByteString getModelBytes()
Required. The name of the publisher model requested to serve the
prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*
string model = 5 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for model. |
getSafetySettings(int index)
public SafetySetting getSafetySettings(int index)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
SafetySetting |
getSafetySettingsBuilder(int index)
public SafetySetting.Builder getSafetySettingsBuilder(int index)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
SafetySetting.Builder |
getSafetySettingsBuilderList()
public List<SafetySetting.Builder> getSafetySettingsBuilderList()
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getSafetySettingsCount()
public int getSafetySettingsCount()
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getSafetySettingsList()
public List<SafetySetting> getSafetySettingsList()
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<SafetySetting> |
getSafetySettingsOrBuilder(int index)
public SafetySettingOrBuilder getSafetySettingsOrBuilder(int index)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
SafetySettingOrBuilder |
getSafetySettingsOrBuilderList()
public List<? extends SafetySettingOrBuilder> getSafetySettingsOrBuilderList()
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.SafetySettingOrBuilder> |
getToolConfig()
public ToolConfig getToolConfig()
Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ToolConfig | The toolConfig. |
getToolConfigBuilder()
public ToolConfig.Builder getToolConfigBuilder()
Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ToolConfig.Builder |
getToolConfigOrBuilder()
public ToolConfigOrBuilder getToolConfigOrBuilder()
Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ToolConfigOrBuilder |
getTools(int index)
public Tool getTools(int index)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Tool |
getToolsBuilder(int index)
public Tool.Builder getToolsBuilder(int index)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Tool.Builder |
getToolsBuilderList()
public List<Tool.Builder> 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getToolsList()
public List<Tool> 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Tool> |
getToolsOrBuilder(int index)
public ToolOrBuilder getToolsOrBuilder(int index)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
ToolOrBuilder |
getToolsOrBuilderList()
public List<? extends ToolOrBuilder> 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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> |
hasGenerationConfig()
public boolean hasGenerationConfig()
Optional. Generation config.
.google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean | Whether the generationConfig field is set. |
hasToolConfig()
public boolean hasToolConfig()
Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean | Whether the toolConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(GenerateContentRequest other)
public GenerateContentRequest.Builder mergeFrom(GenerateContentRequest other)
Parameter | |
---|---|
Name | Description |
other | GenerateContentRequest |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateContentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public GenerateContentRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
mergeGenerationConfig(GenerationConfig value)
public GenerateContentRequest.Builder mergeGenerationConfig(GenerationConfig value)
Optional. Generation config.
.google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | GenerationConfig |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
mergeToolConfig(ToolConfig value)
public GenerateContentRequest.Builder mergeToolConfig(ToolConfig value)
Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | ToolConfig |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateContentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
removeContents(int index)
public GenerateContentRequest.Builder removeContents(int index)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
removeSafetySettings(int index)
public GenerateContentRequest.Builder removeSafetySettings(int index)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
removeTools(int index)
public GenerateContentRequest.Builder removeTools(int index)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setContents(int index, Content value)
public GenerateContentRequest.Builder setContents(int index, Content value)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index | int |
value | Content |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setContents(int index, Content.Builder builderForValue)
public GenerateContentRequest.Builder setContents(int index, Content.Builder builderForValue)
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.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Content.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateContentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setGenerationConfig(GenerationConfig value)
public GenerateContentRequest.Builder setGenerationConfig(GenerationConfig value)
Optional. Generation config.
.google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | GenerationConfig |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setGenerationConfig(GenerationConfig.Builder builderForValue)
public GenerateContentRequest.Builder setGenerationConfig(GenerationConfig.Builder builderForValue)
Optional. Generation config.
.google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue | GenerationConfig.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setModel(String value)
public GenerateContentRequest.Builder setModel(String value)
Required. The name of the publisher model requested to serve the
prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*
string model = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | String The model to set. |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder | This builder for chaining. |
setModelBytes(ByteString value)
public GenerateContentRequest.Builder setModelBytes(ByteString value)
Required. The name of the publisher model requested to serve the
prediction. Format:
projects/{project}/locations/{location}/publishers/*/models/*
string model = 5 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for model to set. |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateContentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setSafetySettings(int index, SafetySetting value)
public GenerateContentRequest.Builder setSafetySettings(int index, SafetySetting value)
Optional. Per request settings for blocking unsafe content. Enforced on GenerateContentResponse.candidates.
repeated .google.cloud.aiplatform.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
value | SafetySetting |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setSafetySettings(int index, SafetySetting.Builder builderForValue)
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.v1beta1.SafetySetting safety_settings = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | SafetySetting.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setToolConfig(ToolConfig value)
public GenerateContentRequest.Builder setToolConfig(ToolConfig value)
Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | ToolConfig |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setToolConfig(ToolConfig.Builder builderForValue)
public GenerateContentRequest.Builder setToolConfig(ToolConfig.Builder builderForValue)
Tool config. This config is shared for all tools provided in the request.
.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue | ToolConfig.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setTools(int index, Tool value)
public GenerateContentRequest.Builder setTools(int index, Tool value)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
value | Tool |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setTools(int index, Tool.Builder builderForValue)
public GenerateContentRequest.Builder setTools(int index, Tool.Builder builderForValue)
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.v1beta1.Tool tools = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | Tool.Builder |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateContentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GenerateContentRequest.Builder |