public static final class GroundingFact.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder> implements GroundingFactOrBuilder
Grounding Fact.Protobuf type
google.cloud.discoveryengine.v1beta.GroundingFact| Modifier and Type | Method and Description |
|---|---|
GroundingFact.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GroundingFact |
build() |
GroundingFact |
buildPartial() |
GroundingFact.Builder |
clear() |
GroundingFact.Builder |
clearAttributes() |
GroundingFact.Builder |
clearFactText()
Text content of the fact.
|
GroundingFact.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GroundingFact.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GroundingFact.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
GroundingFact.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GroundingFact.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GroundingFact.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>public GroundingFact.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>public GroundingFact.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>public GroundingFact.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>public GroundingFact.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>public GroundingFact.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>public 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.GeneratedMessageV3.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;public final GroundingFact.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>public final GroundingFact.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundingFact.Builder>Copyright © 2025 Google LLC. All rights reserved.