public static final class GroundingChunk.Builder extends GeneratedMessage.Builder<GroundingChunk.Builder> implements GroundingChunkOrBuilderA piece of evidence that supports a claim made by the model.
This is used to show a citation for a claim made by the model. It contains a reference to the source of the information.
Protobuf type google.cloud.dialogflow.v2.GroundingChunk
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GroundingChunk.BuilderImplements
GroundingChunkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GroundingChunk build()| Returns | |
|---|---|
| Type | Description |
GroundingChunk |
|
buildPartial()
public GroundingChunk buildPartial()| Returns | |
|---|---|
| Type | Description |
GroundingChunk |
|
clear()
public GroundingChunk.Builder clear()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
clearChunkType()
public GroundingChunk.Builder clearChunkType()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
clearRetrievedContext()
public GroundingChunk.Builder clearRetrievedContext()Optional. A grounding chunk from a data source retrieved by a data store tool.
.google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext retrieved_context = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
clearWeb()
public GroundingChunk.Builder clearWeb() Optional. A grounding chunk from a web page, typically from web
search. See the Web message for details.
.google.cloud.dialogflow.v2.GroundingChunk.Web web = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
getChunkTypeCase()
public GroundingChunk.ChunkTypeCase getChunkTypeCase()| Returns | |
|---|---|
| Type | Description |
GroundingChunk.ChunkTypeCase |
|
getDefaultInstanceForType()
public GroundingChunk getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GroundingChunk |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getRetrievedContext()
public GroundingChunk.RetrievedContext getRetrievedContext()Optional. A grounding chunk from a data source retrieved by a data store tool.
.google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext retrieved_context = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext |
The retrievedContext. |
getRetrievedContextBuilder()
public GroundingChunk.RetrievedContext.Builder getRetrievedContextBuilder()Optional. A grounding chunk from a data source retrieved by a data store tool.
.google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext retrieved_context = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContext.Builder |
|
getRetrievedContextOrBuilder()
public GroundingChunk.RetrievedContextOrBuilder getRetrievedContextOrBuilder()Optional. A grounding chunk from a data source retrieved by a data store tool.
.google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext retrieved_context = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.RetrievedContextOrBuilder |
|
getWeb()
public GroundingChunk.Web getWeb() Optional. A grounding chunk from a web page, typically from web
search. See the Web message for details.
.google.cloud.dialogflow.v2.GroundingChunk.Web web = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Web |
The web. |
getWebBuilder()
public GroundingChunk.Web.Builder getWebBuilder() Optional. A grounding chunk from a web page, typically from web
search. See the Web message for details.
.google.cloud.dialogflow.v2.GroundingChunk.Web web = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Web.Builder |
|
getWebOrBuilder()
public GroundingChunk.WebOrBuilder getWebOrBuilder() Optional. A grounding chunk from a web page, typically from web
search. See the Web message for details.
.google.cloud.dialogflow.v2.GroundingChunk.Web web = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.WebOrBuilder |
|
hasRetrievedContext()
public boolean hasRetrievedContext()Optional. A grounding chunk from a data source retrieved by a data store tool.
.google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext retrieved_context = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the retrievedContext field is set. |
hasWeb()
public boolean hasWeb() Optional. A grounding chunk from a web page, typically from web
search. See the Web message for details.
.google.cloud.dialogflow.v2.GroundingChunk.Web web = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the web field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GroundingChunk other)
public GroundingChunk.Builder mergeFrom(GroundingChunk other)| Parameter | |
|---|---|
| Name | Description |
other |
GroundingChunk |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GroundingChunk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GroundingChunk.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
mergeRetrievedContext(GroundingChunk.RetrievedContext value)
public GroundingChunk.Builder mergeRetrievedContext(GroundingChunk.RetrievedContext value)Optional. A grounding chunk from a data source retrieved by a data store tool.
.google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext retrieved_context = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GroundingChunk.RetrievedContext |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
mergeWeb(GroundingChunk.Web value)
public GroundingChunk.Builder mergeWeb(GroundingChunk.Web value) Optional. A grounding chunk from a web page, typically from web
search. See the Web message for details.
.google.cloud.dialogflow.v2.GroundingChunk.Web web = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GroundingChunk.Web |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
setRetrievedContext(GroundingChunk.RetrievedContext value)
public GroundingChunk.Builder setRetrievedContext(GroundingChunk.RetrievedContext value)Optional. A grounding chunk from a data source retrieved by a data store tool.
.google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext retrieved_context = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GroundingChunk.RetrievedContext |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
setRetrievedContext(GroundingChunk.RetrievedContext.Builder builderForValue)
public GroundingChunk.Builder setRetrievedContext(GroundingChunk.RetrievedContext.Builder builderForValue)Optional. A grounding chunk from a data source retrieved by a data store tool.
.google.cloud.dialogflow.v2.GroundingChunk.RetrievedContext retrieved_context = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GroundingChunk.RetrievedContext.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
setWeb(GroundingChunk.Web value)
public GroundingChunk.Builder setWeb(GroundingChunk.Web value) Optional. A grounding chunk from a web page, typically from web
search. See the Web message for details.
.google.cloud.dialogflow.v2.GroundingChunk.Web web = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GroundingChunk.Web |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|
setWeb(GroundingChunk.Web.Builder builderForValue)
public GroundingChunk.Builder setWeb(GroundingChunk.Web.Builder builderForValue) Optional. A grounding chunk from a web page, typically from web
search. See the Web message for details.
.google.cloud.dialogflow.v2.GroundingChunk.Web web = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GroundingChunk.Web.Builder |
| Returns | |
|---|---|
| Type | Description |
GroundingChunk.Builder |
|