From f1e7e405b6756c18255f7b3d03e18ea4ff96a809 Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Tue, 1 Dec 2020 17:55:36 -0800 Subject: [PATCH] Re-generate protos for PHP --- .../Src/Proto/Grpc/Testing/Messages.php | 2 +- .../Src/Proto/Grpc/Testing/Test.php | 2 +- .../Grpc/Testing/ClientConfigureRequest.php | 101 +++++++++++++ .../ClientConfigureRequest/Metadata.php | 117 +++++++++++++++ .../ClientConfigureRequest/RpcType.php | 53 +++++++ .../ClientConfigureRequest_Metadata.php | 16 +++ .../ClientConfigureRequest_RpcType.php | 16 +++ .../Grpc/Testing/ClientConfigureResponse.php | 33 +++++ .../LoadBalancerAccumulatedStatsRequest.php | 33 +++++ .../LoadBalancerAccumulatedStatsResponse.php | 135 ++++++++++++++++++ .../LoadBalancerStatsServiceClient.php | 15 ++ .../XdsUpdateClientConfigureServiceClient.php | 53 +++++++ 12 files changed, 574 insertions(+), 2 deletions(-) create mode 100644 src/php/tests/interop/Grpc/Testing/ClientConfigureRequest.php create mode 100644 src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/Metadata.php create mode 100644 src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/RpcType.php create mode 100644 src/php/tests/interop/Grpc/Testing/ClientConfigureRequest_Metadata.php create mode 100644 src/php/tests/interop/Grpc/Testing/ClientConfigureRequest_RpcType.php create mode 100644 src/php/tests/interop/Grpc/Testing/ClientConfigureResponse.php create mode 100644 src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsRequest.php create mode 100644 src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsResponse.php create mode 100644 src/php/tests/interop/Grpc/Testing/XdsUpdateClientConfigureServiceClient.php diff --git a/src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Messages.php b/src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Messages.php index 199ccf40d56..ec3ae2dcdcd 100644 --- a/src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Messages.php +++ b/src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Messages.php @@ -15,7 +15,7 @@ class Messages return; } $pool->internalAddGeneratedFile(hex2bin( - "0aaf110a257372632f70726f746f2f677270632f74657374696e672f6d657373616765732e70726f746f120c677270632e74657374696e67221a0a09426f6f6c56616c7565120d0a0576616c756518012001280822400a075061796c6f616412270a047479706518012001280e32192e677270632e74657374696e672e5061796c6f616454797065120c0a04626f647918022001280c222b0a0a4563686f537461747573120c0a04636f6465180120012805120f0a076d6573736167651802200128092286030a0d53696d706c655265717565737412300a0d726573706f6e73655f7479706518012001280e32192e677270632e74657374696e672e5061796c6f61645479706512150a0d726573706f6e73655f73697a6518022001280512260a077061796c6f616418032001280b32152e677270632e74657374696e672e5061796c6f616412150a0d66696c6c5f757365726e616d6518042001280812180a1066696c6c5f6f617574685f73636f706518052001280812340a13726573706f6e73655f636f6d7072657373656418062001280b32172e677270632e74657374696e672e426f6f6c56616c756512310a0f726573706f6e73655f73746174757318072001280b32182e677270632e74657374696e672e4563686f53746174757312320a116578706563745f636f6d7072657373656418082001280b32172e677270632e74657374696e672e426f6f6c56616c756512160a0e66696c6c5f7365727665725f6964180920012808121e0a1666696c6c5f677270636c625f726f7574655f74797065180a2001280822be010a0e53696d706c65526573706f6e736512260a077061796c6f616418012001280b32152e677270632e74657374696e672e5061796c6f616412100a08757365726e616d6518022001280912130a0b6f617574685f73636f706518032001280912110a097365727665725f696418042001280912380a11677270636c625f726f7574655f7479706518052001280e321d2e677270632e74657374696e672e477270636c62526f7574655479706512100a08686f73746e616d6518062001280922770a1953747265616d696e67496e70757443616c6c5265717565737412260a077061796c6f616418012001280b32152e677270632e74657374696e672e5061796c6f616412320a116578706563745f636f6d7072657373656418022001280b32172e677270632e74657374696e672e426f6f6c56616c7565223d0a1a53747265616d696e67496e70757443616c6c526573706f6e7365121f0a17616767726567617465645f7061796c6f61645f73697a6518012001280522640a12526573706f6e7365506172616d6574657273120c0a0473697a6518012001280512130a0b696e74657276616c5f7573180220012805122b0a0a636f6d7072657373656418032001280b32172e677270632e74657374696e672e426f6f6c56616c756522e8010a1a53747265616d696e674f757470757443616c6c5265717565737412300a0d726573706f6e73655f7479706518012001280e32192e677270632e74657374696e672e5061796c6f616454797065123d0a13726573706f6e73655f706172616d657465727318022003280b32202e677270632e74657374696e672e526573706f6e7365506172616d657465727312260a077061796c6f616418032001280b32152e677270632e74657374696e672e5061796c6f616412310a0f726573706f6e73655f73746174757318072001280b32182e677270632e74657374696e672e4563686f53746174757322450a1b53747265616d696e674f757470757443616c6c526573706f6e736512260a077061796c6f616418012001280b32152e677270632e74657374696e672e5061796c6f616422330a0f5265636f6e6e656374506172616d7312200a186d61785f7265636f6e6e6563745f6261636b6f66665f6d7318012001280522330a0d5265636f6e6e656374496e666f120e0a0670617373656418012001280812120a0a6261636b6f66665f6d7318022003280522410a184c6f616442616c616e63657253746174735265717565737412100a086e756d5f7270637318012001280512130a0b74696d656f75745f736563180220012805228b040a194c6f616442616c616e6365725374617473526573706f6e7365124d0a0c727063735f62795f7065657218012003280b32372e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e73652e52706373427950656572456e74727912140a0c6e756d5f6661696c7572657318022001280512510a0e727063735f62795f6d6574686f6418032003280b32392e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e73652e5270637342794d6574686f64456e7472791a99010a0a5270637342795065657212580a0c727063735f62795f7065657218012003280b32422e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e73652e527063734279506565722e52706373427950656572456e7472791a310a0f52706373427950656572456e747279120b0a036b6579180120012809120d0a0576616c75651802200128053a0238011a310a0f52706373427950656572456e747279120b0a036b6579180120012809120d0a0576616c75651802200128053a0238011a670a115270637342794d6574686f64456e747279120b0a036b657918012001280912410a0576616c756518022001280b32322e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e73652e527063734279506565723a0238012a1f0a0b5061796c6f61645479706512100a0c434f4d505245535341424c4510002a6f0a0f477270636c62526f75746554797065121d0a19475250434c425f524f5554455f545950455f554e4b4e4f574e1000121e0a1a475250434c425f524f5554455f545950455f46414c4c4241434b1001121d0a19475250434c425f524f5554455f545950455f4241434b454e441002620670726f746f33" + "0ade180a257372632f70726f746f2f677270632f74657374696e672f6d657373616765732e70726f746f120c677270632e74657374696e67221a0a09426f6f6c56616c7565120d0a0576616c756518012001280822400a075061796c6f616412270a047479706518012001280e32192e677270632e74657374696e672e5061796c6f616454797065120c0a04626f647918022001280c222b0a0a4563686f537461747573120c0a04636f6465180120012805120f0a076d6573736167651802200128092286030a0d53696d706c655265717565737412300a0d726573706f6e73655f7479706518012001280e32192e677270632e74657374696e672e5061796c6f61645479706512150a0d726573706f6e73655f73697a6518022001280512260a077061796c6f616418032001280b32152e677270632e74657374696e672e5061796c6f616412150a0d66696c6c5f757365726e616d6518042001280812180a1066696c6c5f6f617574685f73636f706518052001280812340a13726573706f6e73655f636f6d7072657373656418062001280b32172e677270632e74657374696e672e426f6f6c56616c756512310a0f726573706f6e73655f73746174757318072001280b32182e677270632e74657374696e672e4563686f53746174757312320a116578706563745f636f6d7072657373656418082001280b32172e677270632e74657374696e672e426f6f6c56616c756512160a0e66696c6c5f7365727665725f6964180920012808121e0a1666696c6c5f677270636c625f726f7574655f74797065180a2001280822be010a0e53696d706c65526573706f6e736512260a077061796c6f616418012001280b32152e677270632e74657374696e672e5061796c6f616412100a08757365726e616d6518022001280912130a0b6f617574685f73636f706518032001280912110a097365727665725f696418042001280912380a11677270636c625f726f7574655f7479706518052001280e321d2e677270632e74657374696e672e477270636c62526f7574655479706512100a08686f73746e616d6518062001280922770a1953747265616d696e67496e70757443616c6c5265717565737412260a077061796c6f616418012001280b32152e677270632e74657374696e672e5061796c6f616412320a116578706563745f636f6d7072657373656418022001280b32172e677270632e74657374696e672e426f6f6c56616c7565223d0a1a53747265616d696e67496e70757443616c6c526573706f6e7365121f0a17616767726567617465645f7061796c6f61645f73697a6518012001280522640a12526573706f6e7365506172616d6574657273120c0a0473697a6518012001280512130a0b696e74657276616c5f7573180220012805122b0a0a636f6d7072657373656418032001280b32172e677270632e74657374696e672e426f6f6c56616c756522e8010a1a53747265616d696e674f757470757443616c6c5265717565737412300a0d726573706f6e73655f7479706518012001280e32192e677270632e74657374696e672e5061796c6f616454797065123d0a13726573706f6e73655f706172616d657465727318022003280b32202e677270632e74657374696e672e526573706f6e7365506172616d657465727312260a077061796c6f616418032001280b32152e677270632e74657374696e672e5061796c6f616412310a0f726573706f6e73655f73746174757318072001280b32182e677270632e74657374696e672e4563686f53746174757322450a1b53747265616d696e674f757470757443616c6c526573706f6e736512260a077061796c6f616418012001280b32152e677270632e74657374696e672e5061796c6f616422330a0f5265636f6e6e656374506172616d7312200a186d61785f7265636f6e6e6563745f6261636b6f66665f6d7318012001280522330a0d5265636f6e6e656374496e666f120e0a0670617373656418012001280812120a0a6261636b6f66665f6d7318022003280522410a184c6f616442616c616e63657253746174735265717565737412100a086e756d5f7270637318012001280512130a0b74696d656f75745f736563180220012805228b040a194c6f616442616c616e6365725374617473526573706f6e7365124d0a0c727063735f62795f7065657218012003280b32372e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e73652e52706373427950656572456e74727912140a0c6e756d5f6661696c7572657318022001280512510a0e727063735f62795f6d6574686f6418032003280b32392e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e73652e5270637342794d6574686f64456e7472791a99010a0a5270637342795065657212580a0c727063735f62795f7065657218012003280b32422e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e73652e527063734279506565722e52706373427950656572456e7472791a310a0f52706373427950656572456e747279120b0a036b6579180120012809120d0a0576616c75651802200128053a0238011a310a0f52706373427950656572456e747279120b0a036b6579180120012809120d0a0576616c75651802200128053a0238011a670a115270637342794d6574686f64456e747279120b0a036b657918012001280912410a0576616c756518022001280b32322e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e73652e527063734279506565723a02380122250a234c6f616442616c616e636572416363756d756c6174656453746174735265717565737422c2040a244c6f616442616c616e636572416363756d756c617465645374617473526573706f6e736512720a1a6e756d5f727063735f737461727465645f62795f6d6574686f6418012003280b324e2e677270632e74657374696e672e4c6f616442616c616e636572416363756d756c617465645374617473526573706f6e73652e4e756d527063735374617274656442794d6574686f64456e74727912760a1c6e756d5f727063735f7375636365656465645f62795f6d6574686f6418022003280b32502e677270632e74657374696e672e4c6f616442616c616e636572416363756d756c617465645374617473526573706f6e73652e4e756d5270637353756363656564656442794d6574686f64456e74727912700a196e756d5f727063735f6661696c65645f62795f6d6574686f6418032003280b324d2e677270632e74657374696e672e4c6f616442616c616e636572416363756d756c617465645374617473526573706f6e73652e4e756d527063734661696c656442794d6574686f64456e7472791a3d0a1b4e756d527063735374617274656442794d6574686f64456e747279120b0a036b6579180120012809120d0a0576616c75651802200128053a0238011a3f0a1d4e756d5270637353756363656564656442794d6574686f64456e747279120b0a036b6579180120012809120d0a0576616c75651802200128053a0238011a3c0a1a4e756d527063734661696c656442794d6574686f64456e747279120b0a036b6579180120012809120d0a0576616c75651802200128053a02380122a5020a16436c69656e74436f6e66696775726552657175657374123b0a05747970657318012003280e322c2e677270632e74657374696e672e436c69656e74436f6e666967757265526571756573742e52706354797065123f0a086d6574616461746118022003280b322d2e677270632e74657374696e672e436c69656e74436f6e666967757265526571756573742e4d657461646174611a620a084d65746164617461123a0a047479706518012001280e322c2e677270632e74657374696e672e436c69656e74436f6e666967757265526571756573742e52706354797065120b0a036b6579180220012809120d0a0576616c756518032001280922290a0752706354797065120e0a0a454d5054595f43414c4c1000120e0a0a554e4152595f43414c4c100122190a17436c69656e74436f6e666967757265526573706f6e73652a1f0a0b5061796c6f61645479706512100a0c434f4d505245535341424c4510002a6f0a0f477270636c62526f75746554797065121d0a19475250434c425f524f5554455f545950455f554e4b4e4f574e1000121e0a1a475250434c425f524f5554455f545950455f46414c4c4241434b1001121d0a19475250434c425f524f5554455f545950455f4241434b454e441002620670726f746f33" ), true); static::$is_initialized = true; diff --git a/src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Test.php b/src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Test.php index d950b30a38e..f8a22f6ea54 100644 --- a/src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Test.php +++ b/src/php/tests/interop/GPBMetadata/Src/Proto/Grpc/Testing/Test.php @@ -17,7 +17,7 @@ class Test \GPBMetadata\Src\Proto\Grpc\Testing\PBEmpty::initOnce(); \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0af40a0a217372632f70726f746f2f677270632f74657374696e672f746573742e70726f746f120c677270632e74657374696e671a257372632f70726f746f2f677270632f74657374696e672f6d657373616765732e70726f746f32e7050a0b546573745365727669636512430a09456d70747943616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676512460a09556e61727943616c6c121b2e677270632e74657374696e672e53696d706c65526571756573741a1c2e677270632e74657374696e672e53696d706c65526573706f6e7365124f0a12436163686561626c65556e61727943616c6c121b2e677270632e74657374696e672e53696d706c65526571756573741a1c2e677270632e74657374696e672e53696d706c65526573706f6e7365126c0a1353747265616d696e674f757470757443616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e7365300112690a1253747265616d696e67496e70757443616c6c12272e677270632e74657374696e672e53747265616d696e67496e70757443616c6c526571756573741a282e677270632e74657374696e672e53747265616d696e67496e70757443616c6c526573706f6e7365280112690a0e46756c6c4475706c657843616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e73652801300112690a0e48616c664475706c657843616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e736528013001124b0a11556e696d706c656d656e74656443616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676532630a14556e696d706c656d656e74656453657276696365124b0a11556e696d706c656d656e74656443616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d6573736167653297010a105265636f6e6e6563745365727669636512420a055374617274121d2e677270632e74657374696e672e5265636f6e6e656374506172616d731a1a2e677270632e74657374696e672e456d7074794d657373616765123f0a0453746f70121a2e677270632e74657374696e672e456d7074794d6573736167651a1b2e677270632e74657374696e672e5265636f6e6e656374496e666f327f0a184c6f616442616c616e63657253746174735365727669636512630a0e476574436c69656e74537461747312262e677270632e74657374696e672e4c6f616442616c616e6365725374617473526571756573741a272e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e7365220032a7010a165864735570646174654865616c74685365727669636512440a0a53657453657276696e67121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676512470a0d5365744e6f7453657276696e67121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d657373616765620670726f746f33" + "0af90c0a217372632f70726f746f2f677270632f74657374696e672f746573742e70726f746f120c677270632e74657374696e671a257372632f70726f746f2f677270632f74657374696e672f6d657373616765732e70726f746f32e7050a0b546573745365727669636512430a09456d70747943616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676512460a09556e61727943616c6c121b2e677270632e74657374696e672e53696d706c65526571756573741a1c2e677270632e74657374696e672e53696d706c65526573706f6e7365124f0a12436163686561626c65556e61727943616c6c121b2e677270632e74657374696e672e53696d706c65526571756573741a1c2e677270632e74657374696e672e53696d706c65526573706f6e7365126c0a1353747265616d696e674f757470757443616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e7365300112690a1253747265616d696e67496e70757443616c6c12272e677270632e74657374696e672e53747265616d696e67496e70757443616c6c526571756573741a282e677270632e74657374696e672e53747265616d696e67496e70757443616c6c526573706f6e7365280112690a0e46756c6c4475706c657843616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e73652801300112690a0e48616c664475706c657843616c6c12282e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526571756573741a292e677270632e74657374696e672e53747265616d696e674f757470757443616c6c526573706f6e736528013001124b0a11556e696d706c656d656e74656443616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676532630a14556e696d706c656d656e74656453657276696365124b0a11556e696d706c656d656e74656443616c6c121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d6573736167653297010a105265636f6e6e6563745365727669636512420a055374617274121d2e677270632e74657374696e672e5265636f6e6e656374506172616d731a1a2e677270632e74657374696e672e456d7074794d657373616765123f0a0453746f70121a2e677270632e74657374696e672e456d7074794d6573736167651a1b2e677270632e74657374696e672e5265636f6e6e656374496e666f3286020a184c6f616442616c616e63657253746174735365727669636512630a0e476574436c69656e74537461747312262e677270632e74657374696e672e4c6f616442616c616e6365725374617473526571756573741a272e677270632e74657374696e672e4c6f616442616c616e6365725374617473526573706f6e736522001284010a19476574436c69656e74416363756d756c61746564537461747312312e677270632e74657374696e672e4c6f616442616c616e636572416363756d756c617465645374617473526571756573741a322e677270632e74657374696e672e4c6f616442616c616e636572416363756d756c617465645374617473526573706f6e7365220032a7010a165864735570646174654865616c74685365727669636512440a0a53657453657276696e67121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d65737361676512470a0d5365744e6f7453657276696e67121a2e677270632e74657374696e672e456d7074794d6573736167651a1a2e677270632e74657374696e672e456d7074794d657373616765327b0a1f586473557064617465436c69656e74436f6e6669677572655365727669636512580a09436f6e66696775726512242e677270632e74657374696e672e436c69656e74436f6e666967757265526571756573741a252e677270632e74657374696e672e436c69656e74436f6e666967757265526573706f6e7365620670726f746f33" ), true); static::$is_initialized = true; diff --git a/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest.php b/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest.php new file mode 100644 index 00000000000..bb2b1cadb4d --- /dev/null +++ b/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest.php @@ -0,0 +1,101 @@ +grpc.testing.ClientConfigureRequest + */ +class ClientConfigureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * The types of RPCs the client sends. + * + * Generated from protobuf field repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1; + */ + private $types; + /** + * The collection of custom metadata to be attached to RPCs sent by the client. + * + * Generated from protobuf field repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2; + */ + private $metadata; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int[]|\Google\Protobuf\Internal\RepeatedField $types + * The types of RPCs the client sends. + * @type \Grpc\Testing\ClientConfigureRequest\Metadata[]|\Google\Protobuf\Internal\RepeatedField $metadata + * The collection of custom metadata to be attached to RPCs sent by the client. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); + parent::__construct($data); + } + + /** + * The types of RPCs the client sends. + * + * Generated from protobuf field repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTypes() + { + return $this->types; + } + + /** + * The types of RPCs the client sends. + * + * Generated from protobuf field repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1; + * @param int[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Grpc\Testing\ClientConfigureRequest\RpcType::class); + $this->types = $arr; + + return $this; + } + + /** + * The collection of custom metadata to be attached to RPCs sent by the client. + * + * Generated from protobuf field repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetadata() + { + return $this->metadata; + } + + /** + * The collection of custom metadata to be attached to RPCs sent by the client. + * + * Generated from protobuf field repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2; + * @param \Grpc\Testing\ClientConfigureRequest\Metadata[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetadata($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Grpc\Testing\ClientConfigureRequest\Metadata::class); + $this->metadata = $arr; + + return $this; + } + +} + diff --git a/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/Metadata.php b/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/Metadata.php new file mode 100644 index 00000000000..2f7f63d61f8 --- /dev/null +++ b/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/Metadata.php @@ -0,0 +1,117 @@ +grpc.testing.ClientConfigureRequest.Metadata + */ +class Metadata extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .grpc.testing.ClientConfigureRequest.RpcType type = 1; + */ + protected $type = 0; + /** + * Generated from protobuf field string key = 2; + */ + protected $key = ''; + /** + * Generated from protobuf field string value = 3; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * @type string $key + * @type string $value + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .grpc.testing.ClientConfigureRequest.RpcType type = 1; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Generated from protobuf field .grpc.testing.ClientConfigureRequest.RpcType type = 1; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Grpc\Testing\ClientConfigureRequest\RpcType::class); + $this->type = $var; + + return $this; + } + + /** + * Generated from protobuf field string key = 2; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Generated from protobuf field string key = 2; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Generated from protobuf field string value = 3; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Generated from protobuf field string value = 3; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Metadata::class, \Grpc\Testing\ClientConfigureRequest_Metadata::class); + diff --git a/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/RpcType.php b/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/RpcType.php new file mode 100644 index 00000000000..70bf8a4a063 --- /dev/null +++ b/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest/RpcType.php @@ -0,0 +1,53 @@ +grpc.testing.ClientConfigureRequest.RpcType + */ +class RpcType +{ + /** + * Generated from protobuf enum EMPTY_CALL = 0; + */ + const EMPTY_CALL = 0; + /** + * Generated from protobuf enum UNARY_CALL = 1; + */ + const UNARY_CALL = 1; + + private static $valueToName = [ + self::EMPTY_CALL => 'EMPTY_CALL', + self::UNARY_CALL => 'UNARY_CALL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RpcType::class, \Grpc\Testing\ClientConfigureRequest_RpcType::class); + diff --git a/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest_Metadata.php b/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest_Metadata.php new file mode 100644 index 00000000000..543e02a0a2a --- /dev/null +++ b/src/php/tests/interop/Grpc/Testing/ClientConfigureRequest_Metadata.php @@ -0,0 +1,16 @@ +grpc.testing.ClientConfigureResponse + */ +class ClientConfigureResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); + parent::__construct($data); + } + +} + diff --git a/src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsRequest.php b/src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsRequest.php new file mode 100644 index 00000000000..23f20eb64b6 --- /dev/null +++ b/src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsRequest.php @@ -0,0 +1,33 @@ +grpc.testing.LoadBalancerAccumulatedStatsRequest + */ +class LoadBalancerAccumulatedStatsRequest extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); + parent::__construct($data); + } + +} + diff --git a/src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsResponse.php b/src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsResponse.php new file mode 100644 index 00000000000..ddd2c4323ac --- /dev/null +++ b/src/php/tests/interop/Grpc/Testing/LoadBalancerAccumulatedStatsResponse.php @@ -0,0 +1,135 @@ +grpc.testing.LoadBalancerAccumulatedStatsResponse + */ +class LoadBalancerAccumulatedStatsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The total number of RPCs have ever issued for each type. + * + * Generated from protobuf field map num_rpcs_started_by_method = 1; + */ + private $num_rpcs_started_by_method; + /** + * The total number of RPCs have ever completed successfully for each type. + * + * Generated from protobuf field map num_rpcs_succeeded_by_method = 2; + */ + private $num_rpcs_succeeded_by_method; + /** + * The total number of RPCs have ever failed for each type. + * + * Generated from protobuf field map num_rpcs_failed_by_method = 3; + */ + private $num_rpcs_failed_by_method; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_started_by_method + * The total number of RPCs have ever issued for each type. + * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_succeeded_by_method + * The total number of RPCs have ever completed successfully for each type. + * @type array|\Google\Protobuf\Internal\MapField $num_rpcs_failed_by_method + * The total number of RPCs have ever failed for each type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); + parent::__construct($data); + } + + /** + * The total number of RPCs have ever issued for each type. + * + * Generated from protobuf field map num_rpcs_started_by_method = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getNumRpcsStartedByMethod() + { + return $this->num_rpcs_started_by_method; + } + + /** + * The total number of RPCs have ever issued for each type. + * + * Generated from protobuf field map num_rpcs_started_by_method = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setNumRpcsStartedByMethod($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); + $this->num_rpcs_started_by_method = $arr; + + return $this; + } + + /** + * The total number of RPCs have ever completed successfully for each type. + * + * Generated from protobuf field map num_rpcs_succeeded_by_method = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getNumRpcsSucceededByMethod() + { + return $this->num_rpcs_succeeded_by_method; + } + + /** + * The total number of RPCs have ever completed successfully for each type. + * + * Generated from protobuf field map num_rpcs_succeeded_by_method = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setNumRpcsSucceededByMethod($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); + $this->num_rpcs_succeeded_by_method = $arr; + + return $this; + } + + /** + * The total number of RPCs have ever failed for each type. + * + * Generated from protobuf field map num_rpcs_failed_by_method = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getNumRpcsFailedByMethod() + { + return $this->num_rpcs_failed_by_method; + } + + /** + * The total number of RPCs have ever failed for each type. + * + * Generated from protobuf field map num_rpcs_failed_by_method = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setNumRpcsFailedByMethod($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT32); + $this->num_rpcs_failed_by_method = $arr; + + return $this; + } + +} + diff --git a/src/php/tests/interop/Grpc/Testing/LoadBalancerStatsServiceClient.php b/src/php/tests/interop/Grpc/Testing/LoadBalancerStatsServiceClient.php index 3b23ff6600e..f347d76c34b 100644 --- a/src/php/tests/interop/Grpc/Testing/LoadBalancerStatsServiceClient.php +++ b/src/php/tests/interop/Grpc/Testing/LoadBalancerStatsServiceClient.php @@ -50,4 +50,19 @@ class LoadBalancerStatsServiceClient extends \Grpc\BaseStub { $metadata, $options); } + /** + * Gets the accumulated stats for RPCs sent by a test client. + * @param \Grpc\Testing\LoadBalancerAccumulatedStatsRequest $argument input argument + * @param array $metadata metadata + * @param array $options call options + * @return \Grpc\UnaryCall + */ + public function GetClientAccumulatedStats(\Grpc\Testing\LoadBalancerAccumulatedStatsRequest $argument, + $metadata = [], $options = []) { + return $this->_simpleRequest('/grpc.testing.LoadBalancerStatsService/GetClientAccumulatedStats', + $argument, + ['\Grpc\Testing\LoadBalancerAccumulatedStatsResponse', 'decode'], + $metadata, $options); + } + } diff --git a/src/php/tests/interop/Grpc/Testing/XdsUpdateClientConfigureServiceClient.php b/src/php/tests/interop/Grpc/Testing/XdsUpdateClientConfigureServiceClient.php new file mode 100644 index 00000000000..4c650af20f8 --- /dev/null +++ b/src/php/tests/interop/Grpc/Testing/XdsUpdateClientConfigureServiceClient.php @@ -0,0 +1,53 @@ +_simpleRequest('/grpc.testing.XdsUpdateClientConfigureService/Configure', + $argument, + ['\Grpc\Testing\ClientConfigureResponse', 'decode'], + $metadata, $options); + } + +}