public static interface ByteplusSaasRetail.PredictRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsExtra(String key)
Optional.
|
ByteplusSaasRetail.PredictRequest.Context |
getContext()
Optional.
|
ByteplusSaasRetail.PredictRequest.ContextOrBuilder |
getContextOrBuilder()
Optional.
|
Map<String,String> |
getExtra()
已过时。
|
int |
getExtraCount()
Optional.
|
Map<String,String> |
getExtraMap()
Optional.
|
String |
getExtraOrDefault(String key,
String defaultValue)
Optional.
|
String |
getExtraOrThrow(String key)
Optional.
|
String |
getModelId()
Required
Recommended model unique identification.
|
com.google.protobuf.ByteString |
getModelIdBytes()
Required
Recommended model unique identification.
|
String |
getProjectId()
Required
Id of the recommendation project.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Required
Id of the recommendation project.
|
ByteplusSaasRetail.Scene |
getScene()
Required.
|
ByteplusSaasRetail.SceneOrBuilder |
getSceneOrBuilder()
Required.
|
int |
getSize()
Required.
|
String |
getUserId()
Required.
|
com.google.protobuf.ByteString |
getUserIdBytes()
Required.
|
boolean |
hasContext()
Optional.
|
boolean |
hasScene()
Required.
|
String getProjectId()
Required Id of the recommendation project.
string project_id = 1;com.google.protobuf.ByteString getProjectIdBytes()
Required Id of the recommendation project.
string project_id = 1;String getModelId()
Required Recommended model unique identification.
string model_id = 2;com.google.protobuf.ByteString getModelIdBytes()
Required Recommended model unique identification.
string model_id = 2;String getUserId()
Required. This is same as `User.user_id`.
string user_id = 10;com.google.protobuf.ByteString getUserIdBytes()
Required. This is same as `User.user_id`.
string user_id = 10;int getSize()
Required. The maximum number of products returned. The actual # of products returned is the min of: `size` length(`context.candidates_product_ids`) total # of products with `is_recommendable=True`
int32 size = 11;boolean hasScene()
Required. The scene for the recommendation.
.bytedance.byteplus.rec.retail.Scene scene = 12;ByteplusSaasRetail.Scene getScene()
Required. The scene for the recommendation.
.bytedance.byteplus.rec.retail.Scene scene = 12;ByteplusSaasRetail.SceneOrBuilder getSceneOrBuilder()
Required. The scene for the recommendation.
.bytedance.byteplus.rec.retail.Scene scene = 12;boolean hasContext()
Optional. The context of this request.
.bytedance.byteplus.rec.retail.PredictRequest.Context context = 13;ByteplusSaasRetail.PredictRequest.Context getContext()
Optional. The context of this request.
.bytedance.byteplus.rec.retail.PredictRequest.Context context = 13;ByteplusSaasRetail.PredictRequest.ContextOrBuilder getContextOrBuilder()
Optional. The context of this request.
.bytedance.byteplus.rec.retail.PredictRequest.Context context = 13;int getExtraCount()
Optional. This is a catch-all field to pass all the additional information. Please provide as much information as possible.
map<string, string> extra = 100;boolean containsExtra(String key)
Optional. This is a catch-all field to pass all the additional information. Please provide as much information as possible.
map<string, string> extra = 100;@Deprecated Map<String,String> getExtra()
getExtraMap() instead.Map<String,String> getExtraMap()
Optional. This is a catch-all field to pass all the additional information. Please provide as much information as possible.
map<string, string> extra = 100;String getExtraOrDefault(String key, String defaultValue)
Optional. This is a catch-all field to pass all the additional information. Please provide as much information as possible.
map<string, string> extra = 100;Copyright © 2022. All rights reserved.