public static final class FactChunk.Builder extends com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder> implements FactChunkOrBuilder
Fact Chunk.Protobuf type
google.cloud.discoveryengine.v1.FactChunk| Modifier and Type | Method and Description |
|---|---|
FactChunk |
build() |
FactChunk |
buildPartial() |
FactChunk.Builder |
clear() |
FactChunk.Builder |
clearChunkText()
Text content of the fact chunk.
|
FactChunk.Builder |
clearDomain()
The domain of the source.
|
FactChunk.Builder |
clearIndex()
The index of this chunk.
|
FactChunk.Builder |
clearSource()
Source from which this fact chunk was retrieved.
|
FactChunk.Builder |
clearSourceMetadata() |
FactChunk.Builder |
clearTitle()
The title of the source.
|
FactChunk.Builder |
clearUri()
The URI of the source.
|
boolean |
containsSourceMetadata(String key)
More fine-grained information for the source reference.
|
String |
getChunkText()
Text content of the fact chunk.
|
com.google.protobuf.ByteString |
getChunkTextBytes()
Text content of the fact chunk.
|
FactChunk |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDomain()
The domain of the source.
|
com.google.protobuf.ByteString |
getDomainBytes()
The domain of the source.
|
int |
getIndex()
The index of this chunk.
|
Map<String,String> |
getMutableSourceMetadata()
Deprecated.
|
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.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
FactChunk.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FactChunk.Builder |
mergeFrom(FactChunk other) |
FactChunk.Builder |
mergeFrom(com.google.protobuf.Message other) |
FactChunk.Builder |
putAllSourceMetadata(Map<String,String> values)
More fine-grained information for the source reference.
|
FactChunk.Builder |
putSourceMetadata(String key,
String value)
More fine-grained information for the source reference.
|
FactChunk.Builder |
removeSourceMetadata(String key)
More fine-grained information for the source reference.
|
FactChunk.Builder |
setChunkText(String value)
Text content of the fact chunk.
|
FactChunk.Builder |
setChunkTextBytes(com.google.protobuf.ByteString value)
Text content of the fact chunk.
|
FactChunk.Builder |
setDomain(String value)
The domain of the source.
|
FactChunk.Builder |
setDomainBytes(com.google.protobuf.ByteString value)
The domain of the source.
|
FactChunk.Builder |
setIndex(int value)
The index of this chunk.
|
FactChunk.Builder |
setSource(String value)
Source from which this fact chunk was retrieved.
|
FactChunk.Builder |
setSourceBytes(com.google.protobuf.ByteString value)
Source from which this fact chunk was retrieved.
|
FactChunk.Builder |
setTitle(String value)
The title of the source.
|
FactChunk.Builder |
setTitleBytes(com.google.protobuf.ByteString value)
The title of the source.
|
FactChunk.Builder |
setUri(String value)
The URI of the source.
|
FactChunk.Builder |
setUriBytes(com.google.protobuf.ByteString value)
The URI of the source.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>public FactChunk.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>public FactChunk getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FactChunk build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FactChunk buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FactChunk.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FactChunk.Builder>public FactChunk.Builder mergeFrom(FactChunk other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<FactChunk.Builder>public FactChunk.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FactChunk.Builder>IOExceptionpublic 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 FactChunk.Builder setChunkText(String value)
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;value - The chunkText to set.public FactChunk.Builder clearChunkText()
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;public FactChunk.Builder setChunkTextBytes(com.google.protobuf.ByteString value)
Text content of the fact chunk. Can be at most 10K characters long.
string chunk_text = 1;value - The bytes for chunkText to set.public 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 FactChunk.Builder setSource(String value)
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;value - The source to set.public FactChunk.Builder clearSource()
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;public FactChunk.Builder setSourceBytes(com.google.protobuf.ByteString value)
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;value - The bytes for source to set.public int getIndex()
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;getIndex in interface FactChunkOrBuilderpublic FactChunk.Builder setIndex(int value)
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;value - The index to set.public FactChunk.Builder clearIndex()
The index of this chunk. Currently, only used for the streaming mode.
int32 index = 4;public 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 FactChunk.Builder clearSourceMetadata()
public FactChunk.Builder removeSourceMetadata(String key)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;@Deprecated public Map<String,String> getMutableSourceMetadata()
public FactChunk.Builder putSourceMetadata(String key, String value)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;public FactChunk.Builder putAllSourceMetadata(Map<String,String> values)
More fine-grained information for the source reference.
map<string, string> source_metadata = 3;public 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 FactChunk.Builder setUri(String value)
The URI of the source.
string uri = 5;value - The uri to set.public FactChunk.Builder clearUri()
The URI of the source.
string uri = 5;public FactChunk.Builder setUriBytes(com.google.protobuf.ByteString value)
The URI of the source.
string uri = 5;value - The bytes for uri to set.public 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 FactChunk.Builder setTitle(String value)
The title of the source.
string title = 6;value - The title to set.public FactChunk.Builder clearTitle()
The title of the source.
string title = 6;public FactChunk.Builder setTitleBytes(com.google.protobuf.ByteString value)
The title of the source.
string title = 6;value - The bytes for title to set.public 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 FactChunk.Builder setDomain(String value)
The domain of the source.
string domain = 7;value - The domain to set.public FactChunk.Builder clearDomain()
The domain of the source.
string domain = 7;public FactChunk.Builder setDomainBytes(com.google.protobuf.ByteString value)
The domain of the source.
string domain = 7;value - The bytes for domain to set.Copyright © 2026 Google LLC. All rights reserved.