public final class Segments
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Segments() |
Modifier and Type | Method and Description |
---|---|
Segments |
clone() |
String |
getBrand()
Brand of the product.
|
String |
getCategoryL1()
[Product category (1st level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
String |
getCategoryL2()
[Product category (2nd level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
String |
getCategoryL3()
[Product category (3rd level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
String |
getCategoryL4()
[Product category (4th level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
String |
getCategoryL5()
[Product category (5th level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
String |
getCurrencyCode()
Currency in which price metrics are represented, for example, if you select
`ordered_item_sales_micros`, the returned value will be represented by this currency.
|
String |
getCustomerCountryCode()
Code of the country where the customer is located at the time of the event.
|
String |
getCustomLabel0()
Custom label 0 for custom grouping of products.
|
String |
getCustomLabel1()
Custom label 1 for custom grouping of products.
|
String |
getCustomLabel2()
Custom label 2 for custom grouping of products.
|
String |
getCustomLabel3()
Custom label 3 for custom grouping of products.
|
String |
getCustomLabel4()
Custom label 4 for custom grouping of products.
|
Date |
getDate()
Date in the merchant timezone to which metrics apply.
|
String |
getOfferId()
Merchant-provided id of the product.
|
String |
getProductTypeL1()
[Product type (1st level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
String |
getProductTypeL2()
[Product type (2nd level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
String |
getProductTypeL3()
[Product type (3rd level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
String |
getProductTypeL4()
[Product type (4th level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
String |
getProductTypeL5()
[Product type (5th level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
String |
getProgram()
Program to which metrics apply, for example, Free Product Listing.
|
String |
getTitle()
Title of the product.
|
Date |
getWeek()
First day of the week (Monday) of the metrics date in the merchant timezone.
|
Segments |
set(String fieldName,
Object value) |
Segments |
setBrand(String brand)
Brand of the product.
|
Segments |
setCategoryL1(String categoryL1)
[Product category (1st level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
Segments |
setCategoryL2(String categoryL2)
[Product category (2nd level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
Segments |
setCategoryL3(String categoryL3)
[Product category (3rd level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
Segments |
setCategoryL4(String categoryL4)
[Product category (4th level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
Segments |
setCategoryL5(String categoryL5)
[Product category (5th level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in Google's product taxonomy.
|
Segments |
setCurrencyCode(String currencyCode)
Currency in which price metrics are represented, for example, if you select
`ordered_item_sales_micros`, the returned value will be represented by this currency.
|
Segments |
setCustomerCountryCode(String customerCountryCode)
Code of the country where the customer is located at the time of the event.
|
Segments |
setCustomLabel0(String customLabel0)
Custom label 0 for custom grouping of products.
|
Segments |
setCustomLabel1(String customLabel1)
Custom label 1 for custom grouping of products.
|
Segments |
setCustomLabel2(String customLabel2)
Custom label 2 for custom grouping of products.
|
Segments |
setCustomLabel3(String customLabel3)
Custom label 3 for custom grouping of products.
|
Segments |
setCustomLabel4(String customLabel4)
Custom label 4 for custom grouping of products.
|
Segments |
setDate(Date date)
Date in the merchant timezone to which metrics apply.
|
Segments |
setOfferId(String offerId)
Merchant-provided id of the product.
|
Segments |
setProductTypeL1(String productTypeL1)
[Product type (1st level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
Segments |
setProductTypeL2(String productTypeL2)
[Product type (2nd level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
Segments |
setProductTypeL3(String productTypeL3)
[Product type (3rd level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
Segments |
setProductTypeL4(String productTypeL4)
[Product type (4th level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
Segments |
setProductTypeL5(String productTypeL5)
[Product type (5th level)](https://developers.google.com/shopping-
content/guides/reports/segmentation#category_and_product_type) in merchant's own product
taxonomy.
|
Segments |
setProgram(String program)
Program to which metrics apply, for example, Free Product Listing.
|
Segments |
setTitle(String title)
Title of the product.
|
Segments |
setWeek(Date week)
First day of the week (Monday) of the metrics date in the merchant timezone.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getBrand()
null
for nonepublic Segments setBrand(String brand)
brand
- brand or null
for nonepublic String getCategoryL1()
null
for nonepublic Segments setCategoryL1(String categoryL1)
categoryL1
- categoryL1 or null
for nonepublic String getCategoryL2()
null
for nonepublic Segments setCategoryL2(String categoryL2)
categoryL2
- categoryL2 or null
for nonepublic String getCategoryL3()
null
for nonepublic Segments setCategoryL3(String categoryL3)
categoryL3
- categoryL3 or null
for nonepublic String getCategoryL4()
null
for nonepublic Segments setCategoryL4(String categoryL4)
categoryL4
- categoryL4 or null
for nonepublic String getCategoryL5()
null
for nonepublic Segments setCategoryL5(String categoryL5)
categoryL5
- categoryL5 or null
for nonepublic String getCurrencyCode()
null
for nonepublic Segments setCurrencyCode(String currencyCode)
currencyCode
- currencyCode or null
for nonepublic String getCustomLabel0()
null
for nonepublic Segments setCustomLabel0(String customLabel0)
customLabel0
- customLabel0 or null
for nonepublic String getCustomLabel1()
null
for nonepublic Segments setCustomLabel1(String customLabel1)
customLabel1
- customLabel1 or null
for nonepublic String getCustomLabel2()
null
for nonepublic Segments setCustomLabel2(String customLabel2)
customLabel2
- customLabel2 or null
for nonepublic String getCustomLabel3()
null
for nonepublic Segments setCustomLabel3(String customLabel3)
customLabel3
- customLabel3 or null
for nonepublic String getCustomLabel4()
null
for nonepublic Segments setCustomLabel4(String customLabel4)
customLabel4
- customLabel4 or null
for nonepublic String getCustomerCountryCode()
null
for nonepublic Segments setCustomerCountryCode(String customerCountryCode)
customerCountryCode
- customerCountryCode or null
for nonepublic Date getDate()
null
for nonepublic Segments setDate(Date date)
date
- date or null
for nonepublic String getOfferId()
null
for nonepublic Segments setOfferId(String offerId)
offerId
- offerId or null
for nonepublic String getProductTypeL1()
null
for nonepublic Segments setProductTypeL1(String productTypeL1)
productTypeL1
- productTypeL1 or null
for nonepublic String getProductTypeL2()
null
for nonepublic Segments setProductTypeL2(String productTypeL2)
productTypeL2
- productTypeL2 or null
for nonepublic String getProductTypeL3()
null
for nonepublic Segments setProductTypeL3(String productTypeL3)
productTypeL3
- productTypeL3 or null
for nonepublic String getProductTypeL4()
null
for nonepublic Segments setProductTypeL4(String productTypeL4)
productTypeL4
- productTypeL4 or null
for nonepublic String getProductTypeL5()
null
for nonepublic Segments setProductTypeL5(String productTypeL5)
productTypeL5
- productTypeL5 or null
for nonepublic String getProgram()
null
for nonepublic Segments setProgram(String program)
program
- program or null
for nonepublic String getTitle()
null
for nonepublic Segments setTitle(String title)
title
- title or null
for nonepublic Date getWeek()
null
for nonepublic Segments setWeek(Date week)
week
- week or null
for nonepublic Segments set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Segments clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.