public static final class ByteplusSaasRetail.PredictRequest extends com.google.protobuf.GeneratedMessageV3 implements ByteplusSaasRetail.PredictRequestOrBuilder
The request proto for `Predict` call.Protobuf type
bytedance.byteplus.rec.retail.PredictRequest| 限定符和类型 | 类和说明 |
|---|---|
static class |
ByteplusSaasRetail.PredictRequest.Builder
The request proto for `Predict` call.
|
static class |
ByteplusSaasRetail.PredictRequest.Context
The context of this request.
|
static interface |
ByteplusSaasRetail.PredictRequest.ContextOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CONTEXT_FIELD_NUMBER |
static int |
EXTRA_FIELD_NUMBER |
static int |
MODEL_ID_FIELD_NUMBER |
static int |
PROJECT_ID_FIELD_NUMBER |
static int |
SCENE_FIELD_NUMBER |
static int |
SIZE_FIELD_NUMBER |
static int |
USER_ID_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsExtra(String key)
Optional.
|
boolean |
equals(Object obj) |
ByteplusSaasRetail.PredictRequest.Context |
getContext()
Optional.
|
ByteplusSaasRetail.PredictRequest.ContextOrBuilder |
getContextOrBuilder()
Optional.
|
static ByteplusSaasRetail.PredictRequest |
getDefaultInstance() |
ByteplusSaasRetail.PredictRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<ByteplusSaasRetail.PredictRequest> |
getParserForType() |
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 |
getSerializedSize() |
int |
getSize()
Required.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUserId()
Required.
|
com.google.protobuf.ByteString |
getUserIdBytes()
Required.
|
boolean |
hasContext()
Optional.
|
int |
hashCode() |
boolean |
hasScene()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static ByteplusSaasRetail.PredictRequest.Builder |
newBuilder() |
static ByteplusSaasRetail.PredictRequest.Builder |
newBuilder(ByteplusSaasRetail.PredictRequest prototype) |
ByteplusSaasRetail.PredictRequest.Builder |
newBuilderForType() |
protected ByteplusSaasRetail.PredictRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ByteplusSaasRetail.PredictRequest |
parseDelimitedFrom(InputStream input) |
static ByteplusSaasRetail.PredictRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(byte[] data) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(ByteBuffer data) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(com.google.protobuf.ByteString data) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(InputStream input) |
static ByteplusSaasRetail.PredictRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ByteplusSaasRetail.PredictRequest> |
parser() |
ByteplusSaasRetail.PredictRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int PROJECT_ID_FIELD_NUMBER
public static final int MODEL_ID_FIELD_NUMBER
public static final int USER_ID_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
public static final int SCENE_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
public static final int EXTRA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public String getProjectId()
Required Id of the recommendation project.
string project_id = 1;getProjectId 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic com.google.protobuf.ByteString getProjectIdBytes()
Required Id of the recommendation project.
string project_id = 1;getProjectIdBytes 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic String getModelId()
Required Recommended model unique identification.
string model_id = 2;getModelId 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic com.google.protobuf.ByteString getModelIdBytes()
Required Recommended model unique identification.
string model_id = 2;getModelIdBytes 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic String getUserId()
Required. This is same as `User.user_id`.
string user_id = 10;getUserId 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic com.google.protobuf.ByteString getUserIdBytes()
Required. This is same as `User.user_id`.
string user_id = 10;getUserIdBytes 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic 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;getSize 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic boolean hasScene()
Required. The scene for the recommendation.
.bytedance.byteplus.rec.retail.Scene scene = 12;hasScene 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic ByteplusSaasRetail.Scene getScene()
Required. The scene for the recommendation.
.bytedance.byteplus.rec.retail.Scene scene = 12;getScene 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic ByteplusSaasRetail.SceneOrBuilder getSceneOrBuilder()
Required. The scene for the recommendation.
.bytedance.byteplus.rec.retail.Scene scene = 12;public boolean hasContext()
Optional. The context of this request.
.bytedance.byteplus.rec.retail.PredictRequest.Context context = 13;hasContext 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic ByteplusSaasRetail.PredictRequest.Context getContext()
Optional. The context of this request.
.bytedance.byteplus.rec.retail.PredictRequest.Context context = 13;getContext 在接口中 ByteplusSaasRetail.PredictRequestOrBuilderpublic ByteplusSaasRetail.PredictRequest.ContextOrBuilder getContextOrBuilder()
Optional. The context of this request.
.bytedance.byteplus.rec.retail.PredictRequest.Context context = 13;public 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;public 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 public Map<String,String> getExtra()
getExtraMap() instead.public 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;public 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;public String getExtraOrThrow(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;public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static ByteplusSaasRetail.PredictRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ByteplusSaasRetail.PredictRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ByteplusSaasRetail.PredictRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ByteplusSaasRetail.PredictRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ByteplusSaasRetail.PredictRequest.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static ByteplusSaasRetail.PredictRequest.Builder newBuilder()
public static ByteplusSaasRetail.PredictRequest.Builder newBuilder(ByteplusSaasRetail.PredictRequest prototype)
public ByteplusSaasRetail.PredictRequest.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected ByteplusSaasRetail.PredictRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static ByteplusSaasRetail.PredictRequest getDefaultInstance()
public static com.google.protobuf.Parser<ByteplusSaasRetail.PredictRequest> parser()
public com.google.protobuf.Parser<ByteplusSaasRetail.PredictRequest> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public ByteplusSaasRetail.PredictRequest getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2022. All rights reserved.