Class GenerateGroundedContentResponse.Builder (0.51.0)

public static final class GenerateGroundedContentResponse.Builder extends GeneratedMessageV3.Builder<GenerateGroundedContentResponse.Builder> implements GenerateGroundedContentResponseOrBuilder

Protobuf type google.cloud.discoveryengine.v1.GenerateGroundedContentResponse

Static Methods

getDescriptor()

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

Methods

addAllCandidates(Iterable<? extends GenerateGroundedContentResponse.Candidate> values)

public GenerateGroundedContentResponse.Builder addAllCandidates(Iterable<? extends GenerateGroundedContentResponse.Candidate> values)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate>
Returns
Type Description
GenerateGroundedContentResponse.Builder

addCandidates(GenerateGroundedContentResponse.Candidate value)

public GenerateGroundedContentResponse.Builder addCandidates(GenerateGroundedContentResponse.Candidate value)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameter
Name Description
value GenerateGroundedContentResponse.Candidate
Returns
Type Description
GenerateGroundedContentResponse.Builder

addCandidates(GenerateGroundedContentResponse.Candidate.Builder builderForValue)

public GenerateGroundedContentResponse.Builder addCandidates(GenerateGroundedContentResponse.Candidate.Builder builderForValue)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameter
Name Description
builderForValue GenerateGroundedContentResponse.Candidate.Builder
Returns
Type Description
GenerateGroundedContentResponse.Builder

addCandidates(int index, GenerateGroundedContentResponse.Candidate value)

public GenerateGroundedContentResponse.Builder addCandidates(int index, GenerateGroundedContentResponse.Candidate value)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameters
Name Description
index int
value GenerateGroundedContentResponse.Candidate
Returns
Type Description
GenerateGroundedContentResponse.Builder

addCandidates(int index, GenerateGroundedContentResponse.Candidate.Builder builderForValue)

public GenerateGroundedContentResponse.Builder addCandidates(int index, GenerateGroundedContentResponse.Candidate.Builder builderForValue)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameters
Name Description
index int
builderForValue GenerateGroundedContentResponse.Candidate.Builder
Returns
Type Description
GenerateGroundedContentResponse.Builder

addCandidatesBuilder()

public GenerateGroundedContentResponse.Candidate.Builder addCandidatesBuilder()

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Returns
Type Description
GenerateGroundedContentResponse.Candidate.Builder

addCandidatesBuilder(int index)

public GenerateGroundedContentResponse.Candidate.Builder addCandidatesBuilder(int index)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentResponse.Candidate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateGroundedContentResponse build()
Returns
Type Description
GenerateGroundedContentResponse

buildPartial()

public GenerateGroundedContentResponse buildPartial()
Returns
Type Description
GenerateGroundedContentResponse

clear()

public GenerateGroundedContentResponse.Builder clear()
Returns
Type Description
GenerateGroundedContentResponse.Builder
Overrides

clearCandidates()

public GenerateGroundedContentResponse.Builder clearCandidates()

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Returns
Type Description
GenerateGroundedContentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GenerateGroundedContentResponse.Builder clone()
Returns
Type Description
GenerateGroundedContentResponse.Builder
Overrides

getCandidates(int index)

public GenerateGroundedContentResponse.Candidate getCandidates(int index)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentResponse.Candidate

getCandidatesBuilder(int index)

public GenerateGroundedContentResponse.Candidate.Builder getCandidatesBuilder(int index)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentResponse.Candidate.Builder

getCandidatesBuilderList()

public List<GenerateGroundedContentResponse.Candidate.Builder> getCandidatesBuilderList()

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Returns
Type Description
List<Builder>

getCandidatesCount()

public int getCandidatesCount()

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Returns
Type Description
int

getCandidatesList()

public List<GenerateGroundedContentResponse.Candidate> getCandidatesList()

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Returns
Type Description
List<Candidate>

getCandidatesOrBuilder(int index)

public GenerateGroundedContentResponse.CandidateOrBuilder getCandidatesOrBuilder(int index)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentResponse.CandidateOrBuilder

getCandidatesOrBuilderList()

public List<? extends GenerateGroundedContentResponse.CandidateOrBuilder> getCandidatesOrBuilderList()

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.CandidateOrBuilder>

getDefaultInstanceForType()

public GenerateGroundedContentResponse getDefaultInstanceForType()
Returns
Type Description
GenerateGroundedContentResponse

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateGroundedContentResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCandidates(int index)

public GenerateGroundedContentResponse.Builder removeCandidates(int index)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameter
Name Description
index int
Returns
Type Description
GenerateGroundedContentResponse.Builder

setCandidates(int index, GenerateGroundedContentResponse.Candidate value)

public GenerateGroundedContentResponse.Builder setCandidates(int index, GenerateGroundedContentResponse.Candidate value)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameters
Name Description
index int
value GenerateGroundedContentResponse.Candidate
Returns
Type Description
GenerateGroundedContentResponse.Builder

setCandidates(int index, GenerateGroundedContentResponse.Candidate.Builder builderForValue)

public GenerateGroundedContentResponse.Builder setCandidates(int index, GenerateGroundedContentResponse.Candidate.Builder builderForValue)

Generated candidates.

repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1;

Parameters
Name Description
index int
builderForValue GenerateGroundedContentResponse.Candidate.Builder
Returns
Type Description
GenerateGroundedContentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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