public interface GenerateGroundedContentRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsUserLabels(String key)
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
GroundedGenerationContent |
getContents(int index)
Content of the current conversation with the model.
|
int |
getContentsCount()
Content of the current conversation with the model.
|
List<GroundedGenerationContent> |
getContentsList()
Content of the current conversation with the model.
|
GroundedGenerationContentOrBuilder |
getContentsOrBuilder(int index)
Content of the current conversation with the model.
|
List<? extends GroundedGenerationContentOrBuilder> |
getContentsOrBuilderList()
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.GenerationSpec |
getGenerationSpec()
Content generation specification.
|
GenerateGroundedContentRequest.GenerationSpecOrBuilder |
getGenerationSpecOrBuilder()
Content generation specification.
|
GenerateGroundedContentRequest.GroundingSpec |
getGroundingSpec()
Grounding specification.
|
GenerateGroundedContentRequest.GroundingSpecOrBuilder |
getGroundingSpecOrBuilder()
Grounding specification.
|
String |
getLocation()
Required.
|
com.google.protobuf.ByteString |
getLocationBytes()
Required.
|
GroundedGenerationContent |
getSystemInstruction()
Content of the system instruction for the current API.
|
GroundedGenerationContentOrBuilder |
getSystemInstructionOrBuilder()
Content of the system instruction for the current API.
|
Map<String,String> |
getUserLabels()
Deprecated.
|
int |
getUserLabelsCount()
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
Map<String,String> |
getUserLabelsMap()
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
String |
getUserLabelsOrDefault(String key,
String defaultValue)
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
String |
getUserLabelsOrThrow(String key)
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
boolean |
hasGenerationSpec()
Content generation specification.
|
boolean |
hasGroundingSpec()
Grounding specification.
|
boolean |
hasSystemInstruction()
Content of the system instruction for the current API.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getLocation()
Required. Location resource.
Format: `projects/{project}/locations/{location}`.
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
com.google.protobuf.ByteString getLocationBytes()
Required. Location resource.
Format: `projects/{project}/locations/{location}`.
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
boolean hasSystemInstruction()
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;
GroundedGenerationContent getSystemInstruction()
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;
GroundedGenerationContentOrBuilder getSystemInstructionOrBuilder()
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;
List<GroundedGenerationContent> getContentsList()
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.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
GroundedGenerationContent getContents(int index)
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.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
int getContentsCount()
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.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
List<? extends GroundedGenerationContentOrBuilder> getContentsOrBuilderList()
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.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
GroundedGenerationContentOrBuilder getContentsOrBuilder(int index)
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.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
boolean hasGenerationSpec()
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
GenerateGroundedContentRequest.GenerationSpec getGenerationSpec()
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
GenerateGroundedContentRequest.GenerationSpecOrBuilder getGenerationSpecOrBuilder()
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
boolean hasGroundingSpec()
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
GenerateGroundedContentRequest.GroundingSpec getGroundingSpec()
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
GenerateGroundedContentRequest.GroundingSpecOrBuilder getGroundingSpecOrBuilder()
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
int getUserLabelsCount()
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 6;boolean containsUserLabels(String key)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 6;@Deprecated Map<String,String> getUserLabels()
getUserLabelsMap() instead.Map<String,String> getUserLabelsMap()
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 6;String getUserLabelsOrDefault(String key, String defaultValue)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 6;String getUserLabelsOrThrow(String key)
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 6;Copyright © 2025 Google LLC. All rights reserved.