public class Pubsub.Projects.Topics.Publish extends PubsubRequest<PublishResponse>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Publish(java.lang.String topic,
PublishRequest content)
Adds one or more messages to the topic.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTopic()
Required.
|
Pubsub.Projects.Topics.Publish |
set(java.lang.String parameterName,
java.lang.Object value) |
Pubsub.Projects.Topics.Publish |
set$Xgafv(java.lang.String $Xgafv)
V1 error format.
|
Pubsub.Projects.Topics.Publish |
setAccessToken(java.lang.String accessToken)
OAuth access token.
|
Pubsub.Projects.Topics.Publish |
setAlt(java.lang.String alt)
Data format for response.
|
Pubsub.Projects.Topics.Publish |
setCallback(java.lang.String callback)
JSONP
|
Pubsub.Projects.Topics.Publish |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Pubsub.Projects.Topics.Publish |
setKey(java.lang.String key)
API key.
|
Pubsub.Projects.Topics.Publish |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Pubsub.Projects.Topics.Publish |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Pubsub.Projects.Topics.Publish |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Pubsub.Projects.Topics.Publish |
setTopic(java.lang.String topic)
Required.
|
Pubsub.Projects.Topics.Publish |
setUploadProtocol(java.lang.String uploadProtocol)
Upload protocol for media (e.g.
|
Pubsub.Projects.Topics.Publish |
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 Publish(java.lang.String topic, PublishRequest 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.
topic
- Required. The messages in the request will be published on this topic.
Format is
`projects/{project}/topics/{topic}`.content
- the PublishRequest
public Pubsub.Projects.Topics.Publish set$Xgafv(java.lang.String $Xgafv)
PubsubRequest
set$Xgafv
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setAccessToken(java.lang.String accessToken)
PubsubRequest
setAccessToken
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setAlt(java.lang.String alt)
PubsubRequest
setAlt
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setCallback(java.lang.String callback)
PubsubRequest
setCallback
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setFields(java.lang.String fields)
PubsubRequest
setFields
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setKey(java.lang.String key)
PubsubRequest
setKey
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setOauthToken(java.lang.String oauthToken)
PubsubRequest
setOauthToken
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setPrettyPrint(java.lang.Boolean prettyPrint)
PubsubRequest
setPrettyPrint
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setQuotaUser(java.lang.String quotaUser)
PubsubRequest
setQuotaUser
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setUploadType(java.lang.String uploadType)
PubsubRequest
setUploadType
in class PubsubRequest<PublishResponse>
public Pubsub.Projects.Topics.Publish setUploadProtocol(java.lang.String uploadProtocol)
PubsubRequest
setUploadProtocol
in class PubsubRequest<PublishResponse>
public java.lang.String getTopic()
public Pubsub.Projects.Topics.Publish setTopic(java.lang.String topic)
public Pubsub.Projects.Topics.Publish set(java.lang.String parameterName, java.lang.Object value)
set
in class PubsubRequest<PublishResponse>