| 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 reservation aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/bigquery/reservation/apiv1/reservationpb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package reservation |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/bigquery/reservation/apiv1/reservationpb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 31 |
const ( |
| 32 |
Assignment_ACTIVE = src.Assignment_ACTIVE |
| 33 |
Assignment_JOB_TYPE_UNSPECIFIED = src.Assignment_JOB_TYPE_UNSPECIFIED |
| 34 |
Assignment_ML_EXTERNAL = src.Assignment_ML_EXTERNAL |
| 35 |
Assignment_PENDING = src.Assignment_PENDING |
| 36 |
Assignment_PIPELINE = src.Assignment_PIPELINE |
| 37 |
Assignment_QUERY = src.Assignment_QUERY |
| 38 |
Assignment_STATE_UNSPECIFIED = src.Assignment_STATE_UNSPECIFIED |
| 39 |
CapacityCommitment_ACTIVE = src.CapacityCommitment_ACTIVE |
| 40 |
CapacityCommitment_ANNUAL = src.CapacityCommitment_ANNUAL |
| 41 |
CapacityCommitment_COMMITMENT_PLAN_UNSPECIFIED = src.CapacityCommitment_COMMITMENT_PLAN_UNSPECIFIED |
| 42 |
CapacityCommitment_FAILED = src.CapacityCommitment_FAILED |
| 43 |
CapacityCommitment_FLEX = src.CapacityCommitment_FLEX |
| 44 |
CapacityCommitment_MONTHLY = src.CapacityCommitment_MONTHLY |
| 45 |
CapacityCommitment_PENDING = src.CapacityCommitment_PENDING |
| 46 |
CapacityCommitment_STATE_UNSPECIFIED = src.CapacityCommitment_STATE_UNSPECIFIED |
| 47 |
CapacityCommitment_TRIAL = src.CapacityCommitment_TRIAL |
| 48 |
) |
| 49 |
|
| 50 |
// Deprecated: Please use vars in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 51 |
var ( |
| 52 |
Assignment_JobType_name = src.Assignment_JobType_name |
| 53 |
Assignment_JobType_value = src.Assignment_JobType_value |
| 54 |
Assignment_State_name = src.Assignment_State_name |
| 55 |
Assignment_State_value = src.Assignment_State_value |
| 56 |
CapacityCommitment_CommitmentPlan_name = src.CapacityCommitment_CommitmentPlan_name |
| 57 |
CapacityCommitment_CommitmentPlan_value = src.CapacityCommitment_CommitmentPlan_value |
| 58 |
CapacityCommitment_State_name = src.CapacityCommitment_State_name |
| 59 |
CapacityCommitment_State_value = src.CapacityCommitment_State_value |
| 60 |
File_google_cloud_bigquery_reservation_v1_reservation_proto = src.File_google_cloud_bigquery_reservation_v1_reservation_proto |
| 61 |
) |
| 62 |
|
| 63 |
// An assignment allows a project to submit jobs of a certain type using slots |
| 64 |
// from the specified reservation. |
| 65 |
// |
| 66 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 67 |
type Assignment = src.Assignment |
| 68 |
|
| 69 |
// Types of job, which could be specified when using the reservation. |
| 70 |
// |
| 71 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 72 |
type Assignment_JobType = src.Assignment_JobType |
| 73 |
|
| 74 |
// Assignment will remain in PENDING state if no active capacity commitment is |
| 75 |
// present. It will become ACTIVE when some capacity commitment becomes active. |
| 76 |
// |
| 77 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 78 |
type Assignment_State = src.Assignment_State |
| 79 |
|
| 80 |
// Represents a BI Reservation. |
| 81 |
// |
| 82 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 83 |
type BiReservation = src.BiReservation |
| 84 |
|
| 85 |
// Capacity commitment is a way to purchase compute capacity for BigQuery jobs |
| 86 |
// (in the form of slots) with some committed period of usage. Annual |
| 87 |
// commitments renew by default. Commitments can be removed after their |
| 88 |
// commitment end time passes. In order to remove annual commitment, its plan |
| 89 |
// needs to be changed to monthly or flex first. A capacity commitment resource |
| 90 |
// exists as a child resource of the admin project. |
| 91 |
// |
| 92 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 93 |
type CapacityCommitment = src.CapacityCommitment |
| 94 |
|
| 95 |
// Commitment plan defines the current committed period. Capacity commitment |
| 96 |
// cannot be deleted during it's committed period. |
| 97 |
// |
| 98 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 99 |
type CapacityCommitment_CommitmentPlan = src.CapacityCommitment_CommitmentPlan |
| 100 |
|
| 101 |
// Capacity commitment can either become ACTIVE right away or transition from |
| 102 |
// PENDING to ACTIVE or FAILED. |
| 103 |
// |
| 104 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 105 |
type CapacityCommitment_State = src.CapacityCommitment_State |
| 106 |
|
| 107 |
// The request for |
| 108 |
// [ReservationService.CreateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignment]. |
| 109 |
// Note: "bigquery.reservationAssignments.create" permission is required on the |
| 110 |
// related assignee. |
| 111 |
// |
| 112 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 113 |
type CreateAssignmentRequest = src.CreateAssignmentRequest |
| 114 |
|
| 115 |
// The request for |
| 116 |
// [ReservationService.CreateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment]. |
| 117 |
// |
| 118 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 119 |
type CreateCapacityCommitmentRequest = src.CreateCapacityCommitmentRequest |
| 120 |
|
| 121 |
// The request for |
| 122 |
// [ReservationService.CreateReservation][google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation]. |
| 123 |
// |
| 124 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 125 |
type CreateReservationRequest = src.CreateReservationRequest |
| 126 |
|
| 127 |
// The request for |
| 128 |
// [ReservationService.DeleteAssignment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignment]. |
| 129 |
// Note: "bigquery.reservationAssignments.delete" permission is required on the |
| 130 |
// related assignee. |
| 131 |
// |
| 132 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 133 |
type DeleteAssignmentRequest = src.DeleteAssignmentRequest |
| 134 |
|
| 135 |
// The request for |
| 136 |
// [ReservationService.DeleteCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitment]. |
| 137 |
// |
| 138 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 139 |
type DeleteCapacityCommitmentRequest = src.DeleteCapacityCommitmentRequest |
| 140 |
|
| 141 |
// The request for |
| 142 |
// [ReservationService.DeleteReservation][google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation]. |
| 143 |
// |
| 144 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 145 |
type DeleteReservationRequest = src.DeleteReservationRequest |
| 146 |
|
| 147 |
// A request to get a singleton BI reservation. |
| 148 |
// |
| 149 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 150 |
type GetBiReservationRequest = src.GetBiReservationRequest |
| 151 |
|
| 152 |
// The request for |
| 153 |
// [ReservationService.GetCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment]. |
| 154 |
// |
| 155 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 156 |
type GetCapacityCommitmentRequest = src.GetCapacityCommitmentRequest |
| 157 |
|
| 158 |
// The request for |
| 159 |
// [ReservationService.GetReservation][google.cloud.bigquery.reservation.v1.ReservationService.GetReservation]. |
| 160 |
// |
| 161 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 162 |
type GetReservationRequest = src.GetReservationRequest |
| 163 |
|
| 164 |
// The request for |
| 165 |
// [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments]. |
| 166 |
// |
| 167 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 168 |
type ListAssignmentsRequest = src.ListAssignmentsRequest |
| 169 |
|
| 170 |
// The response for |
| 171 |
// [ReservationService.ListAssignments][google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments]. |
| 172 |
// |
| 173 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 174 |
type ListAssignmentsResponse = src.ListAssignmentsResponse |
| 175 |
|
| 176 |
// The request for |
| 177 |
// [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments]. |
| 178 |
// |
| 179 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 180 |
type ListCapacityCommitmentsRequest = src.ListCapacityCommitmentsRequest |
| 181 |
|
| 182 |
// The response for |
| 183 |
// [ReservationService.ListCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments]. |
| 184 |
// |
| 185 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 186 |
type ListCapacityCommitmentsResponse = src.ListCapacityCommitmentsResponse |
| 187 |
|
| 188 |
// The request for |
| 189 |
// [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations]. |
| 190 |
// |
| 191 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 192 |
type ListReservationsRequest = src.ListReservationsRequest |
| 193 |
|
| 194 |
// The response for |
| 195 |
// [ReservationService.ListReservations][google.cloud.bigquery.reservation.v1.ReservationService.ListReservations]. |
| 196 |
// |
| 197 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 198 |
type ListReservationsResponse = src.ListReservationsResponse |
| 199 |
|
| 200 |
// The request for |
| 201 |
// [ReservationService.MergeCapacityCommitments][google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments]. |
| 202 |
// |
| 203 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 204 |
type MergeCapacityCommitmentsRequest = src.MergeCapacityCommitmentsRequest |
| 205 |
|
| 206 |
// The request for |
| 207 |
// [ReservationService.MoveAssignment][google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignment]. |
| 208 |
// **Note**: "bigquery.reservationAssignments.create" permission is required on |
| 209 |
// the destination_id. **Note**: "bigquery.reservationAssignments.create" and |
| 210 |
// "bigquery.reservationAssignments.delete" permission are required on the |
| 211 |
// related assignee. |
| 212 |
// |
| 213 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 214 |
type MoveAssignmentRequest = src.MoveAssignmentRequest |
| 215 |
|
| 216 |
// A reservation is a mechanism used to guarantee slots to users. |
| 217 |
// |
| 218 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 219 |
type Reservation = src.Reservation |
| 220 |
|
| 221 |
// ReservationServiceClient is the client API for ReservationService service. |
| 222 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer |
| 223 |
// to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 224 |
// |
| 225 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 226 |
type ReservationServiceClient = src.ReservationServiceClient |
| 227 |
|
| 228 |
// ReservationServiceServer is the server API for ReservationService service. |
| 229 |
// |
| 230 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 231 |
type ReservationServiceServer = src.ReservationServiceServer |
| 232 |
|
| 233 |
// The request for |
| 234 |
// [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments]. |
| 235 |
// Note: "bigquery.reservationAssignments.search" permission is required on the |
| 236 |
// related assignee. |
| 237 |
// |
| 238 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 239 |
type SearchAllAssignmentsRequest = src.SearchAllAssignmentsRequest |
| 240 |
|
| 241 |
// The response for |
| 242 |
// [ReservationService.SearchAllAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments]. |
| 243 |
// |
| 244 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 245 |
type SearchAllAssignmentsResponse = src.SearchAllAssignmentsResponse |
| 246 |
|
| 247 |
// The request for |
| 248 |
// [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments]. |
| 249 |
// Note: "bigquery.reservationAssignments.search" permission is required on the |
| 250 |
// related assignee. |
| 251 |
// |
| 252 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 253 |
type SearchAssignmentsRequest = src.SearchAssignmentsRequest |
| 254 |
|
| 255 |
// The response for |
| 256 |
// [ReservationService.SearchAssignments][google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments]. |
| 257 |
// |
| 258 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 259 |
type SearchAssignmentsResponse = src.SearchAssignmentsResponse |
| 260 |
|
| 261 |
// The request for |
| 262 |
// [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment]. |
| 263 |
// |
| 264 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 265 |
type SplitCapacityCommitmentRequest = src.SplitCapacityCommitmentRequest |
| 266 |
|
| 267 |
// The response for |
| 268 |
// [ReservationService.SplitCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment]. |
| 269 |
// |
| 270 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 271 |
type SplitCapacityCommitmentResponse = src.SplitCapacityCommitmentResponse |
| 272 |
|
| 273 |
// Fully qualified reference to BigQuery table. Internally stored as |
| 274 |
// google.cloud.bi.v1.BqTableReference. |
| 275 |
// |
| 276 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 277 |
type TableReference = src.TableReference |
| 278 |
|
| 279 |
// UnimplementedReservationServiceServer can be embedded to have forward |
| 280 |
// compatible implementations. |
| 281 |
// |
| 282 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 283 |
type UnimplementedReservationServiceServer = src.UnimplementedReservationServiceServer |
| 284 |
|
| 285 |
// The request for |
| 286 |
// [ReservationService.UpdateAssignment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment]. |
| 287 |
// |
| 288 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 289 |
type UpdateAssignmentRequest = src.UpdateAssignmentRequest |
| 290 |
|
| 291 |
// A request to update a BI reservation. |
| 292 |
// |
| 293 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 294 |
type UpdateBiReservationRequest = src.UpdateBiReservationRequest |
| 295 |
|
| 296 |
// The request for |
| 297 |
// [ReservationService.UpdateCapacityCommitment][google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitment]. |
| 298 |
// |
| 299 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 300 |
type UpdateCapacityCommitmentRequest = src.UpdateCapacityCommitmentRequest |
| 301 |
|
| 302 |
// The request for |
| 303 |
// [ReservationService.UpdateReservation][google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservation]. |
| 304 |
// |
| 305 |
// Deprecated: Please use types in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 306 |
type UpdateReservationRequest = src.UpdateReservationRequest |
| 307 |
|
| 308 |
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 309 |
func NewReservationServiceClient(cc grpc.ClientConnInterface) ReservationServiceClient { |
| 310 |
return src.NewReservationServiceClient(cc) |
| 311 |
} |
| 312 |
|
| 313 |
// Deprecated: Please use funcs in: cloud.google.com/go/bigquery/reservation/apiv1/reservationpb |
| 314 |
func RegisterReservationServiceServer(s *grpc.Server, srv ReservationServiceServer) { |
| 315 |
src.RegisterReservationServiceServer(s, srv) |
| 316 |
} |