Represents a SchemaService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.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.v1beta.ICreateSchemaRequest, callback: google.cloud.discoveryengine.v1beta.SchemaService.CreateSchemaCallback): void;
Calls CreateSchema.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.discoveryengine.v1beta.ICreateSchemaRequest
CreateSchemaRequest message or plain object |
callback |
google.cloud.discoveryengine.v1beta.SchemaService.CreateSchemaCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createSchema(request)
public createSchema(request: google.cloud.discoveryengine.v1beta.ICreateSchemaRequest): Promise<google.longrunning.Operation>;
Calls CreateSchema.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.discoveryengine.v1beta.ICreateSchemaRequest
CreateSchemaRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteSchema(request, callback)
public deleteSchema(request: google.cloud.discoveryengine.v1beta.IDeleteSchemaRequest, callback: google.cloud.discoveryengine.v1beta.SchemaService.DeleteSchemaCallback): void;
Calls DeleteSchema.
Parameters | |
---|---|
Name | Description |
request |
IDeleteSchemaRequest
DeleteSchemaRequest message or plain object |
callback |
google.cloud.discoveryengine.v1beta.SchemaService.DeleteSchemaCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deleteSchema(request)
public deleteSchema(request: google.cloud.discoveryengine.v1beta.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.v1beta.IGetSchemaRequest, callback: google.cloud.discoveryengine.v1beta.SchemaService.GetSchemaCallback): void;
Calls GetSchema.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.discoveryengine.v1beta.IGetSchemaRequest
GetSchemaRequest message or plain object |
callback |
google.cloud.discoveryengine.v1beta.SchemaService.GetSchemaCallback
Node-style callback called with the error, if any, and Schema |
Returns | |
---|---|
Type | Description |
void |
getSchema(request)
public getSchema(request: google.cloud.discoveryengine.v1beta.IGetSchemaRequest): Promise<google.cloud.discoveryengine.v1beta.Schema>;
Calls GetSchema.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.discoveryengine.v1beta.IGetSchemaRequest
GetSchemaRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1beta.Schema> | Promise |
listSchemas(request, callback)
public listSchemas(request: google.cloud.discoveryengine.v1beta.IListSchemasRequest, callback: google.cloud.discoveryengine.v1beta.SchemaService.ListSchemasCallback): void;
Calls ListSchemas.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.discoveryengine.v1beta.IListSchemasRequest
ListSchemasRequest message or plain object |
callback |
google.cloud.discoveryengine.v1beta.SchemaService.ListSchemasCallback
Node-style callback called with the error, if any, and ListSchemasResponse |
Returns | |
---|---|
Type | Description |
void |
listSchemas(request)
public listSchemas(request: google.cloud.discoveryengine.v1beta.IListSchemasRequest): Promise<google.cloud.discoveryengine.v1beta.ListSchemasResponse>;
Calls ListSchemas.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.discoveryengine.v1beta.IListSchemasRequest
ListSchemasRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.discoveryengine.v1beta.ListSchemasResponse> | Promise |
updateSchema(request, callback)
public updateSchema(request: google.cloud.discoveryengine.v1beta.IUpdateSchemaRequest, callback: google.cloud.discoveryengine.v1beta.SchemaService.UpdateSchemaCallback): void;
Calls UpdateSchema.
Parameters | |
---|---|
Name | Description |
request |
IUpdateSchemaRequest
UpdateSchemaRequest message or plain object |
callback |
google.cloud.discoveryengine.v1beta.SchemaService.UpdateSchemaCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
updateSchema(request)
public updateSchema(request: google.cloud.discoveryengine.v1beta.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 |