public static final class RankResponse.Builder extends GeneratedMessageV3.Builder<RankResponse.Builder> implements RankResponseOrBuilder
Response message for
RankService.Rank method.
Protobuf type google.cloud.discoveryengine.v1.RankResponse
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
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.v1.RankingRecord records = 5;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.RankingRecord>
|
addRecords(RankingRecord value)
public RankResponse.Builder addRecords(RankingRecord value)
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
addRecords(RankingRecord.Builder builderForValue)
public RankResponse.Builder addRecords(RankingRecord.Builder builderForValue)
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
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.v1.RankingRecord records = 5;
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.v1.RankingRecord records = 5;
addRecordsBuilder()
public RankingRecord.Builder addRecordsBuilder()
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
addRecordsBuilder(int index)
public RankingRecord.Builder addRecordsBuilder(int index)
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RankResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RankResponse build()
buildPartial()
public RankResponse buildPartial()
clear()
public RankResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RankResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RankResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRecords()
public RankResponse.Builder clearRecords()
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
clone()
public RankResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public RankResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRecords(int index)
public RankingRecord getRecords(int index)
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
Parameter |
Name |
Description |
index |
int
|
getRecordsBuilder(int index)
public RankingRecord.Builder getRecordsBuilder(int index)
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
Parameter |
Name |
Description |
index |
int
|
getRecordsBuilderList()
public List<RankingRecord.Builder> getRecordsBuilderList()
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
getRecordsCount()
public int getRecordsCount()
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
Returns |
Type |
Description |
int |
|
getRecordsList()
public List<RankingRecord> getRecordsList()
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
getRecordsOrBuilder(int index)
public RankingRecordOrBuilder getRecordsOrBuilder(int index)
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
Parameter |
Name |
Description |
index |
int
|
getRecordsOrBuilderList()
public List<? extends RankingRecordOrBuilder> getRecordsOrBuilderList()
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1.RankingRecordOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RankResponse other)
public RankResponse.Builder mergeFrom(RankResponse other)
public RankResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RankResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RankResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeRecords(int index)
public RankResponse.Builder removeRecords(int index)
A list of records sorted by descending score.
repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public RankResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.v1.RankingRecord records = 5;
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.v1.RankingRecord records = 5;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RankResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RankResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides