From 41a53741d8fed6370dd394911f8677744e538666 Mon Sep 17 00:00:00 2001 From: Jorge Canizales Date: Mon, 23 Mar 2015 22:42:31 -0700 Subject: [PATCH] Adds Class prefix RMT --- src/objective-c/examples/Sample/RemoteTestClient/empty.proto | 4 ++++ .../examples/Sample/RemoteTestClient/messages.proto | 4 ++++ src/objective-c/examples/Sample/RemoteTestClient/test.proto | 3 +++ 3 files changed, 11 insertions(+) diff --git a/src/objective-c/examples/Sample/RemoteTestClient/empty.proto b/src/objective-c/examples/Sample/RemoteTestClient/empty.proto index b7ec9cb7cda..3b626ab1314 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/empty.proto +++ b/src/objective-c/examples/Sample/RemoteTestClient/empty.proto @@ -29,8 +29,12 @@ syntax = "proto2"; +import "google/protobuf/objectivec-descriptor.proto"; + package grpc.testing; +option (google.protobuf.objectivec_file_options).class_prefix = "RMT"; + // An empty message that you can re-use to avoid defining duplicated empty // messages in your project. A typical example is to use it as argument or the // return value of a service API. For instance: diff --git a/src/objective-c/examples/Sample/RemoteTestClient/messages.proto b/src/objective-c/examples/Sample/RemoteTestClient/messages.proto index b23e2efb0fb..ab8577401fc 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/messages.proto +++ b/src/objective-c/examples/Sample/RemoteTestClient/messages.proto @@ -31,8 +31,12 @@ syntax = "proto2"; +import "google/protobuf/objectivec-descriptor.proto"; + package grpc.testing; +option (google.protobuf.objectivec_file_options).class_prefix = "RMT"; + // The type of payload that should be returned. enum PayloadType { // Compressable text format. diff --git a/src/objective-c/examples/Sample/RemoteTestClient/test.proto b/src/objective-c/examples/Sample/RemoteTestClient/test.proto index 99fd75e021e..4b082205996 100644 --- a/src/objective-c/examples/Sample/RemoteTestClient/test.proto +++ b/src/objective-c/examples/Sample/RemoteTestClient/test.proto @@ -33,9 +33,12 @@ syntax = "proto2"; import "empty.proto"; import "messages.proto"; +import "google/protobuf/objectivec-descriptor.proto"; package grpc.testing; +option (google.protobuf.objectivec_file_options).class_prefix = "RMT"; + // A simple service to test the various types of RPCs and experiment with // performance with various types of payload. service TestService {