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
  • Constructor Details

    • TopicName

      @Deprecated protected TopicName()
      Deprecated.
  • Method Details

    • getProject

      public String getProject()
    • getTopic

      public String getTopic()
    • newBuilder

      public static TopicName.Builder newBuilder()
    • newProjectTopicBuilder

      public static TopicName.Builder newProjectTopicBuilder()
    • toBuilder

      public TopicName.Builder toBuilder()
    • of

      public static TopicName of(String project, String topic)
    • ofProjectTopicName

      public static TopicName ofProjectTopicName(String project, String topic)
    • ofDeletedTopicName

      public static TopicName ofDeletedTopicName()
    • format

      public static String format(String project, String topic)
    • formatProjectTopicName

      public static String formatProjectTopicName(String project, String topic)
    • formatDeletedTopicName

      public static String formatDeletedTopicName()
    • parse

      public static TopicName parse(String formattedString)
    • parseList

      public static List<TopicName> parseList(List<String> formattedStrings)
    • toStringList

      public static List<String> toStringList(List<TopicName> values)
    • isParsableFrom

      public static boolean isParsableFrom(String formattedString)
    • getFieldValuesMap

      public Map<String,String> getFieldValuesMap()
      Specified by:
      getFieldValuesMap in interface com.google.api.resourcenames.ResourceName
    • getFieldValue

      public String getFieldValue(String fieldName)
      Specified by:
      getFieldValue in interface com.google.api.resourcenames.ResourceName
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object