Reference documentation and code samples for the Cloud PubSub V1 Client class GetSchemaRequest.
Request for the GetSchema method.
Generated from protobuf message google.pubsub.v1.GetSchemaRequest
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The name of the schema to get. Format is |
↳ view |
int
The set of fields to return in the response. If not set, returns a Schema with |
getName
Required. The name of the schema to get.
Format is projects/{project}/schemas/{schema}
.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Returns | |
---|---|
Type | Description |
string |
setName
Required. The name of the schema to get.
Format is projects/{project}/schemas/{schema}
.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getView
The set of fields to return in the response. If not set, returns a Schema
with name
and type
, but not definition
. Set to FULL
to retrieve all
fields.
Generated from protobuf field .google.pubsub.v1.SchemaView view = 2;
Returns | |
---|---|
Type | Description |
int |
setView
The set of fields to return in the response. If not set, returns a Schema
with name
and type
, but not definition
. Set to FULL
to retrieve all
fields.
Generated from protobuf field .google.pubsub.v1.SchemaView view = 2;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |