123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- syntax = "proto3";
- package google.cloud.pubsublite.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- option cc_enable_arenas = true;
- option csharp_namespace = "Google.Cloud.PubSubLite.V1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite";
- option java_multiple_files = true;
- option java_outer_classname = "CommonProto";
- option java_package = "com.google.cloud.pubsublite.proto";
- option php_namespace = "Google\\Cloud\\PubSubLite\\V1";
- option ruby_package = "Google::Cloud::PubSubLite::V1";
- message AttributeValues {
-
- repeated bytes values = 1;
- }
- message PubSubMessage {
-
-
-
- bytes key = 1;
-
- bytes data = 2;
-
- map<string, AttributeValues> attributes = 3;
-
- google.protobuf.Timestamp event_time = 4;
- }
- message Cursor {
-
-
- int64 offset = 1;
- }
- message SequencedMessage {
-
- Cursor cursor = 1;
-
-
- google.protobuf.Timestamp publish_time = 2;
-
- PubSubMessage message = 3;
-
- int64 size_bytes = 4;
- }
- message Reservation {
- option (google.api.resource) = {
- type: "pubsublite.googleapis.com/Reservation"
- pattern: "projects/{project}/locations/{location}/reservations/{reservation}"
- };
-
-
-
- string name = 1;
-
-
-
-
-
-
-
- int64 throughput_capacity = 2;
- }
- message Topic {
- option (google.api.resource) = {
- type: "pubsublite.googleapis.com/Topic"
- pattern: "projects/{project}/locations/{location}/topics/{topic}"
- };
-
- message PartitionConfig {
-
- message Capacity {
-
-
- int32 publish_mib_per_sec = 1;
-
-
- int32 subscribe_mib_per_sec = 2;
- }
-
-
-
-
-
-
- int64 count = 1;
-
- oneof dimension {
-
-
-
-
-
-
-
-
- int32 scale = 2 [deprecated = true];
-
- Capacity capacity = 3;
- }
- }
-
- message RetentionConfig {
-
-
-
-
- int64 per_partition_bytes = 1;
-
-
-
- google.protobuf.Duration period = 2;
- }
-
- message ReservationConfig {
-
-
-
- string throughput_reservation = 1 [(google.api.resource_reference) = {
- type: "pubsublite.googleapis.com/Reservation"
- }];
- }
-
-
-
- string name = 1;
-
- PartitionConfig partition_config = 2;
-
- RetentionConfig retention_config = 3;
-
- ReservationConfig reservation_config = 4;
- }
- message Subscription {
- option (google.api.resource) = {
- type: "pubsublite.googleapis.com/Subscription"
- pattern: "projects/{project}/locations/{location}/subscriptions/{subscription}"
- };
-
- message DeliveryConfig {
-
-
-
- enum DeliveryRequirement {
-
- DELIVERY_REQUIREMENT_UNSPECIFIED = 0;
-
-
- DELIVER_IMMEDIATELY = 1;
-
-
-
- DELIVER_AFTER_STORED = 2;
- }
-
- DeliveryRequirement delivery_requirement = 3;
- }
-
-
-
- string name = 1;
-
-
-
- string topic = 2 [(google.api.resource_reference) = {
- type: "pubsublite.googleapis.com/Topic"
- }];
-
- DeliveryConfig delivery_config = 3;
-
-
- ExportConfig export_config = 4;
- }
- message ExportConfig {
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- ACTIVE = 1;
-
- PAUSED = 2;
-
- PERMISSION_DENIED = 3;
-
- NOT_FOUND = 4;
- }
-
- message PubSubConfig {
-
-
-
- string topic = 1;
- }
-
-
- State desired_state = 1;
-
-
- State current_state = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
-
-
-
- string dead_letter_topic = 5 [
- (google.api.field_behavior) = OPTIONAL,
- (google.api.resource_reference) = {
- type: "pubsublite.googleapis.com/Topic"
- }
- ];
-
- oneof destination {
-
-
- PubSubConfig pubsub_config = 3;
- }
- }
- message TimeTarget {
-
- oneof time {
-
-
-
- google.protobuf.Timestamp publish_time = 1;
-
-
-
-
-
- google.protobuf.Timestamp event_time = 2;
- }
- }
|