From 44225ba9c40904934cb1a9665678b38da1d2e5f7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Aug 2019 06:27:39 -0700 Subject: [PATCH] feat: Update AutoML v1beta1 client. (#2251) --- AutoMl/metadata/V1Beta1/DataItems.php | 102 +++++--- AutoMl/metadata/V1Beta1/PredictionService.php | 110 ++++----- AutoMl/src/V1beta1/BatchPredictRequest.php | 3 +- AutoMl/src/V1beta1/BatchPredictResult.php | 3 +- AutoMl/src/V1beta1/Document.php | 140 +++++++++++ AutoMl/src/V1beta1/Document/Layout.php | 226 ++++++++++++++++++ .../Document/Layout/TextSegmentType.php | 123 ++++++++++ AutoMl/src/V1beta1/DocumentDimensions.php | 135 +++++++++++ .../DocumentDimensionUnit.php | 71 ++++++ ...cumentDimensions_DocumentDimensionUnit.php | 16 ++ AutoMl/src/V1beta1/Document_Layout.php | 16 ++ .../Document_Layout_TextSegmentType.php | 16 ++ .../Gapic/PredictionServiceGapicClient.php | 8 +- AutoMl/src/V1beta1/InputConfig.php | 84 +++++-- AutoMl/src/V1beta1/PredictRequest.php | 3 +- AutoMl/src/V1beta1/PredictResponse.php | 53 +++- .../V1beta1/PredictionServiceGrpcClient.php | 8 +- AutoMl/src/V1beta1/TextSnippet.php | 32 ++- AutoMl/synth.metadata | 6 +- 19 files changed, 1020 insertions(+), 135 deletions(-) create mode 100644 AutoMl/src/V1beta1/Document/Layout.php create mode 100644 AutoMl/src/V1beta1/Document/Layout/TextSegmentType.php create mode 100644 AutoMl/src/V1beta1/DocumentDimensions.php create mode 100644 AutoMl/src/V1beta1/DocumentDimensions/DocumentDimensionUnit.php create mode 100644 AutoMl/src/V1beta1/DocumentDimensions_DocumentDimensionUnit.php create mode 100644 AutoMl/src/V1beta1/Document_Layout.php create mode 100644 AutoMl/src/V1beta1/Document_Layout_TextSegmentType.php diff --git a/AutoMl/metadata/V1Beta1/DataItems.php b/AutoMl/metadata/V1Beta1/DataItems.php index 3e6029ac2df5..6409f8665675 100644 --- a/AutoMl/metadata/V1Beta1/DataItems.php +++ b/AutoMl/metadata/V1Beta1/DataItems.php @@ -14,45 +14,81 @@ public static function initOnce() { if (static::$is_initialized == true) { return; } + \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Cloud\Automl\V1Beta1\Geometry::initOnce(); \GPBMetadata\Google\Cloud\Automl\V1Beta1\Io::initOnce(); + \GPBMetadata\Google\Cloud\Automl\V1Beta1\TextSegment::initOnce(); \GPBMetadata\Google\Protobuf\Any::initOnce(); \GPBMetadata\Google\Protobuf\Duration::initOnce(); \GPBMetadata\Google\Protobuf\Struct::initOnce(); - \GPBMetadata\Google\Api\Annotations::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ad8070a2c676f6f676c652f636c6f75642f6175746f6d6c2f7631626574" . + "0ad60f0a2c676f6f676c652f636c6f75642f6175746f6d6c2f7631626574" . "61312f646174615f6974656d732e70726f746f121b676f6f676c652e636c" . - "6f75642e6175746f6d6c2e763162657461311a19676f6f676c652f70726f" . - "746f6275662f616e792e70726f746f1a1e676f6f676c652f70726f746f62" . - "75662f6475726174696f6e2e70726f746f1a1c676f6f676c652f70726f74" . - "6f6275662f7374727563742e70726f746f1a1c676f6f676c652f6170692f" . - "616e6e6f746174696f6e732e70726f746f227f0a05496d61676512150a0b" . - "696d6167655f627974657318012001280c480012400a0c696e7075745f63" . - "6f6e66696718062001280b32282e676f6f676c652e636c6f75642e617574" . - "6f6d6c2e763162657461312e496e707574436f6e666967480012150a0d74" . - "68756d626e61696c5f75726918042001280942060a046461746122460a0b" . - "54657874536e6970706574120f0a07636f6e74656e741801200128091211" . - "0a096d696d655f7479706518022001280912130a0b636f6e74656e745f75" . - "726918042001280922520a08446f63756d656e7412460a0c696e7075745f" . - "636f6e66696718012001280b32302e676f6f676c652e636c6f75642e6175" . - "746f6d6c2e763162657461312e446f63756d656e74496e707574436f6e66" . - "696722460a03526f7712170a0f636f6c756d6e5f737065635f6964731802" . - "2003280912260a0676616c75657318032003280b32162e676f6f676c652e" . - "70726f746f6275662e56616c756522fe010a0e4578616d706c655061796c" . - "6f616412330a05696d61676518012001280b32222e676f6f676c652e636c" . - "6f75642e6175746f6d6c2e763162657461312e496d616765480012400a0c" . - "746578745f736e697070657418022001280b32282e676f6f676c652e636c" . - "6f75642e6175746f6d6c2e763162657461312e54657874536e6970706574" . - "480012390a08646f63756d656e7418042001280b32252e676f6f676c652e" . - "636c6f75642e6175746f6d6c2e763162657461312e446f63756d656e7448" . - "00122f0a03726f7718032001280b32202e676f6f676c652e636c6f75642e" . - "6175746f6d6c2e763162657461312e526f77480042090a077061796c6f61" . - "6442a5010a1f636f6d2e676f6f676c652e636c6f75642e6175746f6d6c2e" . - "7631626574613150015a41676f6f676c652e676f6c616e672e6f72672f67" . - "656e70726f746f2f676f6f676c65617069732f636c6f75642f6175746f6d" . - "6c2f763162657461313b6175746f6d6cca021b476f6f676c655c436c6f75" . - "645c4175746f4d6c5c56316265746131ea021e476f6f676c653a3a436c6f" . - "75643a3a4175746f4d4c3a3a56316265746131620670726f746f33" + "6f75642e6175746f6d6c2e763162657461311a2a676f6f676c652f636c6f" . + "75642f6175746f6d6c2f763162657461312f67656f6d657472792e70726f" . + "746f1a24676f6f676c652f636c6f75642f6175746f6d6c2f763162657461" . + "312f696f2e70726f746f1a2e676f6f676c652f636c6f75642f6175746f6d" . + "6c2f763162657461312f746578745f7365676d656e742e70726f746f1a19" . + "676f6f676c652f70726f746f6275662f616e792e70726f746f1a1e676f6f" . + "676c652f70726f746f6275662f6475726174696f6e2e70726f746f1a1c67" . + "6f6f676c652f70726f746f6275662f7374727563742e70726f746f227f0a" . + "05496d61676512150a0b696d6167655f627974657318012001280c480012" . + "400a0c696e7075745f636f6e66696718062001280b32282e676f6f676c65" . + "2e636c6f75642e6175746f6d6c2e763162657461312e496e707574436f6e" . + "666967480012150a0d7468756d626e61696c5f7572691804200128094206" . + "0a046461746122460a0b54657874536e6970706574120f0a07636f6e7465" . + "6e7418012001280912110a096d696d655f7479706518022001280912130a" . + "0b636f6e74656e745f75726918042001280922ef010a12446f63756d656e" . + "7444696d656e73696f6e7312530a04756e697418012001280e32452e676f" . + "6f676c652e636c6f75642e6175746f6d6c2e763162657461312e446f6375" . + "6d656e7444696d656e73696f6e732e446f63756d656e7444696d656e7369" . + "6f6e556e6974120d0a057769647468180220012802120e0a066865696768" . + "7418032001280222650a15446f63756d656e7444696d656e73696f6e556e" . + "697412270a23444f43554d454e545f44494d454e53494f4e5f554e49545f" . + "554e535045434946494544100012080a04494e43481001120e0a0a43454e" . + "54494d45544552100212090a05504f494e54100322f9050a08446f63756d" . + "656e7412460a0c696e7075745f636f6e66696718012001280b32302e676f" . + "6f676c652e636c6f75642e6175746f6d6c2e763162657461312e446f6375" . + "6d656e74496e707574436f6e666967123f0a0d646f63756d656e745f7465" . + "787418022001280b32282e676f6f676c652e636c6f75642e6175746f6d6c" . + "2e763162657461312e54657874536e6970706574123c0a066c61796f7574" . + "18032003280b322c2e676f6f676c652e636c6f75642e6175746f6d6c2e76" . + "3162657461312e446f63756d656e742e4c61796f7574124c0a13646f6375" . + "6d656e745f64696d656e73696f6e7318042001280b322f2e676f6f676c65" . + "2e636c6f75642e6175746f6d6c2e763162657461312e446f63756d656e74" . + "44696d656e73696f6e7312120a0a706167655f636f756e74180520012805" . + "1ac3030a064c61796f7574123e0a0c746578745f7365676d656e74180120" . + "01280b32282e676f6f676c652e636c6f75642e6175746f6d6c2e76316265" . + "7461312e546578745365676d656e7412130a0b706167655f6e756d626572" . + "18022001280512400a0d626f756e64696e675f706f6c7918032001280b32" . + "292e676f6f676c652e636c6f75642e6175746f6d6c2e763162657461312e" . + "426f756e64696e67506f6c7912570a11746578745f7365676d656e745f74" . + "79706518042001280e323c2e676f6f676c652e636c6f75642e6175746f6d" . + "6c2e763162657461312e446f63756d656e742e4c61796f75742e54657874" . + "5365676d656e745479706522c8010a0f546578745365676d656e74547970" . + "6512210a1d544558545f5345474d454e545f545950455f554e5350454349" . + "46494544100012090a05544f4b454e1001120d0a09504152414752415048" . + "1002120e0a0a464f524d5f4649454c44100312130a0f464f524d5f464945" . + "4c445f4e414d45100412170a13464f524d5f4649454c445f434f4e54454e" . + "5453100512090a055441424c45100612100a0c5441424c455f4845414445" . + "521007120d0a095441424c455f524f571008120e0a0a5441424c455f4345" . + "4c4c100922460a03526f7712170a0f636f6c756d6e5f737065635f696473" . + "18022003280912260a0676616c75657318032003280b32162e676f6f676c" . + "652e70726f746f6275662e56616c756522fe010a0e4578616d706c655061" . + "796c6f616412330a05696d61676518012001280b32222e676f6f676c652e" . + "636c6f75642e6175746f6d6c2e763162657461312e496d61676548001240" . + "0a0c746578745f736e697070657418022001280b32282e676f6f676c652e" . + "636c6f75642e6175746f6d6c2e763162657461312e54657874536e697070" . + "6574480012390a08646f63756d656e7418042001280b32252e676f6f676c" . + "652e636c6f75642e6175746f6d6c2e763162657461312e446f63756d656e" . + "744800122f0a03726f7718032001280b32202e676f6f676c652e636c6f75" . + "642e6175746f6d6c2e763162657461312e526f77480042090a077061796c" . + "6f616442a5010a1f636f6d2e676f6f676c652e636c6f75642e6175746f6d" . + "6c2e7631626574613150015a41676f6f676c652e676f6c616e672e6f7267" . + "2f67656e70726f746f2f676f6f676c65617069732f636c6f75642f617574" . + "6f6d6c2f763162657461313b6175746f6d6cca021b476f6f676c655c436c" . + "6f75645c4175746f4d6c5c56316265746131ea021e476f6f676c653a3a43" . + "6c6f75643a3a4175746f4d4c3a3a56316265746131620670726f746f33" ), true); static::$is_initialized = true; diff --git a/AutoMl/metadata/V1Beta1/PredictionService.php b/AutoMl/metadata/V1Beta1/PredictionService.php index 6e8f5a3ab23a..b44663f95e08 100644 --- a/AutoMl/metadata/V1Beta1/PredictionService.php +++ b/AutoMl/metadata/V1Beta1/PredictionService.php @@ -15,24 +15,24 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\Annotations::initOnce(); + \GPBMetadata\Google\Api\Client::initOnce(); \GPBMetadata\Google\Cloud\Automl\V1Beta1\AnnotationPayload::initOnce(); \GPBMetadata\Google\Cloud\Automl\V1Beta1\DataItems::initOnce(); \GPBMetadata\Google\Cloud\Automl\V1Beta1\Io::initOnce(); \GPBMetadata\Google\Cloud\Automl\V1Beta1\Operations::initOnce(); \GPBMetadata\Google\Longrunning\Operations::initOnce(); - \GPBMetadata\Google\Api\Client::initOnce(); $pool->internalAddGeneratedFile(hex2bin( - "0ac90e0a34676f6f676c652f636c6f75642f6175746f6d6c2f7631626574" . + "0a920f0a34676f6f676c652f636c6f75642f6175746f6d6c2f7631626574" . "61312f70726564696374696f6e5f736572766963652e70726f746f121b67" . - "6f6f676c652e636c6f75642e6175746f6d6c2e763162657461311a34676f" . - "6f676c652f636c6f75642f6175746f6d6c2f763162657461312f616e6e6f" . - "746174696f6e5f7061796c6f61642e70726f746f1a2c676f6f676c652f63" . - "6c6f75642f6175746f6d6c2f763162657461312f646174615f6974656d73" . - "2e70726f746f1a24676f6f676c652f636c6f75642f6175746f6d6c2f7631" . - "62657461312f696f2e70726f746f1a2c676f6f676c652f636c6f75642f61" . - "75746f6d6c2f763162657461312f6f7065726174696f6e732e70726f746f" . - "1a23676f6f676c652f6c6f6e6772756e6e696e672f6f7065726174696f6e" . - "732e70726f746f1a17676f6f676c652f6170692f636c69656e742e70726f" . + "6f6f676c652e636c6f75642e6175746f6d6c2e763162657461311a17676f" . + "6f676c652f6170692f636c69656e742e70726f746f1a34676f6f676c652f" . + "636c6f75642f6175746f6d6c2f763162657461312f616e6e6f746174696f" . + "6e5f7061796c6f61642e70726f746f1a2c676f6f676c652f636c6f75642f" . + "6175746f6d6c2f763162657461312f646174615f6974656d732e70726f74" . + "6f1a24676f6f676c652f636c6f75642f6175746f6d6c2f76316265746131" . + "2f696f2e70726f746f1a2c676f6f676c652f636c6f75642f6175746f6d6c" . + "2f763162657461312f6f7065726174696f6e732e70726f746f1a23676f6f" . + "676c652f6c6f6e6772756e6e696e672f6f7065726174696f6e732e70726f" . "746f22d4010a0e5072656469637452657175657374120c0a046e616d6518" . "0120012809123c0a077061796c6f616418022001280b322b2e676f6f676c" . "652e636c6f75642e6175746f6d6c2e763162657461312e4578616d706c65" . @@ -40,51 +40,53 @@ public static function initOnce() { "6c652e636c6f75642e6175746f6d6c2e763162657461312e507265646963" . "74526571756573742e506172616d73456e7472791a2d0a0b506172616d73" . "456e747279120b0a036b6579180120012809120d0a0576616c7565180220" . - "0128093a02380122d1010a0f50726564696374526573706f6e7365123f0a" . + "0128093a023801229a020a0f50726564696374526573706f6e7365123f0a" . "077061796c6f616418012003280b322e2e676f6f676c652e636c6f75642e" . "6175746f6d6c2e763162657461312e416e6e6f746174696f6e5061796c6f" . - "6164124c0a086d6574616461746118022003280b323a2e676f6f676c652e" . - "636c6f75642e6175746f6d6c2e763162657461312e507265646963745265" . - "73706f6e73652e4d65746164617461456e7472791a2f0a0d4d6574616461" . - "7461456e747279120b0a036b6579180120012809120d0a0576616c756518" . - "02200128093a02380122ba020a1342617463685072656469637452657175" . - "657374120c0a046e616d65180120012809124a0a0c696e7075745f636f6e" . - "66696718032001280b32342e676f6f676c652e636c6f75642e6175746f6d" . - "6c2e763162657461312e426174636850726564696374496e707574436f6e" . - "666967124c0a0d6f75747075745f636f6e66696718042001280b32352e67" . - "6f6f676c652e636c6f75642e6175746f6d6c2e763162657461312e426174" . - "6368507265646963744f7574707574436f6e666967124c0a06706172616d" . - "7318052003280b323c2e676f6f676c652e636c6f75642e6175746f6d6c2e" . - "763162657461312e426174636850726564696374526571756573742e5061" . - "72616d73456e7472791a2d0a0b506172616d73456e747279120b0a036b65" . - "79180120012809120d0a0576616c75651802200128093a0238012296010a" . - "12426174636850726564696374526573756c74124f0a086d657461646174" . - "6118012003280b323d2e676f6f676c652e636c6f75642e6175746f6d6c2e" . - "763162657461312e426174636850726564696374526573756c742e4d6574" . - "6164617461456e7472791a2f0a0d4d65746164617461456e747279120b0a" . - "036b6579180120012809120d0a0576616c75651802200128093a02380132" . - "b4030a1150726564696374696f6e5365727669636512a8010a0750726564" . - "696374122b2e676f6f676c652e636c6f75642e6175746f6d6c2e76316265" . - "7461312e50726564696374526571756573741a2c2e676f6f676c652e636c" . - "6f75642e6175746f6d6c2e763162657461312e5072656469637452657370" . - "6f6e7365224282d3e493023c22372f763162657461312f7b6e616d653d70" . - "726f6a656374732f2a2f6c6f636174696f6e732f2a2f6d6f64656c732f2a" . - "7d3a707265646963743a012a12a8010a0c42617463685072656469637412" . - "302e676f6f676c652e636c6f75642e6175746f6d6c2e763162657461312e" . - "426174636850726564696374526571756573741a1d2e676f6f676c652e6c" . - "6f6e6772756e6e696e672e4f7065726174696f6e224782d3e4930241223c" . - "2f763162657461312f7b6e616d653d70726f6a656374732f2a2f6c6f6361" . - "74696f6e732f2a2f6d6f64656c732f2a7d3a626174636850726564696374" . - "3a012a1a49ca41156175746f6d6c2e676f6f676c65617069732e636f6dd2" . - "412e68747470733a2f2f7777772e676f6f676c65617069732e636f6d2f61" . - "7574682f636c6f75642d706c6174666f726d42bd010a1f636f6d2e676f6f" . - "676c652e636c6f75642e6175746f6d6c2e76316265746131421650726564" . - "696374696f6e5365727669636550726f746f50015a41676f6f676c652e67" . - "6f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f" . - "636c6f75642f6175746f6d6c2f763162657461313b6175746f6d6cca021b" . - "476f6f676c655c436c6f75645c4175746f4d6c5c56316265746131ea021e" . - "476f6f676c653a3a436c6f75643a3a4175746f4d4c3a3a56316265746131" . - "620670726f746f33" + "616412470a1270726570726f6365737365645f696e70757418032001280b" . + "322b2e676f6f676c652e636c6f75642e6175746f6d6c2e76316265746131" . + "2e4578616d706c655061796c6f6164124c0a086d65746164617461180220" . + "03280b323a2e676f6f676c652e636c6f75642e6175746f6d6c2e76316265" . + "7461312e50726564696374526573706f6e73652e4d65746164617461456e" . + "7472791a2f0a0d4d65746164617461456e747279120b0a036b6579180120" . + "012809120d0a0576616c75651802200128093a02380122ba020a13426174" . + "63685072656469637452657175657374120c0a046e616d65180120012809" . + "124a0a0c696e7075745f636f6e66696718032001280b32342e676f6f676c" . + "652e636c6f75642e6175746f6d6c2e763162657461312e42617463685072" . + "6564696374496e707574436f6e666967124c0a0d6f75747075745f636f6e" . + "66696718042001280b32352e676f6f676c652e636c6f75642e6175746f6d" . + "6c2e763162657461312e4261746368507265646963744f7574707574436f" . + "6e666967124c0a06706172616d7318052003280b323c2e676f6f676c652e" . + "636c6f75642e6175746f6d6c2e763162657461312e426174636850726564" . + "696374526571756573742e506172616d73456e7472791a2d0a0b50617261" . + "6d73456e747279120b0a036b6579180120012809120d0a0576616c756518" . + "02200128093a0238012296010a1242617463685072656469637452657375" . + "6c74124f0a086d6574616461746118012003280b323d2e676f6f676c652e" . + "636c6f75642e6175746f6d6c2e763162657461312e426174636850726564" . + "696374526573756c742e4d65746164617461456e7472791a2f0a0d4d6574" . + "6164617461456e747279120b0a036b6579180120012809120d0a0576616c" . + "75651802200128093a02380132b4030a1150726564696374696f6e536572" . + "7669636512a8010a0750726564696374122b2e676f6f676c652e636c6f75" . + "642e6175746f6d6c2e763162657461312e50726564696374526571756573" . + "741a2c2e676f6f676c652e636c6f75642e6175746f6d6c2e763162657461" . + "312e50726564696374526573706f6e7365224282d3e493023c22372f7631" . + "62657461312f7b6e616d653d70726f6a656374732f2a2f6c6f636174696f" . + "6e732f2a2f6d6f64656c732f2a7d3a707265646963743a012a12a8010a0c" . + "42617463685072656469637412302e676f6f676c652e636c6f75642e6175" . + "746f6d6c2e763162657461312e4261746368507265646963745265717565" . + "73741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f7065726174" . + "696f6e224782d3e4930241223c2f763162657461312f7b6e616d653d7072" . + "6f6a656374732f2a2f6c6f636174696f6e732f2a2f6d6f64656c732f2a7d" . + "3a6261746368507265646963743a012a1a49ca41156175746f6d6c2e676f" . + "6f676c65617069732e636f6dd2412e68747470733a2f2f7777772e676f6f" . + "676c65617069732e636f6d2f617574682f636c6f75642d706c6174666f72" . + "6d42bd010a1f636f6d2e676f6f676c652e636c6f75642e6175746f6d6c2e" . + "76316265746131421650726564696374696f6e5365727669636550726f74" . + "6f50015a41676f6f676c652e676f6c616e672e6f72672f67656e70726f74" . + "6f2f676f6f676c65617069732f636c6f75642f6175746f6d6c2f76316265" . + "7461313b6175746f6d6cca021b476f6f676c655c436c6f75645c4175746f" . + "4d6c5c56316265746131ea021e476f6f676c653a3a436c6f75643a3a4175" . + "746f4d4c3a3a56316265746131620670726f746f33" ), true); static::$is_initialized = true; diff --git a/AutoMl/src/V1beta1/BatchPredictRequest.php b/AutoMl/src/V1beta1/BatchPredictRequest.php index ac52bdf590a8..b4069ff5efee 100644 --- a/AutoMl/src/V1beta1/BatchPredictRequest.php +++ b/AutoMl/src/V1beta1/BatchPredictRequest.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Request message for [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict]. + * Request message for + * [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict]. * * Generated from protobuf message google.cloud.automl.v1beta1.BatchPredictRequest */ diff --git a/AutoMl/src/V1beta1/BatchPredictResult.php b/AutoMl/src/V1beta1/BatchPredictResult.php index db80ec7e0537..ea5f1e66038f 100644 --- a/AutoMl/src/V1beta1/BatchPredictResult.php +++ b/AutoMl/src/V1beta1/BatchPredictResult.php @@ -11,7 +11,8 @@ /** * Result of the Batch Predict. This message is returned in * [response][google.longrunning.Operation.response] of the operation returned - * by the [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict]. + * by the + * [PredictionService.BatchPredict][google.cloud.automl.v1beta1.PredictionService.BatchPredict]. * * Generated from protobuf message google.cloud.automl.v1beta1.BatchPredictResult */ diff --git a/AutoMl/src/V1beta1/Document.php b/AutoMl/src/V1beta1/Document.php index 569cd3b1c315..ea3b1d79b96d 100644 --- a/AutoMl/src/V1beta1/Document.php +++ b/AutoMl/src/V1beta1/Document.php @@ -21,6 +21,31 @@ class Document extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.automl.v1beta1.DocumentInputConfig input_config = 1; */ private $input_config = null; + /** + * The plain text version of this document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + */ + private $document_text = null; + /** + * Describes the layout of the document. + * Sorted by [page_number][]. + * + * Generated from protobuf field repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3; + */ + private $layout; + /** + * The dimensions of the page in the document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + */ + private $document_dimensions = null; + /** + * Number of pages in the document. + * + * Generated from protobuf field int32 page_count = 5; + */ + private $page_count = 0; /** * Constructor. @@ -30,6 +55,15 @@ class Document extends \Google\Protobuf\Internal\Message * * @type \Google\Cloud\AutoMl\V1beta1\DocumentInputConfig $input_config * An input config specifying the content of the document. + * @type \Google\Cloud\AutoMl\V1beta1\TextSnippet $document_text + * The plain text version of this document. + * @type \Google\Cloud\AutoMl\V1beta1\Document\Layout[]|\Google\Protobuf\Internal\RepeatedField $layout + * Describes the layout of the document. + * Sorted by [page_number][]. + * @type \Google\Cloud\AutoMl\V1beta1\DocumentDimensions $document_dimensions + * The dimensions of the page in the document. + * @type int $page_count + * Number of pages in the document. * } */ public function __construct($data = NULL) { @@ -63,5 +97,111 @@ public function setInputConfig($var) return $this; } + /** + * The plain text version of this document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + * @return \Google\Cloud\AutoMl\V1beta1\TextSnippet + */ + public function getDocumentText() + { + return $this->document_text; + } + + /** + * The plain text version of this document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.TextSnippet document_text = 2; + * @param \Google\Cloud\AutoMl\V1beta1\TextSnippet $var + * @return $this + */ + public function setDocumentText($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\TextSnippet::class); + $this->document_text = $var; + + return $this; + } + + /** + * Describes the layout of the document. + * Sorted by [page_number][]. + * + * Generated from protobuf field repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLayout() + { + return $this->layout; + } + + /** + * Describes the layout of the document. + * Sorted by [page_number][]. + * + * Generated from protobuf field repeated .google.cloud.automl.v1beta1.Document.Layout layout = 3; + * @param \Google\Cloud\AutoMl\V1beta1\Document\Layout[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLayout($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AutoMl\V1beta1\Document\Layout::class); + $this->layout = $arr; + + return $this; + } + + /** + * The dimensions of the page in the document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + * @return \Google\Cloud\AutoMl\V1beta1\DocumentDimensions + */ + public function getDocumentDimensions() + { + return $this->document_dimensions; + } + + /** + * The dimensions of the page in the document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.DocumentDimensions document_dimensions = 4; + * @param \Google\Cloud\AutoMl\V1beta1\DocumentDimensions $var + * @return $this + */ + public function setDocumentDimensions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\DocumentDimensions::class); + $this->document_dimensions = $var; + + return $this; + } + + /** + * Number of pages in the document. + * + * Generated from protobuf field int32 page_count = 5; + * @return int + */ + public function getPageCount() + { + return $this->page_count; + } + + /** + * Number of pages in the document. + * + * Generated from protobuf field int32 page_count = 5; + * @param int $var + * @return $this + */ + public function setPageCount($var) + { + GPBUtil::checkInt32($var); + $this->page_count = $var; + + return $this; + } + } diff --git a/AutoMl/src/V1beta1/Document/Layout.php b/AutoMl/src/V1beta1/Document/Layout.php new file mode 100644 index 000000000000..de2208cfda7f --- /dev/null +++ b/AutoMl/src/V1beta1/Document/Layout.php @@ -0,0 +1,226 @@ +google.cloud.automl.v1beta1.Document.Layout + */ +class Layout extends \Google\Protobuf\Internal\Message +{ + /** + * Text Segment that represents a segment in + * [document_text][google.cloud.automl.v1beta1.Document.document_text]. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + */ + private $text_segment = null; + /** + * Page number of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in the original document, starts from 1. + * + * Generated from protobuf field int32 page_number = 2; + */ + private $page_number = 0; + /** + * The position of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in the page. Contains exactly 4 + * [normalized_vertices][google.cloud.automl.v1beta1.BoundingPoly.normalized_vertices] + * and they are connected by edges in the order provided, which will + * represent a rectangle parallel to the frame. The + * [NormalizedVertex-s][google.cloud.automl.v1beta1.NormalizedVertex] are + * relative to the page. + * Coordinates are based on top-left as point (0,0). + * + * Generated from protobuf field .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + */ + private $bounding_poly = null; + /** + * The type of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + */ + private $text_segment_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\AutoMl\V1beta1\TextSegment $text_segment + * Text Segment that represents a segment in + * [document_text][google.cloud.automl.v1beta1.Document.document_text]. + * @type int $page_number + * Page number of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in the original document, starts from 1. + * @type \Google\Cloud\AutoMl\V1beta1\BoundingPoly $bounding_poly + * The position of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in the page. Contains exactly 4 + * [normalized_vertices][google.cloud.automl.v1beta1.BoundingPoly.normalized_vertices] + * and they are connected by edges in the order provided, which will + * represent a rectangle parallel to the frame. The + * [NormalizedVertex-s][google.cloud.automl.v1beta1.NormalizedVertex] are + * relative to the page. + * Coordinates are based on top-left as point (0,0). + * @type int $text_segment_type + * The type of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in document. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Automl\V1Beta1\DataItems::initOnce(); + parent::__construct($data); + } + + /** + * Text Segment that represents a segment in + * [document_text][google.cloud.automl.v1beta1.Document.document_text]. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + * @return \Google\Cloud\AutoMl\V1beta1\TextSegment + */ + public function getTextSegment() + { + return $this->text_segment; + } + + /** + * Text Segment that represents a segment in + * [document_text][google.cloud.automl.v1beta1.Document.document_text]. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.TextSegment text_segment = 1; + * @param \Google\Cloud\AutoMl\V1beta1\TextSegment $var + * @return $this + */ + public function setTextSegment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\TextSegment::class); + $this->text_segment = $var; + + return $this; + } + + /** + * Page number of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in the original document, starts from 1. + * + * Generated from protobuf field int32 page_number = 2; + * @return int + */ + public function getPageNumber() + { + return $this->page_number; + } + + /** + * Page number of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in the original document, starts from 1. + * + * Generated from protobuf field int32 page_number = 2; + * @param int $var + * @return $this + */ + public function setPageNumber($var) + { + GPBUtil::checkInt32($var); + $this->page_number = $var; + + return $this; + } + + /** + * The position of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in the page. Contains exactly 4 + * [normalized_vertices][google.cloud.automl.v1beta1.BoundingPoly.normalized_vertices] + * and they are connected by edges in the order provided, which will + * represent a rectangle parallel to the frame. The + * [NormalizedVertex-s][google.cloud.automl.v1beta1.NormalizedVertex] are + * relative to the page. + * Coordinates are based on top-left as point (0,0). + * + * Generated from protobuf field .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + * @return \Google\Cloud\AutoMl\V1beta1\BoundingPoly + */ + public function getBoundingPoly() + { + return $this->bounding_poly; + } + + /** + * The position of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in the page. Contains exactly 4 + * [normalized_vertices][google.cloud.automl.v1beta1.BoundingPoly.normalized_vertices] + * and they are connected by edges in the order provided, which will + * represent a rectangle parallel to the frame. The + * [NormalizedVertex-s][google.cloud.automl.v1beta1.NormalizedVertex] are + * relative to the page. + * Coordinates are based on top-left as point (0,0). + * + * Generated from protobuf field .google.cloud.automl.v1beta1.BoundingPoly bounding_poly = 3; + * @param \Google\Cloud\AutoMl\V1beta1\BoundingPoly $var + * @return $this + */ + public function setBoundingPoly($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\BoundingPoly::class); + $this->bounding_poly = $var; + + return $this; + } + + /** + * The type of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * @return int + */ + public function getTextSegmentType() + { + return $this->text_segment_type; + } + + /** + * The type of the + * [text_segment][google.cloud.automl.v1beta1.Document.Layout.text_segment] + * in document. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.Document.Layout.TextSegmentType text_segment_type = 4; + * @param int $var + * @return $this + */ + public function setTextSegmentType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AutoMl\V1beta1\Document_Layout_TextSegmentType::class); + $this->text_segment_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Layout::class, \Google\Cloud\AutoMl\V1beta1\Document_Layout::class); + diff --git a/AutoMl/src/V1beta1/Document/Layout/TextSegmentType.php b/AutoMl/src/V1beta1/Document/Layout/TextSegmentType.php new file mode 100644 index 000000000000..c899403f0b0b --- /dev/null +++ b/AutoMl/src/V1beta1/Document/Layout/TextSegmentType.php @@ -0,0 +1,123 @@ +google.cloud.automl.v1beta1.Document.Layout.TextSegmentType + */ +class TextSegmentType +{ + /** + * Should not be used. + * + * Generated from protobuf enum TEXT_SEGMENT_TYPE_UNSPECIFIED = 0; + */ + const TEXT_SEGMENT_TYPE_UNSPECIFIED = 0; + /** + * The text segment is a token. e.g. word. + * + * Generated from protobuf enum TOKEN = 1; + */ + const TOKEN = 1; + /** + * The text segment is a paragraph. + * + * Generated from protobuf enum PARAGRAPH = 2; + */ + const PARAGRAPH = 2; + /** + * The text segment is a form field. + * + * Generated from protobuf enum FORM_FIELD = 3; + */ + const FORM_FIELD = 3; + /** + * The text segment is the name part of a form field. It will be treated + * as child of another FORM_FIELD TextSegment if its span is subspan of + * another TextSegment with type FORM_FIELD. + * + * Generated from protobuf enum FORM_FIELD_NAME = 4; + */ + const FORM_FIELD_NAME = 4; + /** + * The text segment is the text content part of a form field. It will be + * treated as child of another FORM_FIELD TextSegment if its span is + * subspan of another TextSegment with type FORM_FIELD. + * + * Generated from protobuf enum FORM_FIELD_CONTENTS = 5; + */ + const FORM_FIELD_CONTENTS = 5; + /** + * The text segment is a whole table, including headers, and all rows. + * + * Generated from protobuf enum TABLE = 6; + */ + const TABLE = 6; + /** + * The text segment is a table's headers. It will be treated as child of + * another TABLE TextSegment if its span is subspan of another TextSegment + * with type TABLE. + * + * Generated from protobuf enum TABLE_HEADER = 7; + */ + const TABLE_HEADER = 7; + /** + * The text segment is a row in table. It will be treated as child of + * another TABLE TextSegment if its span is subspan of another TextSegment + * with type TABLE. + * + * Generated from protobuf enum TABLE_ROW = 8; + */ + const TABLE_ROW = 8; + /** + * The text segment is a cell in table. It will be treated as child of + * another TABLE_ROW TextSegment if its span is subspan of another + * TextSegment with type TABLE_ROW. + * + * Generated from protobuf enum TABLE_CELL = 9; + */ + const TABLE_CELL = 9; + + private static $valueToName = [ + self::TEXT_SEGMENT_TYPE_UNSPECIFIED => 'TEXT_SEGMENT_TYPE_UNSPECIFIED', + self::TOKEN => 'TOKEN', + self::PARAGRAPH => 'PARAGRAPH', + self::FORM_FIELD => 'FORM_FIELD', + self::FORM_FIELD_NAME => 'FORM_FIELD_NAME', + self::FORM_FIELD_CONTENTS => 'FORM_FIELD_CONTENTS', + self::TABLE => 'TABLE', + self::TABLE_HEADER => 'TABLE_HEADER', + self::TABLE_ROW => 'TABLE_ROW', + self::TABLE_CELL => 'TABLE_CELL', + ]; + + 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(TextSegmentType::class, \Google\Cloud\AutoMl\V1beta1\Document_Layout_TextSegmentType::class); + diff --git a/AutoMl/src/V1beta1/DocumentDimensions.php b/AutoMl/src/V1beta1/DocumentDimensions.php new file mode 100644 index 000000000000..4ff99fbcb184 --- /dev/null +++ b/AutoMl/src/V1beta1/DocumentDimensions.php @@ -0,0 +1,135 @@ +google.cloud.automl.v1beta1.DocumentDimensions + */ +class DocumentDimensions extends \Google\Protobuf\Internal\Message +{ + /** + * Unit of the dimension. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + */ + private $unit = 0; + /** + * Width value of the document, works together with the unit. + * + * Generated from protobuf field float width = 2; + */ + private $width = 0.0; + /** + * Height value of the document, works together with the unit. + * + * Generated from protobuf field float height = 3; + */ + private $height = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $unit + * Unit of the dimension. + * @type float $width + * Width value of the document, works together with the unit. + * @type float $height + * Height value of the document, works together with the unit. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Automl\V1Beta1\DataItems::initOnce(); + parent::__construct($data); + } + + /** + * Unit of the dimension. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * @return int + */ + public function getUnit() + { + return $this->unit; + } + + /** + * Unit of the dimension. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit unit = 1; + * @param int $var + * @return $this + */ + public function setUnit($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\AutoMl\V1beta1\DocumentDimensions_DocumentDimensionUnit::class); + $this->unit = $var; + + return $this; + } + + /** + * Width value of the document, works together with the unit. + * + * Generated from protobuf field float width = 2; + * @return float + */ + public function getWidth() + { + return $this->width; + } + + /** + * Width value of the document, works together with the unit. + * + * Generated from protobuf field float width = 2; + * @param float $var + * @return $this + */ + public function setWidth($var) + { + GPBUtil::checkFloat($var); + $this->width = $var; + + return $this; + } + + /** + * Height value of the document, works together with the unit. + * + * Generated from protobuf field float height = 3; + * @return float + */ + public function getHeight() + { + return $this->height; + } + + /** + * Height value of the document, works together with the unit. + * + * Generated from protobuf field float height = 3; + * @param float $var + * @return $this + */ + public function setHeight($var) + { + GPBUtil::checkFloat($var); + $this->height = $var; + + return $this; + } + +} + diff --git a/AutoMl/src/V1beta1/DocumentDimensions/DocumentDimensionUnit.php b/AutoMl/src/V1beta1/DocumentDimensions/DocumentDimensionUnit.php new file mode 100644 index 000000000000..da19b889ef66 --- /dev/null +++ b/AutoMl/src/V1beta1/DocumentDimensions/DocumentDimensionUnit.php @@ -0,0 +1,71 @@ +google.cloud.automl.v1beta1.DocumentDimensions.DocumentDimensionUnit + */ +class DocumentDimensionUnit +{ + /** + * Should not be used. + * + * Generated from protobuf enum DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0; + */ + const DOCUMENT_DIMENSION_UNIT_UNSPECIFIED = 0; + /** + * Document dimension is measured in inches. + * + * Generated from protobuf enum INCH = 1; + */ + const INCH = 1; + /** + * Document dimension is measured in centimeters. + * + * Generated from protobuf enum CENTIMETER = 2; + */ + const CENTIMETER = 2; + /** + * Document dimension is measured in points. 72 points = 1 inch. + * + * Generated from protobuf enum POINT = 3; + */ + const POINT = 3; + + private static $valueToName = [ + self::DOCUMENT_DIMENSION_UNIT_UNSPECIFIED => 'DOCUMENT_DIMENSION_UNIT_UNSPECIFIED', + self::INCH => 'INCH', + self::CENTIMETER => 'CENTIMETER', + self::POINT => 'POINT', + ]; + + 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(DocumentDimensionUnit::class, \Google\Cloud\AutoMl\V1beta1\DocumentDimensions_DocumentDimensionUnit::class); + diff --git a/AutoMl/src/V1beta1/DocumentDimensions_DocumentDimensionUnit.php b/AutoMl/src/V1beta1/DocumentDimensions_DocumentDimensionUnit.php new file mode 100644 index 000000000000..30b63e4d2fff --- /dev/null +++ b/AutoMl/src/V1beta1/DocumentDimensions_DocumentDimensionUnit.php @@ -0,0 +1,16 @@ +google.cloud.automl.v1beta1.PredictRequest */ diff --git a/AutoMl/src/V1beta1/PredictResponse.php b/AutoMl/src/V1beta1/PredictResponse.php index fa5bd996fcc4..5bdbeb358be1 100644 --- a/AutoMl/src/V1beta1/PredictResponse.php +++ b/AutoMl/src/V1beta1/PredictResponse.php @@ -9,7 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * Response message for [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. + * Response message for + * [PredictionService.Predict][google.cloud.automl.v1beta1.PredictionService.Predict]. * * Generated from protobuf message google.cloud.automl.v1beta1.PredictResponse */ @@ -22,6 +23,16 @@ class PredictResponse extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.automl.v1beta1.AnnotationPayload payload = 1; */ private $payload; + /** + * The preprocessed example that AutoML actually makes prediction on. + * Empty if AutoML does not preprocess the input example. + * * For Text Extraction: + * If the input is a .pdf file, the OCR'ed text will be provided in + * [document_text][google.cloud.automl.v1beta1.Document.document_text]. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + */ + private $preprocessed_input = null; /** * Additional domain-specific prediction response metadata. * * For Image Object Detection: @@ -50,6 +61,12 @@ class PredictResponse extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\AutoMl\V1beta1\AnnotationPayload[]|\Google\Protobuf\Internal\RepeatedField $payload * Prediction result. * Translation and Text Sentiment will return precisely one payload. + * @type \Google\Cloud\AutoMl\V1beta1\ExamplePayload $preprocessed_input + * The preprocessed example that AutoML actually makes prediction on. + * Empty if AutoML does not preprocess the input example. + * * For Text Extraction: + * If the input is a .pdf file, the OCR'ed text will be provided in + * [document_text][google.cloud.automl.v1beta1.Document.document_text]. * @type array|\Google\Protobuf\Internal\MapField $metadata * Additional domain-specific prediction response metadata. * * For Image Object Detection: @@ -99,6 +116,40 @@ public function setPayload($var) return $this; } + /** + * The preprocessed example that AutoML actually makes prediction on. + * Empty if AutoML does not preprocess the input example. + * * For Text Extraction: + * If the input is a .pdf file, the OCR'ed text will be provided in + * [document_text][google.cloud.automl.v1beta1.Document.document_text]. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + * @return \Google\Cloud\AutoMl\V1beta1\ExamplePayload + */ + public function getPreprocessedInput() + { + return $this->preprocessed_input; + } + + /** + * The preprocessed example that AutoML actually makes prediction on. + * Empty if AutoML does not preprocess the input example. + * * For Text Extraction: + * If the input is a .pdf file, the OCR'ed text will be provided in + * [document_text][google.cloud.automl.v1beta1.Document.document_text]. + * + * Generated from protobuf field .google.cloud.automl.v1beta1.ExamplePayload preprocessed_input = 3; + * @param \Google\Cloud\AutoMl\V1beta1\ExamplePayload $var + * @return $this + */ + public function setPreprocessedInput($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\ExamplePayload::class); + $this->preprocessed_input = $var; + + return $this; + } + /** * Additional domain-specific prediction response metadata. * * For Image Object Detection: diff --git a/AutoMl/src/V1beta1/PredictionServiceGrpcClient.php b/AutoMl/src/V1beta1/PredictionServiceGrpcClient.php index 7f58c6db7ac0..7e07a6ceaf42 100644 --- a/AutoMl/src/V1beta1/PredictionServiceGrpcClient.php +++ b/AutoMl/src/V1beta1/PredictionServiceGrpcClient.php @@ -69,12 +69,14 @@ public function Predict(\Google\Cloud\AutoMl\V1beta1\PredictRequest $argument, } /** - * Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch + * Perform a batch prediction. Unlike the online + * [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch * prediction result won't be immediately available in the response. Instead, * a long running operation object is returned. User can poll the operation * result via [GetOperation][google.longrunning.Operations.GetOperation] - * method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in - * the [response][google.longrunning.Operation.response] field. + * method. Once the operation is done, + * [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is + * returned in the [response][google.longrunning.Operation.response] field. * Available for following ML problems: * * Image Classification * * Image Object Detection diff --git a/AutoMl/src/V1beta1/TextSnippet.php b/AutoMl/src/V1beta1/TextSnippet.php index 1198bb1b7006..10223fb86e4d 100644 --- a/AutoMl/src/V1beta1/TextSnippet.php +++ b/AutoMl/src/V1beta1/TextSnippet.php @@ -23,9 +23,11 @@ class TextSnippet extends \Google\Protobuf\Internal\Message */ private $content = ''; /** - * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed - * values are "text/html" and "text/plain". If left blank, the format is - * automatically determined from the type of the uploaded [content][google.cloud.automl.v1beta1.TextSnippet.content]. + * Optional. The format of + * [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the + * only two allowed values are "text/html" and "text/plain". If left blank, + * the format is automatically determined from the type of the uploaded + * [content][google.cloud.automl.v1beta1.TextSnippet.content]. * * Generated from protobuf field string mime_type = 2; */ @@ -47,9 +49,11 @@ class TextSnippet extends \Google\Protobuf\Internal\Message * Required. The content of the text snippet as a string. Up to 250000 * characters long. * @type string $mime_type - * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed - * values are "text/html" and "text/plain". If left blank, the format is - * automatically determined from the type of the uploaded [content][google.cloud.automl.v1beta1.TextSnippet.content]. + * Optional. The format of + * [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the + * only two allowed values are "text/html" and "text/plain". If left blank, + * the format is automatically determined from the type of the uploaded + * [content][google.cloud.automl.v1beta1.TextSnippet.content]. * @type string $content_uri * Output only. HTTP URI where you can download the content. * } @@ -88,9 +92,11 @@ public function setContent($var) } /** - * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed - * values are "text/html" and "text/plain". If left blank, the format is - * automatically determined from the type of the uploaded [content][google.cloud.automl.v1beta1.TextSnippet.content]. + * Optional. The format of + * [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the + * only two allowed values are "text/html" and "text/plain". If left blank, + * the format is automatically determined from the type of the uploaded + * [content][google.cloud.automl.v1beta1.TextSnippet.content]. * * Generated from protobuf field string mime_type = 2; * @return string @@ -101,9 +107,11 @@ public function getMimeType() } /** - * Optional. The format of [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the only two allowed - * values are "text/html" and "text/plain". If left blank, the format is - * automatically determined from the type of the uploaded [content][google.cloud.automl.v1beta1.TextSnippet.content]. + * Optional. The format of + * [content][google.cloud.automl.v1beta1.TextSnippet.content]. Currently the + * only two allowed values are "text/html" and "text/plain". If left blank, + * the format is automatically determined from the type of the uploaded + * [content][google.cloud.automl.v1beta1.TextSnippet.content]. * * Generated from protobuf field string mime_type = 2; * @param string $var diff --git a/AutoMl/synth.metadata b/AutoMl/synth.metadata index 8e964110ee31..778d9a6b9929 100644 --- a/AutoMl/synth.metadata +++ b/AutoMl/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-08-10T09:58:50.644477Z", + "updateTime": "2019-08-16T09:58:57.357812Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2a2c5518f64010c4e458afc818e57ed24fecdf6d", - "internalRef": "262646243" + "sha": "2a02e33c79cbf23d316c57e1c78f915e1d905eee", + "internalRef": "263682410" } } ],