Class protos.google.cloud.asset.v1p5beta1.AssetService (4.6.3)

Represents an AssetService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.asset.v1p5beta1.AssetService

Package

@google-cloud/asset

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Creates new AssetService 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
AssetService

RPC service. Useful where requests and/or responses are streamed.

listAssets(request, callback)

public listAssets(request: google.cloud.asset.v1p5beta1.IListAssetsRequest, callback: google.cloud.asset.v1p5beta1.AssetService.ListAssetsCallback): void;

Calls ListAssets.

Parameters
NameDescription
request IListAssetsRequest

ListAssetsRequest message or plain object

callback google.cloud.asset.v1p5beta1.AssetService.ListAssetsCallback

Node-style callback called with the error, if any, and ListAssetsResponse

Returns
TypeDescription
void

listAssets(request)

public listAssets(request: google.cloud.asset.v1p5beta1.IListAssetsRequest): Promise<google.cloud.asset.v1p5beta1.ListAssetsResponse>;

Calls ListAssets.

Parameter
NameDescription
request IListAssetsRequest

ListAssetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.asset.v1p5beta1.ListAssetsResponse>

Promise