public class TopicInfo extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TopicInfo.Builder
Builder for
TopicInfo objects. |
| Modifier and Type | Method and Description |
|---|---|
static TopicInfo.Builder |
builder(String name)
Creates a builder for
TopicInfo objects given the name of the topic. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
name()
Returns the name of the topic.
|
static TopicInfo |
of(String name)
Creates a
TopicInfo object given the name of the topic. |
TopicInfo.Builder |
toBuilder()
Returns a builder for the topic object.
|
String |
toString() |
public String name()
[A-Za-z]), numbers ([0-9]), dashes (-), underscores (_),
periods (.), tildes (~), plus (+) or percent signs (%). It
must be between 3 and 255 characters in length and cannot begin with the string goog.public TopicInfo.Builder toBuilder()
public static TopicInfo of(String name)
TopicInfo object given the name of the topic.name - the name of the topic. The name must start with a letter, and contain only letters
([A-Za-z]), numbers ([0-9]), dashes (-), underscores (_),
periods (.), tildes (~), plus (+) or percent signs (%).
It must be between 3 and 255 characters in length and cannot begin with the string
goog.public static TopicInfo.Builder builder(String name)
TopicInfo objects given the name of the topic.name - the name of the topic. The name must start with a letter, and contain only letters
([A-Za-z]), numbers ([0-9]), dashes (-), underscores (_),
periods (.), tildes (~), plus (+) or percent signs (%).
It must be between 3 and 255 characters in length and cannot begin with the string
goog.Copyright © 2016 Google. All rights reserved.