public static final class GroundingFact.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroundingFact.Builder> implements GroundingFactOrBuilder
Grounding Fact.Protobuf type
google.cloud.discoveryengine.v1.GroundingFact| Modifier and Type | Method and Description |
|---|---|
GroundingFact |
build() |
GroundingFact |
buildPartial() |
GroundingFact.Builder |
clear() |
GroundingFact.Builder |
clearAttributes() |
GroundingFact.Builder |
clearFactText()
Text content of the fact.
|
boolean |
containsAttributes(String key)
Attributes associated with the fact.
|
Map<String,String> |
getAttributes()
Deprecated.
|
int |
getAttributesCount()
Attributes associated with the fact.
|
Map<String,String> |
getAttributesMap()
Attributes associated with the fact.
|
String |
getAttributesOrDefault(String key,
String defaultValue)
Attributes associated with the fact.
|
String |
getAttributesOrThrow(String key)
Attributes associated with the fact.
|
GroundingFact |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFactText()
Text content of the fact.
|
com.google.protobuf.ByteString |
getFactTextBytes()
Text content of the fact.
|
Map<String,String> |
getMutableAttributes()
Deprecated.
|
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() |
GroundingFact.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GroundingFact.Builder |
mergeFrom(GroundingFact other) |
GroundingFact.Builder |
mergeFrom(com.google.protobuf.Message other) |
GroundingFact.Builder |
putAllAttributes(Map<String,String> values)
Attributes associated with the fact.
|
GroundingFact.Builder |
putAttributes(String key,
String value)
Attributes associated with the fact.
|
GroundingFact.Builder |
removeAttributes(String key)
Attributes associated with the fact.
|
GroundingFact.Builder |
setFactText(String value)
Text content of the fact.
|
GroundingFact.Builder |
setFactTextBytes(com.google.protobuf.ByteString value)
Text content of the fact.
|
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<GroundingFact.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GroundingFact.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GroundingFact.Builder>public GroundingFact.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<GroundingFact.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<GroundingFact.Builder>public GroundingFact getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GroundingFact build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GroundingFact buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GroundingFact.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundingFact.Builder>public GroundingFact.Builder mergeFrom(GroundingFact other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<GroundingFact.Builder>public GroundingFact.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<GroundingFact.Builder>IOExceptionpublic String getFactText()
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;getFactText in interface GroundingFactOrBuilderpublic com.google.protobuf.ByteString getFactTextBytes()
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;getFactTextBytes in interface GroundingFactOrBuilderpublic GroundingFact.Builder setFactText(String value)
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;value - The factText to set.public GroundingFact.Builder clearFactText()
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;public GroundingFact.Builder setFactTextBytes(com.google.protobuf.ByteString value)
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;value - The bytes for factText to set.public int getAttributesCount()
GroundingFactOrBuilderAttributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on.
map<string, string> attributes = 2;getAttributesCount in interface GroundingFactOrBuilderpublic boolean containsAttributes(String key)
Attributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on.
map<string, string> attributes = 2;containsAttributes in interface GroundingFactOrBuilder@Deprecated public Map<String,String> getAttributes()
getAttributesMap() instead.getAttributes in interface GroundingFactOrBuilderpublic Map<String,String> getAttributesMap()
Attributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on.
map<string, string> attributes = 2;getAttributesMap in interface GroundingFactOrBuilderpublic String getAttributesOrDefault(String key, String defaultValue)
Attributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on.
map<string, string> attributes = 2;getAttributesOrDefault in interface GroundingFactOrBuilderpublic String getAttributesOrThrow(String key)
Attributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on.
map<string, string> attributes = 2;getAttributesOrThrow in interface GroundingFactOrBuilderpublic GroundingFact.Builder clearAttributes()
public GroundingFact.Builder removeAttributes(String key)
Attributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on.
map<string, string> attributes = 2;@Deprecated public Map<String,String> getMutableAttributes()
public GroundingFact.Builder putAttributes(String key, String value)
Attributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on.
map<string, string> attributes = 2;public GroundingFact.Builder putAllAttributes(Map<String,String> values)
Attributes associated with the fact. Common attributes include `source` (indicating where the fact was sourced from), `author` (indicating the author of the fact), and so on.
map<string, string> attributes = 2;Copyright © 2026 Google LLC. All rights reserved.