-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathArrowSchema.php
More file actions
71 lines (62 loc) · 1.88 KB
/
ArrowSchema.php
File metadata and controls
71 lines (62 loc) · 1.88 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/bigquery/storage/v1/arrow.proto
namespace Google\Cloud\BigQuery\Storage\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* Arrow schema as specified in
* https://arrow.apache.org/docs/python/api/datatypes.html
* and serialized to bytes using IPC:
* https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc
* See code samples on how this message can be deserialized.
*
* Generated from protobuf message <code>google.cloud.bigquery.storage.v1.ArrowSchema</code>
*/
class ArrowSchema extends \Google\Protobuf\Internal\Message
{
/**
* IPC serialized Arrow schema.
*
* Generated from protobuf field <code>bytes serialized_schema = 1;</code>
*/
protected $serialized_schema = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $serialized_schema
* IPC serialized Arrow schema.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Arrow::initOnce();
parent::__construct($data);
}
/**
* IPC serialized Arrow schema.
*
* Generated from protobuf field <code>bytes serialized_schema = 1;</code>
* @return string
*/
public function getSerializedSchema()
{
return $this->serialized_schema;
}
/**
* IPC serialized Arrow schema.
*
* Generated from protobuf field <code>bytes serialized_schema = 1;</code>
* @param string $var
* @return $this
*/
public function setSerializedSchema($var)
{
GPBUtil::checkString($var, False);
$this->serialized_schema = $var;
return $this;
}
}