Represents a DocumentSchemaService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.contentwarehouse.v1.DocumentSchemaServicePackage
@google-cloud/contentwarehouseConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new DocumentSchemaService 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): DocumentSchemaService;
Creates new DocumentSchemaService 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 |
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.
Name | Description |
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 |
Type | Description |
void |
createDocumentSchema(request)
public createDocumentSchema(request: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;
Calls CreateDocumentSchema.
Name | Description |
request |
google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest
CreateDocumentSchemaRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
deleteDocumentSchema(request)
public deleteDocumentSchema(request: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest): Promise<google.protobuf.Empty>;
Calls DeleteDocumentSchema.
Name | Description |
request |
google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest
DeleteDocumentSchemaRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
getDocumentSchema(request)
public getDocumentSchema(request: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;
Calls GetDocumentSchema.
Name | Description |
request |
google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest
GetDocumentSchemaRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
listDocumentSchemas(request)
public listDocumentSchemas(request: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest): Promise<google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>;
Calls ListDocumentSchemas.
Name | Description |
request |
google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest
ListDocumentSchemasRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
updateDocumentSchema(request)
public updateDocumentSchema(request: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;
Calls UpdateDocumentSchema.
Name | Description |
request |
google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest
UpdateDocumentSchemaRequest message or plain object |
Type | Description |
Promise<google.cloud.contentwarehouse.v1.DocumentSchema> | Promise |