- 0.51.0 (latest)
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class RecommendResponse.Builder extends GeneratedMessageV3.Builder<RecommendResponse.Builder> implements RecommendResponseOrBuilder
Response message for Recommend method.
Protobuf type google.cloud.discoveryengine.v1beta.RecommendResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RecommendResponse.BuilderImplements
RecommendResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllMissingIds(Iterable<String> values)
public RecommendResponse.Builder addAllMissingIds(Iterable<String> values)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Name | Description |
values | Iterable<String> The missingIds to add. |
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
addAllResults(Iterable<? extends RecommendResponse.RecommendationResult> values)
public RecommendResponse.Builder addAllResults(Iterable<? extends RecommendResponse.RecommendationResult> values)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
values | Iterable<? extends com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult> |
Type | Description |
RecommendResponse.Builder |
addMissingIds(String value)
public RecommendResponse.Builder addMissingIds(String value)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Name | Description |
value | String The missingIds to add. |
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
addMissingIdsBytes(ByteString value)
public RecommendResponse.Builder addMissingIdsBytes(ByteString value)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Name | Description |
value | ByteString The bytes of the missingIds to add. |
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RecommendResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RecommendResponse.Builder |
addResults(RecommendResponse.RecommendationResult value)
public RecommendResponse.Builder addResults(RecommendResponse.RecommendationResult value)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
value | RecommendResponse.RecommendationResult |
Type | Description |
RecommendResponse.Builder |
addResults(RecommendResponse.RecommendationResult.Builder builderForValue)
public RecommendResponse.Builder addResults(RecommendResponse.RecommendationResult.Builder builderForValue)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
builderForValue | RecommendResponse.RecommendationResult.Builder |
Type | Description |
RecommendResponse.Builder |
addResults(int index, RecommendResponse.RecommendationResult value)
public RecommendResponse.Builder addResults(int index, RecommendResponse.RecommendationResult value)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
value | RecommendResponse.RecommendationResult |
Type | Description |
RecommendResponse.Builder |
addResults(int index, RecommendResponse.RecommendationResult.Builder builderForValue)
public RecommendResponse.Builder addResults(int index, RecommendResponse.RecommendationResult.Builder builderForValue)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
builderForValue | RecommendResponse.RecommendationResult.Builder |
Type | Description |
RecommendResponse.Builder |
addResultsBuilder()
public RecommendResponse.RecommendationResult.Builder addResultsBuilder()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Type | Description |
RecommendResponse.RecommendationResult.Builder |
addResultsBuilder(int index)
public RecommendResponse.RecommendationResult.Builder addResultsBuilder(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
Type | Description |
RecommendResponse.RecommendationResult.Builder |
build()
public RecommendResponse build()
Type | Description |
RecommendResponse |
buildPartial()
public RecommendResponse buildPartial()
Type | Description |
RecommendResponse |
clear()
public RecommendResponse.Builder clear()
Type | Description |
RecommendResponse.Builder |
clearAttributionToken()
public RecommendResponse.Builder clearAttributionToken()
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RecommendResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
RecommendResponse.Builder |
clearMissingIds()
public RecommendResponse.Builder clearMissingIds()
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public RecommendResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
RecommendResponse.Builder |
clearResults()
public RecommendResponse.Builder clearResults()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Type | Description |
RecommendResponse.Builder |
clearValidateOnly()
public RecommendResponse.Builder clearValidateOnly()
True if RecommendRequest.validate_only was set.
bool validate_only = 4;
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
clone()
public RecommendResponse.Builder clone()
Type | Description |
RecommendResponse.Builder |
getAttributionToken()
public String getAttributionToken()
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;
Type | Description |
String | The attributionToken. |
getAttributionTokenBytes()
public ByteString getAttributionTokenBytes()
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;
Type | Description |
ByteString | The bytes for attributionToken. |
getDefaultInstanceForType()
public RecommendResponse getDefaultInstanceForType()
Type | Description |
RecommendResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMissingIds(int index)
public String getMissingIds(int index)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The missingIds at the given index. |
getMissingIdsBytes(int index)
public ByteString getMissingIdsBytes(int index)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the missingIds at the given index. |
getMissingIdsCount()
public int getMissingIdsCount()
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Type | Description |
int | The count of missingIds. |
getMissingIdsList()
public ProtocolStringList getMissingIdsList()
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Type | Description |
ProtocolStringList | A list containing the missingIds. |
getResults(int index)
public RecommendResponse.RecommendationResult getResults(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
Type | Description |
RecommendResponse.RecommendationResult |
getResultsBuilder(int index)
public RecommendResponse.RecommendationResult.Builder getResultsBuilder(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
Type | Description |
RecommendResponse.RecommendationResult.Builder |
getResultsBuilderList()
public List<RecommendResponse.RecommendationResult.Builder> getResultsBuilderList()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Type | Description |
List<Builder> |
getResultsCount()
public int getResultsCount()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Type | Description |
int |
getResultsList()
public List<RecommendResponse.RecommendationResult> getResultsList()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Type | Description |
List<RecommendationResult> |
getResultsOrBuilder(int index)
public RecommendResponse.RecommendationResultOrBuilder getResultsOrBuilder(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
Type | Description |
RecommendResponse.RecommendationResultOrBuilder |
getResultsOrBuilderList()
public List<? extends RecommendResponse.RecommendationResultOrBuilder> getResultsOrBuilderList()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Type | Description |
List<? extends com.google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResultOrBuilder> |
getValidateOnly()
public boolean getValidateOnly()
True if RecommendRequest.validate_only was set.
bool validate_only = 4;
Type | Description |
boolean | The validateOnly. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(RecommendResponse other)
public RecommendResponse.Builder mergeFrom(RecommendResponse other)
Name | Description |
other | RecommendResponse |
Type | Description |
RecommendResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RecommendResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RecommendResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public RecommendResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
RecommendResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RecommendResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RecommendResponse.Builder |
removeResults(int index)
public RecommendResponse.Builder removeResults(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
Type | Description |
RecommendResponse.Builder |
setAttributionToken(String value)
public RecommendResponse.Builder setAttributionToken(String value)
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;
Name | Description |
value | String The attributionToken to set. |
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
setAttributionTokenBytes(ByteString value)
public RecommendResponse.Builder setAttributionTokenBytes(ByteString value)
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;
Name | Description |
value | ByteString The bytes for attributionToken to set. |
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RecommendResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RecommendResponse.Builder |
setMissingIds(int index, String value)
public RecommendResponse.Builder setMissingIds(int index, String value)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;
Name | Description |
index | int The index to set the value at. |
value | String The missingIds to set. |
Type | Description |
RecommendResponse.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RecommendResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
RecommendResponse.Builder |
setResults(int index, RecommendResponse.RecommendationResult value)
public RecommendResponse.Builder setResults(int index, RecommendResponse.RecommendationResult value)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
value | RecommendResponse.RecommendationResult |
Type | Description |
RecommendResponse.Builder |
setResults(int index, RecommendResponse.RecommendationResult.Builder builderForValue)
public RecommendResponse.Builder setResults(int index, RecommendResponse.RecommendationResult.Builder builderForValue)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
Name | Description |
index | int |
builderForValue | RecommendResponse.RecommendationResult.Builder |
Type | Description |
RecommendResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final RecommendResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RecommendResponse.Builder |
setValidateOnly(boolean value)
public RecommendResponse.Builder setValidateOnly(boolean value)
True if RecommendRequest.validate_only was set.
bool validate_only = 4;
Name | Description |
value | boolean The validateOnly to set. |
Type | Description |
RecommendResponse.Builder | This builder for chaining. |