public static final class GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder extends GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder> implements GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder
Message to be used for grounding based on inline content.
Protobuf type
google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource
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
addAllGroundingFacts(Iterable<? extends GroundingFact> values)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addAllGroundingFacts(Iterable<? extends GroundingFact> values)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.GroundingFact>
|
addGroundingFacts(GroundingFact value)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addGroundingFacts(GroundingFact value)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
addGroundingFacts(GroundingFact.Builder builderForValue)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addGroundingFacts(GroundingFact.Builder builderForValue)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
addGroundingFacts(int index, GroundingFact value)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addGroundingFacts(int index, GroundingFact value)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
addGroundingFacts(int index, GroundingFact.Builder builderForValue)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addGroundingFacts(int index, GroundingFact.Builder builderForValue)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
addGroundingFactsBuilder()
public GroundingFact.Builder addGroundingFactsBuilder()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
addGroundingFactsBuilder(int index)
public GroundingFact.Builder addGroundingFactsBuilder(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GenerateGroundedContentRequest.GroundingSource.InlineSource build()
buildPartial()
public GenerateGroundedContentRequest.GroundingSource.InlineSource buildPartial()
clear()
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clear()
Overrides
clearAttributes()
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearAttributes()
clearField(Descriptors.FieldDescriptor field)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearGroundingFacts()
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearGroundingFacts()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clone()
Overrides
containsAttributes(String key)
public boolean containsAttributes(String key)
Attributes associated with the content.
Common attributes include source
(indicating where the content was
sourced from) and author
(indicating the author of the content).
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 content.
Common attributes include source
(indicating where the content was
sourced from) and author
(indicating the author of the content).
map<string, string> attributes = 2;
Returns |
Type |
Description |
int |
|
getAttributesMap()
public Map<String,String> getAttributesMap()
Attributes associated with the content.
Common attributes include source
(indicating where the content was
sourced from) and author
(indicating the author of the content).
map<string, string> attributes = 2;
getAttributesOrDefault(String key, String defaultValue)
public String getAttributesOrDefault(String key, String defaultValue)
Attributes associated with the content.
Common attributes include source
(indicating where the content was
sourced from) and author
(indicating the author of the content).
map<string, string> attributes = 2;
Returns |
Type |
Description |
String |
|
getAttributesOrThrow(String key)
public String getAttributesOrThrow(String key)
Attributes associated with the content.
Common attributes include source
(indicating where the content was
sourced from) and author
(indicating the author of the content).
map<string, string> attributes = 2;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getDefaultInstanceForType()
public GenerateGroundedContentRequest.GroundingSource.InlineSource getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getGroundingFacts(int index)
public GroundingFact getGroundingFacts(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
Parameter |
Name |
Description |
index |
int
|
getGroundingFactsBuilder(int index)
public GroundingFact.Builder getGroundingFactsBuilder(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
Parameter |
Name |
Description |
index |
int
|
getGroundingFactsBuilderList()
public List<GroundingFact.Builder> getGroundingFactsBuilderList()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
getGroundingFactsCount()
public int getGroundingFactsCount()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
Returns |
Type |
Description |
int |
|
getGroundingFactsList()
public List<GroundingFact> getGroundingFactsList()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
getGroundingFactsOrBuilder(int index)
public GroundingFactOrBuilder getGroundingFactsOrBuilder(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
Parameter |
Name |
Description |
index |
int
|
getGroundingFactsOrBuilderList()
public List<? extends GroundingFactOrBuilder> getGroundingFactsOrBuilderList()
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1.GroundingFactOrBuilder> |
|
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(GenerateGroundedContentRequest.GroundingSource.InlineSource other)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(GenerateGroundedContentRequest.GroundingSource.InlineSource other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllAttributes(Map<String,String> values)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder putAllAttributes(Map<String,String> values)
Attributes associated with the content.
Common attributes include source
(indicating where the content was
sourced from) and author
(indicating the author of the content).
map<string, string> attributes = 2;
putAttributes(String key, String value)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder putAttributes(String key, String value)
Attributes associated with the content.
Common attributes include source
(indicating where the content was
sourced from) and author
(indicating the author of the content).
map<string, string> attributes = 2;
removeAttributes(String key)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder removeAttributes(String key)
Attributes associated with the content.
Common attributes include source
(indicating where the content was
sourced from) and author
(indicating the author of the content).
map<string, string> attributes = 2;
Parameter |
Name |
Description |
key |
String
|
removeGroundingFacts(int index)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder removeGroundingFacts(int index)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setGroundingFacts(int index, GroundingFact value)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setGroundingFacts(int index, GroundingFact value)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
setGroundingFacts(int index, GroundingFact.Builder builderForValue)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setGroundingFacts(int index, GroundingFact.Builder builderForValue)
List of facts to be used for grounding.
repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides