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.
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
↳ 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) = {
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) = {
var
string
$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) = {
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) = {
var
string
$this
getSchema
Ad-hoc schema against which to validate
Generated from protobuf field .google.pubsub.v1.Schema schema = 3;
hasSchema
setSchema
Ad-hoc schema against which to validate
Generated from protobuf field .google.pubsub.v1.Schema schema = 3;
$this
getMessage
Message to validate against the provided schema_spec
.
Generated from protobuf field bytes message = 4;
string
setMessage
Message to validate against the provided schema_spec
.
Generated from protobuf field bytes message = 4;
var
string
$this
getEncoding
The encoding expected for messages
Generated from protobuf field .google.pubsub.v1.Encoding encoding = 5;
int
setEncoding
The encoding expected for messages
Generated from protobuf field .google.pubsub.v1.Encoding encoding = 5;
var
int
$this
getSchemaSpec
string