public final class GroundingMetadata extends GeneratedMessage implements GroundingMetadataOrBuilder
Grounding metadata contains sources, citations, and search entry points used
to ground a generated answer or suggestion.
Protobuf type google.cloud.dialogflow.v2.GroundingMetadata
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int GROUNDING_CHUNKS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int GROUNDING_SUPPORTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SEARCH_ENTRY_POINT_FIELD_NUMBER
public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static GroundingMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static GroundingMetadata.Builder newBuilder()
public static GroundingMetadata.Builder newBuilder(GroundingMetadata prototype)
public static GroundingMetadata parseDelimitedFrom(InputStream input)
public static GroundingMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GroundingMetadata parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static GroundingMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GroundingMetadata parseFrom(ByteString data)
public static GroundingMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GroundingMetadata parseFrom(CodedInputStream input)
public static GroundingMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GroundingMetadata parseFrom(InputStream input)
public static GroundingMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GroundingMetadata parseFrom(ByteBuffer data)
public static GroundingMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<GroundingMetadata> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public GroundingMetadata getDefaultInstanceForType()
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
|
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 |
|
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];
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
|
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> |
|
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
|
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 |
|
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];
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
|
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> |
|
public Parser<GroundingMetadata> getParserForType()
Overrides
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];
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];
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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 |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The webSearchQueries at the given 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 |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the webSearchQueries at the given index.
|
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.
|
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];
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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public GroundingMetadata.Builder newBuilderForType()
protected GroundingMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public GroundingMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides