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 pubsub aliases all exported identifiers in package 18 // "cloud.google.com/go/pubsub/apiv1/pubsubpb". 19 // 20 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb. 21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md 22 // for more details. 23 package pubsub 24 25 import ( 26 src "cloud.google.com/go/pubsub/apiv1/pubsubpb" 27 grpc "google.golang.org/grpc" 28 ) 29 30 // Deprecated: Please use consts in: cloud.google.com/go/pubsub/apiv1/pubsubpb 31 const ( 32 BigQueryConfig_ACTIVE = src.BigQueryConfig_ACTIVE 33 BigQueryConfig_NOT_FOUND = src.BigQueryConfig_NOT_FOUND 34 BigQueryConfig_PERMISSION_DENIED = src.BigQueryConfig_PERMISSION_DENIED 35 BigQueryConfig_SCHEMA_MISMATCH = src.BigQueryConfig_SCHEMA_MISMATCH 36 BigQueryConfig_STATE_UNSPECIFIED = src.BigQueryConfig_STATE_UNSPECIFIED 37 Encoding_BINARY = src.Encoding_BINARY 38 Encoding_ENCODING_UNSPECIFIED = src.Encoding_ENCODING_UNSPECIFIED 39 Encoding_JSON = src.Encoding_JSON 40 SchemaView_BASIC = src.SchemaView_BASIC 41 SchemaView_FULL = src.SchemaView_FULL 42 SchemaView_SCHEMA_VIEW_UNSPECIFIED = src.SchemaView_SCHEMA_VIEW_UNSPECIFIED 43 Schema_AVRO = src.Schema_AVRO 44 Schema_PROTOCOL_BUFFER = src.Schema_PROTOCOL_BUFFER 45 Schema_TYPE_UNSPECIFIED = src.Schema_TYPE_UNSPECIFIED 46 Subscription_ACTIVE = src.Subscription_ACTIVE 47 Subscription_RESOURCE_ERROR = src.Subscription_RESOURCE_ERROR 48 Subscription_STATE_UNSPECIFIED = src.Subscription_STATE_UNSPECIFIED 49 ) 50 51 // Deprecated: Please use vars in: cloud.google.com/go/pubsub/apiv1/pubsubpb 52 var ( 53 BigQueryConfig_State_name = src.BigQueryConfig_State_name 54 BigQueryConfig_State_value = src.BigQueryConfig_State_value 55 Encoding_name = src.Encoding_name 56 Encoding_value = src.Encoding_value 57 File_google_pubsub_v1_pubsub_proto = src.File_google_pubsub_v1_pubsub_proto 58 File_google_pubsub_v1_schema_proto = src.File_google_pubsub_v1_schema_proto 59 SchemaView_name = src.SchemaView_name 60 SchemaView_value = src.SchemaView_value 61 Schema_Type_name = src.Schema_Type_name 62 Schema_Type_value = src.Schema_Type_value 63 Subscription_State_name = src.Subscription_State_name 64 Subscription_State_value = src.Subscription_State_value 65 ) 66 67 // Request for the Acknowledge method. 68 // 69 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 70 type AcknowledgeRequest = src.AcknowledgeRequest 71 72 // Configuration for a BigQuery subscription. 73 // 74 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 75 type BigQueryConfig = src.BigQueryConfig 76 77 // Possible states for a BigQuery subscription. 78 // 79 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 80 type BigQueryConfig_State = src.BigQueryConfig_State 81 82 // Request for the CreateSchema method. 83 // 84 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 85 type CreateSchemaRequest = src.CreateSchemaRequest 86 87 // Request for the `CreateSnapshot` method. 88 // 89 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 90 type CreateSnapshotRequest = src.CreateSnapshotRequest 91 92 // Dead lettering is done on a best effort basis. The same message might be 93 // dead lettered multiple times. If validation on any of the fields fails at 94 // subscription creation/updation, the create/update subscription request will 95 // fail. 96 // 97 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 98 type DeadLetterPolicy = src.DeadLetterPolicy 99 100 // Request for the `DeleteSchema` method. 101 // 102 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 103 type DeleteSchemaRequest = src.DeleteSchemaRequest 104 105 // Request for the `DeleteSnapshot` method. 106 // 107 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 108 type DeleteSnapshotRequest = src.DeleteSnapshotRequest 109 110 // Request for the DeleteSubscription method. 111 // 112 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 113 type DeleteSubscriptionRequest = src.DeleteSubscriptionRequest 114 115 // Request for the `DeleteTopic` method. 116 // 117 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 118 type DeleteTopicRequest = src.DeleteTopicRequest 119 120 // Request for the DetachSubscription method. 121 // 122 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 123 type DetachSubscriptionRequest = src.DetachSubscriptionRequest 124 125 // Response for the DetachSubscription method. Reserved for future use. 126 // 127 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 128 type DetachSubscriptionResponse = src.DetachSubscriptionResponse 129 130 // Possible encoding types for messages. 131 // 132 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 133 type Encoding = src.Encoding 134 135 // A policy that specifies the conditions for resource expiration (i.e., 136 // automatic resource deletion). 137 // 138 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 139 type ExpirationPolicy = src.ExpirationPolicy 140 141 // Request for the GetSchema method. 142 // 143 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 144 type GetSchemaRequest = src.GetSchemaRequest 145 146 // Request for the GetSnapshot method. 147 // 148 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 149 type GetSnapshotRequest = src.GetSnapshotRequest 150 151 // Request for the GetSubscription method. 152 // 153 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 154 type GetSubscriptionRequest = src.GetSubscriptionRequest 155 156 // Request for the GetTopic method. 157 // 158 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 159 type GetTopicRequest = src.GetTopicRequest 160 161 // Request for the `ListSchemas` method. 162 // 163 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 164 type ListSchemasRequest = src.ListSchemasRequest 165 166 // Response for the `ListSchemas` method. 167 // 168 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 169 type ListSchemasResponse = src.ListSchemasResponse 170 171 // Request for the `ListSnapshots` method. 172 // 173 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 174 type ListSnapshotsRequest = src.ListSnapshotsRequest 175 176 // Response for the `ListSnapshots` method. 177 // 178 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 179 type ListSnapshotsResponse = src.ListSnapshotsResponse 180 181 // Request for the `ListSubscriptions` method. 182 // 183 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 184 type ListSubscriptionsRequest = src.ListSubscriptionsRequest 185 186 // Response for the `ListSubscriptions` method. 187 // 188 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 189 type ListSubscriptionsResponse = src.ListSubscriptionsResponse 190 191 // Request for the `ListTopicSnapshots` method. 192 // 193 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 194 type ListTopicSnapshotsRequest = src.ListTopicSnapshotsRequest 195 196 // Response for the `ListTopicSnapshots` method. 197 // 198 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 199 type ListTopicSnapshotsResponse = src.ListTopicSnapshotsResponse 200 201 // Request for the `ListTopicSubscriptions` method. 202 // 203 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 204 type ListTopicSubscriptionsRequest = src.ListTopicSubscriptionsRequest 205 206 // Response for the `ListTopicSubscriptions` method. 207 // 208 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 209 type ListTopicSubscriptionsResponse = src.ListTopicSubscriptionsResponse 210 211 // Request for the `ListTopics` method. 212 // 213 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 214 type ListTopicsRequest = src.ListTopicsRequest 215 216 // Response for the `ListTopics` method. 217 // 218 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 219 type ListTopicsResponse = src.ListTopicsResponse 220 221 // A policy constraining the storage of messages published to the topic. 222 // 223 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 224 type MessageStoragePolicy = src.MessageStoragePolicy 225 226 // Request for the ModifyAckDeadline method. 227 // 228 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 229 type ModifyAckDeadlineRequest = src.ModifyAckDeadlineRequest 230 231 // Request for the ModifyPushConfig method. 232 // 233 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 234 type ModifyPushConfigRequest = src.ModifyPushConfigRequest 235 236 // Request for the Publish method. 237 // 238 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 239 type PublishRequest = src.PublishRequest 240 241 // Response for the `Publish` method. 242 // 243 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 244 type PublishResponse = src.PublishResponse 245 246 // PublisherClient is the client API for Publisher service. For semantics 247 // around ctx use and closing/ending streaming RPCs, please refer to 248 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 249 // 250 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 251 type PublisherClient = src.PublisherClient 252 253 // PublisherServer is the server API for Publisher service. 254 // 255 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 256 type PublisherServer = src.PublisherServer 257 258 // A message that is published by publishers and consumed by subscribers. The 259 // message must contain either a non-empty data field or at least one 260 // attribute. Note that client libraries represent this object differently 261 // depending on the language. See the corresponding [client library 262 // documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for 263 // more information. See [quotas and limits] 264 // (https://cloud.google.com/pubsub/quotas) for more information about message 265 // limits. 266 // 267 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 268 type PubsubMessage = src.PubsubMessage 269 270 // Request for the `Pull` method. 271 // 272 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 273 type PullRequest = src.PullRequest 274 275 // Response for the `Pull` method. 276 // 277 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 278 type PullResponse = src.PullResponse 279 280 // Configuration for a push delivery endpoint. 281 // 282 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 283 type PushConfig = src.PushConfig 284 285 // Contains information needed for generating an [OpenID Connect 286 // token](https://developers.google.com/identity/protocols/OpenIDConnect). 287 // 288 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 289 type PushConfig_OidcToken = src.PushConfig_OidcToken 290 type PushConfig_OidcToken_ = src.PushConfig_OidcToken_ 291 292 // A message and its corresponding acknowledgment ID. 293 // 294 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 295 type ReceivedMessage = src.ReceivedMessage 296 297 // A policy that specifies how Cloud Pub/Sub retries message delivery. Retry 298 // delay will be exponential based on provided minimum and maximum backoffs. 299 // https://en.wikipedia.org/wiki/Exponential_backoff. RetryPolicy will be 300 // triggered on NACKs or acknowledgement deadline exceeded events for a given 301 // message. Retry Policy is implemented on a best effort basis. At times, the 302 // delay between consecutive deliveries may not match the configuration. That 303 // is, delay can be more or less than configured backoff. 304 // 305 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 306 type RetryPolicy = src.RetryPolicy 307 308 // A schema resource. 309 // 310 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 311 type Schema = src.Schema 312 313 // SchemaServiceClient is the client API for SchemaService service. For 314 // semantics around ctx use and closing/ending streaming RPCs, please refer to 315 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 316 // 317 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 318 type SchemaServiceClient = src.SchemaServiceClient 319 320 // SchemaServiceServer is the server API for SchemaService service. 321 // 322 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 323 type SchemaServiceServer = src.SchemaServiceServer 324 325 // Settings for validating messages published against a schema. 326 // 327 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 328 type SchemaSettings = src.SchemaSettings 329 330 // View of Schema object fields to be returned by GetSchema and ListSchemas. 331 // 332 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 333 type SchemaView = src.SchemaView 334 335 // Possible schema definition types. 336 // 337 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 338 type Schema_Type = src.Schema_Type 339 340 // Request for the `Seek` method. 341 // 342 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 343 type SeekRequest = src.SeekRequest 344 type SeekRequest_Snapshot = src.SeekRequest_Snapshot 345 type SeekRequest_Time = src.SeekRequest_Time 346 347 // Response for the `Seek` method (this response is empty). 348 // 349 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 350 type SeekResponse = src.SeekResponse 351 352 // A snapshot resource. Snapshots are used in 353 // [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, 354 // which allow you to manage message acknowledgments in bulk. That is, you can 355 // set the acknowledgment state of messages in an existing subscription to the 356 // state captured by a snapshot. 357 // 358 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 359 type Snapshot = src.Snapshot 360 361 // Request for the `StreamingPull` streaming RPC method. This request is used 362 // to establish the initial stream as well as to stream acknowledgements and 363 // ack deadline modifications from the client to the server. 364 // 365 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 366 type StreamingPullRequest = src.StreamingPullRequest 367 368 // Response for the `StreamingPull` method. This response is used to stream 369 // messages from the server to the client. 370 // 371 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 372 type StreamingPullResponse = src.StreamingPullResponse 373 374 // Acknowledgement IDs sent in one or more previous requests to acknowledge a 375 // previously received message. 376 // 377 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 378 type StreamingPullResponse_AcknowledgeConfirmation = src.StreamingPullResponse_AcknowledgeConfirmation 379 380 // Acknowledgement IDs sent in one or more previous requests to modify the 381 // deadline for a specific message. 382 // 383 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 384 type StreamingPullResponse_ModifyAckDeadlineConfirmation = src.StreamingPullResponse_ModifyAckDeadlineConfirmation 385 386 // Subscription properties sent as part of the response. 387 // 388 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 389 type StreamingPullResponse_SubscriptionProperties = src.StreamingPullResponse_SubscriptionProperties 390 391 // SubscriberClient is the client API for Subscriber service. For semantics 392 // around ctx use and closing/ending streaming RPCs, please refer to 393 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 394 // 395 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 396 type SubscriberClient = src.SubscriberClient 397 398 // SubscriberServer is the server API for Subscriber service. 399 // 400 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 401 type SubscriberServer = src.SubscriberServer 402 type Subscriber_StreamingPullClient = src.Subscriber_StreamingPullClient 403 type Subscriber_StreamingPullServer = src.Subscriber_StreamingPullServer 404 405 // A subscription resource. 406 // 407 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 408 type Subscription = src.Subscription 409 410 // Possible states for a subscription. 411 // 412 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 413 type Subscription_State = src.Subscription_State 414 415 // A topic resource. 416 // 417 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 418 type Topic = src.Topic 419 420 // UnimplementedPublisherServer can be embedded to have forward compatible 421 // implementations. 422 // 423 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 424 type UnimplementedPublisherServer = src.UnimplementedPublisherServer 425 426 // UnimplementedSchemaServiceServer can be embedded to have forward compatible 427 // implementations. 428 // 429 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 430 type UnimplementedSchemaServiceServer = src.UnimplementedSchemaServiceServer 431 432 // UnimplementedSubscriberServer can be embedded to have forward compatible 433 // implementations. 434 // 435 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 436 type UnimplementedSubscriberServer = src.UnimplementedSubscriberServer 437 438 // Request for the UpdateSnapshot method. 439 // 440 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 441 type UpdateSnapshotRequest = src.UpdateSnapshotRequest 442 443 // Request for the UpdateSubscription method. 444 // 445 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 446 type UpdateSubscriptionRequest = src.UpdateSubscriptionRequest 447 448 // Request for the UpdateTopic method. 449 // 450 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 451 type UpdateTopicRequest = src.UpdateTopicRequest 452 453 // Request for the `ValidateMessage` method. 454 // 455 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 456 type ValidateMessageRequest = src.ValidateMessageRequest 457 type ValidateMessageRequest_Name = src.ValidateMessageRequest_Name 458 type ValidateMessageRequest_Schema = src.ValidateMessageRequest_Schema 459 460 // Response for the `ValidateMessage` method. Empty for now. 461 // 462 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 463 type ValidateMessageResponse = src.ValidateMessageResponse 464 465 // Request for the `ValidateSchema` method. 466 // 467 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 468 type ValidateSchemaRequest = src.ValidateSchemaRequest 469 470 // Response for the `ValidateSchema` method. Empty for now. 471 // 472 // Deprecated: Please use types in: cloud.google.com/go/pubsub/apiv1/pubsubpb 473 type ValidateSchemaResponse = src.ValidateSchemaResponse 474 475 // Deprecated: Please use funcs in: cloud.google.com/go/pubsub/apiv1/pubsubpb 476 func NewPublisherClient(cc grpc.ClientConnInterface) PublisherClient { 477 return src.NewPublisherClient(cc) 478 } 479 480 // Deprecated: Please use funcs in: cloud.google.com/go/pubsub/apiv1/pubsubpb 481 func NewSchemaServiceClient(cc grpc.ClientConnInterface) SchemaServiceClient { 482 return src.NewSchemaServiceClient(cc) 483 } 484 485 // Deprecated: Please use funcs in: cloud.google.com/go/pubsub/apiv1/pubsubpb 486 func NewSubscriberClient(cc grpc.ClientConnInterface) SubscriberClient { 487 return src.NewSubscriberClient(cc) 488 } 489 490 // Deprecated: Please use funcs in: cloud.google.com/go/pubsub/apiv1/pubsubpb 491 func RegisterPublisherServer(s *grpc.Server, srv PublisherServer) { 492 src.RegisterPublisherServer(s, srv) 493 } 494 495 // Deprecated: Please use funcs in: cloud.google.com/go/pubsub/apiv1/pubsubpb 496 func RegisterSchemaServiceServer(s *grpc.Server, srv SchemaServiceServer) { 497 src.RegisterSchemaServiceServer(s, srv) 498 } 499 500 // Deprecated: Please use funcs in: cloud.google.com/go/pubsub/apiv1/pubsubpb 501 func RegisterSubscriberServer(s *grpc.Server, srv SubscriberServer) { 502 src.RegisterSubscriberServer(s, srv) 503 } 504