Class BestSellersProductClusterView.Builder (0.6.0)

public static final class BestSellersProductClusterView.Builder extends GeneratedMessageV3.Builder<BestSellersProductClusterView.Builder> implements BestSellersProductClusterViewOrBuilder

Fields available for query in best_sellers_product_cluster_view table.

Best sellers report with top product clusters. A product cluster is a grouping for different offers and variants that represent the same product, for example, Google Pixel 7.

Values are only set for fields requested explicitly in the request's search query.

Protobuf type google.shopping.merchant.reports.v1beta.BestSellersProductClusterView

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllVariantGtins(Iterable<String> values)

public BestSellersProductClusterView.Builder addAllVariantGtins(Iterable<String> values)

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Parameter
NameDescription
valuesIterable<String>

The variantGtins to add.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BestSellersProductClusterView.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

addVariantGtins(String value)

public BestSellersProductClusterView.Builder addVariantGtins(String value)

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Parameter
NameDescription
valueString

The variantGtins to add.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

addVariantGtinsBytes(ByteString value)

public BestSellersProductClusterView.Builder addVariantGtinsBytes(ByteString value)

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Parameter
NameDescription
valueByteString

The bytes of the variantGtins to add.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

build()

public BestSellersProductClusterView build()
Returns
TypeDescription
BestSellersProductClusterView

buildPartial()

public BestSellersProductClusterView buildPartial()
Returns
TypeDescription
BestSellersProductClusterView

clear()

public BestSellersProductClusterView.Builder clear()
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

clearBrand()

public BestSellersProductClusterView.Builder clearBrand()

Brand of the product cluster.

optional string brand = 7;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearBrandInventoryStatus()

public BestSellersProductClusterView.Builder clearBrandInventoryStatus()

Whether there is at least one product of the brand currently IN_STOCK in your product feed in at least one of the countries, all products are OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearCategoryL1()

public BestSellersProductClusterView.Builder clearCategoryL1()

Product category (1st level) of the product cluster, represented in Google's product taxonomy.

optional string category_l1 = 8;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearCategoryL2()

public BestSellersProductClusterView.Builder clearCategoryL2()

Product category (2nd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l2 = 9;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearCategoryL3()

public BestSellersProductClusterView.Builder clearCategoryL3()

Product category (3rd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l3 = 10;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearCategoryL4()

public BestSellersProductClusterView.Builder clearCategoryL4()

Product category (4th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l4 = 11;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearCategoryL5()

public BestSellersProductClusterView.Builder clearCategoryL5()

Product category (5th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l5 = 12;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BestSellersProductClusterView.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

clearInventoryStatus()

public BestSellersProductClusterView.Builder clearInventoryStatus()

Whether the product cluster is IN_STOCK in your product feed in at least one of the countries, OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY at all.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus inventory_status = 14;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BestSellersProductClusterView.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

clearPreviousRank()

public BestSellersProductClusterView.Builder clearPreviousRank()

Popularity rank in the previous week or month.

optional int64 previous_rank = 17;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearPreviousRelativeDemand()

public BestSellersProductClusterView.Builder clearPreviousRelativeDemand()

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country in the previous week or month.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearRank()

public BestSellersProductClusterView.Builder clearRank()

Popularity of the product cluster on Ads and organic surfaces, in the selected category and country, based on the estimated number of units sold.

optional int64 rank = 16;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearRelativeDemand()

public BestSellersProductClusterView.Builder clearRelativeDemand()

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearRelativeDemandChange()

public BestSellersProductClusterView.Builder clearRelativeDemandChange()

Change in the estimated demand. Whether it rose, sank or remained flat.

optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearReportCategoryId()

public BestSellersProductClusterView.Builder clearReportCategoryId()

Google product category ID to calculate the ranking for, represented in Google's product taxonomy.

Required in the SELECT clause. If a WHERE condition on report_category_id is not specified in the query, rankings for all top-level categories are returned.

optional int64 report_category_id = 4;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearReportCountryCode()

public BestSellersProductClusterView.Builder clearReportCountryCode()

Country where the ranking is calculated. Represented in the ISO 3166 format.

Required in the SELECT clause. Condition on report_country_code is required in the WHERE clause.

optional string report_country_code = 3;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearReportDate()

public BestSellersProductClusterView.Builder clearReportDate()

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

    Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

.google.type.Date report_date = 1;

Returns
TypeDescription
BestSellersProductClusterView.Builder

clearReportGranularity()

public BestSellersProductClusterView.Builder clearReportGranularity()

Granularity of the report. The ranking can be done over a week or a month timeframe.

Required in the SELECT clause. Condition on report_granularity is required in the WHERE clause.

optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearTitle()

public BestSellersProductClusterView.Builder clearTitle()

Title of the product cluster.

optional string title = 6;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clearVariantGtins()

public BestSellersProductClusterView.Builder clearVariantGtins()

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

clone()

public BestSellersProductClusterView.Builder clone()
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

getBrand()

public String getBrand()

Brand of the product cluster.

optional string brand = 7;

Returns
TypeDescription
String

The brand.

getBrandBytes()

public ByteString getBrandBytes()

Brand of the product cluster.

optional string brand = 7;

Returns
TypeDescription
ByteString

The bytes for brand.

getBrandInventoryStatus()

public BestSellersProductClusterView.InventoryStatus getBrandInventoryStatus()

Whether there is at least one product of the brand currently IN_STOCK in your product feed in at least one of the countries, all products are OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15;

Returns
TypeDescription
BestSellersProductClusterView.InventoryStatus

The brandInventoryStatus.

getBrandInventoryStatusValue()

public int getBrandInventoryStatusValue()

Whether there is at least one product of the brand currently IN_STOCK in your product feed in at least one of the countries, all products are OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15;

Returns
TypeDescription
int

The enum numeric value on the wire for brandInventoryStatus.

getCategoryL1()

public String getCategoryL1()

Product category (1st level) of the product cluster, represented in Google's product taxonomy.

optional string category_l1 = 8;

Returns
TypeDescription
String

The categoryL1.

getCategoryL1Bytes()

public ByteString getCategoryL1Bytes()

Product category (1st level) of the product cluster, represented in Google's product taxonomy.

optional string category_l1 = 8;

Returns
TypeDescription
ByteString

The bytes for categoryL1.

getCategoryL2()

public String getCategoryL2()

Product category (2nd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l2 = 9;

Returns
TypeDescription
String

The categoryL2.

getCategoryL2Bytes()

public ByteString getCategoryL2Bytes()

Product category (2nd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l2 = 9;

Returns
TypeDescription
ByteString

The bytes for categoryL2.

getCategoryL3()

public String getCategoryL3()

Product category (3rd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l3 = 10;

Returns
TypeDescription
String

The categoryL3.

getCategoryL3Bytes()

public ByteString getCategoryL3Bytes()

Product category (3rd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l3 = 10;

Returns
TypeDescription
ByteString

The bytes for categoryL3.

getCategoryL4()

public String getCategoryL4()

Product category (4th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l4 = 11;

Returns
TypeDescription
String

The categoryL4.

getCategoryL4Bytes()

public ByteString getCategoryL4Bytes()

Product category (4th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l4 = 11;

Returns
TypeDescription
ByteString

The bytes for categoryL4.

getCategoryL5()

public String getCategoryL5()

Product category (5th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l5 = 12;

Returns
TypeDescription
String

The categoryL5.

getCategoryL5Bytes()

public ByteString getCategoryL5Bytes()

Product category (5th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l5 = 12;

Returns
TypeDescription
ByteString

The bytes for categoryL5.

getDefaultInstanceForType()

public BestSellersProductClusterView getDefaultInstanceForType()
Returns
TypeDescription
BestSellersProductClusterView

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInventoryStatus()

public BestSellersProductClusterView.InventoryStatus getInventoryStatus()

Whether the product cluster is IN_STOCK in your product feed in at least one of the countries, OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY at all.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus inventory_status = 14;

Returns
TypeDescription
BestSellersProductClusterView.InventoryStatus

The inventoryStatus.

getInventoryStatusValue()

public int getInventoryStatusValue()

Whether the product cluster is IN_STOCK in your product feed in at least one of the countries, OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY at all.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus inventory_status = 14;

Returns
TypeDescription
int

The enum numeric value on the wire for inventoryStatus.

getPreviousRank()

public long getPreviousRank()

Popularity rank in the previous week or month.

optional int64 previous_rank = 17;

Returns
TypeDescription
long

The previousRank.

getPreviousRelativeDemand()

public RelativeDemand.RelativeDemandEnum getPreviousRelativeDemand()

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country in the previous week or month.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19;

Returns
TypeDescription
RelativeDemand.RelativeDemandEnum

The previousRelativeDemand.

getPreviousRelativeDemandValue()

public int getPreviousRelativeDemandValue()

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country in the previous week or month.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19;

Returns
TypeDescription
int

The enum numeric value on the wire for previousRelativeDemand.

getRank()

public long getRank()

Popularity of the product cluster on Ads and organic surfaces, in the selected category and country, based on the estimated number of units sold.

optional int64 rank = 16;

Returns
TypeDescription
long

The rank.

getRelativeDemand()

public RelativeDemand.RelativeDemandEnum getRelativeDemand()

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18;

Returns
TypeDescription
RelativeDemand.RelativeDemandEnum

The relativeDemand.

getRelativeDemandChange()

public RelativeDemandChangeType.RelativeDemandChangeTypeEnum getRelativeDemandChange()

Change in the estimated demand. Whether it rose, sank or remained flat.

optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20;

Returns
TypeDescription
RelativeDemandChangeType.RelativeDemandChangeTypeEnum

The relativeDemandChange.

getRelativeDemandChangeValue()

public int getRelativeDemandChangeValue()

Change in the estimated demand. Whether it rose, sank or remained flat.

optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20;

Returns
TypeDescription
int

The enum numeric value on the wire for relativeDemandChange.

getRelativeDemandValue()

public int getRelativeDemandValue()

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18;

Returns
TypeDescription
int

The enum numeric value on the wire for relativeDemand.

getReportCategoryId()

public long getReportCategoryId()

Google product category ID to calculate the ranking for, represented in Google's product taxonomy.

Required in the SELECT clause. If a WHERE condition on report_category_id is not specified in the query, rankings for all top-level categories are returned.

optional int64 report_category_id = 4;

Returns
TypeDescription
long

The reportCategoryId.

getReportCountryCode()

public String getReportCountryCode()

Country where the ranking is calculated. Represented in the ISO 3166 format.

Required in the SELECT clause. Condition on report_country_code is required in the WHERE clause.

optional string report_country_code = 3;

Returns
TypeDescription
String

The reportCountryCode.

getReportCountryCodeBytes()

public ByteString getReportCountryCodeBytes()

Country where the ranking is calculated. Represented in the ISO 3166 format.

Required in the SELECT clause. Condition on report_country_code is required in the WHERE clause.

optional string report_country_code = 3;

Returns
TypeDescription
ByteString

The bytes for reportCountryCode.

getReportDate()

public Date getReportDate()

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

    Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

.google.type.Date report_date = 1;

Returns
TypeDescription
com.google.type.Date

The reportDate.

getReportDateBuilder()

public Date.Builder getReportDateBuilder()

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

    Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

.google.type.Date report_date = 1;

Returns
TypeDescription
com.google.type.Date.Builder

getReportDateOrBuilder()

public DateOrBuilder getReportDateOrBuilder()

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

    Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

.google.type.Date report_date = 1;

Returns
TypeDescription
com.google.type.DateOrBuilder

getReportGranularity()

public ReportGranularity.ReportGranularityEnum getReportGranularity()

Granularity of the report. The ranking can be done over a week or a month timeframe.

Required in the SELECT clause. Condition on report_granularity is required in the WHERE clause.

optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2;

Returns
TypeDescription
ReportGranularity.ReportGranularityEnum

The reportGranularity.

getReportGranularityValue()

public int getReportGranularityValue()

Granularity of the report. The ranking can be done over a week or a month timeframe.

Required in the SELECT clause. Condition on report_granularity is required in the WHERE clause.

optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for reportGranularity.

getTitle()

public String getTitle()

Title of the product cluster.

optional string title = 6;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Title of the product cluster.

optional string title = 6;

Returns
TypeDescription
ByteString

The bytes for title.

getVariantGtins(int index)

public String getVariantGtins(int index)

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The variantGtins at the given index.

getVariantGtinsBytes(int index)

public ByteString getVariantGtinsBytes(int index)

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the variantGtins at the given index.

getVariantGtinsCount()

public int getVariantGtinsCount()

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Returns
TypeDescription
int

The count of variantGtins.

getVariantGtinsList()

public ProtocolStringList getVariantGtinsList()

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Returns
TypeDescription
ProtocolStringList

A list containing the variantGtins.

hasBrand()

public boolean hasBrand()

Brand of the product cluster.

optional string brand = 7;

Returns
TypeDescription
boolean

Whether the brand field is set.

hasBrandInventoryStatus()

public boolean hasBrandInventoryStatus()

Whether there is at least one product of the brand currently IN_STOCK in your product feed in at least one of the countries, all products are OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15;

Returns
TypeDescription
boolean

Whether the brandInventoryStatus field is set.

hasCategoryL1()

public boolean hasCategoryL1()

Product category (1st level) of the product cluster, represented in Google's product taxonomy.

optional string category_l1 = 8;

Returns
TypeDescription
boolean

Whether the categoryL1 field is set.

hasCategoryL2()

public boolean hasCategoryL2()

Product category (2nd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l2 = 9;

Returns
TypeDescription
boolean

Whether the categoryL2 field is set.

hasCategoryL3()

public boolean hasCategoryL3()

Product category (3rd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l3 = 10;

Returns
TypeDescription
boolean

Whether the categoryL3 field is set.

hasCategoryL4()

public boolean hasCategoryL4()

Product category (4th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l4 = 11;

Returns
TypeDescription
boolean

Whether the categoryL4 field is set.

hasCategoryL5()

public boolean hasCategoryL5()

Product category (5th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l5 = 12;

Returns
TypeDescription
boolean

Whether the categoryL5 field is set.

hasInventoryStatus()

public boolean hasInventoryStatus()

Whether the product cluster is IN_STOCK in your product feed in at least one of the countries, OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY at all.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus inventory_status = 14;

Returns
TypeDescription
boolean

Whether the inventoryStatus field is set.

hasPreviousRank()

public boolean hasPreviousRank()

Popularity rank in the previous week or month.

optional int64 previous_rank = 17;

Returns
TypeDescription
boolean

Whether the previousRank field is set.

hasPreviousRelativeDemand()

public boolean hasPreviousRelativeDemand()

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country in the previous week or month.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19;

Returns
TypeDescription
boolean

Whether the previousRelativeDemand field is set.

hasRank()

public boolean hasRank()

Popularity of the product cluster on Ads and organic surfaces, in the selected category and country, based on the estimated number of units sold.

optional int64 rank = 16;

Returns
TypeDescription
boolean

Whether the rank field is set.

hasRelativeDemand()

public boolean hasRelativeDemand()

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18;

Returns
TypeDescription
boolean

Whether the relativeDemand field is set.

hasRelativeDemandChange()

public boolean hasRelativeDemandChange()

Change in the estimated demand. Whether it rose, sank or remained flat.

optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20;

Returns
TypeDescription
boolean

Whether the relativeDemandChange field is set.

hasReportCategoryId()

public boolean hasReportCategoryId()

Google product category ID to calculate the ranking for, represented in Google's product taxonomy.

Required in the SELECT clause. If a WHERE condition on report_category_id is not specified in the query, rankings for all top-level categories are returned.

optional int64 report_category_id = 4;

Returns
TypeDescription
boolean

Whether the reportCategoryId field is set.

hasReportCountryCode()

public boolean hasReportCountryCode()

Country where the ranking is calculated. Represented in the ISO 3166 format.

Required in the SELECT clause. Condition on report_country_code is required in the WHERE clause.

optional string report_country_code = 3;

Returns
TypeDescription
boolean

Whether the reportCountryCode field is set.

hasReportDate()

public boolean hasReportDate()

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

    Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

.google.type.Date report_date = 1;

Returns
TypeDescription
boolean

Whether the reportDate field is set.

hasReportGranularity()

public boolean hasReportGranularity()

Granularity of the report. The ranking can be done over a week or a month timeframe.

Required in the SELECT clause. Condition on report_granularity is required in the WHERE clause.

optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2;

Returns
TypeDescription
boolean

Whether the reportGranularity field is set.

hasTitle()

public boolean hasTitle()

Title of the product cluster.

optional string title = 6;

Returns
TypeDescription
boolean

Whether the title field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BestSellersProductClusterView.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BestSellersProductClusterView.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

mergeFrom(BestSellersProductClusterView other)

public BestSellersProductClusterView.Builder mergeFrom(BestSellersProductClusterView other)
Parameter
NameDescription
otherBestSellersProductClusterView
Returns
TypeDescription
BestSellersProductClusterView.Builder

mergeReportDate(Date value)

public BestSellersProductClusterView.Builder mergeReportDate(Date value)

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

    Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

.google.type.Date report_date = 1;

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
BestSellersProductClusterView.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BestSellersProductClusterView.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

setBrand(String value)

public BestSellersProductClusterView.Builder setBrand(String value)

Brand of the product cluster.

optional string brand = 7;

Parameter
NameDescription
valueString

The brand to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setBrandBytes(ByteString value)

public BestSellersProductClusterView.Builder setBrandBytes(ByteString value)

Brand of the product cluster.

optional string brand = 7;

Parameter
NameDescription
valueByteString

The bytes for brand to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setBrandInventoryStatus(BestSellersProductClusterView.InventoryStatus value)

public BestSellersProductClusterView.Builder setBrandInventoryStatus(BestSellersProductClusterView.InventoryStatus value)

Whether there is at least one product of the brand currently IN_STOCK in your product feed in at least one of the countries, all products are OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15;

Parameter
NameDescription
valueBestSellersProductClusterView.InventoryStatus

The brandInventoryStatus to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setBrandInventoryStatusValue(int value)

public BestSellersProductClusterView.Builder setBrandInventoryStatusValue(int value)

Whether there is at least one product of the brand currently IN_STOCK in your product feed in at least one of the countries, all products are OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus brand_inventory_status = 15;

Parameter
NameDescription
valueint

The enum numeric value on the wire for brandInventoryStatus to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL1(String value)

public BestSellersProductClusterView.Builder setCategoryL1(String value)

Product category (1st level) of the product cluster, represented in Google's product taxonomy.

optional string category_l1 = 8;

Parameter
NameDescription
valueString

The categoryL1 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL1Bytes(ByteString value)

public BestSellersProductClusterView.Builder setCategoryL1Bytes(ByteString value)

Product category (1st level) of the product cluster, represented in Google's product taxonomy.

optional string category_l1 = 8;

Parameter
NameDescription
valueByteString

The bytes for categoryL1 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL2(String value)

public BestSellersProductClusterView.Builder setCategoryL2(String value)

Product category (2nd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l2 = 9;

Parameter
NameDescription
valueString

The categoryL2 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL2Bytes(ByteString value)

public BestSellersProductClusterView.Builder setCategoryL2Bytes(ByteString value)

Product category (2nd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l2 = 9;

Parameter
NameDescription
valueByteString

The bytes for categoryL2 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL3(String value)

public BestSellersProductClusterView.Builder setCategoryL3(String value)

Product category (3rd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l3 = 10;

Parameter
NameDescription
valueString

The categoryL3 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL3Bytes(ByteString value)

public BestSellersProductClusterView.Builder setCategoryL3Bytes(ByteString value)

Product category (3rd level) of the product cluster, represented in Google's product taxonomy.

optional string category_l3 = 10;

Parameter
NameDescription
valueByteString

The bytes for categoryL3 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL4(String value)

public BestSellersProductClusterView.Builder setCategoryL4(String value)

Product category (4th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l4 = 11;

Parameter
NameDescription
valueString

The categoryL4 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL4Bytes(ByteString value)

public BestSellersProductClusterView.Builder setCategoryL4Bytes(ByteString value)

Product category (4th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l4 = 11;

Parameter
NameDescription
valueByteString

The bytes for categoryL4 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL5(String value)

public BestSellersProductClusterView.Builder setCategoryL5(String value)

Product category (5th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l5 = 12;

Parameter
NameDescription
valueString

The categoryL5 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setCategoryL5Bytes(ByteString value)

public BestSellersProductClusterView.Builder setCategoryL5Bytes(ByteString value)

Product category (5th level) of the product cluster, represented in Google's product taxonomy.

optional string category_l5 = 12;

Parameter
NameDescription
valueByteString

The bytes for categoryL5 to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BestSellersProductClusterView.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

setInventoryStatus(BestSellersProductClusterView.InventoryStatus value)

public BestSellersProductClusterView.Builder setInventoryStatus(BestSellersProductClusterView.InventoryStatus value)

Whether the product cluster is IN_STOCK in your product feed in at least one of the countries, OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY at all.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus inventory_status = 14;

Parameter
NameDescription
valueBestSellersProductClusterView.InventoryStatus

The inventoryStatus to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setInventoryStatusValue(int value)

public BestSellersProductClusterView.Builder setInventoryStatusValue(int value)

Whether the product cluster is IN_STOCK in your product feed in at least one of the countries, OUT_OF_STOCK in your product feed in all countries, or NOT_IN_INVENTORY at all.

The field doesn't take the Best sellers report country filter into account.

optional .google.shopping.merchant.reports.v1beta.BestSellersProductClusterView.InventoryStatus inventory_status = 14;

Parameter
NameDescription
valueint

The enum numeric value on the wire for inventoryStatus to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setPreviousRank(long value)

public BestSellersProductClusterView.Builder setPreviousRank(long value)

Popularity rank in the previous week or month.

optional int64 previous_rank = 17;

Parameter
NameDescription
valuelong

The previousRank to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setPreviousRelativeDemand(RelativeDemand.RelativeDemandEnum value)

public BestSellersProductClusterView.Builder setPreviousRelativeDemand(RelativeDemand.RelativeDemandEnum value)

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country in the previous week or month.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19;

Parameter
NameDescription
valueRelativeDemand.RelativeDemandEnum

The previousRelativeDemand to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setPreviousRelativeDemandValue(int value)

public BestSellersProductClusterView.Builder setPreviousRelativeDemandValue(int value)

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country in the previous week or month.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum previous_relative_demand = 19;

Parameter
NameDescription
valueint

The enum numeric value on the wire for previousRelativeDemand to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setRank(long value)

public BestSellersProductClusterView.Builder setRank(long value)

Popularity of the product cluster on Ads and organic surfaces, in the selected category and country, based on the estimated number of units sold.

optional int64 rank = 16;

Parameter
NameDescription
valuelong

The rank to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setRelativeDemand(RelativeDemand.RelativeDemandEnum value)

public BestSellersProductClusterView.Builder setRelativeDemand(RelativeDemand.RelativeDemandEnum value)

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18;

Parameter
NameDescription
valueRelativeDemand.RelativeDemandEnum

The relativeDemand to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setRelativeDemandChange(RelativeDemandChangeType.RelativeDemandChangeTypeEnum value)

public BestSellersProductClusterView.Builder setRelativeDemandChange(RelativeDemandChangeType.RelativeDemandChangeTypeEnum value)

Change in the estimated demand. Whether it rose, sank or remained flat.

optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20;

Parameter
NameDescription
valueRelativeDemandChangeType.RelativeDemandChangeTypeEnum

The relativeDemandChange to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setRelativeDemandChangeValue(int value)

public BestSellersProductClusterView.Builder setRelativeDemandChangeValue(int value)

Change in the estimated demand. Whether it rose, sank or remained flat.

optional .google.shopping.merchant.reports.v1beta.RelativeDemandChangeType.RelativeDemandChangeTypeEnum relative_demand_change = 20;

Parameter
NameDescription
valueint

The enum numeric value on the wire for relativeDemandChange to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setRelativeDemandValue(int value)

public BestSellersProductClusterView.Builder setRelativeDemandValue(int value)

Estimated demand in relation to the product cluster with the highest popularity rank in the same category and country.

optional .google.shopping.merchant.reports.v1beta.RelativeDemand.RelativeDemandEnum relative_demand = 18;

Parameter
NameDescription
valueint

The enum numeric value on the wire for relativeDemand to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BestSellersProductClusterView.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

setReportCategoryId(long value)

public BestSellersProductClusterView.Builder setReportCategoryId(long value)

Google product category ID to calculate the ranking for, represented in Google's product taxonomy.

Required in the SELECT clause. If a WHERE condition on report_category_id is not specified in the query, rankings for all top-level categories are returned.

optional int64 report_category_id = 4;

Parameter
NameDescription
valuelong

The reportCategoryId to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setReportCountryCode(String value)

public BestSellersProductClusterView.Builder setReportCountryCode(String value)

Country where the ranking is calculated. Represented in the ISO 3166 format.

Required in the SELECT clause. Condition on report_country_code is required in the WHERE clause.

optional string report_country_code = 3;

Parameter
NameDescription
valueString

The reportCountryCode to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setReportCountryCodeBytes(ByteString value)

public BestSellersProductClusterView.Builder setReportCountryCodeBytes(ByteString value)

Country where the ranking is calculated. Represented in the ISO 3166 format.

Required in the SELECT clause. Condition on report_country_code is required in the WHERE clause.

optional string report_country_code = 3;

Parameter
NameDescription
valueByteString

The bytes for reportCountryCode to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setReportDate(Date value)

public BestSellersProductClusterView.Builder setReportDate(Date value)

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

    Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

.google.type.Date report_date = 1;

Parameter
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
BestSellersProductClusterView.Builder

setReportDate(Date.Builder builderForValue)

public BestSellersProductClusterView.Builder setReportDate(Date.Builder builderForValue)

Report date. The value of this field can only be one of the following:

  • The first day of the week (Monday) for weekly reports,
  • The first day of the month for monthly reports.

    Required in the SELECT clause. If a WHERE condition on report_date is not specified in the query, the latest available weekly or monthly report is returned.

.google.type.Date report_date = 1;

Parameter
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
BestSellersProductClusterView.Builder

setReportGranularity(ReportGranularity.ReportGranularityEnum value)

public BestSellersProductClusterView.Builder setReportGranularity(ReportGranularity.ReportGranularityEnum value)

Granularity of the report. The ranking can be done over a week or a month timeframe.

Required in the SELECT clause. Condition on report_granularity is required in the WHERE clause.

optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2;

Parameter
NameDescription
valueReportGranularity.ReportGranularityEnum

The reportGranularity to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setReportGranularityValue(int value)

public BestSellersProductClusterView.Builder setReportGranularityValue(int value)

Granularity of the report. The ranking can be done over a week or a month timeframe.

Required in the SELECT clause. Condition on report_granularity is required in the WHERE clause.

optional .google.shopping.merchant.reports.v1beta.ReportGranularity.ReportGranularityEnum report_granularity = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for reportGranularity to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setTitle(String value)

public BestSellersProductClusterView.Builder setTitle(String value)

Title of the product cluster.

optional string title = 6;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public BestSellersProductClusterView.Builder setTitleBytes(ByteString value)

Title of the product cluster.

optional string title = 6;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BestSellersProductClusterView.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BestSellersProductClusterView.Builder
Overrides

setVariantGtins(int index, String value)

public BestSellersProductClusterView.Builder setVariantGtins(int index, String value)

GTINs of example variants of the product cluster.

repeated string variant_gtins = 13;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The variantGtins to set.

Returns
TypeDescription
BestSellersProductClusterView.Builder

This builder for chaining.