Class GenerateGroundedContentRequest.GroundingSpec.Builder (0.51.0)

public static final class GenerateGroundedContentRequest.GroundingSpec.Builder extends GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSpec.Builder> implements GenerateGroundedContentRequest.GroundingSpecOrBuilder

Grounding specification.

Protobuf type google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec

Static Methods

getDescriptor()

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

Methods

addAllGroundingSources(Iterable<? extends GenerateGroundedContentRequest.GroundingSource> values)

public GenerateGroundedContentRequest.GroundingSpec.Builder addAllGroundingSources(Iterable<? extends GenerateGroundedContentRequest.GroundingSource> values)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource>
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder

addGroundingSources(GenerateGroundedContentRequest.GroundingSource value)

public GenerateGroundedContentRequest.GroundingSpec.Builder addGroundingSources(GenerateGroundedContentRequest.GroundingSource value)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Parameter
Name Description
value GenerateGroundedContentRequest.GroundingSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder

addGroundingSources(GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)

public GenerateGroundedContentRequest.GroundingSpec.Builder addGroundingSources(GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Parameter
Name Description
builderForValue GenerateGroundedContentRequest.GroundingSource.Builder
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder

addGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource value)

public GenerateGroundedContentRequest.GroundingSpec.Builder addGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource value)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

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

addGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)

public GenerateGroundedContentRequest.GroundingSpec.Builder addGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

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

addGroundingSourcesBuilder()

public GenerateGroundedContentRequest.GroundingSource.Builder addGroundingSourcesBuilder()

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

addGroundingSourcesBuilder(int index)

public GenerateGroundedContentRequest.GroundingSource.Builder addGroundingSourcesBuilder(int index)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateGroundedContentRequest.GroundingSpec build()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec

buildPartial()

public GenerateGroundedContentRequest.GroundingSpec buildPartial()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec

clear()

public GenerateGroundedContentRequest.GroundingSpec.Builder clear()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GenerateGroundedContentRequest.GroundingSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder
Overrides

clearGroundingSources()

public GenerateGroundedContentRequest.GroundingSpec.Builder clearGroundingSources()

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GenerateGroundedContentRequest.GroundingSpec.Builder clone()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder
Overrides

getDefaultInstanceForType()

public GenerateGroundedContentRequest.GroundingSpec getDefaultInstanceForType()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGroundingSources(int index)

public GenerateGroundedContentRequest.GroundingSource getGroundingSources(int index)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource

getGroundingSourcesBuilder(int index)

public GenerateGroundedContentRequest.GroundingSource.Builder getGroundingSourcesBuilder(int index)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

getGroundingSourcesBuilderList()

public List<GenerateGroundedContentRequest.GroundingSource.Builder> getGroundingSourcesBuilderList()

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Returns
Type Description
List<Builder>

getGroundingSourcesCount()

public int getGroundingSourcesCount()

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Returns
Type Description
int

getGroundingSourcesList()

public List<GenerateGroundedContentRequest.GroundingSource> getGroundingSourcesList()

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Returns
Type Description
List<GroundingSource>

getGroundingSourcesOrBuilder(int index)

public GenerateGroundedContentRequest.GroundingSourceOrBuilder getGroundingSourcesOrBuilder(int index)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentRequest.GroundingSourceOrBuilder

getGroundingSourcesOrBuilderList()

public List<? extends GenerateGroundedContentRequest.GroundingSourceOrBuilder> getGroundingSourcesOrBuilderList()

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSourceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateGroundedContentRequest.GroundingSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateGroundedContentRequest.GroundingSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder
Overrides

removeGroundingSources(int index)

public GenerateGroundedContentRequest.GroundingSpec.Builder removeGroundingSources(int index)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateGroundedContentRequest.GroundingSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateGroundedContentRequest.GroundingSpec.Builder
Overrides

setGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource value)

public GenerateGroundedContentRequest.GroundingSpec.Builder setGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource value)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

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

setGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)

public GenerateGroundedContentRequest.GroundingSpec.Builder setGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)

Grounding sources.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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