Class protos.google.cloud.contentwarehouse.v1.DocumentSchemaService (0.3.1)

Represents a DocumentSchemaService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.contentwarehouse.v1.DocumentSchemaService

Package

@google-cloud/contentwarehouse

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new DocumentSchemaService 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): DocumentSchemaService;

Creates new DocumentSchemaService 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
DocumentSchemaService

RPC service. Useful where requests and/or responses are streamed.

createDocumentSchema(request, callback)

public createDocumentSchema(request: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.CreateDocumentSchemaCallback): void;

Calls CreateDocumentSchema.

Parameters
NameDescription
request google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest

CreateDocumentSchemaRequest message or plain object

callback google.cloud.contentwarehouse.v1.DocumentSchemaService.CreateDocumentSchemaCallback

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

Returns
TypeDescription
void

createDocumentSchema(request)

public createDocumentSchema(request: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;

Calls CreateDocumentSchema.

Parameter
NameDescription
request google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest

CreateDocumentSchemaRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.DocumentSchema>

Promise

deleteDocumentSchema(request, callback)

public deleteDocumentSchema(request: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.DeleteDocumentSchemaCallback): void;

Calls DeleteDocumentSchema.

Parameters
NameDescription
request google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest

DeleteDocumentSchemaRequest message or plain object

callback google.cloud.contentwarehouse.v1.DocumentSchemaService.DeleteDocumentSchemaCallback

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

Returns
TypeDescription
void

deleteDocumentSchema(request)

public deleteDocumentSchema(request: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest): Promise<google.protobuf.Empty>;

Calls DeleteDocumentSchema.

Parameter
NameDescription
request google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest

DeleteDocumentSchemaRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getDocumentSchema(request, callback)

public getDocumentSchema(request: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.GetDocumentSchemaCallback): void;

Calls GetDocumentSchema.

Parameters
NameDescription
request google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest

GetDocumentSchemaRequest message or plain object

callback google.cloud.contentwarehouse.v1.DocumentSchemaService.GetDocumentSchemaCallback

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

Returns
TypeDescription
void

getDocumentSchema(request)

public getDocumentSchema(request: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;

Calls GetDocumentSchema.

Parameter
NameDescription
request google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest

GetDocumentSchemaRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.DocumentSchema>

Promise

listDocumentSchemas(request, callback)

public listDocumentSchemas(request: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.ListDocumentSchemasCallback): void;

Calls ListDocumentSchemas.

Parameters
NameDescription
request google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest

ListDocumentSchemasRequest message or plain object

callback google.cloud.contentwarehouse.v1.DocumentSchemaService.ListDocumentSchemasCallback

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

Returns
TypeDescription
void

listDocumentSchemas(request)

public listDocumentSchemas(request: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest): Promise<google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>;

Calls ListDocumentSchemas.

Parameter
NameDescription
request google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest

ListDocumentSchemasRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>

Promise

updateDocumentSchema(request, callback)

public updateDocumentSchema(request: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest, callback: google.cloud.contentwarehouse.v1.DocumentSchemaService.UpdateDocumentSchemaCallback): void;

Calls UpdateDocumentSchema.

Parameters
NameDescription
request google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest

UpdateDocumentSchemaRequest message or plain object

callback google.cloud.contentwarehouse.v1.DocumentSchemaService.UpdateDocumentSchemaCallback

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

Returns
TypeDescription
void

updateDocumentSchema(request)

public updateDocumentSchema(request: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;

Calls UpdateDocumentSchema.

Parameter
NameDescription
request google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest

UpdateDocumentSchemaRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.DocumentSchema>

Promise