public final class Branch extends GeneratedMessageV3 implements BranchOrBuilder
A data branch that stores Products.
Protobuf type google.cloud.retail.v2alpha.Branch
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
IS_DEFAULT_FIELD_NUMBER
public static final int IS_DEFAULT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LAST_PRODUCT_IMPORT_TIME_FIELD_NUMBER
public static final int LAST_PRODUCT_IMPORT_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PRODUCT_COUNT_STATS_FIELD_NUMBER
public static final int PRODUCT_COUNT_STATS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
QUALITY_METRICS_FIELD_NUMBER
public static final int QUALITY_METRICS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Branch getDefaultInstance()
Returns |
Type |
Description |
Branch |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Branch.Builder newBuilder()
newBuilder(Branch prototype)
public static Branch.Builder newBuilder(Branch prototype)
Parameter |
Name |
Description |
prototype |
Branch
|
public static Branch parseDelimitedFrom(InputStream input)
Returns |
Type |
Description |
Branch |
|
public static Branch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Branch |
|
parseFrom(byte[] data)
public static Branch parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
Returns |
Type |
Description |
Branch |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Branch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Branch |
|
parseFrom(ByteString data)
public static Branch parseFrom(ByteString data)
Returns |
Type |
Description |
Branch |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Branch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Branch |
|
public static Branch parseFrom(CodedInputStream input)
Returns |
Type |
Description |
Branch |
|
public static Branch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Branch |
|
public static Branch parseFrom(InputStream input)
Returns |
Type |
Description |
Branch |
|
public static Branch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Branch |
|
parseFrom(ByteBuffer data)
public static Branch parseFrom(ByteBuffer data)
Returns |
Type |
Description |
Branch |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Branch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Returns |
Type |
Description |
Branch |
|
parser()
public static Parser<Branch> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Branch getDefaultInstanceForType()
Returns |
Type |
Description |
Branch |
|
getDisplayName()
public 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];
Returns |
Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public 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];
Returns |
Type |
Description |
ByteString |
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];
Returns |
Type |
Description |
boolean |
The isDefault.
|
getLastProductImportTime()
public Timestamp getLastProductImportTime()
Output only. Timestamp of last import through
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];
Returns |
Type |
Description |
Timestamp |
The lastProductImportTime.
|
getLastProductImportTimeOrBuilder()
public TimestampOrBuilder getLastProductImportTimeOrBuilder()
Output only. Timestamp of last import through
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];
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];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Branch> getParserForType()
Overrides
getProductCountStats(int index)
public Branch.ProductCountStatistic getProductCountStats(int index)
Output only. Statistics for number of products in the branch, provided for
different
scopes.
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];
Parameter |
Name |
Description |
index |
int
|
getProductCountStatsCount()
public int getProductCountStatsCount()
Output only. Statistics for number of products in the branch, provided for
different
scopes.
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];
Returns |
Type |
Description |
int |
|
getProductCountStatsList()
public List<Branch.ProductCountStatistic> getProductCountStatsList()
Output only. Statistics for number of products in the branch, provided for
different
scopes.
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(int index)
public Branch.ProductCountStatisticOrBuilder getProductCountStatsOrBuilder(int index)
Output only. Statistics for number of products in the branch, provided for
different
scopes.
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];
Parameter |
Name |
Description |
index |
int
|
getProductCountStatsOrBuilderList()
public List<? extends Branch.ProductCountStatisticOrBuilder> getProductCountStatsOrBuilderList()
Output only. Statistics for number of products in the branch, provided for
different
scopes.
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];
Returns |
Type |
Description |
List<? extends com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder> |
|
getQualityMetrics(int index)
public Branch.QualityMetric getQualityMetrics(int index)
Output only. The quality metrics measured among products of this branch.
See
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];
Parameter |
Name |
Description |
index |
int
|
getQualityMetricsCount()
public int getQualityMetricsCount()
Output only. The quality metrics measured among products of this branch.
See
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];
Returns |
Type |
Description |
int |
|
getQualityMetricsList()
public List<Branch.QualityMetric> getQualityMetricsList()
Output only. The quality metrics measured among products of this branch.
See
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(int index)
public Branch.QualityMetricOrBuilder getQualityMetricsOrBuilder(int index)
Output only. The quality metrics measured among products of this branch.
See
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];
Parameter |
Name |
Description |
index |
int
|
getQualityMetricsOrBuilderList()
public List<? extends Branch.QualityMetricOrBuilder> getQualityMetricsOrBuilderList()
Output only. The quality metrics measured among products of this branch.
See
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];
Returns |
Type |
Description |
List<? extends com.google.cloud.retail.v2alpha.Branch.QualityMetricOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasLastProductImportTime()
public boolean hasLastProductImportTime()
Output only. Timestamp of last import through
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];
Returns |
Type |
Description |
boolean |
Whether the lastProductImportTime field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Branch.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Branch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Branch.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides