Package com.google.pubsub.v1
Class TopicName
- java.lang.Object
-
- com.google.pubsub.v1.TopicName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
- Direct Known Subclasses:
DeletedTopic
,ProjectTopicName
,UntypedTopicName
@Generated("by gapic-generator-java") public class TopicName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TopicName.Builder
Builder for projects/{project}/topics/{topic}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
TopicName()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
TopicName
@Deprecated protected TopicName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getTopic
public String getTopic()
-
newBuilder
public static TopicName.Builder newBuilder()
-
newProjectTopicBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static TopicName.Builder newProjectTopicBuilder()
-
toBuilder
public TopicName.Builder toBuilder()
-
ofProjectTopicName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static TopicName ofProjectTopicName(String project, String topic)
-
ofDeletedTopicName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static TopicName ofDeletedTopicName()
-
formatProjectTopicName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectTopicName(String project, String topic)
-
formatDeletedTopicName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatDeletedTopicName()
-
isParsableFrom
public static boolean isParsableFrom(String formattedString)
-
getFieldValuesMap
public Map<String,String> getFieldValuesMap()
- Specified by:
getFieldValuesMap
in interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValue
in interfacecom.google.api.resourcenames.ResourceName
-
-