Class ProjectIdOrNumber

public abstract class ProjectIdOrNumber implements Serializable

Inheritance

java.lang.Object > ProjectIdOrNumber

Implements

Serializable

Constructors

ProjectIdOrNumber()

public ProjectIdOrNumber()

Methods

getKind()

public abstract ProjectIdOrNumber.Kind getKind()
Returns
TypeDescription
com.google.cloud.pubsublite.ProjectIdOrNumber.Kind

name()

public abstract ProjectId name()
Returns
TypeDescription
ProjectId

number()

public abstract ProjectNumber number()
Returns
TypeDescription
ProjectNumber

of(ProjectId name)

public static ProjectIdOrNumber of(ProjectId name)
Parameter
NameDescription
nameProjectId
Returns
TypeDescription
ProjectIdOrNumber

of(ProjectNumber number)

public static ProjectIdOrNumber of(ProjectNumber number)
Parameter
NameDescription
numberProjectNumber
Returns
TypeDescription
ProjectIdOrNumber

toString()

public String toString()
Returns
TypeDescription
String
Overrides