public final class Action
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 |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
Action |
clone() |
BuiltInSimpleAction |
getBuiltinSimpleAction()
Action implemented and performed in (your) third-party application.
|
BuiltInUserInputAction |
getBuiltinUserInputAction()
Action implemented and performed in (your) third-party application.
|
String |
getButtonLabel()
Label of the action button.
|
ExternalAction |
getExternalAction()
Action that is implemented and performed outside of (your) third-party application.
|
Boolean |
getIsAvailable()
Controlling whether the button is active or disabled.
|
List<ActionReason> |
getReasons()
List of reasons why the action is not available.
|
Action |
set(String fieldName,
Object value) |
Action |
setBuiltinSimpleAction(BuiltInSimpleAction builtinSimpleAction)
Action implemented and performed in (your) third-party application.
|
Action |
setBuiltinUserInputAction(BuiltInUserInputAction builtinUserInputAction)
Action implemented and performed in (your) third-party application.
|
Action |
setButtonLabel(String buttonLabel)
Label of the action button.
|
Action |
setExternalAction(ExternalAction externalAction)
Action that is implemented and performed outside of (your) third-party application.
|
Action |
setIsAvailable(Boolean isAvailable)
Controlling whether the button is active or disabled.
|
Action |
setReasons(List<ActionReason> reasons)
List of reasons why the action is not available.
|
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 BuiltInSimpleAction getBuiltinSimpleAction()
null
for nonepublic Action setBuiltinSimpleAction(BuiltInSimpleAction builtinSimpleAction)
builtinSimpleAction
- builtinSimpleAction or null
for nonepublic BuiltInUserInputAction getBuiltinUserInputAction()
null
for nonepublic Action setBuiltinUserInputAction(BuiltInUserInputAction builtinUserInputAction)
builtinUserInputAction
- builtinUserInputAction or null
for nonepublic String getButtonLabel()
null
for nonepublic Action setButtonLabel(String buttonLabel)
buttonLabel
- buttonLabel or null
for nonepublic ExternalAction getExternalAction()
null
for nonepublic Action setExternalAction(ExternalAction externalAction)
externalAction
- externalAction or null
for nonepublic Boolean getIsAvailable()
null
for nonepublic Action setIsAvailable(Boolean isAvailable)
isAvailable
- isAvailable or null
for nonepublic List<ActionReason> getReasons()
null
for nonepublic Action setReasons(List<ActionReason> reasons)
reasons
- reasons or null
for nonepublic Action set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Action clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.