target.apidocs.com.google.api.services.content.model.AccountCredentials.html Maven / Gradle / Ivy
AccountCredentials (Content API for Shopping v2.1-rev20210325-1.31.0)
com.google.api.services.content.model
Class AccountCredentials
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.AccountCredentials
-
public final class AccountCredentials
extends GenericJson
Credentials allowing Google to call a partner's API on behalf of a merchant.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AccountCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AccountCredentials
clone()
String
getAccessToken()
An OAuth access token.
Long
getExpiresIn()
The amount of time, in seconds, after which the access token is no longer valid.
String
getPurpose()
Indicates to Google how Google should use these OAuth tokens.
AccountCredentials
set(String fieldName,
Object value)
AccountCredentials
setAccessToken(String accessToken)
An OAuth access token.
AccountCredentials
setExpiresIn(Long expiresIn)
The amount of time, in seconds, after which the access token is no longer valid.
AccountCredentials
setPurpose(String purpose)
Indicates to Google how Google should use these OAuth tokens.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAccessToken
public String getAccessToken()
An OAuth access token.
- Returns:
- value or
null
for none
-
setAccessToken
public AccountCredentials setAccessToken(String accessToken)
An OAuth access token.
- Parameters:
accessToken
- accessToken or null
for none
-
getExpiresIn
public Long getExpiresIn()
The amount of time, in seconds, after which the access token is no longer valid.
- Returns:
- value or
null
for none
-
setExpiresIn
public AccountCredentials setExpiresIn(Long expiresIn)
The amount of time, in seconds, after which the access token is no longer valid.
- Parameters:
expiresIn
- expiresIn or null
for none
-
getPurpose
public String getPurpose()
Indicates to Google how Google should use these OAuth tokens.
- Returns:
- value or
null
for none
-
setPurpose
public AccountCredentials setPurpose(String purpose)
Indicates to Google how Google should use these OAuth tokens.
- Parameters:
purpose
- purpose or null
for none
-
set
public AccountCredentials set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public AccountCredentials clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy