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
.
↳ revision_id
string
Output only. Immutable. The revision ID of the schema.
↳ revision_create_time
getName
Required. Name of the schema.
Format is projects/{project}/schemas/{schema}
.
string
setName
Required. Name of the schema.
Format is projects/{project}/schemas/{schema}
.
var
string
$this
getType
The type of the schema definition.
int
setType
The type of the schema definition.
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
.
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
.
var
string
$this
getRevisionId
Output only. Immutable. The revision ID of the schema.
string
setRevisionId
Output only. Immutable. The revision ID of the schema.
var
string
$this
getRevisionCreateTime
Output only. The timestamp that the revision was created.
hasRevisionCreateTime
clearRevisionCreateTime
setRevisionCreateTime
Output only. The timestamp that the revision was created.
$this