Cloud PubSub V1 Client - Class GetSchemaRequest (1.48.0)

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

Namespace

Google \ Cloud \ PubSub \ V1

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

static::build

Parameter
NameDescription
name string

Required. The name of the schema to get. Format is projects/{project}/schemas/{schema}. Please see Google\Cloud\PubSub\V1\SchemaServiceClient::schemaName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\PubSub\V1\GetSchemaRequest