public final class Branch extends GeneratedMessage implements BranchOrBuilder
A data branch that stores all instances of
Products.
Protobuf type google.cloud.retail.v2alpha.Branch
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Branch.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Branch.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Branch.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides