Class GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder (0.51.0)

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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>
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

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;

Parameter
Name Description
value GroundingFact
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

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;

Parameter
Name Description
builderForValue GroundingFact.Builder
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

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;

Parameters
Name Description
index int
value GroundingFact
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

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;

Parameters
Name Description
index int
builderForValue GroundingFact.Builder
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

addGroundingFactsBuilder()

public GroundingFact.Builder addGroundingFactsBuilder()

List of facts to be used for grounding.

repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;

Returns
Type Description
GroundingFact.Builder

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
Returns
Type Description
GroundingFact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Overrides

build()

public GenerateGroundedContentRequest.GroundingSource.InlineSource build()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource

buildPartial()

public GenerateGroundedContentRequest.GroundingSource.InlineSource buildPartial()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource

clear()

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clear()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Overrides

clearAttributes()

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearAttributes()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

clearField(Descriptors.FieldDescriptor field)

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
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;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Overrides

clone()

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder clone()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
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
Returns
Type Description
boolean

getAttributes() (deprecated)

public Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
Type Description
Map<String,String>

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;

Returns
Type Description
Map<String,String>

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;

Parameters
Name Description
key String
defaultValue String
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()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
Type Description
GroundingFact

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
Returns
Type Description
GroundingFact.Builder

getGroundingFactsBuilderList()

public List<GroundingFact.Builder> getGroundingFactsBuilderList()

List of facts to be used for grounding.

repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<GroundingFact>

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
Returns
Type Description
GroundingFactOrBuilder

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.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateGroundedContentRequest.GroundingSource.InlineSource other)

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(GenerateGroundedContentRequest.GroundingSource.InlineSource other)
Parameter
Name Description
other GenerateGroundedContentRequest.GroundingSource.InlineSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
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;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

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;

Parameters
Name Description
key String
value String
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

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
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

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
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
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;

Parameters
Name Description
index int
value GroundingFact
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

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;

Parameters
Name Description
index int
builderForValue GroundingFact.Builder
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Overrides