Represents a SchemaService
Inheritance
$protobuf.rpc.Service > protos.google.pubsub.v1.SchemaServicePackage
@google-cloud/pubsub!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new SchemaService service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SchemaService;
Creates new SchemaService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
SchemaService | RPC service. Useful where requests and/or responses are streamed. |
createSchema(request, callback)
public createSchema(request: google.pubsub.v1.ICreateSchemaRequest, callback: google.pubsub.v1.SchemaService.CreateSchemaCallback): void;
Calls CreateSchema.
Name | Description |
request |
google.pubsub.v1.ICreateSchemaRequest
CreateSchemaRequest message or plain object |
callback |
google.pubsub.v1.SchemaService.CreateSchemaCallback
Node-style callback called with the error, if any, and Schema |
Type | Description |
void |
createSchema(request)
public createSchema(request: google.pubsub.v1.ICreateSchemaRequest): Promise<google.pubsub.v1.Schema>;
Calls CreateSchema.
Name | Description |
request |
google.pubsub.v1.ICreateSchemaRequest
CreateSchemaRequest message or plain object |
Type | Description |
Promise<google.pubsub.v1.Schema> | Promise |
deleteSchema(request, callback)
public deleteSchema(request: google.pubsub.v1.IDeleteSchemaRequest, callback: google.pubsub.v1.SchemaService.DeleteSchemaCallback): void;
Calls DeleteSchema.
Name | Description |
request |
google.pubsub.v1.IDeleteSchemaRequest
DeleteSchemaRequest message or plain object |
callback |
google.pubsub.v1.SchemaService.DeleteSchemaCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteSchema(request)
public deleteSchema(request: google.pubsub.v1.IDeleteSchemaRequest): Promise<google.protobuf.Empty>;
Calls DeleteSchema.
Name | Description |
request |
google.pubsub.v1.IDeleteSchemaRequest
DeleteSchemaRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getSchema(request, callback)
public getSchema(request: google.pubsub.v1.IGetSchemaRequest, callback: google.pubsub.v1.SchemaService.GetSchemaCallback): void;
Calls GetSchema.
Name | Description |
request |
google.pubsub.v1.IGetSchemaRequest
GetSchemaRequest message or plain object |
callback |
google.pubsub.v1.SchemaService.GetSchemaCallback
Node-style callback called with the error, if any, and Schema |
Type | Description |
void |
getSchema(request)
public getSchema(request: google.pubsub.v1.IGetSchemaRequest): Promise<google.pubsub.v1.Schema>;
Calls GetSchema.
Name | Description |
request |
google.pubsub.v1.IGetSchemaRequest
GetSchemaRequest message or plain object |
Type | Description |
Promise<google.pubsub.v1.Schema> | Promise |
listSchemas(request, callback)
public listSchemas(request: google.pubsub.v1.IListSchemasRequest, callback: google.pubsub.v1.SchemaService.ListSchemasCallback): void;
Calls ListSchemas.
Name | Description |
request |
google.pubsub.v1.IListSchemasRequest
ListSchemasRequest message or plain object |
callback |
google.pubsub.v1.SchemaService.ListSchemasCallback
Node-style callback called with the error, if any, and ListSchemasResponse |
Type | Description |
void |
listSchemas(request)
public listSchemas(request: google.pubsub.v1.IListSchemasRequest): Promise<google.pubsub.v1.ListSchemasResponse>;
Calls ListSchemas.
Name | Description |
request |
google.pubsub.v1.IListSchemasRequest
ListSchemasRequest message or plain object |
Type | Description |
Promise<google.pubsub.v1.ListSchemasResponse> | Promise |
validateMessage(request, callback)
public validateMessage(request: google.pubsub.v1.IValidateMessageRequest, callback: google.pubsub.v1.SchemaService.ValidateMessageCallback): void;
Calls ValidateMessage.
Name | Description |
request |
google.pubsub.v1.IValidateMessageRequest
ValidateMessageRequest message or plain object |
callback |
google.pubsub.v1.SchemaService.ValidateMessageCallback
Node-style callback called with the error, if any, and ValidateMessageResponse |
Type | Description |
void |
validateMessage(request)
public validateMessage(request: google.pubsub.v1.IValidateMessageRequest): Promise<google.pubsub.v1.ValidateMessageResponse>;
Calls ValidateMessage.
Name | Description |
request |
google.pubsub.v1.IValidateMessageRequest
ValidateMessageRequest message or plain object |
Type | Description |
Promise<google.pubsub.v1.ValidateMessageResponse> | Promise |
validateSchema(request, callback)
public validateSchema(request: google.pubsub.v1.IValidateSchemaRequest, callback: google.pubsub.v1.SchemaService.ValidateSchemaCallback): void;
Calls ValidateSchema.
Name | Description |
request |
IValidateSchemaRequest
ValidateSchemaRequest message or plain object |
callback |
google.pubsub.v1.SchemaService.ValidateSchemaCallback
Node-style callback called with the error, if any, and ValidateSchemaResponse |
Type | Description |
void |
validateSchema(request)
public validateSchema(request: google.pubsub.v1.IValidateSchemaRequest): Promise<google.pubsub.v1.ValidateSchemaResponse>;
Calls ValidateSchema.
Name | Description |
request |
IValidateSchemaRequest
ValidateSchemaRequest message or plain object |
Type | Description |
Promise<google.pubsub.v1.ValidateSchemaResponse> | Promise |