| 1 |
// Copyright 2022 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by aliasgen. DO NOT EDIT. |
| 16 |
|
| 17 |
// Package storage aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package storage |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 31 |
const ( |
| 32 |
ArrowSerializationOptions_ARROW_0_14 = src.ArrowSerializationOptions_ARROW_0_14 |
| 33 |
ArrowSerializationOptions_ARROW_0_15 = src.ArrowSerializationOptions_ARROW_0_15 |
| 34 |
ArrowSerializationOptions_FORMAT_UNSPECIFIED = src.ArrowSerializationOptions_FORMAT_UNSPECIFIED |
| 35 |
DataFormat_ARROW = src.DataFormat_ARROW |
| 36 |
DataFormat_AVRO = src.DataFormat_AVRO |
| 37 |
DataFormat_DATA_FORMAT_UNSPECIFIED = src.DataFormat_DATA_FORMAT_UNSPECIFIED |
| 38 |
StorageError_INVALID_STREAM_STATE = src.StorageError_INVALID_STREAM_STATE |
| 39 |
StorageError_INVALID_STREAM_TYPE = src.StorageError_INVALID_STREAM_TYPE |
| 40 |
StorageError_STORAGE_ERROR_CODE_UNSPECIFIED = src.StorageError_STORAGE_ERROR_CODE_UNSPECIFIED |
| 41 |
StorageError_STREAM_ALREADY_COMMITTED = src.StorageError_STREAM_ALREADY_COMMITTED |
| 42 |
StorageError_STREAM_FINALIZED = src.StorageError_STREAM_FINALIZED |
| 43 |
StorageError_STREAM_NOT_FOUND = src.StorageError_STREAM_NOT_FOUND |
| 44 |
StorageError_TABLE_NOT_FOUND = src.StorageError_TABLE_NOT_FOUND |
| 45 |
TableFieldSchema_BIGNUMERIC = src.TableFieldSchema_BIGNUMERIC |
| 46 |
TableFieldSchema_BOOL = src.TableFieldSchema_BOOL |
| 47 |
TableFieldSchema_BYTES = src.TableFieldSchema_BYTES |
| 48 |
TableFieldSchema_DATE = src.TableFieldSchema_DATE |
| 49 |
TableFieldSchema_DATETIME = src.TableFieldSchema_DATETIME |
| 50 |
TableFieldSchema_DOUBLE = src.TableFieldSchema_DOUBLE |
| 51 |
TableFieldSchema_GEOGRAPHY = src.TableFieldSchema_GEOGRAPHY |
| 52 |
TableFieldSchema_INT64 = src.TableFieldSchema_INT64 |
| 53 |
TableFieldSchema_INTERVAL = src.TableFieldSchema_INTERVAL |
| 54 |
TableFieldSchema_JSON = src.TableFieldSchema_JSON |
| 55 |
TableFieldSchema_MODE_UNSPECIFIED = src.TableFieldSchema_MODE_UNSPECIFIED |
| 56 |
TableFieldSchema_NULLABLE = src.TableFieldSchema_NULLABLE |
| 57 |
TableFieldSchema_NUMERIC = src.TableFieldSchema_NUMERIC |
| 58 |
TableFieldSchema_REPEATED = src.TableFieldSchema_REPEATED |
| 59 |
TableFieldSchema_REQUIRED = src.TableFieldSchema_REQUIRED |
| 60 |
TableFieldSchema_STRING = src.TableFieldSchema_STRING |
| 61 |
TableFieldSchema_STRUCT = src.TableFieldSchema_STRUCT |
| 62 |
TableFieldSchema_TIME = src.TableFieldSchema_TIME |
| 63 |
TableFieldSchema_TIMESTAMP = src.TableFieldSchema_TIMESTAMP |
| 64 |
TableFieldSchema_TYPE_UNSPECIFIED = src.TableFieldSchema_TYPE_UNSPECIFIED |
| 65 |
WriteStream_BUFFERED = src.WriteStream_BUFFERED |
| 66 |
WriteStream_COMMITTED = src.WriteStream_COMMITTED |
| 67 |
WriteStream_PENDING = src.WriteStream_PENDING |
| 68 |
WriteStream_TYPE_UNSPECIFIED = src.WriteStream_TYPE_UNSPECIFIED |
| 69 |
) |
| 70 |
|
| 71 |
// Deprecated: Please use vars in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 72 |
var ( |
| 73 |
ArrowSerializationOptions_Format_name = src.ArrowSerializationOptions_Format_name |
| 74 |
ArrowSerializationOptions_Format_value = src.ArrowSerializationOptions_Format_value |
| 75 |
DataFormat_name = src.DataFormat_name |
| 76 |
DataFormat_value = src.DataFormat_value |
| 77 |
File_google_cloud_bigquery_storage_v1beta2_arrow_proto = src.File_google_cloud_bigquery_storage_v1beta2_arrow_proto |
| 78 |
File_google_cloud_bigquery_storage_v1beta2_avro_proto = src.File_google_cloud_bigquery_storage_v1beta2_avro_proto |
| 79 |
File_google_cloud_bigquery_storage_v1beta2_protobuf_proto = src.File_google_cloud_bigquery_storage_v1beta2_protobuf_proto |
| 80 |
File_google_cloud_bigquery_storage_v1beta2_storage_proto = src.File_google_cloud_bigquery_storage_v1beta2_storage_proto |
| 81 |
File_google_cloud_bigquery_storage_v1beta2_stream_proto = src.File_google_cloud_bigquery_storage_v1beta2_stream_proto |
| 82 |
File_google_cloud_bigquery_storage_v1beta2_table_proto = src.File_google_cloud_bigquery_storage_v1beta2_table_proto |
| 83 |
StorageError_StorageErrorCode_name = src.StorageError_StorageErrorCode_name |
| 84 |
StorageError_StorageErrorCode_value = src.StorageError_StorageErrorCode_value |
| 85 |
TableFieldSchema_Mode_name = src.TableFieldSchema_Mode_name |
| 86 |
TableFieldSchema_Mode_value = src.TableFieldSchema_Mode_value |
| 87 |
TableFieldSchema_Type_name = src.TableFieldSchema_Type_name |
| 88 |
TableFieldSchema_Type_value = src.TableFieldSchema_Type_value |
| 89 |
WriteStream_Type_name = src.WriteStream_Type_name |
| 90 |
WriteStream_Type_value = src.WriteStream_Type_value |
| 91 |
) |
| 92 |
|
| 93 |
// Request message for `AppendRows`. |
| 94 |
// |
| 95 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 96 |
type AppendRowsRequest = src.AppendRowsRequest |
| 97 |
|
| 98 |
// Proto schema and data. |
| 99 |
// |
| 100 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 101 |
type AppendRowsRequest_ProtoData = src.AppendRowsRequest_ProtoData |
| 102 |
type AppendRowsRequest_ProtoRows = src.AppendRowsRequest_ProtoRows |
| 103 |
|
| 104 |
// Response message for `AppendRows`. |
| 105 |
// |
| 106 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 107 |
type AppendRowsResponse = src.AppendRowsResponse |
| 108 |
|
| 109 |
// AppendResult is returned for successful append requests. |
| 110 |
// |
| 111 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 112 |
type AppendRowsResponse_AppendResult = src.AppendRowsResponse_AppendResult |
| 113 |
type AppendRowsResponse_AppendResult_ = src.AppendRowsResponse_AppendResult_ |
| 114 |
type AppendRowsResponse_Error = src.AppendRowsResponse_Error |
| 115 |
|
| 116 |
// Arrow RecordBatch. |
| 117 |
// |
| 118 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 119 |
type ArrowRecordBatch = src.ArrowRecordBatch |
| 120 |
|
| 121 |
// Arrow schema as specified in |
| 122 |
// https://arrow.apache.org/docs/python/api/datatypes.html and serialized to |
| 123 |
// bytes using IPC: |
| 124 |
// https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc |
| 125 |
// See code samples on how this message can be deserialized. |
| 126 |
// |
| 127 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 128 |
type ArrowSchema = src.ArrowSchema |
| 129 |
|
| 130 |
// Contains options specific to Arrow Serialization. |
| 131 |
// |
| 132 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 133 |
type ArrowSerializationOptions = src.ArrowSerializationOptions |
| 134 |
|
| 135 |
// The IPC format to use when serializing Arrow streams. |
| 136 |
// |
| 137 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 138 |
type ArrowSerializationOptions_Format = src.ArrowSerializationOptions_Format |
| 139 |
|
| 140 |
// Avro rows. |
| 141 |
// |
| 142 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 143 |
type AvroRows = src.AvroRows |
| 144 |
|
| 145 |
// Avro schema. |
| 146 |
// |
| 147 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 148 |
type AvroSchema = src.AvroSchema |
| 149 |
|
| 150 |
// Request message for `BatchCommitWriteStreams`. |
| 151 |
// |
| 152 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 153 |
type BatchCommitWriteStreamsRequest = src.BatchCommitWriteStreamsRequest |
| 154 |
|
| 155 |
// Response message for `BatchCommitWriteStreams`. |
| 156 |
// |
| 157 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 158 |
type BatchCommitWriteStreamsResponse = src.BatchCommitWriteStreamsResponse |
| 159 |
|
| 160 |
// BigQueryReadClient is the client API for BigQueryRead service. For |
| 161 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 162 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 163 |
// |
| 164 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 165 |
type BigQueryReadClient = src.BigQueryReadClient |
| 166 |
|
| 167 |
// BigQueryReadServer is the server API for BigQueryRead service. |
| 168 |
// |
| 169 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 170 |
type BigQueryReadServer = src.BigQueryReadServer |
| 171 |
type BigQueryRead_ReadRowsClient = src.BigQueryRead_ReadRowsClient |
| 172 |
type BigQueryRead_ReadRowsServer = src.BigQueryRead_ReadRowsServer |
| 173 |
|
| 174 |
// BigQueryWriteClient is the client API for BigQueryWrite service. For |
| 175 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 176 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 177 |
// |
| 178 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 179 |
type BigQueryWriteClient = src.BigQueryWriteClient |
| 180 |
|
| 181 |
// BigQueryWriteServer is the server API for BigQueryWrite service. |
| 182 |
// |
| 183 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 184 |
type BigQueryWriteServer = src.BigQueryWriteServer |
| 185 |
type BigQueryWrite_AppendRowsClient = src.BigQueryWrite_AppendRowsClient |
| 186 |
type BigQueryWrite_AppendRowsServer = src.BigQueryWrite_AppendRowsServer |
| 187 |
|
| 188 |
// Request message for `CreateReadSession`. |
| 189 |
// |
| 190 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 191 |
type CreateReadSessionRequest = src.CreateReadSessionRequest |
| 192 |
|
| 193 |
// Request message for `CreateWriteStream`. |
| 194 |
// |
| 195 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 196 |
type CreateWriteStreamRequest = src.CreateWriteStreamRequest |
| 197 |
|
| 198 |
// Data format for input or output data. |
| 199 |
// |
| 200 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 201 |
type DataFormat = src.DataFormat |
| 202 |
|
| 203 |
// Request message for invoking `FinalizeWriteStream`. |
| 204 |
// |
| 205 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 206 |
type FinalizeWriteStreamRequest = src.FinalizeWriteStreamRequest |
| 207 |
|
| 208 |
// Response message for `FinalizeWriteStream`. |
| 209 |
// |
| 210 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 211 |
type FinalizeWriteStreamResponse = src.FinalizeWriteStreamResponse |
| 212 |
|
| 213 |
// Request message for `FlushRows`. |
| 214 |
// |
| 215 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 216 |
type FlushRowsRequest = src.FlushRowsRequest |
| 217 |
|
| 218 |
// Respond message for `FlushRows`. |
| 219 |
// |
| 220 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 221 |
type FlushRowsResponse = src.FlushRowsResponse |
| 222 |
|
| 223 |
// Request message for `GetWriteStreamRequest`. |
| 224 |
// |
| 225 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 226 |
type GetWriteStreamRequest = src.GetWriteStreamRequest |
| 227 |
type ProtoRows = src.ProtoRows |
| 228 |
|
| 229 |
// ProtoSchema describes the schema of the serialized protocol buffer data |
| 230 |
// rows. |
| 231 |
// |
| 232 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 233 |
type ProtoSchema = src.ProtoSchema |
| 234 |
|
| 235 |
// Request message for `ReadRows`. |
| 236 |
// |
| 237 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 238 |
type ReadRowsRequest = src.ReadRowsRequest |
| 239 |
|
| 240 |
// Response from calling `ReadRows` may include row data, progress and |
| 241 |
// throttling information. |
| 242 |
// |
| 243 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 244 |
type ReadRowsResponse = src.ReadRowsResponse |
| 245 |
type ReadRowsResponse_ArrowRecordBatch = src.ReadRowsResponse_ArrowRecordBatch |
| 246 |
type ReadRowsResponse_ArrowSchema = src.ReadRowsResponse_ArrowSchema |
| 247 |
type ReadRowsResponse_AvroRows = src.ReadRowsResponse_AvroRows |
| 248 |
type ReadRowsResponse_AvroSchema = src.ReadRowsResponse_AvroSchema |
| 249 |
|
| 250 |
// Information about the ReadSession. |
| 251 |
// |
| 252 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 253 |
type ReadSession = src.ReadSession |
| 254 |
type ReadSession_ArrowSchema = src.ReadSession_ArrowSchema |
| 255 |
type ReadSession_AvroSchema = src.ReadSession_AvroSchema |
| 256 |
|
| 257 |
// Additional attributes when reading a table. |
| 258 |
// |
| 259 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 260 |
type ReadSession_TableModifiers = src.ReadSession_TableModifiers |
| 261 |
|
| 262 |
// Options dictating how we read a table. |
| 263 |
// |
| 264 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 265 |
type ReadSession_TableReadOptions = src.ReadSession_TableReadOptions |
| 266 |
|
| 267 |
// Information about a single stream that gets data out of the storage system. |
| 268 |
// Most of the information about `ReadStream` instances is aggregated, making |
| 269 |
// `ReadStream` lightweight. |
| 270 |
// |
| 271 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 272 |
type ReadStream = src.ReadStream |
| 273 |
|
| 274 |
// Request message for `SplitReadStream`. |
| 275 |
// |
| 276 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 277 |
type SplitReadStreamRequest = src.SplitReadStreamRequest |
| 278 |
type SplitReadStreamResponse = src.SplitReadStreamResponse |
| 279 |
|
| 280 |
// Structured custom BigQuery Storage error message. The error can be attached |
| 281 |
// as error details in the returned rpc Status. In particular, the use of error |
| 282 |
// codes allows more structured error handling, and reduces the need to |
| 283 |
// evaluate unstructured error text strings. |
| 284 |
// |
| 285 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 286 |
type StorageError = src.StorageError |
| 287 |
|
| 288 |
// Error code for `StorageError`. |
| 289 |
// |
| 290 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 291 |
type StorageError_StorageErrorCode = src.StorageError_StorageErrorCode |
| 292 |
|
| 293 |
// Estimated stream statistics for a given Stream. |
| 294 |
// |
| 295 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 296 |
type StreamStats = src.StreamStats |
| 297 |
type StreamStats_Progress = src.StreamStats_Progress |
| 298 |
|
| 299 |
// A field in TableSchema |
| 300 |
// |
| 301 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 302 |
type TableFieldSchema = src.TableFieldSchema |
| 303 |
type TableFieldSchema_Mode = src.TableFieldSchema_Mode |
| 304 |
type TableFieldSchema_Type = src.TableFieldSchema_Type |
| 305 |
|
| 306 |
// Schema of a table |
| 307 |
// |
| 308 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 309 |
type TableSchema = src.TableSchema |
| 310 |
|
| 311 |
// Information on if the current connection is being throttled. |
| 312 |
// |
| 313 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 314 |
type ThrottleState = src.ThrottleState |
| 315 |
|
| 316 |
// UnimplementedBigQueryReadServer can be embedded to have forward compatible |
| 317 |
// implementations. |
| 318 |
// |
| 319 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 320 |
type UnimplementedBigQueryReadServer = src.UnimplementedBigQueryReadServer |
| 321 |
|
| 322 |
// UnimplementedBigQueryWriteServer can be embedded to have forward compatible |
| 323 |
// implementations. |
| 324 |
// |
| 325 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 326 |
type UnimplementedBigQueryWriteServer = src.UnimplementedBigQueryWriteServer |
| 327 |
|
| 328 |
// Information about a single stream that gets data inside the storage system. |
| 329 |
// |
| 330 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 331 |
type WriteStream = src.WriteStream |
| 332 |
|
| 333 |
// Type enum of the stream. |
| 334 |
// |
| 335 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 336 |
type WriteStream_Type = src.WriteStream_Type |
| 337 |
|
| 338 |
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 339 |
func NewBigQueryReadClient(cc grpc.ClientConnInterface) BigQueryReadClient { |
| 340 |
return src.NewBigQueryReadClient(cc) |
| 341 |
} |
| 342 |
|
| 343 |
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 344 |
func NewBigQueryWriteClient(cc grpc.ClientConnInterface) BigQueryWriteClient { |
| 345 |
return src.NewBigQueryWriteClient(cc) |
| 346 |
} |
| 347 |
|
| 348 |
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 349 |
func RegisterBigQueryReadServer(s *grpc.Server, srv BigQueryReadServer) { |
| 350 |
src.RegisterBigQueryReadServer(s, srv) |
| 351 |
} |
| 352 |
|
| 353 |
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/storage/apiv1beta2/storagepb |
| 354 |
func RegisterBigQueryWriteServer(s *grpc.Server, srv BigQueryWriteServer) { |
| 355 |
src.RegisterBigQueryWriteServer(s, srv) |
| 356 |
} |