GRPC Objective-C
1.71.0
|
A unary-request RPC call with Protobuf. More...
#import <ProtoRPC.h>
Instance Methods | |
(instancetype) | - NS_UNAVAILABLE |
(nullable instancetype) | - initWithRequestOptions:message:responseHandler:callOptions:responseClass: |
Users should not use this initializer directly. More... | |
(void) | - start |
Start the call. More... | |
(void) | - cancel |
Cancel the request of this call at best effort. More... | |
Class Methods | |
(instancetype) | + NS_UNAVAILABLE |
A unary-request RPC call with Protobuf.
- (void) cancel |
Cancel the request of this call at best effort.
It attempts to notify the server that the RPC should be cancelled, and issue didCloseWithTrailingMetadata:error: callback with error code CANCELED if no other error code has already been issued.
- (nullable instancetype) initWithRequestOptions: | (GRPCRequestOptions *) | requestOptions | |
message: | (GPBMessage *) | message | |
responseHandler: | (id< GRPCProtoResponseHandler >) | handler | |
callOptions: | (nullable GRPCCallOptions *) | callOptions | |
responseClass: | (Class) | NS_DESIGNATED_INITIALIZER | |
Users should not use this initializer directly.
Call objects will be created, initialized, and returned to users by methods of the generated service.
+ (instancetype) NS_UNAVAILABLE |
- (instancetype) NS_UNAVAILABLE |
- (void) start |
Start the call.
This function must only be called once for each instance.