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.
Parameters | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
ICreateDocumentSchemaRequest
CreateDocumentSchemaRequest message or plain object |
callback |
CreateDocumentSchemaCallback
Node-style callback called with the error, if any, and DocumentSchema |
Returns | |
---|---|
Type | Description |
void |
createDocumentSchema(request)
public createDocumentSchema(request: google.cloud.contentwarehouse.v1.ICreateDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;
Calls CreateDocumentSchema.
Parameter | |
---|---|
Name | Description |
request |
ICreateDocumentSchemaRequest
CreateDocumentSchemaRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IDeleteDocumentSchemaRequest
DeleteDocumentSchemaRequest message or plain object |
callback |
DeleteDocumentSchemaCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteDocumentSchema(request)
public deleteDocumentSchema(request: google.cloud.contentwarehouse.v1.IDeleteDocumentSchemaRequest): Promise<google.protobuf.Empty>;
Calls DeleteDocumentSchema.
Parameter | |
---|---|
Name | Description |
request |
IDeleteDocumentSchemaRequest
DeleteDocumentSchemaRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IGetDocumentSchemaRequest
GetDocumentSchemaRequest message or plain object |
callback |
GetDocumentSchemaCallback
Node-style callback called with the error, if any, and DocumentSchema |
Returns | |
---|---|
Type | Description |
void |
getDocumentSchema(request)
public getDocumentSchema(request: google.cloud.contentwarehouse.v1.IGetDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;
Calls GetDocumentSchema.
Parameter | |
---|---|
Name | Description |
request |
IGetDocumentSchemaRequest
GetDocumentSchemaRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IListDocumentSchemasRequest
ListDocumentSchemasRequest message or plain object |
callback |
ListDocumentSchemasCallback
Node-style callback called with the error, if any, and ListDocumentSchemasResponse |
Returns | |
---|---|
Type | Description |
void |
listDocumentSchemas(request)
public listDocumentSchemas(request: google.cloud.contentwarehouse.v1.IListDocumentSchemasRequest): Promise<google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse>;
Calls ListDocumentSchemas.
Parameter | |
---|---|
Name | Description |
request |
IListDocumentSchemasRequest
ListDocumentSchemasRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IUpdateDocumentSchemaRequest
UpdateDocumentSchemaRequest message or plain object |
callback |
UpdateDocumentSchemaCallback
Node-style callback called with the error, if any, and DocumentSchema |
Returns | |
---|---|
Type | Description |
void |
updateDocumentSchema(request)
public updateDocumentSchema(request: google.cloud.contentwarehouse.v1.IUpdateDocumentSchemaRequest): Promise<google.cloud.contentwarehouse.v1.DocumentSchema>;
Calls UpdateDocumentSchema.
Parameter | |
---|---|
Name | Description |
request |
IUpdateDocumentSchemaRequest
UpdateDocumentSchemaRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.contentwarehouse.v1.DocumentSchema> | Promise |