Jorge Canizales | 9409ad8 | 2015-02-18 16:19:56 -0800 | [diff] [blame] | 1 | /* |
| 2 | * |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 3 | * Copyright 2015 gRPC authors. |
Jorge Canizales | 9409ad8 | 2015-02-18 16:19:56 -0800 | [diff] [blame] | 4 | * |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 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 |
Jorge Canizales | 9409ad8 | 2015-02-18 16:19:56 -0800 | [diff] [blame] | 8 | * |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Jorge Canizales | 9409ad8 | 2015-02-18 16:19:56 -0800 | [diff] [blame] | 10 | * |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 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. |
Jorge Canizales | 9409ad8 | 2015-02-18 16:19:56 -0800 | [diff] [blame] | 16 | * |
| 17 | */ |
| 18 | |
Jorge Canizales | 5e0efd9 | 2015-02-17 18:23:58 -0800 | [diff] [blame] | 19 | #import <Foundation/Foundation.h> |
| 20 | |
Jorge Canizales | b10776c | 2015-10-26 10:44:55 -0700 | [diff] [blame] | 21 | /** |
| 22 | * A fully-qualified proto service method name. Full qualification is needed because a gRPC endpoint |
| 23 | * can implement multiple services. |
| 24 | */ |
Muxi Yan | c92d90a | 2018-04-11 18:10:02 -0700 | [diff] [blame] | 25 | __attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod |
| 26 | : NSObject @property(nonatomic, readonly) NSString *package; |
Jorge Canizales | 1ac8f9a | 2015-07-03 12:05:04 -0700 | [diff] [blame] | 27 | @property(nonatomic, readonly) NSString *service; |
Jorge Canizales | 5e0efd9 | 2015-02-17 18:23:58 -0800 | [diff] [blame] | 28 | @property(nonatomic, readonly) NSString *method; |
Jorge Canizales | be808e3 | 2015-07-04 14:37:58 -0700 | [diff] [blame] | 29 | |
Jorge Canizales | 5260f53 | 2015-07-04 14:47:41 -0700 | [diff] [blame] | 30 | @property(nonatomic, readonly) NSString *HTTPPath; |
Jorge Canizales | be808e3 | 2015-07-04 14:37:58 -0700 | [diff] [blame] | 31 | |
Jorge Canizales | 5e0efd9 | 2015-02-17 18:23:58 -0800 | [diff] [blame] | 32 | - (instancetype)initWithPackage:(NSString *)package |
Jorge Canizales | be808e3 | 2015-07-04 14:37:58 -0700 | [diff] [blame] | 33 | service:(NSString *)service |
Jorge Canizales | 5e0efd9 | 2015-02-17 18:23:58 -0800 | [diff] [blame] | 34 | method:(NSString *)method; |
| 35 | @end |
Makarand Dharmapurikar | 6f95010 | 2016-06-07 16:52:19 -0700 | [diff] [blame] | 36 | |
| 37 | /** |
Makarand Dharmapurikar | 4f11ab1 | 2016-06-08 10:40:00 -0700 | [diff] [blame] | 38 | * This subclass is empty now. Eventually we'll remove ProtoMethod class |
Makarand Dharmapurikar | 6f95010 | 2016-06-07 16:52:19 -0700 | [diff] [blame] | 39 | * to avoid potential naming conflict |
| 40 | */ |
Yuchen Zeng | 36a58a7 | 2016-06-20 14:01:07 -0700 | [diff] [blame] | 41 | #pragma clang diagnostic push |
| 42 | #pragma clang diagnostic ignored "-Wdeprecated-declarations" |
Muxi Yan | c92d90a | 2018-04-11 18:10:02 -0700 | [diff] [blame] | 43 | @interface GRPCProtoMethod : ProtoMethod |
Yuchen Zeng | 36a58a7 | 2016-06-20 14:01:07 -0700 | [diff] [blame] | 44 | #pragma clang diagnostic pop |
Makarand Dharmapurikar | 6f95010 | 2016-06-07 16:52:19 -0700 | [diff] [blame] | 45 | |
Muxi Yan | c92d90a | 2018-04-11 18:10:02 -0700 | [diff] [blame] | 46 | @end |