Cloud PubSub V1 Client - Class ValidateSchemaRequest (1.47.0)

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

Request for the ValidateSchema method.

Generated from protobuf message google.pubsub.v1.ValidateSchemaRequest

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the project in which to validate schemas. Format is projects/{project-id}.

↳ schema Google\Cloud\PubSub\V1\Schema

Required. The schema object to validate.

getParent

Required. The name of the project in which to validate schemas.

Format is projects/{project-id}.

Returns
TypeDescription
string

setParent

Required. The name of the project in which to validate schemas.

Format is projects/{project-id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSchema

Required. The schema object to validate.

Returns
TypeDescription
Google\Cloud\PubSub\V1\Schema|null

hasSchema

clearSchema

setSchema

Required. The schema object to validate.

Parameter
NameDescription
var Google\Cloud\PubSub\V1\Schema
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The name of the project in which to validate schemas. Format is projects/{project-id}. Please see Google\Cloud\PubSub\V1\SchemaServiceClient::projectName() for help formatting this field.

schema Google\Cloud\PubSub\V1\Schema

Required. The schema object to validate.

Returns
TypeDescription
Google\Cloud\PubSub\V1\ValidateSchemaRequest