Cloud PubSub V1 Client - Class GetSchemaRequest (1.42.1)

Reference documentation and code samples for the Cloud PubSub V1 Client class GetSchemaRequest.

Request for the GetSchema method.

Generated from protobuf message google.pubsub.v1.GetSchemaRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the schema to get. Format is projects/{project}/schemas/{schema}.

↳ view int

The set of fields to return in the response. If not set, returns a Schema with all fields filled out. Set to BASIC to omit the definition.

getName

Required. The name of the schema to get.

Format is projects/{project}/schemas/{schema}.

Returns
TypeDescription
string

setName

Required. The name of the schema to get.

Format is projects/{project}/schemas/{schema}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getView

The set of fields to return in the response. If not set, returns a Schema with all fields filled out. Set to BASIC to omit the definition.

Returns
TypeDescription
int

setView

The set of fields to return in the response. If not set, returns a Schema with all fields filled out. Set to BASIC to omit the definition.

Parameter
NameDescription
var int
Returns
TypeDescription
$this