public class Pubsub.Projects.Subscriptions.Create extends PubsubRequest<Subscription>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Create(java.lang.String name,
Subscription content)
Creates a subscription to a given topic.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Required.
|
Pubsub.Projects.Subscriptions.Create |
set(java.lang.String parameterName,
java.lang.Object value) |
Pubsub.Projects.Subscriptions.Create |
set$Xgafv(java.lang.String $Xgafv)
V1 error format.
|
Pubsub.Projects.Subscriptions.Create |
setAccessToken(java.lang.String accessToken)
OAuth access token.
|
Pubsub.Projects.Subscriptions.Create |
setAlt(java.lang.String alt)
Data format for response.
|
Pubsub.Projects.Subscriptions.Create |
setCallback(java.lang.String callback)
JSONP
|
Pubsub.Projects.Subscriptions.Create |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Pubsub.Projects.Subscriptions.Create |
setKey(java.lang.String key)
API key.
|
Pubsub.Projects.Subscriptions.Create |
setName(java.lang.String name)
Required.
|
Pubsub.Projects.Subscriptions.Create |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Pubsub.Projects.Subscriptions.Create |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Pubsub.Projects.Subscriptions.Create |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Pubsub.Projects.Subscriptions.Create |
setUploadProtocol(java.lang.String uploadProtocol)
Upload protocol for media (e.g.
|
Pubsub.Projects.Subscriptions.Create |
setUploadType(java.lang.String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Create(java.lang.String name, Subscription content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Pubsub.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
name
- Required. The name of the subscription. It must have the format
`"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
start with a
letter, and contain only letters (`[A-Za-z]`), numbers
(`[0-9]`), dashes (`-`),
underscores (`_`), periods (`.`), tildes (`~`),
plus (`+`) or percent signs (`%`). It must
be between 3 and 255 characters
in length, and it must not start with `"goog"`.content
- the Subscription
public Pubsub.Projects.Subscriptions.Create set$Xgafv(java.lang.String $Xgafv)
PubsubRequest
set$Xgafv
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setAccessToken(java.lang.String accessToken)
PubsubRequest
setAccessToken
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setAlt(java.lang.String alt)
PubsubRequest
setAlt
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setCallback(java.lang.String callback)
PubsubRequest
setCallback
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setFields(java.lang.String fields)
PubsubRequest
setFields
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setKey(java.lang.String key)
PubsubRequest
setKey
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setOauthToken(java.lang.String oauthToken)
PubsubRequest
setOauthToken
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setPrettyPrint(java.lang.Boolean prettyPrint)
PubsubRequest
setPrettyPrint
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setQuotaUser(java.lang.String quotaUser)
PubsubRequest
setQuotaUser
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setUploadType(java.lang.String uploadType)
PubsubRequest
setUploadType
in class PubsubRequest<Subscription>
public Pubsub.Projects.Subscriptions.Create setUploadProtocol(java.lang.String uploadProtocol)
PubsubRequest
setUploadProtocol
in class PubsubRequest<Subscription>
public java.lang.String getName()
public Pubsub.Projects.Subscriptions.Create setName(java.lang.String name)
public Pubsub.Projects.Subscriptions.Create set(java.lang.String parameterName, java.lang.Object value)
set
in class PubsubRequest<Subscription>