-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathTableSchema.php
More file actions
69 lines (60 loc) · 2.09 KB
/
TableSchema.php
File metadata and controls
69 lines (60 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/bigquery/storage/v1/table.proto
namespace Google\Cloud\BigQuery\Storage\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* Schema of a table. This schema is a subset of
* google.cloud.bigquery.v2.TableSchema containing information necessary to
* generate valid message to write to BigQuery.
*
* Generated from protobuf message <code>google.cloud.bigquery.storage.v1.TableSchema</code>
*/
class TableSchema extends \Google\Protobuf\Internal\Message
{
/**
* Describes the fields in a table.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;</code>
*/
private $fields;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Cloud\BigQuery\Storage\V1\TableFieldSchema[] $fields
* Describes the fields in a table.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Table::initOnce();
parent::__construct($data);
}
/**
* Describes the fields in a table.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;</code>
* @return RepeatedField<\Google\Cloud\BigQuery\Storage\V1\TableFieldSchema>
*/
public function getFields()
{
return $this->fields;
}
/**
* Describes the fields in a table.
*
* Generated from protobuf field <code>repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1;</code>
* @param \Google\Cloud\BigQuery\Storage\V1\TableFieldSchema[] $var
* @return $this
*/
public function setFields($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BigQuery\Storage\V1\TableFieldSchema::class);
$this->fields = $arr;
return $this;
}
}