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 classTopicName.BuilderBuilder for projects/{project}/topics/{topic}.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTopicName()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static Stringformat(String project, String topic)static StringformatDeletedTopicName()static StringformatProjectTopicName(String project, String topic)StringgetFieldValue(String fieldName)Map<String,String>getFieldValuesMap()StringgetProject()StringgetTopic()inthashCode()static booleanisParsableFrom(String formattedString)static TopicName.BuildernewBuilder()static TopicName.BuildernewProjectTopicBuilder()static TopicNameof(String project, String topic)static TopicNameofDeletedTopicName()static TopicNameofProjectTopicName(String project, String topic)static TopicNameparse(String formattedString)static List<TopicName>parseList(List<String> formattedStrings)TopicName.BuildertoBuilder()StringtoString()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:
getFieldValuesMapin interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValuein interfacecom.google.api.resourcenames.ResourceName
-
-