code: public static String getFullyQualifiedTopicName(
            final String project, final String topic) {
        return String.format("projects/%s/topics/%s", project, topic);
    }
docs: Returns the fully qualified topic name for Pub/Sub.