-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathArrowSerializationOptions.php
More file actions
109 lines (97 loc) · 3.69 KB
/
ArrowSerializationOptions.php
File metadata and controls
109 lines (97 loc) · 3.69 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
105
106
107
108
<?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;
/**
* Contains options specific to Arrow Serialization.
*
* Generated from protobuf message <code>google.cloud.bigquery.storage.v1.ArrowSerializationOptions</code>
*/
class ArrowSerializationOptions extends \Google\Protobuf\Internal\Message
{
/**
* The compression codec to use for Arrow buffers in serialized record
* batches.
*
* Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2;</code>
*/
protected $buffer_compression = 0;
/**
* Optional. Set timestamp precision option. If not set, the default precision
* is microseconds.
*
* Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 3;</code>
*/
protected $picos_timestamp_precision = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $buffer_compression
* The compression codec to use for Arrow buffers in serialized record
* batches.
* @type int $picos_timestamp_precision
* Optional. Set timestamp precision option. If not set, the default precision
* is microseconds.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Bigquery\Storage\V1\Arrow::initOnce();
parent::__construct($data);
}
/**
* The compression codec to use for Arrow buffers in serialized record
* batches.
*
* Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2;</code>
* @return int
*/
public function getBufferCompression()
{
return $this->buffer_compression;
}
/**
* The compression codec to use for Arrow buffers in serialized record
* batches.
*
* Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2;</code>
* @param int $var
* @return $this
*/
public function setBufferCompression($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Storage\V1\ArrowSerializationOptions\CompressionCodec::class);
$this->buffer_compression = $var;
return $this;
}
/**
* Optional. Set timestamp precision option. If not set, the default precision
* is microseconds.
*
* Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 3;</code>
* @return int
*/
public function getPicosTimestampPrecision()
{
return $this->picos_timestamp_precision;
}
/**
* Optional. Set timestamp precision option. If not set, the default precision
* is microseconds.
*
* Generated from protobuf field <code>.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.PicosTimestampPrecision picos_timestamp_precision = 3;</code>
* @param int $var
* @return $this
*/
public function setPicosTimestampPrecision($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Storage\V1\ArrowSerializationOptions\PicosTimestampPrecision::class);
$this->picos_timestamp_precision = $var;
return $this;
}
}