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
Methods
__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 create the schema. Format is |
↳ schema |
Google\Cloud\PubSub\V1\Schema
Required. The schema object to create. This schema's |
↳ 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/admin#resource_names for resource name constraints. |
getParent
Required. The name of the project in which to create the schema.
Format is projects/{project-id}
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The name of the project in which to create the schema.
Format is projects/{project-id}
.
Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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
.
Generated from protobuf field .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Google\Cloud\PubSub\V1\Schema|null |
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
.
Generated from protobuf field .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\PubSub\V1\Schema
|
Returns | |
---|---|
Type | Description |
$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/admin#resource_names for resource name constraints.
Generated from protobuf field string schema_id = 3;
Returns | |
---|---|
Type | Description |
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/admin#resource_names for resource name constraints.
Generated from protobuf field string schema_id = 3;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |