public static final class ByteplusSaasRetail.Product extends com.google.protobuf.GeneratedMessageV3 implements ByteplusSaasRetail.ProductOrBuilder
The product proto.Protobuf type
bytedance.byteplus.rec.retail.Product| 限定符和类型 | 类和说明 |
|---|---|
static class |
ByteplusSaasRetail.Product.Builder
The product proto.
|
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 |
BRANDS_FIELD_NUMBER |
static int |
CATEGORIES_FIELD_NUMBER |
static int |
COMMENT_COUNT_FIELD_NUMBER |
static int |
CURRENT_PRICE_FIELD_NUMBER |
static int |
DISPLAY_COVER_MULTIMEDIA_URL_FIELD_NUMBER |
static int |
EXTRA_FIELD_NUMBER |
static int |
IS_RECOMMENDABLE_FIELD_NUMBER |
static int |
ORIGINAL_PRICE_FIELD_NUMBER |
static int |
PRODUCT_GROUP_ID_FIELD_NUMBER |
static int |
PRODUCT_ID_FIELD_NUMBER |
static int |
PUBLISH_TIMESTAMP_FIELD_NUMBER |
static int |
SELLER_ID_FIELD_NUMBER |
static int |
SELLER_LEVEL_FIELD_NUMBER |
static int |
SELLER_RATING_FIELD_NUMBER |
static int |
SOLD_COUNT_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
static int |
TAGS_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
USER_RATING_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsExtra(String key)
Optional.
|
boolean |
equals(Object obj) |
String |
getBrands()
Optional.
|
com.google.protobuf.ByteString |
getBrandsBytes()
Optional.
|
String |
getCategories()
Optional.
|
com.google.protobuf.ByteString |
getCategoriesBytes()
Optional.
|
int |
getCommentCount()
Optional.
|
float |
getCurrentPrice()
Optional.
|
static ByteplusSaasRetail.Product |
getDefaultInstance() |
ByteplusSaasRetail.Product |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayCoverMultimediaUrl()
Optional.
|
com.google.protobuf.ByteString |
getDisplayCoverMultimediaUrlBytes()
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.
|
int |
getIsRecommendable()
Optional.
1 if the product is recommendable (i.e. to return the product in the recommendation result).
|
float |
getOriginalPrice()
Optional.
|
com.google.protobuf.Parser<ByteplusSaasRetail.Product> |
getParserForType() |
String |
getProductGroupId()
Optional.
|
com.google.protobuf.ByteString |
getProductGroupIdBytes()
Optional.
|
String |
getProductId()
Required.
|
com.google.protobuf.ByteString |
getProductIdBytes()
Required.
|
long |
getPublishTimestamp()
Optional.
|
String |
getSellerId()
Required.
|
com.google.protobuf.ByteString |
getSellerIdBytes()
Required.
|
String |
getSellerLevel()
Optional.
|
com.google.protobuf.ByteString |
getSellerLevelBytes()
Optional.
|
float |
getSellerRating()
Optional.
|
int |
getSerializedSize() |
int |
getSoldCount()
Optional.
|
String |
getSource()
Optional.
|
com.google.protobuf.ByteString |
getSourceBytes()
Optional.
|
String |
getTags()
Optional.
|
com.google.protobuf.ByteString |
getTagsBytes()
Optional.
|
String |
getTitle()
Optional.
|
com.google.protobuf.ByteString |
getTitleBytes()
Optional.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
float |
getUserRating()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static ByteplusSaasRetail.Product.Builder |
newBuilder() |
static ByteplusSaasRetail.Product.Builder |
newBuilder(ByteplusSaasRetail.Product prototype) |
ByteplusSaasRetail.Product.Builder |
newBuilderForType() |
protected ByteplusSaasRetail.Product.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ByteplusSaasRetail.Product |
parseDelimitedFrom(InputStream input) |
static ByteplusSaasRetail.Product |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.Product |
parseFrom(byte[] data) |
static ByteplusSaasRetail.Product |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.Product |
parseFrom(ByteBuffer data) |
static ByteplusSaasRetail.Product |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.Product |
parseFrom(com.google.protobuf.ByteString data) |
static ByteplusSaasRetail.Product |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.Product |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ByteplusSaasRetail.Product |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ByteplusSaasRetail.Product |
parseFrom(InputStream input) |
static ByteplusSaasRetail.Product |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ByteplusSaasRetail.Product> |
parser() |
ByteplusSaasRetail.Product.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 PRODUCT_ID_FIELD_NUMBER
public static final int IS_RECOMMENDABLE_FIELD_NUMBER
public static final int CURRENT_PRICE_FIELD_NUMBER
public static final int ORIGINAL_PRICE_FIELD_NUMBER
public static final int PUBLISH_TIMESTAMP_FIELD_NUMBER
public static final int CATEGORIES_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int BRANDS_FIELD_NUMBER
public static final int USER_RATING_FIELD_NUMBER
public static final int SOLD_COUNT_FIELD_NUMBER
public static final int PRODUCT_GROUP_ID_FIELD_NUMBER
public static final int DISPLAY_COVER_MULTIMEDIA_URL_FIELD_NUMBER
public static final int COMMENT_COUNT_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int SELLER_ID_FIELD_NUMBER
public static final int SELLER_LEVEL_FIELD_NUMBER
public static final int SELLER_RATING_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 getProductId()
Required. The unique identifier for the product. [link to best practices on deciding product ids](./ways-to-improve-recommendation-performance)
string product_id = 1;getProductId 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getProductIdBytes()
Required. The unique identifier for the product. [link to best practices on deciding product ids](./ways-to-improve-recommendation-performance)
string product_id = 1;getProductIdBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic int getIsRecommendable()
Optional. 1 if the product is recommendable (i.e. to return the product in the recommendation result). Note: Even if a product isn't recommendable, please include it still. the is because that users might have interacted with such product in the past, hence providing insights into behavioural propensities.
int32 is_recommendable = 2;getIsRecommendable 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic float getCurrentPrice()
Optional. The current/displayed/discounted price of the product. Round to 2.d.p.
float current_price = 3;getCurrentPrice 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic float getOriginalPrice()
Optional. The original price of the product. Round to 2.d.p.
float original_price = 4;getOriginalPrice 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic long getPublishTimestamp()
Optional. The timestamp when the product was published.
int64 publish_timestamp = 5;getPublishTimestamp 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getCategories()
Optional.
The (sub)categories the content fall under. Format requirements:
1. JSON serialised string
2. Depth starts from 1, in consecutive postive integers
3. "Category_nodes" should not contain empty value. If empty value exists, replace with "null" .
4. Only one "id_or_name" key-value pair is allowed under each "category_nodes"
For example, if a product has "Shoes -> Men's Shoes -> Basketball Shoes"
This should be:
[
{"category_depth":1,
"category_nodes": [{"id_or_name":"Shoes"}] },
{"category_depth":2,
"category_nodes": [{"id_or_name":"Men's Shoes"}] },
{"category_depth":3,
"category_nodes": [{"id_or_name":"Basketball Shoes"}] },
]
If a product belongs to 2 different categories,
"Shoes -> Men's shoes" and "Sports -> Basketball"
then
[
{"category_depth":1,
"category_nodes": [{"id_or_name":"Shoes"},
{"id_or_name":"Sports"}] },
{"category_depth":2,
"category_nodes": [{"id_or_name":"Men's shoes"},
{"id_or_name":"Basketball"}] },
]
string categories = 6;getCategories 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getCategoriesBytes()
Optional.
The (sub)categories the content fall under. Format requirements:
1. JSON serialised string
2. Depth starts from 1, in consecutive postive integers
3. "Category_nodes" should not contain empty value. If empty value exists, replace with "null" .
4. Only one "id_or_name" key-value pair is allowed under each "category_nodes"
For example, if a product has "Shoes -> Men's Shoes -> Basketball Shoes"
This should be:
[
{"category_depth":1,
"category_nodes": [{"id_or_name":"Shoes"}] },
{"category_depth":2,
"category_nodes": [{"id_or_name":"Men's Shoes"}] },
{"category_depth":3,
"category_nodes": [{"id_or_name":"Basketball Shoes"}] },
]
If a product belongs to 2 different categories,
"Shoes -> Men's shoes" and "Sports -> Basketball"
then
[
{"category_depth":1,
"category_nodes": [{"id_or_name":"Shoes"},
{"id_or_name":"Sports"}] },
{"category_depth":2,
"category_nodes": [{"id_or_name":"Men's shoes"},
{"id_or_name":"Basketball"}] },
]
string categories = 6;getCategoriesBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getTags()
Optional. The (internal) label of the product. Format into JSON serialized string. Sample values are: "[\"New\", \"Summer\", \"Clearance\"]", etc.
string tags = 7;getTags 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getTagsBytes()
Optional. The (internal) label of the product. Format into JSON serialized string. Sample values are: "[\"New\", \"Summer\", \"Clearance\"]", etc.
string tags = 7;getTagsBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getTitle()
Optional. The title/name of the product.
string title = 8;getTitle 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
Optional. The title/name of the product.
string title = 8;getTitleBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getBrands()
Optional. The brand of the product.
string brands = 9;getBrands 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getBrandsBytes()
Optional. The brand of the product.
string brands = 9;getBrandsBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic float getUserRating()
Optional. The rating given by the users. Non-negative value.
float user_rating = 10;getUserRating 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic int getSoldCount()
Optional. The number of sales of the content if it is paid content.
int32 sold_count = 11;getSoldCount 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getProductGroupId()
Optional. The ID of the group/unit for products with common characteristics.
string product_group_id = 12;getProductGroupId 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getProductGroupIdBytes()
Optional. The ID of the group/unit for products with common characteristics.
string product_group_id = 12;getProductGroupIdBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getDisplayCoverMultimediaUrl()
Optional. The URL of the cover multimedia for the product. Format into JSON serialized string.
string display_cover_multimedia_url = 13;getDisplayCoverMultimediaUrl 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getDisplayCoverMultimediaUrlBytes()
Optional. The URL of the cover multimedia for the product. Format into JSON serialized string.
string display_cover_multimedia_url = 13;getDisplayCoverMultimediaUrlBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic int getCommentCount()
Optional. The number of comments of the content.
int32 comment_count = 14;getCommentCount 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getSource()
Optional. The source of the product.. For example, "self", "thirdparty", "other".
string source = 15;getSource 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getSourceBytes()
Optional. The source of the product.. For example, "self", "thirdparty", "other".
string source = 15;getSourceBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getSellerId()
Required. The ID of the seller.
string seller_id = 16;getSellerId 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getSellerIdBytes()
Required. The ID of the seller.
string seller_id = 16;getSellerIdBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getSellerLevel()
Optional. The tier/level of the seller.
string seller_level = 17;getSellerLevel 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getSellerLevelBytes()
Optional. The tier/level of the seller.
string seller_level = 17;getSellerLevelBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic float getSellerRating()
Optional. The seller's rating given by the customers. Non-negative value.
float seller_rating = 21;getSellerRating 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic int getExtraCount()
ByteplusSaasRetail.ProductOrBuilderOptional. 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.getExtra 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic 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.Product parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.Product parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.Product parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.Product parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.Product parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.Product parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ByteplusSaasRetail.Product parseFrom(InputStream input) throws IOException
IOExceptionpublic static ByteplusSaasRetail.Product parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ByteplusSaasRetail.Product parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ByteplusSaasRetail.Product parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ByteplusSaasRetail.Product parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ByteplusSaasRetail.Product parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ByteplusSaasRetail.Product.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static ByteplusSaasRetail.Product.Builder newBuilder()
public static ByteplusSaasRetail.Product.Builder newBuilder(ByteplusSaasRetail.Product prototype)
public ByteplusSaasRetail.Product.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected ByteplusSaasRetail.Product.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static ByteplusSaasRetail.Product getDefaultInstance()
public static com.google.protobuf.Parser<ByteplusSaasRetail.Product> parser()
public com.google.protobuf.Parser<ByteplusSaasRetail.Product> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public ByteplusSaasRetail.Product getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.