Class TopicName (1.125.3)

public class TopicName implements ResourceName

Inheritance

Object > TopicName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String topic)

public static String format(String project, String topic)
Parameters
NameDescription
projectString
topicString
Returns
TypeDescription
String

formatDeletedTopicName()

public static String formatDeletedTopicName()
Returns
TypeDescription
String

formatProjectTopicName(String project, String topic)

public static String formatProjectTopicName(String project, String topic)
Parameters
NameDescription
projectString
topicString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

newBuilder()

public static TopicName.Builder newBuilder()
Returns
TypeDescription
TopicName.Builder

newProjectTopicBuilder()

public static TopicName.Builder newProjectTopicBuilder()
Returns
TypeDescription
TopicName.Builder

of(String project, String topic)

public static TopicName of(String project, String topic)
Parameters
NameDescription
projectString
topicString
Returns
TypeDescription
TopicName

ofDeletedTopicName()

public static TopicName ofDeletedTopicName()
Returns
TypeDescription
TopicName

ofProjectTopicName(String project, String topic)

public static TopicName ofProjectTopicName(String project, String topic)
Parameters
NameDescription
projectString
topicString
Returns
TypeDescription
TopicName

parse(String formattedString)

public static TopicName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
TopicName

parseList(List<String> formattedStrings)

public static List<TopicName> parseList(List<String> formattedStrings)
Parameter
NameDescription
formattedStringsList<String>
Returns
TypeDescription
List<TopicName>

toStringList(List<TopicName> values)

public static List<String> toStringList(List<TopicName> values)
Parameter
NameDescription
valuesList<TopicName>
Returns
TypeDescription
List<String>

Constructors

TopicName()

protected TopicName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
TypeDescription
Map<String,String>

getProject()

public String getProject()
Returns
TypeDescription
String

getTopic()

public String getTopic()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public TopicName.Builder toBuilder()
Returns
TypeDescription
TopicName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides