@Generated(value="by gapic-generator-java") public class TopicName extends Object implements com.google.api.resourcenames.ResourceName
Modifier and Type | Class and Description |
---|---|
static class |
TopicName.Builder
Builder for projects/{project}/topics/{topic}.
|
Modifier | Constructor and Description |
---|---|
protected |
TopicName()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static String |
format(String project,
String topic) |
static String |
formatDeletedTopicName() |
static String |
formatProjectTopicName(String project,
String topic) |
String |
getFieldValue(String fieldName) |
Map<String,String> |
getFieldValuesMap() |
String |
getProject() |
String |
getTopic() |
int |
hashCode() |
static boolean |
isParsableFrom(String formattedString) |
static TopicName.Builder |
newBuilder() |
static TopicName.Builder |
newProjectTopicBuilder() |
static TopicName |
of(String project,
String topic) |
static TopicName |
ofDeletedTopicName() |
static TopicName |
ofProjectTopicName(String project,
String topic) |
static TopicName |
parse(String formattedString) |
static List<TopicName> |
parseList(List<String> formattedStrings) |
TopicName.Builder |
toBuilder() |
String |
toString() |
static List<String> |
toStringList(List<TopicName> values) |
@Deprecated protected TopicName()
public String getProject()
public String getTopic()
public static TopicName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static TopicName.Builder newProjectTopicBuilder()
public TopicName.Builder toBuilder()
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static TopicName ofProjectTopicName(String project, String topic)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static TopicName ofDeletedTopicName()
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectTopicName(String project, String topic)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatDeletedTopicName()
public static boolean isParsableFrom(String formattedString)
public Map<String,String> getFieldValuesMap()
getFieldValuesMap
in interface com.google.api.resourcenames.ResourceName
public String getFieldValue(String fieldName)
getFieldValue
in interface com.google.api.resourcenames.ResourceName
Copyright © 2023 Google LLC. All rights reserved.