public static final class Branch.QualityMetric extends com.google.protobuf.GeneratedMessageV3 implements Branch.QualityMetricOrBuilder
Metric measured on a group of [Product][google.cloud.retail.v2alpha.Product]s against a certain quality requirement. Contains the number of products that pass the check and the number of products that don't.Protobuf type
google.cloud.retail.v2alpha.Branch.QualityMetric| Modifier and Type | Class and Description |
|---|---|
static class |
Branch.QualityMetric.Builder
Metric measured on a group of
[Product][google.cloud.retail.v2alpha.Product]s against a certain quality
requirement.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
QUALIFIED_PRODUCT_COUNT_FIELD_NUMBER |
static int |
REQUIREMENT_KEY_FIELD_NUMBER |
static int |
SUGGESTED_QUALITY_PERCENT_THRESHOLD_FIELD_NUMBER |
static int |
UNQUALIFIED_PRODUCT_COUNT_FIELD_NUMBER |
static int |
UNQUALIFIED_SAMPLE_PRODUCTS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Branch.QualityMetric |
getDefaultInstance() |
Branch.QualityMetric |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Branch.QualityMetric> |
getParserForType() |
int |
getQualifiedProductCount()
Number of products passing the quality requirement check.
|
String |
getRequirementKey()
The key that represents a quality requirement rule.
|
com.google.protobuf.ByteString |
getRequirementKeyBytes()
The key that represents a quality requirement rule.
|
int |
getSerializedSize() |
double |
getSuggestedQualityPercentThreshold()
Value from 0 to 100 representing the suggested percentage of products
that meet the quality requirements to get good search and recommendation
performance. 100 * (qualified_product_count) /
(qualified_product_count + unqualified_product_count) should be greater
or equal to this suggestion.
|
int |
getUnqualifiedProductCount()
Number of products failing the quality requirement check.
|
Product |
getUnqualifiedSampleProducts(int index)
A list of a maximum of 100 sample products that do not qualify for
this requirement.
|
int |
getUnqualifiedSampleProductsCount()
A list of a maximum of 100 sample products that do not qualify for
this requirement.
|
List<Product> |
getUnqualifiedSampleProductsList()
A list of a maximum of 100 sample products that do not qualify for
this requirement.
|
ProductOrBuilder |
getUnqualifiedSampleProductsOrBuilder(int index)
A list of a maximum of 100 sample products that do not qualify for
this requirement.
|
List<? extends ProductOrBuilder> |
getUnqualifiedSampleProductsOrBuilderList()
A list of a maximum of 100 sample products that do not qualify for
this requirement.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Branch.QualityMetric.Builder |
newBuilder() |
static Branch.QualityMetric.Builder |
newBuilder(Branch.QualityMetric prototype) |
Branch.QualityMetric.Builder |
newBuilderForType() |
protected Branch.QualityMetric.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Branch.QualityMetric |
parseDelimitedFrom(InputStream input) |
static Branch.QualityMetric |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch.QualityMetric |
parseFrom(byte[] data) |
static Branch.QualityMetric |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch.QualityMetric |
parseFrom(ByteBuffer data) |
static Branch.QualityMetric |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch.QualityMetric |
parseFrom(com.google.protobuf.ByteString data) |
static Branch.QualityMetric |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch.QualityMetric |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Branch.QualityMetric |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch.QualityMetric |
parseFrom(InputStream input) |
static Branch.QualityMetric |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Branch.QualityMetric> |
parser() |
Branch.QualityMetric.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int REQUIREMENT_KEY_FIELD_NUMBER
public static final int QUALIFIED_PRODUCT_COUNT_FIELD_NUMBER
public static final int UNQUALIFIED_PRODUCT_COUNT_FIELD_NUMBER
public static final int SUGGESTED_QUALITY_PERCENT_THRESHOLD_FIELD_NUMBER
public static final int UNQUALIFIED_SAMPLE_PRODUCTS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getRequirementKey()
The key that represents a quality requirement rule. Supported keys: * "has-valid-uri": product has a valid and accessible [uri][google.cloud.retail.v2alpha.Product.uri]. * "available-expire-time-conformance": [Product.available_time][google.cloud.retail.v2alpha.Product.available_time] is early than "now", and [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is greater than "now". * "has-searchable-attributes": product has at least one [attribute][google.cloud.retail.v2alpha.Product.attributes] set to searchable. * "has-description": product has non-empty [description][google.cloud.retail.v2alpha.Product.description]. * "has-at-least-bigram-title": Product [title][google.cloud.retail.v2alpha.Product.title] has at least two words. A comprehensive title helps to improve search quality. * "variant-has-image": the [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has at least one [image][google.cloud.retail.v2alpha.Product.images]. You may ignore this metric if all your products are at [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level. * "variant-has-price-info": the [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may ignore this metric if all your products are at [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level. * "has-publish-time": product has non-empty [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
string requirement_key = 1;getRequirementKey in interface Branch.QualityMetricOrBuilderpublic com.google.protobuf.ByteString getRequirementKeyBytes()
The key that represents a quality requirement rule. Supported keys: * "has-valid-uri": product has a valid and accessible [uri][google.cloud.retail.v2alpha.Product.uri]. * "available-expire-time-conformance": [Product.available_time][google.cloud.retail.v2alpha.Product.available_time] is early than "now", and [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is greater than "now". * "has-searchable-attributes": product has at least one [attribute][google.cloud.retail.v2alpha.Product.attributes] set to searchable. * "has-description": product has non-empty [description][google.cloud.retail.v2alpha.Product.description]. * "has-at-least-bigram-title": Product [title][google.cloud.retail.v2alpha.Product.title] has at least two words. A comprehensive title helps to improve search quality. * "variant-has-image": the [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has at least one [image][google.cloud.retail.v2alpha.Product.images]. You may ignore this metric if all your products are at [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level. * "variant-has-price-info": the [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may ignore this metric if all your products are at [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level. * "has-publish-time": product has non-empty [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
string requirement_key = 1;getRequirementKeyBytes in interface Branch.QualityMetricOrBuilderpublic int getQualifiedProductCount()
Number of products passing the quality requirement check. We only check searchable products.
int32 qualified_product_count = 2;getQualifiedProductCount in interface Branch.QualityMetricOrBuilderpublic int getUnqualifiedProductCount()
Number of products failing the quality requirement check. We only check searchable products.
int32 unqualified_product_count = 3;getUnqualifiedProductCount in interface Branch.QualityMetricOrBuilderpublic double getSuggestedQualityPercentThreshold()
Value from 0 to 100 representing the suggested percentage of products that meet the quality requirements to get good search and recommendation performance. 100 * (qualified_product_count) / (qualified_product_count + unqualified_product_count) should be greater or equal to this suggestion.
double suggested_quality_percent_threshold = 4;getSuggestedQualityPercentThreshold in interface Branch.QualityMetricOrBuilderpublic List<Product> getUnqualifiedSampleProductsList()
A list of a maximum of 100 sample products that do not qualify for this requirement. This field is only populated in the response to [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch] API, and is always empty for [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]. Only the following fields are set in the [Product][google.cloud.retail.v2alpha.Product]. * [Product.name][google.cloud.retail.v2alpha.Product.name] * [Product.id][google.cloud.retail.v2alpha.Product.id] * [Product.title][google.cloud.retail.v2alpha.Product.title]
repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5;getUnqualifiedSampleProductsList in interface Branch.QualityMetricOrBuilderpublic List<? extends ProductOrBuilder> getUnqualifiedSampleProductsOrBuilderList()
A list of a maximum of 100 sample products that do not qualify for this requirement. This field is only populated in the response to [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch] API, and is always empty for [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]. Only the following fields are set in the [Product][google.cloud.retail.v2alpha.Product]. * [Product.name][google.cloud.retail.v2alpha.Product.name] * [Product.id][google.cloud.retail.v2alpha.Product.id] * [Product.title][google.cloud.retail.v2alpha.Product.title]
repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5;getUnqualifiedSampleProductsOrBuilderList in interface Branch.QualityMetricOrBuilderpublic int getUnqualifiedSampleProductsCount()
A list of a maximum of 100 sample products that do not qualify for this requirement. This field is only populated in the response to [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch] API, and is always empty for [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]. Only the following fields are set in the [Product][google.cloud.retail.v2alpha.Product]. * [Product.name][google.cloud.retail.v2alpha.Product.name] * [Product.id][google.cloud.retail.v2alpha.Product.id] * [Product.title][google.cloud.retail.v2alpha.Product.title]
repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5;getUnqualifiedSampleProductsCount in interface Branch.QualityMetricOrBuilderpublic Product getUnqualifiedSampleProducts(int index)
A list of a maximum of 100 sample products that do not qualify for this requirement. This field is only populated in the response to [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch] API, and is always empty for [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]. Only the following fields are set in the [Product][google.cloud.retail.v2alpha.Product]. * [Product.name][google.cloud.retail.v2alpha.Product.name] * [Product.id][google.cloud.retail.v2alpha.Product.id] * [Product.title][google.cloud.retail.v2alpha.Product.title]
repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5;getUnqualifiedSampleProducts in interface Branch.QualityMetricOrBuilderpublic ProductOrBuilder getUnqualifiedSampleProductsOrBuilder(int index)
A list of a maximum of 100 sample products that do not qualify for this requirement. This field is only populated in the response to [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch] API, and is always empty for [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]. Only the following fields are set in the [Product][google.cloud.retail.v2alpha.Product]. * [Product.name][google.cloud.retail.v2alpha.Product.name] * [Product.id][google.cloud.retail.v2alpha.Product.id] * [Product.title][google.cloud.retail.v2alpha.Product.title]
repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5;getUnqualifiedSampleProductsOrBuilder in interface Branch.QualityMetricOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Branch.QualityMetric parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch.QualityMetric parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch.QualityMetric parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch.QualityMetric parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch.QualityMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch.QualityMetric parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch.QualityMetric parseFrom(InputStream input) throws IOException
IOExceptionpublic static Branch.QualityMetric parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Branch.QualityMetric parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Branch.QualityMetric parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Branch.QualityMetric parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Branch.QualityMetric parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Branch.QualityMetric.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Branch.QualityMetric.Builder newBuilder()
public static Branch.QualityMetric.Builder newBuilder(Branch.QualityMetric prototype)
public Branch.QualityMetric.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Branch.QualityMetric.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Branch.QualityMetric getDefaultInstance()
public static com.google.protobuf.Parser<Branch.QualityMetric> parser()
public com.google.protobuf.Parser<Branch.QualityMetric> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Branch.QualityMetric getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.