public class Pubsub.Projects.Topics extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Pubsub.Projects.Topics.Create |
class |
Pubsub.Projects.Topics.Delete |
class |
Pubsub.Projects.Topics.Get |
class |
Pubsub.Projects.Topics.GetIamPolicy |
class |
Pubsub.Projects.Topics.List |
class |
Pubsub.Projects.Topics.Patch |
class |
Pubsub.Projects.Topics.Publish |
class |
Pubsub.Projects.Topics.SetIamPolicy |
class |
Pubsub.Projects.Topics.Snapshots
The "snapshots" collection of methods.
|
class |
Pubsub.Projects.Topics.Subscriptions
The "subscriptions" collection of methods.
|
class |
Pubsub.Projects.Topics.TestIamPermissions |
| Constructor and Description |
|---|
Topics() |
| Modifier and Type | Method and Description |
|---|---|
Pubsub.Projects.Topics.Create |
create(String name,
Topic content)
Creates the given topic with the given name.
|
Pubsub.Projects.Topics.Delete |
delete(String topic)
Deletes the topic with the given name.
|
Pubsub.Projects.Topics.Get |
get(String topic)
Gets the configuration of a topic.
|
Pubsub.Projects.Topics.GetIamPolicy |
getIamPolicy(String resource)
Gets the access control policy for a resource.
|
Pubsub.Projects.Topics.List |
list(String project)
Lists matching topics.
|
Pubsub.Projects.Topics.Patch |
patch(String name,
UpdateTopicRequest content)
Updates an existing topic.
|
Pubsub.Projects.Topics.Publish |
publish(String topic,
PublishRequest content)
Adds one or more messages to the topic.
|
Pubsub.Projects.Topics.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the access control policy on the specified resource.
|
Pubsub.Projects.Topics.Snapshots |
snapshots()
An accessor for creating requests from the Snapshots collection.
|
Pubsub.Projects.Topics.Subscriptions |
subscriptions()
An accessor for creating requests from the Subscriptions collection.
|
Pubsub.Projects.Topics.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
public Pubsub.Projects.Topics.Create create(String name, Topic content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`.
`{topic}` 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 TopicIOExceptionpublic Pubsub.Projects.Topics.Delete delete(String topic) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.topic - Required. Name of the topic to delete. Format is `projects/{project}/topics/{topic}`.IOExceptionpublic Pubsub.Projects.Topics.Get get(String topic) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.topic - Required. The name of the topic to get. Format is `projects/{project}/topics/{topic}`.IOExceptionpublic Pubsub.Projects.Topics.GetIamPolicy getIamPolicy(String resource) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.IOExceptionpublic Pubsub.Projects.Topics.List list(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Required. The name of the project in which to list topics. Format is `projects/{project-id}`.IOExceptionpublic Pubsub.Projects.Topics.Patch patch(String name, UpdateTopicRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The name of the topic. It must have the format `"projects/{project}/topics/{topic}"`.
`{topic}` 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 UpdateTopicRequestIOExceptionpublic Pubsub.Projects.Topics.Publish publish(String topic, PublishRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.topic - Required. The messages in the request will be published on this topic. Format is
`projects/{project}/topics/{topic}`.content - the PublishRequestIOExceptionpublic Pubsub.Projects.Topics.SetIamPolicy setIamPolicy(String resource, SetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being specified. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the SetIamPolicyRequestIOExceptionpublic Pubsub.Projects.Topics.TestIamPermissions testIamPermissions(String resource, TestIamPermissionsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy detail is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the TestIamPermissionsRequestIOExceptionpublic Pubsub.Projects.Topics.Snapshots snapshots()
The typical use is:
Pubsub pubsub = new Pubsub(...);Pubsub.Snapshots.List request = pubsub.snapshots().list(parameters ...)
public Pubsub.Projects.Topics.Subscriptions subscriptions()
The typical use is:
Pubsub pubsub = new Pubsub(...);Pubsub.Subscriptions.List request = pubsub.subscriptions().list(parameters ...)
Copyright © 2011–2022 Google. All rights reserved.