GRPC Objective-C  1.26.0
ProtoRPCLegacy.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2019 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
20 
21 // Import category headers for Swift build
28 
29 @class GRPCProtoMethod;
30 @class GRXWriter;
31 @protocol GRXWriteable;
32 
33 __attribute__((deprecated("Please use GRPCProtoCall."))) @interface ProtoRPC
34  : GRPCCall
35 
40  -
41  (instancetype)initWithHost : (NSString *)host method
42  : (GRPCProtoMethod *)method requestsWriter : (GRXWriter *)requestsWriter responseClass
43  : (Class)responseClass responsesWriteable
44  : (id<GRXWriteable>)responsesWriteable NS_DESIGNATED_INITIALIZER;
45 
46 - (void)start;
47 
48 @end
49 
54 #pragma clang diagnostic push
55 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
56  @interface GRPCProtoCall
57  : ProtoRPC
58 #pragma clang diagnostic pop
59 
60  @end
61 
66  NSError *
67  ErrorForBadProto(id proto, Class expectedClass, NSError *parsingError);
NSError * ErrorForBadProto(id proto, Class expectedClass, NSError *parsingError)
Generate an NSError object that represents a failure in parsing a proto class.
__attribute__(void) start
host parameter should not contain the scheme (http:// or https://), only the name or IP addr and the ...
This is the legacy interface of this gRPC library.
Definition: GRPCCallLegacy.h:31
This subclass is empty now.
Definition: ProtoRPCLegacy.h:57
This subclass is empty now.
Definition: ProtoMethod.h:44
Utility to create objects that conform to the GRXWriteable protocol, from blocks that handle each of ...
Definition: GRXWriteable.h:47
An GRXWriter object can produce, on demand, a sequence of values.
Definition: GRXWriter.h:78