Cloud PubSub V1 Client - Class ValidateMessageRequest (1.39.3)

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

Request for the ValidateMessage method.

Generated from protobuf message google.pubsub.v1.ValidateMessageRequest

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}.

↳ name string

Name of the schema against which to validate. Format is projects/{project}/schemas/{schema}.

↳ schema Google\Cloud\PubSub\V1\Schema

Ad-hoc schema against which to validate

↳ message string

Message to validate against the provided schema_spec.

↳ encoding int

The encoding expected for messages

getParent

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

Format is projects/{project-id}.

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

Returns
TypeDescription
string

setParent

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

Format is projects/{project-id}.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

Name of the schema against which to validate.

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

Generated from protobuf field string name = 2 [(.google.api.resource_reference) = {

Returns
TypeDescription
string

hasName

setName

Name of the schema against which to validate.

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

Generated from protobuf field string name = 2 [(.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSchema

Ad-hoc schema against which to validate

Generated from protobuf field .google.pubsub.v1.Schema schema = 3;

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

hasSchema

setSchema

Ad-hoc schema against which to validate

Generated from protobuf field .google.pubsub.v1.Schema schema = 3;

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

getMessage

Message to validate against the provided schema_spec.

Generated from protobuf field bytes message = 4;

Returns
TypeDescription
string

setMessage

Message to validate against the provided schema_spec.

Generated from protobuf field bytes message = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEncoding

The encoding expected for messages

Generated from protobuf field .google.pubsub.v1.Encoding encoding = 5;

Returns
TypeDescription
int

setEncoding

The encoding expected for messages

Generated from protobuf field .google.pubsub.v1.Encoding encoding = 5;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSchemaSpec

Returns
TypeDescription
string