Package com.google.cloud.aiplatform.v1
Class GroundingMetadata
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.GroundingMetadata
- All Implemented Interfaces:
GroundingMetadataOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class GroundingMetadata
extends com.google.protobuf.GeneratedMessage
implements GroundingMetadataOrBuilder
Metadata returned to client when grounding is enabled.Protobuf type
google.cloud.aiplatform.v1.GroundingMetadata- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetadata returned to client when grounding is enabled.static final classSource content flagging uri for a place or review.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GroundingMetadatastatic final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.getGroundingChunks(int index) List of supporting references retrieved from specified grounding source.intList of supporting references retrieved from specified grounding source.List of supporting references retrieved from specified grounding source.getGroundingChunksOrBuilder(int index) List of supporting references retrieved from specified grounding source.List<? extends GroundingChunkOrBuilder>List of supporting references retrieved from specified grounding source.getGroundingSupports(int index) Optional.intOptional.Optional.getGroundingSupportsOrBuilder(int index) Optional.List<? extends GroundingSupportOrBuilder>Optional.com.google.protobuf.Parser<GroundingMetadata>Optional.Optional.Optional.Optional.intgetSourceFlaggingUris(int index) List of source flagging uris.intList of source flagging uris.List of source flagging uris.getSourceFlaggingUrisOrBuilder(int index) List of source flagging uris.List<? extends GroundingMetadata.SourceFlaggingUriOrBuilder>List of source flagging uris.getWebSearchQueries(int index) Optional.com.google.protobuf.ByteStringgetWebSearchQueriesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.booleanOptional.inthashCode()booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic GroundingMetadata.Builderstatic GroundingMetadata.BuildernewBuilder(GroundingMetadata prototype) protected GroundingMetadata.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GroundingMetadataparseDelimitedFrom(InputStream input) static GroundingMetadataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GroundingMetadataparseFrom(byte[] data) static GroundingMetadataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GroundingMetadataparseFrom(com.google.protobuf.ByteString data) static GroundingMetadataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GroundingMetadataparseFrom(com.google.protobuf.CodedInputStream input) static GroundingMetadataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GroundingMetadataparseFrom(InputStream input) static GroundingMetadataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GroundingMetadataparseFrom(ByteBuffer data) static GroundingMetadataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GroundingMetadata>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
WEB_SEARCH_QUERIES_FIELD_NUMBER
public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER- See Also:
-
SEARCH_ENTRY_POINT_FIELD_NUMBER
public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER- See Also:
-
GROUNDING_CHUNKS_FIELD_NUMBER
public static final int GROUNDING_CHUNKS_FIELD_NUMBER- See Also:
-
GROUNDING_SUPPORTS_FIELD_NUMBER
public static final int GROUNDING_SUPPORTS_FIELD_NUMBER- See Also:
-
RETRIEVAL_METADATA_FIELD_NUMBER
public static final int RETRIEVAL_METADATA_FIELD_NUMBER- See Also:
-
GOOGLE_MAPS_WIDGET_CONTEXT_TOKEN_FIELD_NUMBER
public static final int GOOGLE_MAPS_WIDGET_CONTEXT_TOKEN_FIELD_NUMBER- See Also:
-
SOURCE_FLAGGING_URIS_FIELD_NUMBER
public static final int SOURCE_FLAGGING_URIS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getWebSearchQueriesList
public com.google.protobuf.ProtocolStringList getWebSearchQueriesList()Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWebSearchQueriesListin interfaceGroundingMetadataOrBuilder- Returns:
- A list containing the webSearchQueries.
-
getWebSearchQueriesCount
public int getWebSearchQueriesCount()Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWebSearchQueriesCountin interfaceGroundingMetadataOrBuilder- Returns:
- The count of webSearchQueries.
-
getWebSearchQueries
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWebSearchQueriesin interfaceGroundingMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The webSearchQueries at the given index.
-
getWebSearchQueriesBytes
public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWebSearchQueriesBytesin interfaceGroundingMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the webSearchQueries at the given index.
-
hasSearchEntryPoint
public boolean hasSearchEntryPoint()Optional. Google search entry for the following-up web searches.
optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSearchEntryPointin interfaceGroundingMetadataOrBuilder- Returns:
- Whether the searchEntryPoint field is set.
-
getSearchEntryPoint
Optional. Google search entry for the following-up web searches.
optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSearchEntryPointin interfaceGroundingMetadataOrBuilder- Returns:
- The searchEntryPoint.
-
getSearchEntryPointOrBuilder
Optional. Google search entry for the following-up web searches.
optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSearchEntryPointOrBuilderin interfaceGroundingMetadataOrBuilder
-
getGroundingChunksList
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;- Specified by:
getGroundingChunksListin interfaceGroundingMetadataOrBuilder
-
getGroundingChunksOrBuilderList
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;- Specified by:
getGroundingChunksOrBuilderListin interfaceGroundingMetadataOrBuilder
-
getGroundingChunksCount
public int getGroundingChunksCount()List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;- Specified by:
getGroundingChunksCountin interfaceGroundingMetadataOrBuilder
-
getGroundingChunks
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;- Specified by:
getGroundingChunksin interfaceGroundingMetadataOrBuilder
-
getGroundingChunksOrBuilder
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;- Specified by:
getGroundingChunksOrBuilderin interfaceGroundingMetadataOrBuilder
-
getGroundingSupportsList
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingSupportsListin interfaceGroundingMetadataOrBuilder
-
getGroundingSupportsOrBuilderList
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingSupportsOrBuilderListin interfaceGroundingMetadataOrBuilder
-
getGroundingSupportsCount
public int getGroundingSupportsCount()Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingSupportsCountin interfaceGroundingMetadataOrBuilder
-
getGroundingSupports
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingSupportsin interfaceGroundingMetadataOrBuilder
-
getGroundingSupportsOrBuilder
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingSupportsOrBuilderin interfaceGroundingMetadataOrBuilder
-
hasRetrievalMetadata
public boolean hasRetrievalMetadata()Optional. Output only. Retrieval metadata.
optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRetrievalMetadatain interfaceGroundingMetadataOrBuilder- Returns:
- Whether the retrievalMetadata field is set.
-
getRetrievalMetadata
Optional. Output only. Retrieval metadata.
optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRetrievalMetadatain interfaceGroundingMetadataOrBuilder- Returns:
- The retrievalMetadata.
-
getRetrievalMetadataOrBuilder
Optional. Output only. Retrieval metadata.
optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRetrievalMetadataOrBuilderin interfaceGroundingMetadataOrBuilder
-
hasGoogleMapsWidgetContextToken
public boolean hasGoogleMapsWidgetContextToken()Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding.
optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasGoogleMapsWidgetContextTokenin interfaceGroundingMetadataOrBuilder- Returns:
- Whether the googleMapsWidgetContextToken field is set.
-
getGoogleMapsWidgetContextToken
Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding.
optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGoogleMapsWidgetContextTokenin interfaceGroundingMetadataOrBuilder- Returns:
- The googleMapsWidgetContextToken.
-
getGoogleMapsWidgetContextTokenBytes
public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes()Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding.
optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getGoogleMapsWidgetContextTokenBytesin interfaceGroundingMetadataOrBuilder- Returns:
- The bytes for googleMapsWidgetContextToken.
-
getSourceFlaggingUrisList
List of source flagging uris. This is currently populated only for Google Maps grounding.
repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;- Specified by:
getSourceFlaggingUrisListin interfaceGroundingMetadataOrBuilder
-
getSourceFlaggingUrisOrBuilderList
public List<? extends GroundingMetadata.SourceFlaggingUriOrBuilder> getSourceFlaggingUrisOrBuilderList()List of source flagging uris. This is currently populated only for Google Maps grounding.
repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;- Specified by:
getSourceFlaggingUrisOrBuilderListin interfaceGroundingMetadataOrBuilder
-
getSourceFlaggingUrisCount
public int getSourceFlaggingUrisCount()List of source flagging uris. This is currently populated only for Google Maps grounding.
repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;- Specified by:
getSourceFlaggingUrisCountin interfaceGroundingMetadataOrBuilder
-
getSourceFlaggingUris
List of source flagging uris. This is currently populated only for Google Maps grounding.
repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;- Specified by:
getSourceFlaggingUrisin interfaceGroundingMetadataOrBuilder
-
getSourceFlaggingUrisOrBuilder
List of source flagging uris. This is currently populated only for Google Maps grounding.
repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;- Specified by:
getSourceFlaggingUrisOrBuilderin interfaceGroundingMetadataOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GroundingMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GroundingMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GroundingMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GroundingMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GroundingMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GroundingMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GroundingMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GroundingMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GroundingMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GroundingMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GroundingMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-