public final class PubSubTopicUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.pubsub.v1.ProjectTopicName |
toProjectTopicName(String topic,
String projectId)
Create a
ProjectTopicName based on a topic name within a project or the
fully-qualified topic name. |
public static com.google.pubsub.v1.ProjectTopicName toProjectTopicName(String topic, @Nullable String projectId)
ProjectTopicName based on a topic name within a project or the
fully-qualified topic name. If the specified topic is in the
projects/<project_name>/topics/<topic_name> format, then the projectId is
ignored}topic - the topic name in the project or the fully-qualified project nameprojectId - the project ID to use if the topic is not a fully-qualified nameCopyright © 2020 Pivotal Software, Inc.. All rights reserved.