Class ProjectIdOrNumber (1.13.8)

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
Name Description
name ProjectId
Returns
Type Description
ProjectIdOrNumber

of(ProjectNumber number)

public static ProjectIdOrNumber of(ProjectNumber number)
Parameter
Name Description
number ProjectNumber
Returns
Type Description
ProjectIdOrNumber

Constructors

ProjectIdOrNumber()

public ProjectIdOrNumber()

Methods

getKind()

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

name()

public abstract ProjectId name()
Returns
Type Description
ProjectId

number()

public abstract ProjectNumber number()
Returns
Type Description
ProjectNumber

toString()

public String toString()
Returns
Type Description
String
Overrides