Reference documentation and code samples for the Cloud PubSub V1 Client class SchemaSettings.
Settings for validating messages published against a schema.
Generated from protobuf message google.pubsub.v1.SchemaSettings
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ schema |
string
Required. The name of the schema that messages published should be validated against. Format is |
↳ encoding |
int
The encoding of messages validated against |
getSchema
Required. The name of the schema that messages published should be
validated against. Format is projects/{project}/schemas/{schema}
. The
value of this field will be _deleted-schema_
if the schema has been
deleted.
Generated from protobuf field string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setSchema
Required. The name of the schema that messages published should be
validated against. Format is projects/{project}/schemas/{schema}
. The
value of this field will be _deleted-schema_
if the schema has been
deleted.
Generated from protobuf field string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getEncoding
The encoding of messages validated against schema
.
Generated from protobuf field .google.pubsub.v1.Encoding encoding = 2;
Returns | |
---|---|
Type | Description |
int |
setEncoding
The encoding of messages validated against schema
.
Generated from protobuf field .google.pubsub.v1.Encoding encoding = 2;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |