Viewing file: GcsOutputDestination.php (2.55 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/translate/v3/common.proto
namespace Google\Cloud\Translate\V3;
use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil;
/** * The Google Cloud Storage location for the output content. * * Generated from protobuf message <code>google.cloud.translation.v3.GcsOutputDestination</code> */ class GcsOutputDestination extends \Google\Protobuf\Internal\Message { /** * Required. Google Cloud Storage URI to output directory. For example, * `gs://bucket/directory`. The requesting user must have write permission to * the bucket. The directory will be created if it doesn't exist. * * Generated from protobuf field <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ private $output_uri_prefix = '';
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $output_uri_prefix * Required. Google Cloud Storage URI to output directory. For example, * `gs://bucket/directory`. The requesting user must have write permission to * the bucket. The directory will be created if it doesn't exist. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Translate\V3\Common::initOnce(); parent::__construct($data); }
/** * Required. Google Cloud Storage URI to output directory. For example, * `gs://bucket/directory`. The requesting user must have write permission to * the bucket. The directory will be created if it doesn't exist. * * Generated from protobuf field <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @return string */ public function getOutputUriPrefix() { return $this->output_uri_prefix; }
/** * Required. Google Cloud Storage URI to output directory. For example, * `gs://bucket/directory`. The requesting user must have write permission to * the bucket. The directory will be created if it doesn't exist. * * Generated from protobuf field <code>string output_uri_prefix = 1 [(.google.api.field_behavior) = REQUIRED];</code> * @param string $var * @return $this */ public function setOutputUriPrefix($var) { GPBUtil::checkString($var, True); $this->output_uri_prefix = $var;
return $this; }
}
|