Represents an EstimateBillingService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1alpha.EstimateBillingServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new EstimateBillingService 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): EstimateBillingService;
Creates new EstimateBillingService 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 |
EstimateBillingService | RPC service. Useful where requests and/or responses are streamed. |
estimateDataSize(request, callback)
public estimateDataSize(request: google.cloud.discoveryengine.v1alpha.IEstimateDataSizeRequest, callback: google.cloud.discoveryengine.v1alpha.EstimateBillingService.EstimateDataSizeCallback): void;
Calls EstimateDataSize.
Parameters | |
---|---|
Name | Description |
request |
IEstimateDataSizeRequest
EstimateDataSizeRequest message or plain object |
callback |
EstimateDataSizeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
estimateDataSize(request)
public estimateDataSize(request: google.cloud.discoveryengine.v1alpha.IEstimateDataSizeRequest): Promise<google.longrunning.Operation>;
Calls EstimateDataSize.
Parameter | |
---|---|
Name | Description |
request |
IEstimateDataSizeRequest
EstimateDataSizeRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |