src/grpc.ts
Properties |
Methods |
|
constructor(options: GrpcClientOptions)
|
||||||||
Defined in src/grpc.ts:94
|
||||||||
A class which keeps the context of gRPC and auth for the gRPC.
Parameters :
|
auth |
Type : GoogleAuth
|
Defined in src/grpc.ts:91
|
grpc |
Type : GrpcModule
|
Defined in src/grpc.ts:93
|
grpcVersion |
Type : string
|
Defined in src/grpc.ts:94
|
promise |
Type : PromiseConstructor
|
Defined in src/grpc.ts:92
|
Async _getCredentials | ||||||||
_getCredentials(opts: ClientStubOptions)
|
||||||||
Defined in src/grpc.ts:141
|
||||||||
Creates a gRPC credentials. It asks the auth data if necessary.
Parameters :
Returns :
{}
The promise which will be resolved to the gRPC credential. |
Static _resolveFile |
_resolveFile(protoPath: string, filename: string)
|
Defined in src/grpc.ts:190
|
Returns :
any
|
constructSettings | ||||||||||||||||||||
constructSettings(serviceName: string, clientConfig: gax.ClientConfig, configOverrides: gax.ClientConfig, headers: OutgoingHttpHeaders)
|
||||||||||||||||||||
Defined in src/grpc.ts:252
|
||||||||||||||||||||
A wrapper of constructSettings function under the gRPC context. Most of parameters are common among constructSettings, please take a look.
Parameters :
Returns :
any
A mapping of method names to CallSettings. |
Static createByteLengthFunction | ||||||||
createByteLengthFunction(message: literal type)
|
||||||||
Defined in src/grpc.ts:304
|
||||||||
Creates a 'bytelength' function for a given proto message class. See BundleDescriptor about the meaning of the return value.
Parameters :
Returns :
(obj: {}) => any
|
Async createStub | ||||||||||||
createStub(CreateStub, options: ClientStubOptions)
|
||||||||||||
Defined in src/grpc.ts:281
|
||||||||||||
Creates a gRPC stub with current gRPC and auth.
Parameters :
Returns :
{}
A promse which resolves to a gRPC stub instance. |
loadFromProto | ||||||||||||
loadFromProto(filename: string, options: grpcProtoLoader.Options)
|
||||||||||||
Defined in src/grpc.ts:161
|
||||||||||||
Loads the gRPC service from the proto file at the given path and with the given options.
Parameters :
Returns :
any
|
loadProto | ||||||||||||
loadProto(protoPath: string, filename: string)
|
||||||||||||
Defined in src/grpc.ts:174
|
||||||||||||
Load grpc proto service from a filename hooking in googleapis common protos when necessary.
Parameters :
Returns :
any
The gRPC loaded result (the toplevel namespace object). |
metadataBuilder | ||||||
metadataBuilder(headers: OutgoingHttpHeaders)
|
||||||
Defined in src/grpc.ts:199
|
||||||
Parameters :
Returns :
(abTests?: {}, moreHeaders?: any) => any
|