public final class Product
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 Cloud Vision API. 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
Constructor and Description |
---|
Product() |
Modifier and Type | Method and Description |
---|---|
Product |
clone() |
java.lang.String |
getDescription()
User-provided metadata to be stored with this product.
|
java.lang.String |
getDisplayName()
The user-provided name for this Product.
|
java.lang.String |
getName()
The resource name of the product.
|
java.lang.String |
getProductCategory()
Immutable.
|
java.util.List<KeyValue> |
getProductLabels()
Key-value pairs that can be attached to a product.
|
Product |
set(java.lang.String fieldName,
java.lang.Object value) |
Product |
setDescription(java.lang.String description)
User-provided metadata to be stored with this product.
|
Product |
setDisplayName(java.lang.String displayName)
The user-provided name for this Product.
|
Product |
setName(java.lang.String name)
The resource name of the product.
|
Product |
setProductCategory(java.lang.String productCategory)
Immutable.
|
Product |
setProductLabels(java.util.List<KeyValue> productLabels)
Key-value pairs that can be attached to a product.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getDescription()
null
for nonepublic Product setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.String getDisplayName()
null
for nonepublic Product setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic java.lang.String getName()
null
for nonepublic Product setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getProductCategory()
null
for nonepublic Product setProductCategory(java.lang.String productCategory)
productCategory
- productCategory or null
for nonepublic java.util.List<KeyValue> getProductLabels()
null
for nonepublic Product setProductLabels(java.util.List<KeyValue> productLabels)
productLabels
- productLabels or null
for nonepublic Product set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Product clone()
clone
in class com.google.api.client.json.GenericJson