Class RankResponse.Builder (0.47.0)

public static final class RankResponse.Builder extends GeneratedMessageV3.Builder<RankResponse.Builder> implements RankResponseOrBuilder

Response message for RankService.Rank method.

Protobuf type google.cloud.discoveryengine.v1beta.RankResponse

Static Methods

getDescriptor()

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

Methods

addAllRecords(Iterable<? extends RankingRecord> values)

public RankResponse.Builder addAllRecords(Iterable<? extends RankingRecord> values)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.RankingRecord>
Returns
Type Description
RankResponse.Builder

addRecords(RankingRecord value)

public RankResponse.Builder addRecords(RankingRecord value)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameter
Name Description
value RankingRecord
Returns
Type Description
RankResponse.Builder

addRecords(RankingRecord.Builder builderForValue)

public RankResponse.Builder addRecords(RankingRecord.Builder builderForValue)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameter
Name Description
builderForValue RankingRecord.Builder
Returns
Type Description
RankResponse.Builder

addRecords(int index, RankingRecord value)

public RankResponse.Builder addRecords(int index, RankingRecord value)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameters
Name Description
index int
value RankingRecord
Returns
Type Description
RankResponse.Builder

addRecords(int index, RankingRecord.Builder builderForValue)

public RankResponse.Builder addRecords(int index, RankingRecord.Builder builderForValue)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameters
Name Description
index int
builderForValue RankingRecord.Builder
Returns
Type Description
RankResponse.Builder

addRecordsBuilder()

public RankingRecord.Builder addRecordsBuilder()

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Returns
Type Description
RankingRecord.Builder

addRecordsBuilder(int index)

public RankingRecord.Builder addRecordsBuilder(int index)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameter
Name Description
index int
Returns
Type Description
RankingRecord.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RankResponse build()
Returns
Type Description
RankResponse

buildPartial()

public RankResponse buildPartial()
Returns
Type Description
RankResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecords()

public RankResponse.Builder clearRecords()

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Returns
Type Description
RankResponse.Builder

clone()

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

getDefaultInstanceForType()

public RankResponse getDefaultInstanceForType()
Returns
Type Description
RankResponse

getDescriptorForType()

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

getRecords(int index)

public RankingRecord getRecords(int index)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameter
Name Description
index int
Returns
Type Description
RankingRecord

getRecordsBuilder(int index)

public RankingRecord.Builder getRecordsBuilder(int index)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameter
Name Description
index int
Returns
Type Description
RankingRecord.Builder

getRecordsBuilderList()

public List<RankingRecord.Builder> getRecordsBuilderList()

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Returns
Type Description
List<Builder>

getRecordsCount()

public int getRecordsCount()

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Returns
Type Description
int

getRecordsList()

public List<RankingRecord> getRecordsList()

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Returns
Type Description
List<RankingRecord>

getRecordsOrBuilder(int index)

public RankingRecordOrBuilder getRecordsOrBuilder(int index)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameter
Name Description
index int
Returns
Type Description
RankingRecordOrBuilder

getRecordsOrBuilderList()

public List<? extends RankingRecordOrBuilder> getRecordsOrBuilderList()

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.RankingRecordOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RankResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRecords(int index)

public RankResponse.Builder removeRecords(int index)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameter
Name Description
index int
Returns
Type Description
RankResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setRecords(int index, RankingRecord value)

public RankResponse.Builder setRecords(int index, RankingRecord value)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameters
Name Description
index int
value RankingRecord
Returns
Type Description
RankResponse.Builder

setRecords(int index, RankingRecord.Builder builderForValue)

public RankResponse.Builder setRecords(int index, RankingRecord.Builder builderForValue)

A list of records sorted by descending score.

repeated .google.cloud.discoveryengine.v1beta.RankingRecord records = 5;

Parameters
Name Description
index int
builderForValue RankingRecord.Builder
Returns
Type Description
RankResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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