diff options
author | Muxi Yan <mxyan@google.com> | 2018-10-10 16:36:09 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-10-10 16:36:09 -0700 |
commit | 5715719afb061feb3c7de931cc8e7126bc9560e5 (patch) | |
tree | d14fd71e8c9a882e9da2275a07622014230ac24f /src/objective-c/GRPCClient/GRPCCall.h | |
parent | 553664f59bc947d48c73e6c1976e054fe35147f5 (diff) |
Make multiple -init and +new UNAVAILABLE; identify designated initializer
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall.h')
-rw-r--r-- | src/objective-c/GRPCClient/GRPCCall.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall.h b/src/objective-c/GRPCClient/GRPCCall.h index 64a6df3134..2ee181b93b 100644 --- a/src/objective-c/GRPCClient/GRPCCall.h +++ b/src/objective-c/GRPCClient/GRPCCall.h @@ -190,8 +190,10 @@ extern id const kGRPCTrailersKey; - (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + /** Initialize with all properties. */ -- (instancetype)initWithHost:(NSString *)host path:(NSString *)path safety:(GRPCCallSafety)safety; +- (instancetype)initWithHost:(NSString *)host path:(NSString *)path safety:(GRPCCallSafety)safety NS_DESIGNATED_INITIALIZER; /** The host serving the RPC service. */ @property(copy, readonly) NSString *host; @@ -214,6 +216,8 @@ extern id const kGRPCTrailersKey; - (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + /** * Designated initializer for a call. * \param requestOptions Protobuf generated parameters for the call. |