Reference documentation and code samples for the Cloud PubSub V1 Client class Schema.
A schema resource.
Generated from protobuf message google.pubsub.v1.Schema
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Name of the schema. Format is projects/{project}/schemas/{schema}
.
↳ type
int
The type of the schema definition.
↳ definition
string
The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type
.
getName
Required. Name of the schema.
Format is projects/{project}/schemas/{schema}
.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
string
setName
Required. Name of the schema.
Format is projects/{project}/schemas/{schema}
.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
var
string
$this
getType
The type of the schema definition.
Generated from protobuf field .google.pubsub.v1.Schema.Type type = 2;
int
setType
The type of the schema definition.
Generated from protobuf field .google.pubsub.v1.Schema.Type type = 2;
var
int
$this
getDefinition
The definition of the schema. This should contain a string representing
the full definition of the schema that is a valid schema definition of
the type specified in type
.
Generated from protobuf field string definition = 3;
string
setDefinition
The definition of the schema. This should contain a string representing
the full definition of the schema that is a valid schema definition of
the type specified in type
.
Generated from protobuf field string definition = 3;
var
string
$this