Cloud PubSub V1 Client - Class GetSchemaRequest (1.39.3)

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 name and type, but not definition. Set to FULL to retrieve all fields.

getName

Required. The name of the schema to get.

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

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setName

Required. The name of the schema to get.

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

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getView

The set of fields to return in the response. If not set, returns a Schema with name and type, but not definition. Set to FULL to retrieve all fields.

Generated from protobuf field .google.pubsub.v1.SchemaView view = 2;

Returns
TypeDescription
int

setView

The set of fields to return in the response. If not set, returns a Schema with name and type, but not definition. Set to FULL to retrieve all fields.

Generated from protobuf field .google.pubsub.v1.SchemaView view = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this