123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- 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";
- 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 = "TopicStatsProto";
- option java_package = "com.google.cloud.pubsublite.proto";
- option php_namespace = "Google\\Cloud\\PubSubLite\\V1";
- option ruby_package = "Google::Cloud::PubSubLite::V1";
- service TopicStatsService {
- option (google.api.default_host) = "pubsublite.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
-
- rpc ComputeMessageStats(ComputeMessageStatsRequest) returns (ComputeMessageStatsResponse) {
- option (google.api.http) = {
- post: "/v1/topicStats/{topic=projects/*/locations/*/topics/*}:computeMessageStats"
- body: "*"
- };
- }
-
-
-
-
-
-
- rpc ComputeHeadCursor(ComputeHeadCursorRequest) returns (ComputeHeadCursorResponse) {
- option (google.api.http) = {
- post: "/v1/topicStats/{topic=projects/*/locations/*/topics/*}:computeHeadCursor"
- body: "*"
- };
- }
-
-
- rpc ComputeTimeCursor(ComputeTimeCursorRequest) returns (ComputeTimeCursorResponse) {
- option (google.api.http) = {
- post: "/v1/topicStats/{topic=projects/*/locations/*/topics/*}:computeTimeCursor"
- body: "*"
- };
- }
- }
- message ComputeMessageStatsRequest {
-
- string topic = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "pubsublite.googleapis.com/Topic"
- }
- ];
-
- int64 partition = 2 [(google.api.field_behavior) = REQUIRED];
-
- Cursor start_cursor = 3;
-
-
-
- Cursor end_cursor = 4;
- }
- message ComputeMessageStatsResponse {
-
- int64 message_count = 1;
-
- int64 message_bytes = 2;
-
-
-
- google.protobuf.Timestamp minimum_publish_time = 3;
-
-
-
- google.protobuf.Timestamp minimum_event_time = 4;
- }
- message ComputeHeadCursorRequest {
-
- string topic = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "pubsublite.googleapis.com/Topic"
- }
- ];
-
- int64 partition = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message ComputeHeadCursorResponse {
-
- Cursor head_cursor = 1;
- }
- message ComputeTimeCursorRequest {
-
- string topic = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "pubsublite.googleapis.com/Topic"
- }
- ];
-
- int64 partition = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- TimeTarget target = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message ComputeTimeCursorResponse {
-
-
-
- Cursor cursor = 1;
- }
|