| 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/apiv1beta1/storagepb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/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/apiv1beta1/storagepb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 31 |
const ( |
| 32 |
DataFormat_ARROW = src.DataFormat_ARROW |
| 33 |
DataFormat_AVRO = src.DataFormat_AVRO |
| 34 |
DataFormat_DATA_FORMAT_UNSPECIFIED = src.DataFormat_DATA_FORMAT_UNSPECIFIED |
| 35 |
ShardingStrategy_BALANCED = src.ShardingStrategy_BALANCED |
| 36 |
ShardingStrategy_LIQUID = src.ShardingStrategy_LIQUID |
| 37 |
ShardingStrategy_SHARDING_STRATEGY_UNSPECIFIED = src.ShardingStrategy_SHARDING_STRATEGY_UNSPECIFIED |
| 38 |
) |
| 39 |
|
| 40 |
// Deprecated: Please use vars in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 41 |
var ( |
| 42 |
DataFormat_name = src.DataFormat_name |
| 43 |
DataFormat_value = src.DataFormat_value |
| 44 |
File_google_cloud_bigquery_storage_v1beta1_arrow_proto = src.File_google_cloud_bigquery_storage_v1beta1_arrow_proto |
| 45 |
File_google_cloud_bigquery_storage_v1beta1_avro_proto = src.File_google_cloud_bigquery_storage_v1beta1_avro_proto |
| 46 |
File_google_cloud_bigquery_storage_v1beta1_read_options_proto = src.File_google_cloud_bigquery_storage_v1beta1_read_options_proto |
| 47 |
File_google_cloud_bigquery_storage_v1beta1_storage_proto = src.File_google_cloud_bigquery_storage_v1beta1_storage_proto |
| 48 |
File_google_cloud_bigquery_storage_v1beta1_table_reference_proto = src.File_google_cloud_bigquery_storage_v1beta1_table_reference_proto |
| 49 |
ShardingStrategy_name = src.ShardingStrategy_name |
| 50 |
ShardingStrategy_value = src.ShardingStrategy_value |
| 51 |
) |
| 52 |
|
| 53 |
// Arrow RecordBatch. |
| 54 |
// |
| 55 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 56 |
type ArrowRecordBatch = src.ArrowRecordBatch |
| 57 |
|
| 58 |
// Arrow schema. |
| 59 |
// |
| 60 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 61 |
type ArrowSchema = src.ArrowSchema |
| 62 |
|
| 63 |
// Avro rows. |
| 64 |
// |
| 65 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 66 |
type AvroRows = src.AvroRows |
| 67 |
|
| 68 |
// Avro schema. |
| 69 |
// |
| 70 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 71 |
type AvroSchema = src.AvroSchema |
| 72 |
|
| 73 |
// Information needed to request additional streams for an established read |
| 74 |
// session. |
| 75 |
// |
| 76 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 77 |
type BatchCreateReadSessionStreamsRequest = src.BatchCreateReadSessionStreamsRequest |
| 78 |
|
| 79 |
// The response from `BatchCreateReadSessionStreams` returns the stream |
| 80 |
// identifiers for the newly created streams. |
| 81 |
// |
| 82 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 83 |
type BatchCreateReadSessionStreamsResponse = src.BatchCreateReadSessionStreamsResponse |
| 84 |
|
| 85 |
// BigQueryStorageClient is the client API for BigQueryStorage service. For |
| 86 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 87 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 88 |
// |
| 89 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 90 |
type BigQueryStorageClient = src.BigQueryStorageClient |
| 91 |
|
| 92 |
// BigQueryStorageServer is the server API for BigQueryStorage service. |
| 93 |
// |
| 94 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 95 |
type BigQueryStorageServer = src.BigQueryStorageServer |
| 96 |
type BigQueryStorage_ReadRowsClient = src.BigQueryStorage_ReadRowsClient |
| 97 |
type BigQueryStorage_ReadRowsServer = src.BigQueryStorage_ReadRowsServer |
| 98 |
|
| 99 |
// Creates a new read session, which may include additional options such as |
| 100 |
// requested parallelism, projection filters and constraints. |
| 101 |
// |
| 102 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 103 |
type CreateReadSessionRequest = src.CreateReadSessionRequest |
| 104 |
|
| 105 |
// Data format for input or output data. |
| 106 |
// |
| 107 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 108 |
type DataFormat = src.DataFormat |
| 109 |
|
| 110 |
// Request information for invoking `FinalizeStream`. |
| 111 |
// |
| 112 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 113 |
type FinalizeStreamRequest = src.FinalizeStreamRequest |
| 114 |
type Progress = src.Progress |
| 115 |
|
| 116 |
// Requesting row data via `ReadRows` must provide Stream position |
| 117 |
// information. |
| 118 |
// |
| 119 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 120 |
type ReadRowsRequest = src.ReadRowsRequest |
| 121 |
|
| 122 |
// Response from calling `ReadRows` may include row data, progress and |
| 123 |
// throttling information. |
| 124 |
// |
| 125 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 126 |
type ReadRowsResponse = src.ReadRowsResponse |
| 127 |
type ReadRowsResponse_ArrowRecordBatch = src.ReadRowsResponse_ArrowRecordBatch |
| 128 |
type ReadRowsResponse_AvroRows = src.ReadRowsResponse_AvroRows |
| 129 |
|
| 130 |
// Information returned from a `CreateReadSession` request. |
| 131 |
// |
| 132 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 133 |
type ReadSession = src.ReadSession |
| 134 |
type ReadSession_ArrowSchema = src.ReadSession_ArrowSchema |
| 135 |
type ReadSession_AvroSchema = src.ReadSession_AvroSchema |
| 136 |
|
| 137 |
// Strategy for distributing data among multiple streams in a read session. |
| 138 |
// |
| 139 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 140 |
type ShardingStrategy = src.ShardingStrategy |
| 141 |
|
| 142 |
// Request information for `SplitReadStream`. |
| 143 |
// |
| 144 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 145 |
type SplitReadStreamRequest = src.SplitReadStreamRequest |
| 146 |
|
| 147 |
// Response from `SplitReadStream`. |
| 148 |
// |
| 149 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 150 |
type SplitReadStreamResponse = src.SplitReadStreamResponse |
| 151 |
|
| 152 |
// Information about a single data stream within a read session. |
| 153 |
// |
| 154 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 155 |
type Stream = src.Stream |
| 156 |
|
| 157 |
// Expresses a point within a given stream using an offset position. |
| 158 |
// |
| 159 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 160 |
type StreamPosition = src.StreamPosition |
| 161 |
|
| 162 |
// Progress information for a given Stream. |
| 163 |
// |
| 164 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 165 |
type StreamStatus = src.StreamStatus |
| 166 |
|
| 167 |
// All fields in this message optional. |
| 168 |
// |
| 169 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 170 |
type TableModifiers = src.TableModifiers |
| 171 |
|
| 172 |
// Options dictating how we read a table. |
| 173 |
// |
| 174 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 175 |
type TableReadOptions = src.TableReadOptions |
| 176 |
|
| 177 |
// Table reference that includes just the 3 strings needed to identify a |
| 178 |
// table. |
| 179 |
// |
| 180 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 181 |
type TableReference = src.TableReference |
| 182 |
|
| 183 |
// Information on if the current connection is being throttled. |
| 184 |
// |
| 185 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 186 |
type ThrottleStatus = src.ThrottleStatus |
| 187 |
|
| 188 |
// UnimplementedBigQueryStorageServer can be embedded to have forward |
| 189 |
// compatible implementations. |
| 190 |
// |
| 191 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 192 |
type UnimplementedBigQueryStorageServer = src.UnimplementedBigQueryStorageServer |
| 193 |
|
| 194 |
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 195 |
func NewBigQueryStorageClient(cc grpc.ClientConnInterface) BigQueryStorageClient { |
| 196 |
return src.NewBigQueryStorageClient(cc) |
| 197 |
} |
| 198 |
|
| 199 |
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb |
| 200 |
func RegisterBigQueryStorageServer(s *grpc.Server, srv BigQueryStorageServer) { |
| 201 |
src.RegisterBigQueryStorageServer(s, srv) |
| 202 |
} |