/
alias.go
316 lines (270 loc) · 15.8 KB
/
alias.go
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by aliasgen. DO NOT EDIT.
// Package reservation aliases all exported identifiers in package
// "cloud.google.com/go/bigquery/reservation/apiv1/reservationpb".
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb.
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
// for more details.
package reservation
import (
src "cloud.google.com/go/bigquery/reservation/apiv1/reservationpb"
grpc "google.golang.org/grpc"
)
// Deprecated: Please use consts in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
const (
Assignment_ACTIVE = src.Assignment_ACTIVE
Assignment_JOB_TYPE_UNSPECIFIED = src.Assignment_JOB_TYPE_UNSPECIFIED
Assignment_ML_EXTERNAL = src.Assignment_ML_EXTERNAL
Assignment_PENDING = src.Assignment_PENDING
Assignment_PIPELINE = src.Assignment_PIPELINE
Assignment_QUERY = src.Assignment_QUERY
Assignment_STATE_UNSPECIFIED = src.Assignment_STATE_UNSPECIFIED
CapacityCommitment_ACTIVE = src.CapacityCommitment_ACTIVE
CapacityCommitment_ANNUAL = src.CapacityCommitment_ANNUAL
CapacityCommitment_COMMITMENT_PLAN_UNSPECIFIED = src.CapacityCommitment_COMMITMENT_PLAN_UNSPECIFIED
CapacityCommitment_FAILED = src.CapacityCommitment_FAILED
CapacityCommitment_FLEX = src.CapacityCommitment_FLEX
CapacityCommitment_MONTHLY = src.CapacityCommitment_MONTHLY
CapacityCommitment_PENDING = src.CapacityCommitment_PENDING
CapacityCommitment_STATE_UNSPECIFIED = src.CapacityCommitment_STATE_UNSPECIFIED
CapacityCommitment_TRIAL = src.CapacityCommitment_TRIAL
)
// Deprecated: Please use vars in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
var (
Assignment_JobType_name = src.Assignment_JobType_name
Assignment_JobType_value = src.Assignment_JobType_value
Assignment_State_name = src.Assignment_State_name
Assignment_State_value = src.Assignment_State_value
CapacityCommitment_CommitmentPlan_name = src.CapacityCommitment_CommitmentPlan_name
CapacityCommitment_CommitmentPlan_value = src.CapacityCommitment_CommitmentPlan_value
CapacityCommitment_State_name = src.CapacityCommitment_State_name
CapacityCommitment_State_value = src.CapacityCommitment_State_value
File_google_cloud_bigquery_reservation_v1_reservation_proto = src.File_google_cloud_bigquery_reservation_v1_reservation_proto
)
// An assignment allows a project to submit jobs of a certain type using slots
// from the specified reservation.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type Assignment = src.Assignment
// Types of job, which could be specified when using the reservation.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type Assignment_JobType = src.Assignment_JobType
// Assignment will remain in PENDING state if no active capacity commitment is
// present. It will become ACTIVE when some capacity commitment becomes active.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type Assignment_State = src.Assignment_State
// Represents a BI Reservation.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type BiReservation = src.BiReservation
// Capacity commitment is a way to purchase compute capacity for BigQuery jobs
// (in the form of slots) with some committed period of usage. Annual
// commitments renew by default. Commitments can be removed after their
// commitment end time passes. In order to remove annual commitment, its plan
// needs to be changed to monthly or flex first. A capacity commitment resource
// exists as a child resource of the admin project.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type CapacityCommitment = src.CapacityCommitment
// Commitment plan defines the current committed period. Capacity commitment
// cannot be deleted during it's committed period.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type CapacityCommitment_CommitmentPlan = src.CapacityCommitment_CommitmentPlan
// Capacity commitment can either become ACTIVE right away or transition from
// PENDING to ACTIVE or FAILED.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type CapacityCommitment_State = src.CapacityCommitment_State
// The request for
// [ReservationService.CreateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignment].
// Note: "bigquery.reservationAssignments.create" permission is required on the
// related assignee.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type CreateAssignmentRequest = src.CreateAssignmentRequest
// The request for
// [ReservationService.CreateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type CreateCapacityCommitmentRequest = src.CreateCapacityCommitmentRequest
// The request for
// [ReservationService.CreateReservation][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type CreateReservationRequest = src.CreateReservationRequest
// The request for
// [ReservationService.DeleteAssignment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignment].
// Note: "bigquery.reservationAssignments.delete" permission is required on the
// related assignee.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type DeleteAssignmentRequest = src.DeleteAssignmentRequest
// The request for
// [ReservationService.DeleteCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitment].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type DeleteCapacityCommitmentRequest = src.DeleteCapacityCommitmentRequest
// The request for
// [ReservationService.DeleteReservation][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type DeleteReservationRequest = src.DeleteReservationRequest
// A request to get a singleton BI reservation.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type GetBiReservationRequest = src.GetBiReservationRequest
// The request for
// [ReservationService.GetCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type GetCapacityCommitmentRequest = src.GetCapacityCommitmentRequest
// The request for
// [ReservationService.GetReservation][google.cloud.bigquery.reservation.v1.ReservationService.GetReservation].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type GetReservationRequest = src.GetReservationRequest
// The request for
// [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type ListAssignmentsRequest = src.ListAssignmentsRequest
// The response for
// [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type ListAssignmentsResponse = src.ListAssignmentsResponse
// The request for
// [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type ListCapacityCommitmentsRequest = src.ListCapacityCommitmentsRequest
// The response for
// [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type ListCapacityCommitmentsResponse = src.ListCapacityCommitmentsResponse
// The request for
// [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type ListReservationsRequest = src.ListReservationsRequest
// The response for
// [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type ListReservationsResponse = src.ListReservationsResponse
// The request for
// [ReservationService.MergeCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type MergeCapacityCommitmentsRequest = src.MergeCapacityCommitmentsRequest
// The request for
// [ReservationService.MoveAssignment][google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignment].
// **Note**: "bigquery.reservationAssignments.create" permission is required on
// the destination_id. **Note**: "bigquery.reservationAssignments.create" and
// "bigquery.reservationAssignments.delete" permission are required on the
// related assignee.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type MoveAssignmentRequest = src.MoveAssignmentRequest
// A reservation is a mechanism used to guarantee slots to users.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type Reservation = src.Reservation
// ReservationServiceClient is the client API for ReservationService service.
// For semantics around ctx use and closing/ending streaming RPCs, please refer
// to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type ReservationServiceClient = src.ReservationServiceClient
// ReservationServiceServer is the server API for ReservationService service.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type ReservationServiceServer = src.ReservationServiceServer
// The request for
// [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments].
// Note: "bigquery.reservationAssignments.search" permission is required on the
// related assignee.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type SearchAllAssignmentsRequest = src.SearchAllAssignmentsRequest
// The response for
// [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type SearchAllAssignmentsResponse = src.SearchAllAssignmentsResponse
// The request for
// [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments].
// Note: "bigquery.reservationAssignments.search" permission is required on the
// related assignee.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type SearchAssignmentsRequest = src.SearchAssignmentsRequest
// The response for
// [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type SearchAssignmentsResponse = src.SearchAssignmentsResponse
// The request for
// [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type SplitCapacityCommitmentRequest = src.SplitCapacityCommitmentRequest
// The response for
// [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type SplitCapacityCommitmentResponse = src.SplitCapacityCommitmentResponse
// Fully qualified reference to BigQuery table. Internally stored as
// google.cloud.bi.v1.BqTableReference.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type TableReference = src.TableReference
// UnimplementedReservationServiceServer can be embedded to have forward
// compatible implementations.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type UnimplementedReservationServiceServer = src.UnimplementedReservationServiceServer
// The request for
// [ReservationService.UpdateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type UpdateAssignmentRequest = src.UpdateAssignmentRequest
// A request to update a BI reservation.
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type UpdateBiReservationRequest = src.UpdateBiReservationRequest
// The request for
// [ReservationService.UpdateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitment].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type UpdateCapacityCommitmentRequest = src.UpdateCapacityCommitmentRequest
// The request for
// [ReservationService.UpdateReservation][google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservation].
//
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
type UpdateReservationRequest = src.UpdateReservationRequest
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
func NewReservationServiceClient(cc grpc.ClientConnInterface) ReservationServiceClient {
return src.NewReservationServiceClient(cc)
}
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb
func RegisterReservationServiceServer(s *grpc.Server, srv ReservationServiceServer) {
src.RegisterReservationServiceServer(s, srv)
}