Cloud PubSub V1 Client - Class ValidateMessageRequest (2.10.1)
Stay organized with collections
Save and categorize content based on your preferences.
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
Namespace
Google \ Cloud \ PubSub \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The name of the project in which to validate schemas. Format is |
↳ name |
string
Name of the schema against which to validate. Format is |
↳ schema |
Schema
Ad-hoc schema against which to validate |
↳ message |
string
Message to validate against the provided |
↳ encoding |
int
The encoding expected for messages |
getParent
Required. The name of the project in which to validate schemas.
Format is projects/{project-id}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The name of the project in which to validate schemas.
Format is projects/{project-id}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
Name of the schema against which to validate.
Format is projects/{project}/schemas/{schema}.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasName
setName
Name of the schema against which to validate.
Format is projects/{project}/schemas/{schema}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSchema
Ad-hoc schema against which to validate
| Returns | |
|---|---|
| Type | Description |
Schema|null |
|
hasSchema
setSchema
Ad-hoc schema against which to validate
| Parameter | |
|---|---|
| Name | Description |
var |
Schema
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMessage
Message to validate against the provided schema_spec.
| Returns | |
|---|---|
| Type | Description |
string |
|
setMessage
Message to validate against the provided schema_spec.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEncoding
The encoding expected for messages
| Returns | |
|---|---|
| Type | Description |
int |
|
setEncoding
The encoding expected for messages
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSchemaSpec
| Returns | |
|---|---|
| Type | Description |
string |
|