public final class Branch extends com.google.protobuf.GeneratedMessageV3 implements BranchOrBuilder
A data branch that stores all instances of [Product][google.cloud.retail.v2alpha.Product]s.Protobuf type
google.cloud.retail.v2alpha.Branch| Modifier and Type | Class and Description |
|---|---|
static class |
Branch.Builder
A data branch that stores all instances of
[Product][google.cloud.retail.v2alpha.Product]s.
|
static class |
Branch.ProductCountStatistic
A statistic about the number of products in a branch.
|
static interface |
Branch.ProductCountStatisticOrBuilder |
static class |
Branch.QualityMetric
Metric measured on a group of
[Product][google.cloud.retail.v2alpha.Product]s against a certain quality
requirement.
|
static interface |
Branch.QualityMetricOrBuilder |
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 |
DISPLAY_NAME_FIELD_NUMBER |
static int |
IS_DEFAULT_FIELD_NUMBER |
static int |
LAST_PRODUCT_IMPORT_TIME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PRODUCT_COUNT_STATS_FIELD_NUMBER |
static int |
QUALITY_METRICS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Branch |
getDefaultInstance() |
Branch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Output only.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Output only.
|
boolean |
getIsDefault()
Output only.
|
com.google.protobuf.Timestamp |
getLastProductImportTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getLastProductImportTimeOrBuilder()
Output only.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
com.google.protobuf.Parser<Branch> |
getParserForType() |
Branch.ProductCountStatistic |
getProductCountStats(int index)
Output only.
|
int |
getProductCountStatsCount()
Output only.
|
List<Branch.ProductCountStatistic> |
getProductCountStatsList()
Output only.
|
Branch.ProductCountStatisticOrBuilder |
getProductCountStatsOrBuilder(int index)
Output only.
|
List<? extends Branch.ProductCountStatisticOrBuilder> |
getProductCountStatsOrBuilderList()
Output only.
|
Branch.QualityMetric |
getQualityMetrics(int index)
Output only.
|
int |
getQualityMetricsCount()
Output only.
|
List<Branch.QualityMetric> |
getQualityMetricsList()
Output only.
|
Branch.QualityMetricOrBuilder |
getQualityMetricsOrBuilder(int index)
Output only.
|
List<? extends Branch.QualityMetricOrBuilder> |
getQualityMetricsOrBuilderList()
Output only.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasLastProductImportTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Branch.Builder |
newBuilder() |
static Branch.Builder |
newBuilder(Branch prototype) |
Branch.Builder |
newBuilderForType() |
protected Branch.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Branch |
parseDelimitedFrom(InputStream input) |
static Branch |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch |
parseFrom(byte[] data) |
static Branch |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch |
parseFrom(ByteBuffer data) |
static Branch |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch |
parseFrom(com.google.protobuf.ByteString data) |
static Branch |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Branch |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Branch |
parseFrom(InputStream input) |
static Branch |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Branch> |
parser() |
Branch.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 NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int IS_DEFAULT_FIELD_NUMBER
public static final int LAST_PRODUCT_IMPORT_TIME_FIELD_NUMBER
public static final int PRODUCT_COUNT_STATS_FIELD_NUMBER
public static final int QUALITY_METRICS_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 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];getName in interface BranchOrBuilderpublic 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];getNameBytes in interface BranchOrBuilderpublic String getDisplayName()
Output only. Human readable name of the branch to display in the UI.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getDisplayName in interface BranchOrBuilderpublic 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];getDisplayNameBytes in interface BranchOrBuilderpublic 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];getIsDefault in interface BranchOrBuilderpublic 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];
hasLastProductImportTime in interface BranchOrBuilderpublic 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];
getLastProductImportTime in interface BranchOrBuilderpublic 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];
getLastProductImportTimeOrBuilder in interface BranchOrBuilderpublic List<Branch.ProductCountStatistic> 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];
getProductCountStatsList in interface BranchOrBuilderpublic List<? extends Branch.ProductCountStatisticOrBuilder> 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];
getProductCountStatsOrBuilderList in interface BranchOrBuilderpublic 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];
getProductCountStatsCount in interface BranchOrBuilderpublic Branch.ProductCountStatistic getProductCountStats(int index)
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];
getProductCountStats in interface BranchOrBuilderpublic Branch.ProductCountStatisticOrBuilder getProductCountStatsOrBuilder(int index)
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];
getProductCountStatsOrBuilder in interface BranchOrBuilderpublic List<Branch.QualityMetric> 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];
getQualityMetricsList in interface BranchOrBuilderpublic List<? extends Branch.QualityMetricOrBuilder> 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];
getQualityMetricsOrBuilderList in interface BranchOrBuilderpublic 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];
getQualityMetricsCount in interface BranchOrBuilderpublic Branch.QualityMetric getQualityMetrics(int index)
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];
getQualityMetrics in interface BranchOrBuilderpublic Branch.QualityMetricOrBuilder getQualityMetricsOrBuilder(int index)
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];
getQualityMetricsOrBuilder in interface BranchOrBuilderpublic 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Branch parseFrom(InputStream input) throws IOException
IOExceptionpublic static Branch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Branch parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Branch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Branch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Branch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Branch.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Branch.Builder newBuilder()
public static Branch.Builder newBuilder(Branch prototype)
public Branch.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Branch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Branch getDefaultInstance()
public static com.google.protobuf.Parser<Branch> parser()
public com.google.protobuf.Parser<Branch> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Branch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.