Index: third_party/protobuf/php/src/Google/Protobuf/Internal/MapEntry.php |
diff --git a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto b/third_party/protobuf/php/src/Google/Protobuf/Internal/MapEntry.php |
similarity index 79% |
copy from third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
copy to third_party/protobuf/php/src/Google/Protobuf/Internal/MapEntry.php |
index 18c59cbb96308c72f0a1d432a2ef79d81fccbdb6..926645e1dbc7bb48b9c98cdfb288cab8bab30075 100644 |
--- a/third_party/protobuf/src/google/protobuf/util/internal/testdata/anys.proto |
+++ b/third_party/protobuf/php/src/Google/Protobuf/Internal/MapEntry.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,26 +30,28 @@ |
// (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"; |
+namespace Google\Protobuf\Internal; |
-package google.protobuf.testing.anys; |
-option java_package = "com.google.protobuf.testing.anys"; |
+use Google\Protobuf\Internal\Message; |
-import "google/protobuf/any.proto"; |
+class MapEntry extends Message |
+{ |
+ public $key; |
+ public $value; |
-message AnyIn { |
- string something = 1; |
-} |
+ public function setKey(&$key) { |
+ $this->key = $key; |
+ } |
-message AnyOut { |
- google.protobuf.Any any = 1; |
-} |
+ public function getKey() { |
+ return $this->key; |
+ } |
-message AnyM { |
- string foo = 1; |
-} |
+ public function setValue(&$value) { |
+ $this->value = $value; |
+ } |
-service TestService { |
- rpc Call(AnyIn) returns (AnyOut); |
+ public function getValue() { |
+ return $this->value; |
+ } |
} |