-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathProtoSchema.php
More file actions
105 lines (94 loc) · 4.26 KB
/
ProtoSchema.php
File metadata and controls
105 lines (94 loc) · 4.26 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/bigquery/storage/v1/protobuf.proto
namespace Google\Cloud\BigQuery\Storage\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* ProtoSchema describes the schema of the serialized protocol buffer data rows.
*
* Generated from protobuf message <code>google.cloud.bigquery.storage.v1.ProtoSchema</code>
*/
class ProtoSchema extends \Google\Protobuf\Internal\Message
{
/**
* Descriptor for input message. The provided descriptor must be self
* contained, such that data rows sent can be fully decoded using only the
* single descriptor. For data rows that are compositions of multiple
* independent messages, this means the descriptor may need to be transformed
* to only use nested types:
* https://developers.google.com/protocol-buffers/docs/proto#nested
* For additional information for how proto types and values map onto BigQuery
* see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions
*
* Generated from protobuf field <code>.google.protobuf.DescriptorProto proto_descriptor = 1;</code>
*/
protected $proto_descriptor = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\DescriptorProto $proto_descriptor
* Descriptor for input message. The provided descriptor must be self
* contained, such that data rows sent can be fully decoded using only the
* single descriptor. For data rows that are compositions of multiple
* independent messages, this means the descriptor may need to be transformed
* to only use nested types:
* https://developers.google.com/protocol-buffers/docs/proto#nested
* For additional information for how proto types and values map onto BigQuery
* see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Protobuf::initOnce();
parent::__construct($data);
}
/**
* Descriptor for input message. The provided descriptor must be self
* contained, such that data rows sent can be fully decoded using only the
* single descriptor. For data rows that are compositions of multiple
* independent messages, this means the descriptor may need to be transformed
* to only use nested types:
* https://developers.google.com/protocol-buffers/docs/proto#nested
* For additional information for how proto types and values map onto BigQuery
* see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions
*
* Generated from protobuf field <code>.google.protobuf.DescriptorProto proto_descriptor = 1;</code>
* @return \Google\Protobuf\DescriptorProto|null
*/
public function getProtoDescriptor()
{
return $this->proto_descriptor;
}
public function hasProtoDescriptor()
{
return isset($this->proto_descriptor);
}
public function clearProtoDescriptor()
{
unset($this->proto_descriptor);
}
/**
* Descriptor for input message. The provided descriptor must be self
* contained, such that data rows sent can be fully decoded using only the
* single descriptor. For data rows that are compositions of multiple
* independent messages, this means the descriptor may need to be transformed
* to only use nested types:
* https://developers.google.com/protocol-buffers/docs/proto#nested
* For additional information for how proto types and values map onto BigQuery
* see: https://cloud.google.com/bigquery/docs/write-api#data_type_conversions
*
* Generated from protobuf field <code>.google.protobuf.DescriptorProto proto_descriptor = 1;</code>
* @param \Google\Protobuf\DescriptorProto $var
* @return $this
*/
public function setProtoDescriptor($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\DescriptorProto::class);
$this->proto_descriptor = $var;
return $this;
}
}