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.Brand
The brand proto.
|
static interface |
ByteplusSaasRetail.Product.BrandOrBuilder |
static class |
ByteplusSaasRetail.Product.Builder
The product proto.
|
static class |
ByteplusSaasRetail.Product.Category
The category proto.
|
static interface |
ByteplusSaasRetail.Product.CategoryOrBuilder |
static class |
ByteplusSaasRetail.Product.Display
The product display information.
|
static interface |
ByteplusSaasRetail.Product.DisplayOrBuilder |
static class |
ByteplusSaasRetail.Product.Price
The price proto.
|
static interface |
ByteplusSaasRetail.Product.PriceOrBuilder |
static class |
ByteplusSaasRetail.Product.ProductSpec
The detailed product specs.
|
static interface |
ByteplusSaasRetail.Product.ProductSpecOrBuilder |
static class |
ByteplusSaasRetail.Product.Seller
Seller info.
|
static interface |
ByteplusSaasRetail.Product.SellerOrBuilder |
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 |
DISPLAY_FIELD_NUMBER |
static int |
EXTRA_FIELD_NUMBER |
static int |
IS_RECOMMENDABLE_FIELD_NUMBER |
static int |
PRICE_FIELD_NUMBER |
static int |
PRODUCT_ID_FIELD_NUMBER |
static int |
PRODUCT_SPEC_FIELD_NUMBER |
static int |
QUALITY_SCORE_FIELD_NUMBER |
static int |
SELLER_FIELD_NUMBER |
static int |
TAGS_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
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 CATEGORIES_FIELD_NUMBER
public static final int BRANDS_FIELD_NUMBER
public static final int PRICE_FIELD_NUMBER
public static final int IS_RECOMMENDABLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int QUALITY_SCORE_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
public static final int DISPLAY_FIELD_NUMBER
public static final int PRODUCT_SPEC_FIELD_NUMBER
public static final int SELLER_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 List<ByteplusSaasRetail.Product.Category> getCategoriesList()
Required.
The categorical information of the product.
Missing this will significantly hurt the performance.
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"}] },
]
repeated .bytedance.byteplus.rec.retail.Product.Category categories = 2;public List<? extends ByteplusSaasRetail.Product.CategoryOrBuilder> getCategoriesOrBuilderList()
Required.
The categorical information of the product.
Missing this will significantly hurt the performance.
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"}] },
]
repeated .bytedance.byteplus.rec.retail.Product.Category categories = 2;public int getCategoriesCount()
Required.
The categorical information of the product.
Missing this will significantly hurt the performance.
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"}] },
]
repeated .bytedance.byteplus.rec.retail.Product.Category categories = 2;public ByteplusSaasRetail.Product.Category getCategories(int index)
Required.
The categorical information of the product.
Missing this will significantly hurt the performance.
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"}] },
]
repeated .bytedance.byteplus.rec.retail.Product.Category categories = 2;public ByteplusSaasRetail.Product.CategoryOrBuilder getCategoriesOrBuilder(int index)
Required.
The categorical information of the product.
Missing this will significantly hurt the performance.
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"}] },
]
repeated .bytedance.byteplus.rec.retail.Product.Category categories = 2;public List<ByteplusSaasRetail.Product.Brand> getBrandsList()
Required.
Missing this will significantly hurt the performance.
The order should be asending on depth.
For example, if a product belongs to "Adidas -> Yeezy",
this field should be:
[
{"brand_depth": 1, "id_or_name":"Adidas"},
{"brand_depth": 2, "id_or_name":"Yeezy"},
]
repeated .bytedance.byteplus.rec.retail.Product.Brand brands = 3;public List<? extends ByteplusSaasRetail.Product.BrandOrBuilder> getBrandsOrBuilderList()
Required.
Missing this will significantly hurt the performance.
The order should be asending on depth.
For example, if a product belongs to "Adidas -> Yeezy",
this field should be:
[
{"brand_depth": 1, "id_or_name":"Adidas"},
{"brand_depth": 2, "id_or_name":"Yeezy"},
]
repeated .bytedance.byteplus.rec.retail.Product.Brand brands = 3;public int getBrandsCount()
Required.
Missing this will significantly hurt the performance.
The order should be asending on depth.
For example, if a product belongs to "Adidas -> Yeezy",
this field should be:
[
{"brand_depth": 1, "id_or_name":"Adidas"},
{"brand_depth": 2, "id_or_name":"Yeezy"},
]
repeated .bytedance.byteplus.rec.retail.Product.Brand brands = 3;public ByteplusSaasRetail.Product.Brand getBrands(int index)
Required.
Missing this will significantly hurt the performance.
The order should be asending on depth.
For example, if a product belongs to "Adidas -> Yeezy",
this field should be:
[
{"brand_depth": 1, "id_or_name":"Adidas"},
{"brand_depth": 2, "id_or_name":"Yeezy"},
]
repeated .bytedance.byteplus.rec.retail.Product.Brand brands = 3;getBrands 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.BrandOrBuilder getBrandsOrBuilder(int index)
Required.
Missing this will significantly hurt the performance.
The order should be asending on depth.
For example, if a product belongs to "Adidas -> Yeezy",
this field should be:
[
{"brand_depth": 1, "id_or_name":"Adidas"},
{"brand_depth": 2, "id_or_name":"Yeezy"},
]
repeated .bytedance.byteplus.rec.retail.Product.Brand brands = 3;public boolean hasPrice()
Required. The product price info. Please make sure the accuracy and recency.
.bytedance.byteplus.rec.retail.Product.Price price = 4;hasPrice 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.Price getPrice()
Required. The product price info. Please make sure the accuracy and recency.
.bytedance.byteplus.rec.retail.Product.Price price = 4;getPrice 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.PriceOrBuilder getPriceOrBuilder()
Required. The product price info. Please make sure the accuracy and recency.
.bytedance.byteplus.rec.retail.Product.Price price = 4;public int getIsRecommendable()
Required. 1 if the product is recommendable (result in `Predict` call). 0 if the product isn't recommendable. Note: Any change of this takes up to 1 hour to take effect. Note: Even if a product isn't recommendable, please still send this to us. This is because that users might interact with such products historically, therefore it provides reasonably strong signals.
int32 is_recommendable = 5;getIsRecommendable 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getTitle()
Required. The product title.
string title = 6;getTitle 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
Required. The product title.
string title = 6;getTitleBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic double getQualityScore()
Optional. The product quality score. Note: this is different than user ratings. It is normally computed as a composite score considering many factors, including sales, customer feedback, information completeness, etc. This score should be normalized to [1.0, 5.0]
double quality_score = 7;getQualityScore 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic com.google.protobuf.ProtocolStringList getTagsList()
Optional. The tags given by the seller for this product. This is used to lift the performance. Sample values are: "New", "Summer", "Clearance", etc.
repeated string tags = 8;getTagsList 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic int getTagsCount()
Optional. The tags given by the seller for this product. This is used to lift the performance. Sample values are: "New", "Summer", "Clearance", etc.
repeated string tags = 8;getTagsCount 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic String getTags(int index)
Optional. The tags given by the seller for this product. This is used to lift the performance. Sample values are: "New", "Summer", "Clearance", etc.
repeated string tags = 8;getTags 在接口中 ByteplusSaasRetail.ProductOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTagsBytes(int index)
Optional. The tags given by the seller for this product. This is used to lift the performance. Sample values are: "New", "Summer", "Clearance", etc.
repeated string tags = 8;getTagsBytes 在接口中 ByteplusSaasRetail.ProductOrBuilderindex - The index of the value to return.public boolean hasDisplay()
Optional. The display information of the product.
.bytedance.byteplus.rec.retail.Product.Display display = 9;hasDisplay 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.Display getDisplay()
Optional. The display information of the product.
.bytedance.byteplus.rec.retail.Product.Display display = 9;getDisplay 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.DisplayOrBuilder getDisplayOrBuilder()
Optional. The display information of the product.
.bytedance.byteplus.rec.retail.Product.Display display = 9;public boolean hasProductSpec()
Optional. The product specs.
.bytedance.byteplus.rec.retail.Product.ProductSpec product_spec = 10;hasProductSpec 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.ProductSpec getProductSpec()
Optional. The product specs.
.bytedance.byteplus.rec.retail.Product.ProductSpec product_spec = 10;getProductSpec 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.ProductSpecOrBuilder getProductSpecOrBuilder()
Optional. The product specs.
.bytedance.byteplus.rec.retail.Product.ProductSpec product_spec = 10;public boolean hasSeller()
Optional. The seller proto.
.bytedance.byteplus.rec.retail.Product.Seller seller = 11;hasSeller 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.Seller getSeller()
Optional. The seller proto.
.bytedance.byteplus.rec.retail.Product.Seller seller = 11;getSeller 在接口中 ByteplusSaasRetail.ProductOrBuilderpublic ByteplusSaasRetail.Product.SellerOrBuilder getSellerOrBuilder()
Optional. The seller proto.
.bytedance.byteplus.rec.retail.Product.Seller seller = 11;public 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 © 2022. All rights reserved.