public static final class GroundingMetadata.Builder extends GeneratedMessage.Builder<GroundingMetadata.Builder> implements GroundingMetadataOrBuilderGrounding metadata contains sources, citations, and search entry points used to ground a generated answer or suggestion.
Protobuf type google.cloud.dialogflow.v2.GroundingMetadata
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GroundingMetadata.BuilderImplements
GroundingMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGroundingChunks(Iterable<? extends GroundingChunk> values)
public GroundingMetadata.Builder addAllGroundingChunks(Iterable<? extends GroundingChunk> values)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.GroundingChunk> |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addAllGroundingSupports(Iterable<? extends GroundingSupport> values)
public GroundingMetadata.Builder addAllGroundingSupports(Iterable<? extends GroundingSupport> values)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.GroundingSupport> |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addAllWebSearchQueries(Iterable<String> values)
public GroundingMetadata.Builder addAllWebSearchQueries(Iterable<String> values)Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The webSearchQueries to add. |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
This builder for chaining. |
addGroundingChunks(GroundingChunk value)
public GroundingMetadata.Builder addGroundingChunks(GroundingChunk value)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GroundingChunk |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addGroundingChunks(GroundingChunk.Builder builderForValue)
public GroundingMetadata.Builder addGroundingChunks(GroundingChunk.Builder builderForValue)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GroundingChunk.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addGroundingChunks(int index, GroundingChunk value)
public GroundingMetadata.Builder addGroundingChunks(int index, GroundingChunk value)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GroundingChunk |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addGroundingChunks(int index, GroundingChunk.Builder builderForValue)
public GroundingMetadata.Builder addGroundingChunks(int index, GroundingChunk.Builder builderForValue)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GroundingChunk.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addGroundingChunksBuilder()
public GroundingChunk.Builder addGroundingChunksBuilder()Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
addGroundingChunksBuilder(int index)
public GroundingChunk.Builder addGroundingChunksBuilder(int index)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
addGroundingSupports(GroundingSupport value)
public GroundingMetadata.Builder addGroundingSupports(GroundingSupport value)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GroundingSupport |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addGroundingSupports(GroundingSupport.Builder builderForValue)
public GroundingMetadata.Builder addGroundingSupports(GroundingSupport.Builder builderForValue)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GroundingSupport.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addGroundingSupports(int index, GroundingSupport value)
public GroundingMetadata.Builder addGroundingSupports(int index, GroundingSupport value)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GroundingSupport |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addGroundingSupports(int index, GroundingSupport.Builder builderForValue)
public GroundingMetadata.Builder addGroundingSupports(int index, GroundingSupport.Builder builderForValue)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GroundingSupport.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
addGroundingSupportsBuilder()
public GroundingSupport.Builder addGroundingSupportsBuilder()Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
addGroundingSupportsBuilder(int index)
public GroundingSupport.Builder addGroundingSupportsBuilder(int index)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
addWebSearchQueries(String value)
public GroundingMetadata.Builder addWebSearchQueries(String value)Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe webSearchQueries to add. |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
This builder for chaining. |
addWebSearchQueriesBytes(ByteString value)
public GroundingMetadata.Builder addWebSearchQueriesBytes(ByteString value)Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the webSearchQueries to add. |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
This builder for chaining. |
build()
public GroundingMetadata build()| Returns | |
|---|---|
| Type | Description |
GroundingMetadata |
|
buildPartial()
public GroundingMetadata buildPartial()| Returns | |
|---|---|
| Type | Description |
GroundingMetadata |
|
clear()
public GroundingMetadata.Builder clear()| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
clearGroundingChunks()
public GroundingMetadata.Builder clearGroundingChunks()Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
clearGroundingSupports()
public GroundingMetadata.Builder clearGroundingSupports()Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
clearSearchEntryPoint()
public GroundingMetadata.Builder clearSearchEntryPoint()Optional. A web search entry point that can be used to display search results.
.google.cloud.dialogflow.v2.SearchEntryPoint search_entry_point = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
clearWebSearchQueries()
public GroundingMetadata.Builder clearWebSearchQueries()Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GroundingMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GroundingMetadata |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGroundingChunks(int index)
public GroundingChunk getGroundingChunks(int index)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk |
|
getGroundingChunksBuilder(int index)
public GroundingChunk.Builder getGroundingChunksBuilder(int index)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
getGroundingChunksBuilderList()
public List<GroundingChunk.Builder> getGroundingChunksBuilderList()Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getGroundingChunksCount()
public int getGroundingChunksCount()Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getGroundingChunksList()
public List<GroundingChunk> getGroundingChunksList()Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<GroundingChunk> |
|
getGroundingChunksOrBuilder(int index)
public GroundingChunkOrBuilder getGroundingChunksOrBuilder(int index)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingChunkOrBuilder |
|
getGroundingChunksOrBuilderList()
public List<? extends GroundingChunkOrBuilder> getGroundingChunksOrBuilderList()Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.dialogflow.v2.GroundingChunkOrBuilder> |
|
getGroundingSupports(int index)
public GroundingSupport getGroundingSupports(int index)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport |
|
getGroundingSupportsBuilder(int index)
public GroundingSupport.Builder getGroundingSupportsBuilder(int index)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingSupport.Builder |
|
getGroundingSupportsBuilderList()
public List<GroundingSupport.Builder> getGroundingSupportsBuilderList()Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getGroundingSupportsCount()
public int getGroundingSupportsCount()Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getGroundingSupportsList()
public List<GroundingSupport> getGroundingSupportsList()Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<GroundingSupport> |
|
getGroundingSupportsOrBuilder(int index)
public GroundingSupportOrBuilder getGroundingSupportsOrBuilder(int index)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingSupportOrBuilder |
|
getGroundingSupportsOrBuilderList()
public List<? extends GroundingSupportOrBuilder> getGroundingSupportsOrBuilderList()Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.dialogflow.v2.GroundingSupportOrBuilder> |
|
getSearchEntryPoint()
public SearchEntryPoint getSearchEntryPoint()Optional. A web search entry point that can be used to display search results.
.google.cloud.dialogflow.v2.SearchEntryPoint search_entry_point = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchEntryPoint |
The searchEntryPoint. |
getSearchEntryPointBuilder()
public SearchEntryPoint.Builder getSearchEntryPointBuilder()Optional. A web search entry point that can be used to display search results.
.google.cloud.dialogflow.v2.SearchEntryPoint search_entry_point = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchEntryPoint.Builder |
|
getSearchEntryPointOrBuilder()
public SearchEntryPointOrBuilder getSearchEntryPointOrBuilder()Optional. A web search entry point that can be used to display search results.
.google.cloud.dialogflow.v2.SearchEntryPoint search_entry_point = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
SearchEntryPointOrBuilder |
|
getWebSearchQueries(int index)
public String getWebSearchQueries(int index)Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The webSearchQueries at the given index. |
getWebSearchQueriesBytes(int index)
public ByteString getWebSearchQueriesBytes(int index)Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the webSearchQueries at the given index. |
getWebSearchQueriesCount()
public int getWebSearchQueriesCount()Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of webSearchQueries. |
getWebSearchQueriesList()
public ProtocolStringList getWebSearchQueriesList()Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the webSearchQueries. |
hasSearchEntryPoint()
public boolean hasSearchEntryPoint()Optional. A web search entry point that can be used to display search results.
.google.cloud.dialogflow.v2.SearchEntryPoint search_entry_point = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the searchEntryPoint field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GroundingMetadata other)
public GroundingMetadata.Builder mergeFrom(GroundingMetadata other)| Parameter | |
|---|---|
| Name | Description |
other |
GroundingMetadata |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GroundingMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GroundingMetadata.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
mergeSearchEntryPoint(SearchEntryPoint value)
public GroundingMetadata.Builder mergeSearchEntryPoint(SearchEntryPoint value)Optional. A web search entry point that can be used to display search results.
.google.cloud.dialogflow.v2.SearchEntryPoint search_entry_point = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SearchEntryPoint |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
removeGroundingChunks(int index)
public GroundingMetadata.Builder removeGroundingChunks(int index)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
removeGroundingSupports(int index)
public GroundingMetadata.Builder removeGroundingSupports(int index)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
setGroundingChunks(int index, GroundingChunk value)
public GroundingMetadata.Builder setGroundingChunks(int index, GroundingChunk value)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GroundingChunk |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
setGroundingChunks(int index, GroundingChunk.Builder builderForValue)
public GroundingMetadata.Builder setGroundingChunks(int index, GroundingChunk.Builder builderForValue)Optional. A list of supporting references retrieved from the grounding source.
repeated .google.cloud.dialogflow.v2.GroundingChunk grounding_chunks = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GroundingChunk.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
setGroundingSupports(int index, GroundingSupport value)
public GroundingMetadata.Builder setGroundingSupports(int index, GroundingSupport value)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GroundingSupport |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
setGroundingSupports(int index, GroundingSupport.Builder builderForValue)
public GroundingMetadata.Builder setGroundingSupports(int index, GroundingSupport.Builder builderForValue)Optional. A list of grounding supports that connect the generated content to the grounding chunks.
repeated .google.cloud.dialogflow.v2.GroundingSupport grounding_supports = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GroundingSupport.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
setSearchEntryPoint(SearchEntryPoint value)
public GroundingMetadata.Builder setSearchEntryPoint(SearchEntryPoint value)Optional. A web search entry point that can be used to display search results.
.google.cloud.dialogflow.v2.SearchEntryPoint search_entry_point = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
SearchEntryPoint |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
setSearchEntryPoint(SearchEntryPoint.Builder builderForValue)
public GroundingMetadata.Builder setSearchEntryPoint(SearchEntryPoint.Builder builderForValue)Optional. A web search entry point that can be used to display search results.
.google.cloud.dialogflow.v2.SearchEntryPoint search_entry_point = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SearchEntryPoint.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
|
setWebSearchQueries(int index, String value)
public GroundingMetadata.Builder setWebSearchQueries(int index, String value)Optional. The web search queries that were used to generate the content.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe webSearchQueries to set. |
| Returns | |
|---|---|
| Type | Description |
GroundingMetadata.Builder |
This builder for chaining. |