whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
google
/
cloud-translate
/
src
/
V3
/
DatasetInputConfig
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/google/cloud-translate/src/V3/DatasetInputConfig/InputFile.php
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/translate/v3/automl_translation.proto namespace Google\Cloud\Translate\V3\DatasetInputConfig; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * An input file. * * Generated from protobuf message <code>google.cloud.translation.v3.DatasetInputConfig.InputFile</code> */ class InputFile extends \Google\Protobuf\Internal\Message { /** * Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, * or UNASSIGNED (by default) for auto split. * * Generated from protobuf field <code>string usage = 2 [(.google.api.field_behavior) = OPTIONAL];</code> */ private $usage = ''; protected $source; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $usage * Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, * or UNASSIGNED (by default) for auto split. * @type \Google\Cloud\Translate\V3\GcsInputSource $gcs_source * Google Cloud Storage file source. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Translate\V3\AutomlTranslation::initOnce(); parent::__construct($data); } /** * Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, * or UNASSIGNED (by default) for auto split. * * Generated from protobuf field <code>string usage = 2 [(.google.api.field_behavior) = OPTIONAL];</code> * @return string */ public function getUsage() { return $this->usage; } /** * Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, * or UNASSIGNED (by default) for auto split. * * Generated from protobuf field <code>string usage = 2 [(.google.api.field_behavior) = OPTIONAL];</code> * @param string $var * @return $this */ public function setUsage($var) { GPBUtil::checkString($var, True); $this->usage = $var; return $this; } /** * Google Cloud Storage file source. * * Generated from protobuf field <code>.google.cloud.translation.v3.GcsInputSource gcs_source = 3;</code> * @return \Google\Cloud\Translate\V3\GcsInputSource|null */ public function getGcsSource() { return $this->readOneof(3); } public function hasGcsSource() { return $this->hasOneof(3); } /** * Google Cloud Storage file source. * * Generated from protobuf field <code>.google.cloud.translation.v3.GcsInputSource gcs_source = 3;</code> * @param \Google\Cloud\Translate\V3\GcsInputSource $var * @return $this */ public function setGcsSource($var) { GPBUtil::checkMessage($var, \Google\Cloud\Translate\V3\GcsInputSource::class); $this->writeOneof(3, $var); return $this; } /** * @return string */ public function getSource() { return $this->whichOneof("source"); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(InputFile::class, \Google\Cloud\Translate\V3\DatasetInputConfig_InputFile::class);
Copyright ©2021 || Defacer Indonesia