Class protos.google.shopping.merchant.datasources.v1beta.FileUploadsService (0.3.0)

Represents a FileUploadsService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.datasources.v1beta.FileUploadsService

Package

@google-shopping/datasources

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

getFileUpload(request, callback)

public getFileUpload(request: google.shopping.merchant.datasources.v1beta.IGetFileUploadRequest, callback: google.shopping.merchant.datasources.v1beta.FileUploadsService.GetFileUploadCallback): void;

Calls GetFileUpload.

Parameters
Name Description
request IGetFileUploadRequest

GetFileUploadRequest message or plain object

callback GetFileUploadCallback

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

Returns
Type Description
void

getFileUpload(request)

public getFileUpload(request: google.shopping.merchant.datasources.v1beta.IGetFileUploadRequest): Promise<google.shopping.merchant.datasources.v1beta.FileUpload>;

Calls GetFileUpload.

Parameter
Name Description
request IGetFileUploadRequest

GetFileUploadRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.datasources.v1beta.FileUpload>

Promise