Class PriceInsightsProductView (0.3.0)

public final class PriceInsightsProductView extends GeneratedMessageV3 implements PriceInsightsProductViewOrBuilder

Fields available for query in price_insights_product_view table.

Price insights report.

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

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

Static Fields

BRAND_FIELD_NUMBER

public static final int BRAND_FIELD_NUMBER
Field Value
TypeDescription
int

CATEGORY_L1_FIELD_NUMBER

public static final int CATEGORY_L1_FIELD_NUMBER
Field Value
TypeDescription
int

CATEGORY_L2_FIELD_NUMBER

public static final int CATEGORY_L2_FIELD_NUMBER
Field Value
TypeDescription
int

CATEGORY_L3_FIELD_NUMBER

public static final int CATEGORY_L3_FIELD_NUMBER
Field Value
TypeDescription
int

CATEGORY_L4_FIELD_NUMBER

public static final int CATEGORY_L4_FIELD_NUMBER
Field Value
TypeDescription
int

CATEGORY_L5_FIELD_NUMBER

public static final int CATEGORY_L5_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

OFFER_ID_FIELD_NUMBER

public static final int OFFER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PREDICTED_CLICKS_CHANGE_FRACTION_FIELD_NUMBER

public static final int PREDICTED_CLICKS_CHANGE_FRACTION_FIELD_NUMBER
Field Value
TypeDescription
int

PREDICTED_CONVERSIONS_CHANGE_FRACTION_FIELD_NUMBER

public static final int PREDICTED_CONVERSIONS_CHANGE_FRACTION_FIELD_NUMBER
Field Value
TypeDescription
int

PREDICTED_GROSS_PROFIT_CHANGE_FRACTION_FIELD_NUMBER

public static final int PREDICTED_GROSS_PROFIT_CHANGE_FRACTION_FIELD_NUMBER
Field Value
TypeDescription
int

PREDICTED_IMPRESSIONS_CHANGE_FRACTION_FIELD_NUMBER

public static final int PREDICTED_IMPRESSIONS_CHANGE_FRACTION_FIELD_NUMBER
Field Value
TypeDescription
int

PREDICTED_MONTHLY_GROSS_PROFIT_CHANGE_FIELD_NUMBER

public static final int PREDICTED_MONTHLY_GROSS_PROFIT_CHANGE_FIELD_NUMBER
Field Value
TypeDescription
int

PRICE_FIELD_NUMBER

public static final int PRICE_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCT_TYPE_L1_FIELD_NUMBER

public static final int PRODUCT_TYPE_L1_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCT_TYPE_L2_FIELD_NUMBER

public static final int PRODUCT_TYPE_L2_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCT_TYPE_L3_FIELD_NUMBER

public static final int PRODUCT_TYPE_L3_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCT_TYPE_L4_FIELD_NUMBER

public static final int PRODUCT_TYPE_L4_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCT_TYPE_L5_FIELD_NUMBER

public static final int PRODUCT_TYPE_L5_FIELD_NUMBER
Field Value
TypeDescription
int

SUGGESTED_PRICE_FIELD_NUMBER

public static final int SUGGESTED_PRICE_FIELD_NUMBER
Field Value
TypeDescription
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PriceInsightsProductView getDefaultInstance()
Returns
TypeDescription
PriceInsightsProductView

getDescriptor()

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

newBuilder()

public static PriceInsightsProductView.Builder newBuilder()
Returns
TypeDescription
PriceInsightsProductView.Builder

newBuilder(PriceInsightsProductView prototype)

public static PriceInsightsProductView.Builder newBuilder(PriceInsightsProductView prototype)
Parameter
NameDescription
prototypePriceInsightsProductView
Returns
TypeDescription
PriceInsightsProductView.Builder

parseDelimitedFrom(InputStream input)

public static PriceInsightsProductView parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PriceInsightsProductView parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PriceInsightsProductView parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PriceInsightsProductView parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PriceInsightsProductView parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PriceInsightsProductView parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PriceInsightsProductView parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PriceInsightsProductView parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PriceInsightsProductView parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PriceInsightsProductView parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PriceInsightsProductView parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PriceInsightsProductView parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PriceInsightsProductView
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<PriceInsightsProductView> parser()
Returns
TypeDescription
Parser<PriceInsightsProductView>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBrand()

public String getBrand()

Brand of the product.

optional string brand = 4;

Returns
TypeDescription
String

The brand.

getBrandBytes()

public ByteString getBrandBytes()

Brand of the product.

optional string brand = 4;

Returns
TypeDescription
ByteString

The bytes for brand.

getCategoryL1()

public String getCategoryL1()

Product category (1st level) in Google's product taxonomy.

optional string category_l1 = 5;

Returns
TypeDescription
String

The categoryL1.

getCategoryL1Bytes()

public ByteString getCategoryL1Bytes()

Product category (1st level) in Google's product taxonomy.

optional string category_l1 = 5;

Returns
TypeDescription
ByteString

The bytes for categoryL1.

getCategoryL2()

public String getCategoryL2()

Product category (2nd level) in Google's product taxonomy.

optional string category_l2 = 6;

Returns
TypeDescription
String

The categoryL2.

getCategoryL2Bytes()

public ByteString getCategoryL2Bytes()

Product category (2nd level) in Google's product taxonomy.

optional string category_l2 = 6;

Returns
TypeDescription
ByteString

The bytes for categoryL2.

getCategoryL3()

public String getCategoryL3()

Product category (3rd level) in Google's product taxonomy.

optional string category_l3 = 7;

Returns
TypeDescription
String

The categoryL3.

getCategoryL3Bytes()

public ByteString getCategoryL3Bytes()

Product category (3rd level) in Google's product taxonomy.

optional string category_l3 = 7;

Returns
TypeDescription
ByteString

The bytes for categoryL3.

getCategoryL4()

public String getCategoryL4()

Product category (4th level) in Google's product taxonomy.

optional string category_l4 = 8;

Returns
TypeDescription
String

The categoryL4.

getCategoryL4Bytes()

public ByteString getCategoryL4Bytes()

Product category (4th level) in Google's product taxonomy.

optional string category_l4 = 8;

Returns
TypeDescription
ByteString

The bytes for categoryL4.

getCategoryL5()

public String getCategoryL5()

Product category (5th level) in Google's product taxonomy.

optional string category_l5 = 9;

Returns
TypeDescription
String

The categoryL5.

getCategoryL5Bytes()

public ByteString getCategoryL5Bytes()

Product category (5th level) in Google's product taxonomy.

optional string category_l5 = 9;

Returns
TypeDescription
ByteString

The bytes for categoryL5.

getDefaultInstanceForType()

public PriceInsightsProductView getDefaultInstanceForType()
Returns
TypeDescription
PriceInsightsProductView

getId()

public String getId()

REST ID of the product, in the form of languageCode~feedLabel~offerId. Can be used to join data with the product_view table.

Required in the SELECT clause.

optional string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

REST ID of the product, in the form of languageCode~feedLabel~offerId. Can be used to join data with the product_view table.

Required in the SELECT clause.

optional string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getOfferId()

public String getOfferId()

Merchant-provided id of the product.

optional string offer_id = 2;

Returns
TypeDescription
String

The offerId.

getOfferIdBytes()

public ByteString getOfferIdBytes()

Merchant-provided id of the product.

optional string offer_id = 2;

Returns
TypeDescription
ByteString

The bytes for offerId.

getParserForType()

public Parser<PriceInsightsProductView> getParserForType()
Returns
TypeDescription
Parser<PriceInsightsProductView>
Overrides

getPredictedClicksChangeFraction()

public double getPredictedClicksChangeFraction()

Predicted change in clicks as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in clicks.

optional double predicted_clicks_change_fraction = 18;

Returns
TypeDescription
double

The predictedClicksChangeFraction.

getPredictedConversionsChangeFraction()

public double getPredictedConversionsChangeFraction()

Predicted change in conversions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in conversions).

optional double predicted_conversions_change_fraction = 19;

Returns
TypeDescription
double

The predictedConversionsChangeFraction.

getPredictedGrossProfitChangeFraction()

public double getPredictedGrossProfitChangeFraction()

Predicted change in gross profit as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in gross profit.

optional double predicted_gross_profit_change_fraction = 20;

Returns
TypeDescription
double

The predictedGrossProfitChangeFraction.

getPredictedImpressionsChangeFraction()

public double getPredictedImpressionsChangeFraction()

Predicted change in impressions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in impressions.

optional double predicted_impressions_change_fraction = 17;

Returns
TypeDescription
double

The predictedImpressionsChangeFraction.

getPredictedMonthlyGrossProfitChange()

public Price getPredictedMonthlyGrossProfitChange()

Predicted change in gross profit after introducing the suggested price for a month compared to current active price.

.google.shopping.type.Price predicted_monthly_gross_profit_change = 21;

