blob: 3ba0f70293f769efb8804037da70f2f8fcae33ee [file] [log] [blame]
Jorge Canizales9409ad82015-02-18 16:19:56 -08001/*
2 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003 * Copyright 2015 gRPC authors.
Jorge Canizales9409ad82015-02-18 16:19:56 -08004 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02005 * 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 Canizales9409ad82015-02-18 16:19:56 -08008 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009 * http://www.apache.org/licenses/LICENSE-2.0
Jorge Canizales9409ad82015-02-18 16:19:56 -080010 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +020011 * 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 Canizales9409ad82015-02-18 16:19:56 -080016 *
17 */
18
Jorge Canizales5e0efd92015-02-17 18:23:58 -080019#import <Foundation/Foundation.h>
20
Jorge Canizalesb10776c2015-10-26 10:44:55 -070021/**
22 * A fully-qualified proto service method name. Full qualification is needed because a gRPC endpoint
23 * can implement multiple services.
24 */
Muxi Yanc92d90a2018-04-11 18:10:02 -070025__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod
26 : NSObject @property(nonatomic, readonly) NSString *package;
Jorge Canizales1ac8f9a2015-07-03 12:05:04 -070027@property(nonatomic, readonly) NSString *service;
Jorge Canizales5e0efd92015-02-17 18:23:58 -080028@property(nonatomic, readonly) NSString *method;
Jorge Canizalesbe808e32015-07-04 14:37:58 -070029
Jorge Canizales5260f532015-07-04 14:47:41 -070030@property(nonatomic, readonly) NSString *HTTPPath;
Jorge Canizalesbe808e32015-07-04 14:37:58 -070031
Jorge Canizales5e0efd92015-02-17 18:23:58 -080032- (instancetype)initWithPackage:(NSString *)package
Jorge Canizalesbe808e32015-07-04 14:37:58 -070033 service:(NSString *)service
Jorge Canizales5e0efd92015-02-17 18:23:58 -080034 method:(NSString *)method;
35@end
Makarand Dharmapurikar6f950102016-06-07 16:52:19 -070036
37/**
Makarand Dharmapurikar4f11ab12016-06-08 10:40:00 -070038 * This subclass is empty now. Eventually we'll remove ProtoMethod class
Makarand Dharmapurikar6f950102016-06-07 16:52:19 -070039 * to avoid potential naming conflict
40 */
Yuchen Zeng36a58a72016-06-20 14:01:07 -070041#pragma clang diagnostic push
42#pragma clang diagnostic ignored "-Wdeprecated-declarations"
Muxi Yanc92d90a2018-04-11 18:10:02 -070043 @interface GRPCProtoMethod : ProtoMethod
Yuchen Zeng36a58a72016-06-20 14:01:07 -070044#pragma clang diagnostic pop
Makarand Dharmapurikar6f950102016-06-07 16:52:19 -070045
Muxi Yanc92d90a2018-04-11 18:10:02 -070046 @end