Class protos.google.pubsub.v1.SchemaService (2.16.6)

Represents a SchemaService

Inheritance

$protobuf.rpc.Service > protos.google.pubsub.v1.SchemaService

Package

@google-cloud/pubsub!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new SchemaService service.

Parameters
NameDescription
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.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

createSchema(request)

public createSchema(request: google.pubsub.v1.ICreateSchemaRequest): Promise<google.pubsub.v1.Schema>;

Calls CreateSchema.

Parameter
NameDescription
request google.pubsub.v1.ICreateSchemaRequest

CreateSchemaRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

deleteSchema(request)

public deleteSchema(request: google.pubsub.v1.IDeleteSchemaRequest): Promise<google.protobuf.Empty>;

Calls DeleteSchema.

Parameter
NameDescription
request google.pubsub.v1.IDeleteSchemaRequest

DeleteSchemaRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getSchema(request, callback)

public getSchema(request: google.pubsub.v1.IGetSchemaRequest, callback: google.pubsub.v1.SchemaService.GetSchemaCallback): void;

Calls GetSchema.

Parameters
NameDescription
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

Returns
TypeDescription
void

getSchema(request)

public getSchema(request: google.pubsub.v1.IGetSchemaRequest): Promise<google.pubsub.v1.Schema>;

Calls GetSchema.

Parameter
NameDescription
request google.pubsub.v1.IGetSchemaRequest

GetSchemaRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

listSchemas(request)

public listSchemas(request: google.pubsub.v1.IListSchemasRequest): Promise<google.pubsub.v1.ListSchemasResponse>;

Calls ListSchemas.

Parameter
NameDescription
request google.pubsub.v1.IListSchemasRequest

ListSchemasRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

validateMessage(request)

public validateMessage(request: google.pubsub.v1.IValidateMessageRequest): Promise<google.pubsub.v1.ValidateMessageResponse>;

Calls ValidateMessage.

Parameter
NameDescription
request google.pubsub.v1.IValidateMessageRequest

ValidateMessageRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
request IValidateSchemaRequest

ValidateSchemaRequest message or plain object

callback google.pubsub.v1.SchemaService.ValidateSchemaCallback

Node-style callback called with the error, if any, and ValidateSchemaResponse

Returns
TypeDescription
void

validateSchema(request)

public validateSchema(request: google.pubsub.v1.IValidateSchemaRequest): Promise<google.pubsub.v1.ValidateSchemaResponse>;

Calls ValidateSchema.

Parameter
NameDescription
request IValidateSchemaRequest

ValidateSchemaRequest message or plain object

Returns
TypeDescription
Promise<google.pubsub.v1.ValidateSchemaResponse>

Promise