Package com.google.cloud.retail.v2alpha
Class Branch
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.Branch
- All Implemented Interfaces:
BranchOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Branch
extends com.google.protobuf.GeneratedMessage
implements BranchOrBuilder
A data branch that stores all instances of [Product][google.cloud.retail.v2alpha.Product]s.Protobuf type
google.cloud.retail.v2alpha.Branch- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA data branch that stores all instances of [Product][google.cloud.retail.v2alpha.Product]s.static final classA statistic about the number of products in a branch.static interfacestatic final classMetric measured on a group of [Product][google.cloud.retail.v2alpha.Product]s against a certain quality requirement.static interfaceNested 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 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 Branchstatic final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.booleanOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getName()Immutable.com.google.protobuf.ByteStringImmutable.com.google.protobuf.Parser<Branch>getProductCountStats(int index) Output only.intOutput only.Output only.getProductCountStatsOrBuilder(int index) Output only.List<? extends Branch.ProductCountStatisticOrBuilder>Output only.getQualityMetrics(int index) Output only.intOutput only.Output only.getQualityMetricsOrBuilder(int index) Output only.List<? extends Branch.QualityMetricOrBuilder>Output only.intinthashCode()booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Branch.Builderstatic Branch.BuildernewBuilder(Branch prototype) protected Branch.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BranchparseDelimitedFrom(InputStream input) static BranchparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BranchparseFrom(byte[] data) static BranchparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BranchparseFrom(com.google.protobuf.ByteString data) static BranchparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BranchparseFrom(com.google.protobuf.CodedInputStream input) static BranchparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BranchparseFrom(InputStream input) static BranchparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BranchparseFrom(ByteBuffer data) static BranchparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Branch>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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
IS_DEFAULT_FIELD_NUMBER
public static final int IS_DEFAULT_FIELD_NUMBER- See Also:
-
LAST_PRODUCT_IMPORT_TIME_FIELD_NUMBER
public static final int LAST_PRODUCT_IMPORT_TIME_FIELD_NUMBER- See Also:
-
PRODUCT_COUNT_STATS_FIELD_NUMBER
public static final int PRODUCT_COUNT_STATS_FIELD_NUMBER- See Also:
-
QUALITY_METRICS_FIELD_NUMBER
public static final int QUALITY_METRICS_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
-
getName
Immutable. Full resource name of the branch, such as `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceBranchOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Immutable. Full resource name of the branch, such as `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceBranchOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Output only. Human readable name of the branch to display in the UI.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNamein interfaceBranchOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Output only. Human readable name of the branch to display in the UI.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNameBytesin interfaceBranchOrBuilder- Returns:
- The bytes for displayName.
-
getIsDefault
public boolean getIsDefault()Output only. Indicates whether this branch is set as the default branch of its parent catalog.
bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIsDefaultin interfaceBranchOrBuilder- Returns:
- The isDefault.
-
hasLastProductImportTime
public boolean hasLastProductImportTime()Output only. Timestamp of last import through [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts]. Empty value means no import has been made to this branch.
.google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasLastProductImportTimein interfaceBranchOrBuilder- Returns:
- Whether the lastProductImportTime field is set.
-
getLastProductImportTime
public com.google.protobuf.Timestamp getLastProductImportTime()Output only. Timestamp of last import through [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts]. Empty value means no import has been made to this branch.
.google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastProductImportTimein interfaceBranchOrBuilder- Returns:
- The lastProductImportTime.
-
getLastProductImportTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastProductImportTimeOrBuilder()Output only. Timestamp of last import through [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts]. Empty value means no import has been made to this branch.
.google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastProductImportTimeOrBuilderin interfaceBranchOrBuilder
-
getProductCountStatsList
Output only. Statistics for number of products in the branch, provided for different [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope]. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProductCountStatsListin interfaceBranchOrBuilder
-
getProductCountStatsOrBuilderList
Output only. Statistics for number of products in the branch, provided for different [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope]. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProductCountStatsOrBuilderListin interfaceBranchOrBuilder
-
getProductCountStatsCount
public int getProductCountStatsCount()Output only. Statistics for number of products in the branch, provided for different [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope]. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProductCountStatsCountin interfaceBranchOrBuilder
-
getProductCountStats
Output only. Statistics for number of products in the branch, provided for different [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope]. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProductCountStatsin interfaceBranchOrBuilder
-
getProductCountStatsOrBuilder
Output only. Statistics for number of products in the branch, provided for different [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope]. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProductCountStatsOrBuilderin interfaceBranchOrBuilder
-
getQualityMetricsList
Output only. The quality metrics measured among products of this branch. See [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key] for supported metrics. Metrics could be missing if failed to retrieve. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQualityMetricsListin interfaceBranchOrBuilder
-
getQualityMetricsOrBuilderList
Output only. The quality metrics measured among products of this branch. See [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key] for supported metrics. Metrics could be missing if failed to retrieve. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQualityMetricsOrBuilderListin interfaceBranchOrBuilder
-
getQualityMetricsCount
public int getQualityMetricsCount()Output only. The quality metrics measured among products of this branch. See [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key] for supported metrics. Metrics could be missing if failed to retrieve. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQualityMetricsCountin interfaceBranchOrBuilder
-
getQualityMetrics
Output only. The quality metrics measured among products of this branch. See [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key] for supported metrics. Metrics could be missing if failed to retrieve. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQualityMetricsin interfaceBranchOrBuilder
-
getQualityMetricsOrBuilder
Output only. The quality metrics measured among products of this branch. See [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key] for supported metrics. Metrics could be missing if failed to retrieve. This field is not populated in [BranchView.BASIC][] view.
repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getQualityMetricsOrBuilderin interfaceBranchOrBuilder
-
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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Branch 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 parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Branch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Branch 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.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
-