Represents a SchemaService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1.SchemaServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new SchemaService 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): SchemaService;
Creates new SchemaService 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 |
SchemaService | RPC service. Useful where requests and/or responses are streamed. |
createSchema(request, callback)
public createSchema(request: google.cloud.discoveryengine.v1.ICreateSchemaRequest, callback: google.cloud.discoveryengine.v1.SchemaService.CreateSchemaCallback): void;
Calls CreateSchema.
Parameters | |
---|---|
Name | Description |
request |
ICreateSchemaRequest
CreateSchemaRequest message or plain object |
callback |
CreateSchemaCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createSchema(request)
public createSchema(request: google.cloud.discoveryengine.v1.ICreateSchemaRequest): Promise<google.longrunning.Operation>;
Calls CreateSchema.
Parameter | |
---|---|
Name | Description |
request |
ICreateSchemaRequest
CreateSchemaRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteSchema(request, callback)
public deleteSchema(request: google.cloud.discoveryengine.v1.IDeleteSchemaRequest, callback: google.cloud.discoveryengine.v1.SchemaService.DeleteSchemaCallback): void;
Calls DeleteSchema.
Parameters | |
---|---|
Name | Description |
request |
IDeleteSchemaRequest
DeleteSchemaRequest message or plain object |
callback |
DeleteSchemaCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteSchema(request)
public deleteSchema(request: google.cloud.discoveryengine.v1.IDeleteSchemaRequest): Promise<google.longrunning.Operation>;
Calls DeleteSchema.
Parameter | |
---|---|
Name | Description |
request |
IDeleteSchemaRequest
DeleteSchemaRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
getSchema(request, callback)
public getSchema(request: google.cloud.discoveryengine.v1.IGetSchemaRequest, callback: google.cloud.discoveryengine.v1.SchemaService.GetSchemaCallback): void;
Calls GetSchema.
Parameters | |
---|---|
Name | Description |
request |
IGetSchemaRequest
GetSchemaRequest message or plain object |
callback |
GetSchemaCallback
Node-style callback called with the error, if any, and Schema |
Returns | |
---|---|
Type | Description |
void |
getSchema(request)
public getSchema(request: google.cloud.discoveryengine.v1.IGetSchemaRequest): Promise<google.cloud.discoveryengine.v1.Schema>;
Calls GetSchema.
Parameter | |
---|---|
Name | Description |
request |
IGetSchemaRequest
GetSchemaRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1.Schema> | Promise |
listSchemas(request, callback)
public listSchemas(request: google.cloud.discoveryengine.v1.IListSchemasRequest, callback: google.cloud.discoveryengine.v1.SchemaService.ListSchemasCallback): void;
Calls ListSchemas.
Parameters | |
---|---|
Name | Description |
request |
IListSchemasRequest
ListSchemasRequest message or plain object |
callback |
ListSchemasCallback
Node-style callback called with the error, if any, and ListSchemasResponse |
Returns | |
---|---|
Type | Description |
void |
listSchemas(request)
public listSchemas(request: google.cloud.discoveryengine.v1.IListSchemasRequest): Promise<google.cloud.discoveryengine.v1.ListSchemasResponse>;
Calls ListSchemas.
Parameter | |
---|---|
Name | Description |
request |
IListSchemasRequest
ListSchemasRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1.ListSchemasResponse> | Promise |
updateSchema(request, callback)
public updateSchema(request: google.cloud.discoveryengine.v1.IUpdateSchemaRequest, callback: google.cloud.discoveryengine.v1.SchemaService.UpdateSchemaCallback): void;
Calls UpdateSchema.
Parameters | |
---|---|
Name | Description |
request |
IUpdateSchemaRequest
UpdateSchemaRequest message or plain object |
callback |
UpdateSchemaCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
updateSchema(request)
public updateSchema(request: google.cloud.discoveryengine.v1.IUpdateSchemaRequest): Promise<google.longrunning.Operation>;
Calls UpdateSchema.
Parameter | |
---|---|
Name | Description |
request |
IUpdateSchemaRequest
UpdateSchemaRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |