public static final class GroundingFact.Builder extends GeneratedMessageV3.Builder<GroundingFact.Builder> implements GroundingFactOrBuilder
Grounding Fact.
Protobuf type google.cloud.discoveryengine.v1beta.GroundingFact
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GroundingFact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GroundingFact build()
buildPartial()
public GroundingFact buildPartial()
clear()
public GroundingFact.Builder clear()
Overrides
clearAttributes()
public GroundingFact.Builder clearAttributes()
clearFactText()
public GroundingFact.Builder clearFactText()
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;
clearField(Descriptors.FieldDescriptor field)
public GroundingFact.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GroundingFact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public GroundingFact.Builder clone()
Overrides
containsAttributes(String key)
public 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;
Parameter |
Name |
Description |
key |
String
|
getAttributes() (deprecated)
public Map<String,String> getAttributes()
getAttributesCount()
public int getAttributesCount()
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;
Returns |
Type |
Description |
int |
|
getAttributesMap()
public 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;
getAttributesOrDefault(String key, String defaultValue)
public 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;
Returns |
Type |
Description |
String |
|
getAttributesOrThrow(String key)
public 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;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getDefaultInstanceForType()
public GroundingFact getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFactText()
public String getFactText()
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;
Returns |
Type |
Description |
String |
The factText.
|
getFactTextBytes()
public ByteString getFactTextBytes()
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;
Returns |
Type |
Description |
ByteString |
The bytes for factText.
|
getMutableAttributes() (deprecated)
public Map<String,String> getMutableAttributes()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GroundingFact other)
public GroundingFact.Builder mergeFrom(GroundingFact other)
public GroundingFact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GroundingFact.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GroundingFact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllAttributes(Map<String,String> values)
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;
putAttributes(String key, String value)
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;
removeAttributes(String key)
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;
Parameter |
Name |
Description |
key |
String
|
setFactText(String value)
public GroundingFact.Builder setFactText(String value)
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;
Parameter |
Name |
Description |
value |
String
The factText to set.
|
setFactTextBytes(ByteString value)
public GroundingFact.Builder setFactTextBytes(ByteString value)
Text content of the fact. Can be at most 10K characters long.
string fact_text = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for factText to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public GroundingFact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GroundingFact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GroundingFact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides