@Generated public final class FactChunk extends com.google.protobuf.GeneratedMessage implements FactChunkOrBuilder
Fact Chunk.Protobuf type
google.cloud.discoveryengine.v1.FactChunk| Modifier and Type | Class and Description |
|---|---|
static class |
FactChunk.Builder
Fact Chunk.
|
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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_TEXT_FIELD_NUMBER |
static int |
DOMAIN_FIELD_NUMBER |
static int |
INDEX_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
static int |
SOURCE_METADATA_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSourceMetadata(String key)
More fine-grained information for the source reference.
|
boolean |
equals(Object obj) |
String |
getChunkText()
Text content of the fact chunk.
|
com.google.protobuf.ByteString |
getChunkTextBytes()
Text content of the fact chunk.
|
static FactChunk |
getDefaultInstance() |
FactChunk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDomain()
The domain of the source.
|
com.google.protobuf.ByteString |
getDomainBytes()
The domain of the source.
|
int |
getIndex()
The index of this chunk.
|
com.google.protobuf.Parser<FactChunk> |
getParserForType() |
int |
getSerializedSize() |
String |
getSource()
Source from which this fact chunk was retrieved.
|
com.google.protobuf.ByteString |
getSourceBytes()
Source from which this fact chunk was retrieved.
|
Map<String,String> |
getSourceMetadata()
Deprecated.
|
int |
getSourceMetadataCount()
More fine-grained information for the source reference.
|
Map<String,String> |
getSourceMetadataMap()
More fine-grained information for the source reference.
|
String |
getSourceMetadataOrDefault(String key,
String defaultValue)
More fine-grained information for the source reference.
|
String |
getSourceMetadataOrThrow(String key)
More fine-grained information for the source reference.
|
String |
getTitle()
The title of the source.
|
com.google.protobuf.ByteString |
getTitleBytes()
The title of the source.
|
String |
getUri()
The URI of the source.
|
com.google.protobuf.ByteString |
getUriBytes()
The URI of the source.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static FactChunk.Builder |
newBuilder() |
static FactChunk.Builder |
newBuilder(FactChunk prototype) |
FactChunk.Builder |
newBuilderForType() |
protected FactChunk.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static FactChunk |
parseDelimitedFrom(InputStream input) |
static FactChunk |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(byte[] data) |
static FactChunk |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(ByteBuffer data) |
static FactChunk |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(com.google.protobuf.ByteString data) |
static FactChunk |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FactChunk |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FactChunk |
parseFrom(InputStream input) |
static FactChunk |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FactChunk> |
parser() |
FactChunk.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CHUNK_TEXT_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int INDEX_FIELD_NUMBER
public static final int SOURCE_METADATA_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic String getChunkText()
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;getChunkText in interface FactChunkOrBuilderpublic com.google.protobuf.ByteString getChunkTextBytes()
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;getChunkTextBytes in interface FactChunkOrBuilderpublic String getSource()
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
string source = 2;getSource in interface FactChunkOrBuilderpublic com.google.protobuf.ByteString getSourceBytes()
Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
string source = 2;getSourceBytes in interface FactChunkOrBuilderpublic int getIndex()
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;getIndex in interface FactChunkOrBuilderpublic int getSourceMetadataCount()
FactChunkOrBuilderMore fine-grained information for the source reference.
map<string, string> source_metadata = 3;getSourceMetadataCount in interface FactChunkOrBuilderpublic boolean containsSourceMetadata(String key)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;containsSourceMetadata in interface FactChunkOrBuilder@Deprecated public Map<String,String> getSourceMetadata()
getSourceMetadataMap() instead.getSourceMetadata in interface FactChunkOrBuilderpublic Map<String,String> getSourceMetadataMap()
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;getSourceMetadataMap in interface FactChunkOrBuilderpublic String getSourceMetadataOrDefault(String key, String defaultValue)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;getSourceMetadataOrDefault in interface FactChunkOrBuilderpublic String getSourceMetadataOrThrow(String key)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;getSourceMetadataOrThrow in interface FactChunkOrBuilderpublic String getUri()
The URI of the source.
string uri = 5;getUri in interface FactChunkOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
The URI of the source.
string uri = 5;getUriBytes in interface FactChunkOrBuilderpublic String getTitle()
The title of the source.
string title = 6;getTitle in interface FactChunkOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
The title of the source.
string title = 6;getTitleBytes in interface FactChunkOrBuilderpublic String getDomain()
The domain of the source.
string domain = 7;getDomain in interface FactChunkOrBuilderpublic com.google.protobuf.ByteString getDomainBytes()
The domain of the source.
string domain = 7;getDomainBytes in interface FactChunkOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static FactChunk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FactChunk parseFrom(InputStream input) throws IOException
IOExceptionpublic static FactChunk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FactChunk parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FactChunk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FactChunk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FactChunk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FactChunk.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FactChunk.Builder newBuilder()
public static FactChunk.Builder newBuilder(FactChunk prototype)
public FactChunk.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FactChunk.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static FactChunk getDefaultInstance()
public static com.google.protobuf.Parser<FactChunk> parser()
public com.google.protobuf.Parser<FactChunk> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic FactChunk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.