objective_c_generator.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015 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 
19 #ifndef GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H
20 #define GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H
21 
22 #include "src/compiler/config.h"
23 
25 
26 struct Parameters {
27  // Do not generate V1 interface and implementation
29 };
30 
34 
35 // Returns forward declaration of classes in the generated header file.
37 
38 // Returns the content to be included defining the @protocol segment at the
39 // insertion point of the generated implementation file. This interface is
40 // legacy and for backwards compatibility.
42  const Parameters& generator_params);
43 
44 // Returns the content to be included defining the @protocol segment at the
45 // insertion point of the generated implementation file.
47 
48 // Returns the content to be included defining the @interface segment at the
49 // insertion point of the generated implementation file.
51  const Parameters& generator_params);
52 
53 // Returns the content to be included in the "global_scope" insertion point of
54 // the generated implementation file.
55 string GetSource(const ServiceDescriptor* service,
56  const Parameters& generator_params);
57 
58 } // namespace grpc_objective_c_generator
59 
60 #endif // GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H
grpc_objective_c_generator
Definition: objective_c_generator.cc:38
config.h
FileDescriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:128
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
file
Definition: bloaty/third_party/zlib/examples/gzappend.c:170
grpc_objective_c_generator::GetAllMessageClasses
::std::string GetAllMessageClasses(const FileDescriptor *file)
Definition: objective_c_generator.cc:263
grpc_objective_c_generator::GetProtocol
::std::string GetProtocol(const ServiceDescriptor *service, const Parameters &generator_params)
Definition: objective_c_generator.cc:281
grpc_objective_c_generator::GetSource
::std::string GetSource(const ServiceDescriptor *service, const Parameters &generator_params)
Definition: objective_c_generator.cc:372
grpc_objective_c_generator::GetInterface
::std::string GetInterface(const ServiceDescriptor *service, const Parameters &generator_params)
Definition: objective_c_generator.cc:329
grpc_objective_c_generator::GetV2Protocol
::std::string GetV2Protocol(const ServiceDescriptor *service)
Definition: objective_c_generator.cc:310
grpc_objective_c_generator::Parameters
Definition: objective_c_generator.h:26
grpc_objective_c_generator::Parameters::no_v1_compatibility
bool no_v1_compatibility
Definition: objective_c_generator.h:28
FileDescriptor
struct FileDescriptor FileDescriptor
Definition: bloaty/third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.h:56
service
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
Definition: ProtoMethod.h:25
grpc::protobuf::ServiceDescriptor
GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor
Definition: include/grpcpp/impl/codegen/config_protobuf.h:88


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:44