diff --git a/google/cloud/pubsublite/v1/admin.proto b/google/cloud/pubsublite/v1/admin.proto index 693df93719b00..34ce92aa7c402 100644 --- a/google/cloud/pubsublite/v1/admin.proto +++ b/google/cloud/pubsublite/v1/admin.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// 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. diff --git a/google/cloud/pubsublite/v1/common.proto b/google/cloud/pubsublite/v1/common.proto index 2a2c62ccb7b59..d57583d9a15dd 100644 --- a/google/cloud/pubsublite/v1/common.proto +++ b/google/cloud/pubsublite/v1/common.proto @@ -236,7 +236,7 @@ message Subscription { // Configuration for a Pub/Sub Lite subscription that writes messages to a // destination. User subscriber clients must not connect to this subscription. message ExportConfig { - // An export state. + // The desired export state. enum State { // Default value. This value is unused. STATE_UNSPECIFIED = 0; @@ -246,6 +246,12 @@ message ExportConfig { // Exporting messages is suspended. PAUSED = 2; + + // Messages cannot be exported due to permission denied errors. Output only. + PERMISSION_DENIED = 3; + + // Messages cannot be exported due to missing resources. Output only. + NOT_FOUND = 4; } // The export status of a partition. @@ -272,11 +278,21 @@ message ExportConfig { string topic = 1; } - // The desired state of this export. + // The desired state of this export. Setting this to values other than + // `ACTIVE` and `PAUSED` will result in an error. State desired_state = 1; - // Output only. The export statuses of each partition. This field is output only. - repeated PartitionStatus statuses = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The current state of the export, which may be different to the desired + // state due to errors. + State current_state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Deprecated: replaced by `current_state`. + // + // The export statuses of each partition. + repeated PartitionStatus statuses = 4 [ + deprecated = true, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Optional. The name of an optional Pub/Sub Lite topic to publish messages that can not // be exported to the destination. For example, the message can not be diff --git a/google/cloud/pubsublite/v1/cursor.proto b/google/cloud/pubsublite/v1/cursor.proto index f3cfc1693cb5c..d325a16611ce7 100644 --- a/google/cloud/pubsublite/v1/cursor.proto +++ b/google/cloud/pubsublite/v1/cursor.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// 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. diff --git a/google/cloud/pubsublite/v1/publisher.proto b/google/cloud/pubsublite/v1/publisher.proto index 27737ecc71126..8adf9948be79e 100644 --- a/google/cloud/pubsublite/v1/publisher.proto +++ b/google/cloud/pubsublite/v1/publisher.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// 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. @@ -16,8 +16,9 @@ syntax = "proto3"; package google.cloud.pubsublite.v1; -import "google/cloud/pubsublite/v1/common.proto"; +import "google/api/annotations.proto"; import "google/api/client.proto"; +import "google/cloud/pubsublite/v1/common.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSubLite.V1"; diff --git a/google/cloud/pubsublite/v1/subscriber.proto b/google/cloud/pubsublite/v1/subscriber.proto index c8bb1655c8b2f..587ee52254974 100644 --- a/google/cloud/pubsublite/v1/subscriber.proto +++ b/google/cloud/pubsublite/v1/subscriber.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// 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. @@ -16,9 +16,10 @@ syntax = "proto3"; package google.cloud.pubsublite.v1; +import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/cloud/pubsublite/v1/common.proto"; -import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSubLite.V1"; diff --git a/google/cloud/pubsublite/v1/topic_stats.proto b/google/cloud/pubsublite/v1/topic_stats.proto index d4ccc413ad6fa..80527f2188af4 100644 --- a/google/cloud/pubsublite/v1/topic_stats.proto +++ b/google/cloud/pubsublite/v1/topic_stats.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// 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. @@ -17,11 +17,11 @@ syntax = "proto3"; package google.cloud.pubsublite.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/pubsublite/v1/common.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/client.proto"; option csharp_namespace = "Google.Cloud.PubSubLite.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite";