aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-19 15:42:39 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-19 15:43:21 -0700
commit422d3296b2d4fb3f8aa0991c2ffa895251ad8e91 (patch)
tree6ebfe78c33a6164ad3330e6926a11adcef375bf5 /src/objective-c/GRPCClient/GRPCCall.h
parente542e006eb4ffcd0c19488428a3cfe5605bf41e5 (diff)
Annotate Nullability
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall.h')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h
index 9fdcd93a30..c862609b21 100644
--- a/src/objective-c/GRPCClient/GRPCCall.h
+++ b/src/objective-c/GRPCClient/GRPCCall.h
@@ -39,6 +39,8 @@
#include "GRPCCallOptions.h"
+NS_ASSUME_NONNULL_BEGIN
+
#pragma mark gRPC errors
/** Domain of NSError objects produced by gRPC. */
@@ -154,13 +156,13 @@ extern NSString * const kGRPCTrailersKey;
@optional
/** Issued when initial metadata is received from the server. */
-- (void)receivedInitialMetadata:(NSDictionary *)initialMetadata;
+- (void)receivedInitialMetadata:(NSDictionary * _Nullable)initialMetadata;
/**
* Issued when a message is received from the server. The message is the raw data received from the
* server, with decompression and without proto deserialization.
*/
-- (void)receivedRawMessage:(NSData *)message;
+- (void)receivedRawMessage:(NSData * _Nullable)message;
/**
* Issued when a call finished. If the call finished successfully, \a error is nil and \a
@@ -168,7 +170,7 @@ extern NSString * const kGRPCTrailersKey;
* is non-nil and contains the corresponding error information, including gRPC error codes and
* error descriptions.
*/
-- (void)closedWithTrailingMetadata:(NSDictionary *)trailingMetadata error:(NSError *)error;
+- (void)closedWithTrailingMetadata:(NSDictionary * _Nullable)trailingMetadata error:(NSError * _Nullable)error;
@required
@@ -226,7 +228,7 @@ extern NSString * const kGRPCTrailersKey;
*/
- (instancetype)initWithRequestOptions:(GRPCRequestOptions *)requestOptions
responseHandler:(id<GRPCResponseHandler>)responseHandler
- callOptions:(GRPCCallOptions *)callOptions NS_DESIGNATED_INITIALIZER;
+ callOptions:(GRPCCallOptions * _Nullable)callOptions NS_DESIGNATED_INITIALIZER;
/**
* Convenience initializer for a call that uses default call options (see GRPCCallOptions.m for
* the default options).
@@ -267,6 +269,8 @@ extern NSString * const kGRPCTrailersKey;
@end
+NS_ASSUME_NONNULL_END
+
/**
* This interface is deprecated. Please use \a GRPCcall2.
*