Reference documentation and code samples for the Cloud PubSub V1 Client class CreateSchemaRequest.
Request for the CreateSchema method.
Generated from protobuf message google.pubsub.v1.CreateSchemaRequest
Namespace
Google \ Cloud \ PubSub \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The name of the project in which to create the schema. Format is projects/{project-id}
.
↳ schema
Schema
Required. The schema object to create. This schema's name
parameter is ignored. The schema object returned by CreateSchema will have a name
made using the given parent
and schema_id
.
↳ schema_id
string
The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.
getParent
Required. The name of the project in which to create the schema.
Format is projects/{project-id}
.
string
setParent
Required. The name of the project in which to create the schema.
Format is projects/{project-id}
.
var
string
$this
getSchema
Required. The schema object to create.
This schema's name
parameter is ignored. The schema object returned
by CreateSchema will have a name
made using the given parent
and schema_id
.
hasSchema
clearSchema
setSchema
Required. The schema object to create.
This schema's name
parameter is ignored. The schema object returned
by CreateSchema will have a name
made using the given parent
and schema_id
.
$this
getSchemaId
The ID to use for the schema, which will become the final component of the schema's resource name.
See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.
string
setSchemaId
The ID to use for the schema, which will become the final component of the schema's resource name.
See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.
var
string
$this
static::build
parent
string
Required. The name of the project in which to create the schema.
Format is projects/{project-id}
. Please see SchemaServiceClient::projectName()
for help formatting this field.
schema
Schema
Required. The schema object to create.
This schema's name
parameter is ignored. The schema object returned
by CreateSchema will have a name
made using the given parent
and schema_id
.
schemaId
string
The ID to use for the schema, which will become the final component of the schema's resource name.
See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.