Returns
TypeDescription
Price

The predictedMonthlyGrossProfitChange.

getPredictedMonthlyGrossProfitChangeOrBuilder()

public PriceOrBuilder getPredictedMonthlyGrossProfitChangeOrBuilder()

Predicted change in gross profit after introducing the suggested price for a month compared to current active price.

.google.shopping.type.Price predicted_monthly_gross_profit_change = 21;

Returns
TypeDescription
PriceOrBuilder

getPrice()

public Price getPrice()

Current price of the product.

.google.shopping.type.Price price = 15;

Returns
TypeDescription
Price

The price.

getPriceOrBuilder()

public PriceOrBuilder getPriceOrBuilder()

Current price of the product.

.google.shopping.type.Price price = 15;

Returns
TypeDescription
PriceOrBuilder

getProductTypeL1()

public String getProductTypeL1()

Product type (1st level) in merchant's own product taxonomy.

optional string product_type_l1 = 10;

Returns
TypeDescription
String

The productTypeL1.

getProductTypeL1Bytes()

public ByteString getProductTypeL1Bytes()

Product type (1st level) in merchant's own product taxonomy.

optional string product_type_l1 = 10;

Returns
TypeDescription
ByteString

The bytes for productTypeL1.

getProductTypeL2()

public String getProductTypeL2()

Product type (2nd level) in merchant's own product taxonomy.

optional string product_type_l2 = 11;

Returns
TypeDescription
String

The productTypeL2.

getProductTypeL2Bytes()

public ByteString getProductTypeL2Bytes()

Product type (2nd level) in merchant's own product taxonomy.

optional string product_type_l2 = 11;

Returns
TypeDescription
ByteString

The bytes for productTypeL2.

getProductTypeL3()

public String getProductTypeL3()

Product type (3rd level) in merchant's own product taxonomy.

optional string product_type_l3 = 12;

Returns
TypeDescription
String

The productTypeL3.

getProductTypeL3Bytes()

public ByteString getProductTypeL3Bytes()

Product type (3rd level) in merchant's own product taxonomy.

optional string product_type_l3 = 12;

Returns
TypeDescription
ByteString

The bytes for productTypeL3.

getProductTypeL4()

public String getProductTypeL4()

Product type (4th level) in merchant's own product taxonomy.

optional string product_type_l4 = 13;

Returns
TypeDescription
String

The productTypeL4.

getProductTypeL4Bytes()

public ByteString getProductTypeL4Bytes()

Product type (4th level) in merchant's own product taxonomy.

optional string product_type_l4 = 13;

Returns
TypeDescription
ByteString

The bytes for productTypeL4.

getProductTypeL5()

public String getProductTypeL5()

Product type (5th level) in merchant's own product taxonomy.

optional string product_type_l5 = 14;

Returns
TypeDescription
String

The productTypeL5.

getProductTypeL5Bytes()

public ByteString getProductTypeL5Bytes()

Product type (5th level) in merchant's own product taxonomy.

optional string product_type_l5 = 14;

Returns
TypeDescription
ByteString

The bytes for productTypeL5.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSuggestedPrice()

public Price getSuggestedPrice()

Latest suggested price for the product.

.google.shopping.type.Price suggested_price = 16;

Returns
TypeDescription
Price

The suggestedPrice.

getSuggestedPriceOrBuilder()

public PriceOrBuilder getSuggestedPriceOrBuilder()

Latest suggested price for the product.

.google.shopping.type.Price suggested_price = 16;

Returns
TypeDescription
PriceOrBuilder

getTitle()

public String getTitle()

Title of the product.

optional string title = 3;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Title of the product.

optional string title = 3;

Returns
TypeDescription
ByteString

The bytes for title.

hasBrand()

public boolean hasBrand()

Brand of the product.

optional string brand = 4;

Returns
TypeDescription
boolean

Whether the brand field is set.

hasCategoryL1()

public boolean hasCategoryL1()

Product category (1st level) in Google's product taxonomy.

optional string category_l1 = 5;

Returns
TypeDescription
boolean

Whether the categoryL1 field is set.

hasCategoryL2()

public boolean hasCategoryL2()

Product category (2nd level) in Google's product taxonomy.

optional string category_l2 = 6;

Returns
TypeDescription
boolean

Whether the categoryL2 field is set.

hasCategoryL3()

public boolean hasCategoryL3()

Product category (3rd level) in Google's product taxonomy.

optional string category_l3 = 7;

Returns
TypeDescription
boolean

Whether the categoryL3 field is set.

hasCategoryL4()

public boolean hasCategoryL4()

Product category (4th level) in Google's product taxonomy.

optional string category_l4 = 8;

Returns
TypeDescription
boolean

Whether the categoryL4 field is set.

hasCategoryL5()

public boolean hasCategoryL5()

Product category (5th level) in Google's product taxonomy.

optional string category_l5 = 9;

Returns
TypeDescription
boolean

Whether the categoryL5 field is set.

hasId()

public boolean hasId()

REST ID of the product, in the form of languageCode~feedLabel~offerId. Can be used to join data with the product_view table.

Required in the SELECT clause.

optional string id = 1;

Returns
TypeDescription
boolean

Whether the id field is set.

hasOfferId()

public boolean hasOfferId()

Merchant-provided id of the product.

optional string offer_id = 2;

Returns
TypeDescription
boolean

Whether the offerId field is set.

hasPredictedClicksChangeFraction()

public boolean hasPredictedClicksChangeFraction()

Predicted change in clicks as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in clicks.

optional double predicted_clicks_change_fraction = 18;

Returns
TypeDescription
boolean

Whether the predictedClicksChangeFraction field is set.

hasPredictedConversionsChangeFraction()

public boolean hasPredictedConversionsChangeFraction()

Predicted change in conversions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in conversions).

optional double predicted_conversions_change_fraction = 19;

Returns
TypeDescription
boolean

Whether the predictedConversionsChangeFraction field is set.

hasPredictedGrossProfitChangeFraction()

public boolean hasPredictedGrossProfitChangeFraction()

Predicted change in gross profit as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in gross profit.

optional double predicted_gross_profit_change_fraction = 20;

Returns
TypeDescription
boolean

Whether the predictedGrossProfitChangeFraction field is set.

hasPredictedImpressionsChangeFraction()

public boolean hasPredictedImpressionsChangeFraction()

Predicted change in impressions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in impressions.

optional double predicted_impressions_change_fraction = 17;

Returns
TypeDescription
boolean

Whether the predictedImpressionsChangeFraction field is set.

hasPredictedMonthlyGrossProfitChange()

public boolean hasPredictedMonthlyGrossProfitChange()

Predicted change in gross profit after introducing the suggested price for a month compared to current active price.

.google.shopping.type.Price predicted_monthly_gross_profit_change = 21;

Returns
TypeDescription
boolean

Whether the predictedMonthlyGrossProfitChange field is set.

hasPrice()

public boolean hasPrice()

Current price of the product.

.google.shopping.type.Price price = 15;

Returns
TypeDescription
boolean

Whether the price field is set.

hasProductTypeL1()

public boolean hasProductTypeL1()

Product type (1st level) in merchant's own product taxonomy.

optional string product_type_l1 = 10;

Returns
TypeDescription
boolean

Whether the productTypeL1 field is set.

hasProductTypeL2()

public boolean hasProductTypeL2()

Product type (2nd level) in merchant's own product taxonomy.

optional string product_type_l2 = 11;

Returns
TypeDescription
boolean

Whether the productTypeL2 field is set.

hasProductTypeL3()

public boolean hasProductTypeL3()

Product type (3rd level) in merchant's own product taxonomy.

optional string product_type_l3 = 12;

Returns
TypeDescription
boolean

Whether the productTypeL3 field is set.

hasProductTypeL4()

public boolean hasProductTypeL4()

Product type (4th level) in merchant's own product taxonomy.

optional string product_type_l4 = 13;

Returns
TypeDescription
boolean

Whether the productTypeL4 field is set.

hasProductTypeL5()

public boolean hasProductTypeL5()

Product type (5th level) in merchant's own product taxonomy.

optional string product_type_l5 = 14;

Returns
TypeDescription
boolean

Whether the productTypeL5 field is set.

hasSuggestedPrice()

public boolean hasSuggestedPrice()

Latest suggested price for the product.

.google.shopping.type.Price suggested_price = 16;

Returns
TypeDescription
boolean

Whether the suggestedPrice field is set.

hasTitle()

public boolean hasTitle()

Title of the product.

optional string title = 3;

Returns
TypeDescription
boolean

Whether the title field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PriceInsightsProductView.Builder newBuilderForType()
Returns
TypeDescription
PriceInsightsProductView.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PriceInsightsProductView.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PriceInsightsProductView.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PriceInsightsProductView.Builder toBuilder()
Returns
TypeDescription
PriceInsightsProductView.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException