Package com.google.cloud.retail.v2alpha
Class Branch.QualityMetric
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.Branch.QualityMetric
- All Implemented Interfaces:
Branch.QualityMetricOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Branch
public static final class Branch.QualityMetric
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetric measured on a group of [Product][google.cloud.retail.v2alpha.Product]s against a certain quality requirement.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Branch.QualityMetricstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<Branch.QualityMetric>intNumber of products passing the quality requirement check.The key that represents a quality requirement rule.com.google.protobuf.ByteStringThe key that represents a quality requirement rule.intdoubleValue 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.intNumber of products failing the quality requirement check.getUnqualifiedSampleProducts(int index) A list of a maximum of 100 sample products that do not qualify for this requirement.intA list of a maximum of 100 sample products that do not qualify for this requirement.A list of a maximum of 100 sample products that do not qualify for this requirement.getUnqualifiedSampleProductsOrBuilder(int index) A list of a maximum of 100 sample products that do not qualify for this requirement.List<? extends ProductOrBuilder>A list of a maximum of 100 sample products that do not qualify for this requirement.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Branch.QualityMetric.Builderstatic Branch.QualityMetric.BuildernewBuilder(Branch.QualityMetric prototype) protected Branch.QualityMetric.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Branch.QualityMetricparseDelimitedFrom(InputStream input) static Branch.QualityMetricparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Branch.QualityMetricparseFrom(byte[] data) static Branch.QualityMetricparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Branch.QualityMetricparseFrom(com.google.protobuf.ByteString data) static Branch.QualityMetricparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Branch.QualityMetricparseFrom(com.google.protobuf.CodedInputStream input) static Branch.QualityMetricparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Branch.QualityMetricparseFrom(InputStream input) static Branch.QualityMetricparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Branch.QualityMetricparseFrom(ByteBuffer data) static Branch.QualityMetricparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Branch.QualityMetric>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
REQUIREMENT_KEY_FIELD_NUMBER
public static final int REQUIREMENT_KEY_FIELD_NUMBER- See Also:
-
QUALIFIED_PRODUCT_COUNT_FIELD_NUMBER
public static final int QUALIFIED_PRODUCT_COUNT_FIELD_NUMBER- See Also:
-
UNQUALIFIED_PRODUCT_COUNT_FIELD_NUMBER
public static final int UNQUALIFIED_PRODUCT_COUNT_FIELD_NUMBER- See Also:
-
SUGGESTED_QUALITY_PERCENT_THRESHOLD_FIELD_NUMBER
public static final int SUGGESTED_QUALITY_PERCENT_THRESHOLD_FIELD_NUMBER- See Also:
-
UNQUALIFIED_SAMPLE_PRODUCTS_FIELD_NUMBER
public static final int UNQUALIFIED_SAMPLE_PRODUCTS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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;- Specified by:
getRequirementKeyin interfaceBranch.QualityMetricOrBuilder- Returns:
- The requirementKey.
-
getRequirementKeyBytes
public 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;- Specified by:
getRequirementKeyBytesin interfaceBranch.QualityMetricOrBuilder- Returns:
- The bytes for requirementKey.
-
getQualifiedProductCount
public int getQualifiedProductCount()Number of products passing the quality requirement check. We only check searchable products.
int32 qualified_product_count = 2;- Specified by:
getQualifiedProductCountin interfaceBranch.QualityMetricOrBuilder- Returns:
- The qualifiedProductCount.
-
getUnqualifiedProductCount
public int getUnqualifiedProductCount()Number of products failing the quality requirement check. We only check searchable products.
int32 unqualified_product_count = 3;- Specified by:
getUnqualifiedProductCountin interfaceBranch.QualityMetricOrBuilder- Returns:
- The unqualifiedProductCount.
-
getSuggestedQualityPercentThreshold
public 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;- Specified by:
getSuggestedQualityPercentThresholdin interfaceBranch.QualityMetricOrBuilder- Returns:
- The suggestedQualityPercentThreshold.
-
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;- Specified by:
getUnqualifiedSampleProductsListin interfaceBranch.QualityMetricOrBuilder
-
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;- Specified by:
getUnqualifiedSampleProductsOrBuilderListin interfaceBranch.QualityMetricOrBuilder
-
getUnqualifiedSampleProductsCount
public 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;- Specified by:
getUnqualifiedSampleProductsCountin interfaceBranch.QualityMetricOrBuilder
-
getUnqualifiedSampleProducts
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;- Specified by:
getUnqualifiedSampleProductsin interfaceBranch.QualityMetricOrBuilder
-
getUnqualifiedSampleProductsOrBuilder
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;- Specified by:
getUnqualifiedSampleProductsOrBuilderin interfaceBranch.QualityMetricOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Branch.QualityMetric parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch.QualityMetric parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch.QualityMetric parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch.QualityMetric parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch.QualityMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch.QualityMetric parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Branch.QualityMetric parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Branch.QualityMetric parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Branch.QualityMetric parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Branch.QualityMetric parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Branch.QualityMetric.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-