Class ProjectIdOrNumber (1.9.4)

public abstract class ProjectIdOrNumber implements Serializable

Inheritance

java.lang.Object > ProjectIdOrNumber

Implements

Serializable

Static Methods

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

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides