Index: third_party/protobuf/php/src/Google/Protobuf/Internal/GPBType.php |
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/struct.proto b/third_party/protobuf/php/src/Google/Protobuf/Internal/GPBType.php |
similarity index 76% |
copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/struct.proto |
copy to third_party/protobuf/php/src/Google/Protobuf/Internal/GPBType.php |
index c15aba0d6d9881b8963a0353cdd1e0aa0b4adc11..fa849ceb0639f8f74f394acd46d095480495f2e8 100644 |
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/struct.proto |
+++ b/third_party/protobuf/php/src/Google/Protobuf/Internal/GPBType.php |
@@ -1,3 +1,5 @@ |
+<?php |
+ |
// Protocol Buffers - Google's data interchange format |
// Copyright 2008 Google Inc. All rights reserved. |
// https://developers.google.com/protocol-buffers/ |
@@ -28,18 +30,26 @@ |
// (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 struct. |
-syntax = "proto3"; |
- |
-package google.protobuf.testing.structs; |
-option java_package = "com.google.protobuf.testing.structs"; |
- |
-import "google/protobuf/struct.proto"; |
- |
-message StructType { |
- google.protobuf.Struct object = 1; |
-} |
+namespace Google\Protobuf\Internal; |
-service TestService { |
- rpc Call(StructType) returns (StructType); |
+class GPBType |
+{ |
+ const DOUBLE = 1; |
+ const FLOAT = 2; |
+ const INT64 = 3; |
+ const UINT64 = 4; |
+ const INT32 = 5; |
+ const FIXED64 = 6; |
+ const FIXED32 = 7; |
+ const BOOL = 8; |
+ const STRING = 9; |
+ const GROUP = 10; |
+ const MESSAGE = 11; |
+ const BYTES = 12; |
+ const UINT32 = 13; |
+ const ENUM = 14; |
+ const SFIXED32 = 15; |
+ const SFIXED64 = 16; |
+ const SINT32 = 17; |
+ const SINT64 = 18; |
} |