aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/ProtoRPC
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-19 09:51:42 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-19 09:51:42 -0700
commit9925c13b2710a313d489fd040f0d7f312af0f1fc (patch)
treed68ddfff771c9f60d46c9e047cb99fc000ed0e8d /src/objective-c/ProtoRPC
parent2a9efc3d1f0ddb42d0797dee5f82ca7abedc0936 (diff)
writeWithMessage->writeMessage
Diffstat (limited to 'src/objective-c/ProtoRPC')
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.h2
-rw-r--r--src/objective-c/ProtoRPC/ProtoRPC.m4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.h b/src/objective-c/ProtoRPC/ProtoRPC.h
index 663c1610bc..4121d4f6af 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.h
+++ b/src/objective-c/ProtoRPC/ProtoRPC.h
@@ -107,7 +107,7 @@
* Send a message to the server. The message should be a Protobuf message which will be serialized
* internally.
*/
-- (void)writeWithMessage:(GPBMessage *)message;
+- (void)writeMessage:(GPBMessage *)message;
/**
* Finish the RPC request and half-close the call. The server may still send messages and/or
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m
index 238faa3343..b04b6aca67 100644
--- a/src/objective-c/ProtoRPC/ProtoRPC.m
+++ b/src/objective-c/ProtoRPC/ProtoRPC.m
@@ -41,7 +41,7 @@
responseHandler:handler
callOptions:callOptions
responseClass:responseClass];
- [_call writeWithMessage:message];
+ [_call writeMessage:message];
[_call finish];
}
return self;
@@ -132,7 +132,7 @@
});
}
-- (void)writeWithMessage:(GPBMessage *)message {
+- (void)writeMessage:(GPBMessage *)message {
if (![message isKindOfClass:[GPBMessage class]]) {
[NSException raise:NSInvalidArgumentException format:@"Data must be a valid protobuf type."];
}