Class protos.google.cloud.discoveryengine.v1beta.SchemaService (0.6.0)

Represents a SchemaService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1beta.SchemaService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Creates new SchemaService 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
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
NameDescription
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
TypeDescription
void

createSchema(request)

public createSchema(request: google.cloud.discoveryengine.v1beta.ICreateSchemaRequest): Promise<google.longrunning.Operation>;

Calls CreateSchema.

Parameter
NameDescription
request google.cloud.discoveryengine.v1beta.ICreateSchemaRequest

CreateSchemaRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

deleteSchema(request)

public deleteSchema(request: google.cloud.discoveryengine.v1beta.IDeleteSchemaRequest): Promise<google.longrunning.Operation>;

Calls DeleteSchema.

Parameter
NameDescription
request IDeleteSchemaRequest

DeleteSchemaRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

getSchema(request)

public getSchema(request: google.cloud.discoveryengine.v1beta.IGetSchemaRequest): Promise<google.cloud.discoveryengine.v1beta.Schema>;

Calls GetSchema.

Parameter
NameDescription
request google.cloud.discoveryengine.v1beta.IGetSchemaRequest

GetSchemaRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

listSchemas(request)

public listSchemas(request: google.cloud.discoveryengine.v1beta.IListSchemasRequest): Promise<google.cloud.discoveryengine.v1beta.ListSchemasResponse>;

Calls ListSchemas.

Parameter
NameDescription
request google.cloud.discoveryengine.v1beta.IListSchemasRequest

ListSchemasRequest message or plain object

Returns
TypeDescription
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
NameDescription
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
TypeDescription
void

updateSchema(request)

public updateSchema(request: google.cloud.discoveryengine.v1beta.IUpdateSchemaRequest): Promise<google.longrunning.Operation>;

Calls UpdateSchema.

Parameter
NameDescription
request IUpdateSchemaRequest

UpdateSchemaRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise