Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
index a9ebca3d43f34e0159f3c228adef9e244c5e6ec5..18c59cbb96308c72f0a1d432a2ef79d81fccbdb6 100644
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
+++ b/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto
@@ -28,75 +28,16 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// Proto to test Proto3 Any serialization.
syntax = "proto3";
-package google.protobuf.testing;
+package google.protobuf.testing.anys;
+option java_package = "com.google.protobuf.testing.anys";
import "google/protobuf/any.proto";
-import "google/protobuf/struct.proto";
-import "google/protobuf/timestamp.proto";
-import "google/protobuf/duration.proto";
-import "google/protobuf/wrappers.proto";
-
-// Top-level test cases proto used by MarshallingTest. See description
-// at the top of the class MarshallingTest for details on how to write
-// test cases.
-message AnyTestCases {
- AnyWrapper empty_any = 1;
- AnyWrapper type_only_any = 2;
- AnyWrapper wrapper_any = 3;
- AnyWrapper any_with_timestamp_value = 4;
- AnyWrapper any_with_duration_value = 5;
- AnyWrapper any_with_struct_value = 6;
- AnyWrapper recursive_any = 7;
- AnyWrapper any_with_message_value = 8;
- AnyWrapper any_with_nested_message = 9;
- AnyWrapper any_with_message_with_wrapper_type = 10;
- AnyWrapper any_with_message_with_timestamp = 11;
- AnyWrapper any_with_message_containing_map = 12;
- AnyWrapper any_with_message_containing_struct = 13;
- AnyWrapper any_with_message_containing_repeated_message = 14;
- AnyWrapper recursive_any_with_type_field_at_end = 15;
-
- google.protobuf.Any top_level_any = 50;
- google.protobuf.Any top_level_any_with_type_field_at_end = 51;
-}
-
-message AnyWrapper {
- google.protobuf.Any any = 1;
-}
-
-// Hack to make sure the types we put into the any are included in the types.
-// Real solution is to add these types to the service config.
-message Imports {
- google.protobuf.DoubleValue dbl = 1;
- google.protobuf.Struct struct = 2;
- google.protobuf.Timestamp timestamp = 3;
- google.protobuf.Duration duration = 4;
- google.protobuf.Int32Value i32 = 5;
- Data data = 100;
-}
-
-message Data {
- int32 attr = 1;
- string str = 2;
- repeated string msgs = 3;
- Data nested_data = 4;
- google.protobuf.Int32Value int_wrapper = 5;
- google.protobuf.Timestamp time = 6;
- map<string, string> map_data = 7;
- google.protobuf.Struct struct_data = 8;
- repeated Data repeated_data = 9;
-}
-
-service AnyTestService {
- rpc Call(AnyTestCases) returns (AnyTestCases);
- rpc Call1(Imports) returns (Imports);
-}
message AnyIn {
string something = 1;
- google.protobuf.Any any = 2;
}
message AnyOut {
@@ -106,3 +47,7 @@ message AnyOut {
message AnyM {
string foo = 1;
}
+
+service TestService {
+ rpc Call(AnyIn) returns (AnyOut);
+}

Powered by Google App Engine
This is Rietveld 408576698