diff options
author | Andy Magee <andymagee@google.com> | 2023-10-23 13:49:58 -0700 |
---|---|---|
committer | Andy Magee <andymagee@google.com> | 2023-10-24 13:40:12 -0700 |
commit | 7726d205a90fc14590dde16036e02e78c1a2ad28 (patch) | |
tree | d1bb5c38742d09f8f6fb8b5d20d202229b8d0349 | |
parent | 1aab1a3853bb0c2c1100906f984f857b7cd25f1c (diff) | |
download | analytics-library-7726d205a90fc14590dde16036e02e78c1a2ad28.tar.gz |
Update studio_stats.proto
Logs-Approval: cl/576260120
Bug: 303288587
Test: Included in other changes in topic
Change-Id: I156741fd480998587073a8b01985754b02170f37
-rw-r--r-- | protos/src/main/proto/studio_stats.proto | 112 |
1 files changed, 77 insertions, 35 deletions
diff --git a/protos/src/main/proto/studio_stats.proto b/protos/src/main/proto/studio_stats.proto index d5edbcc..048d7b8 100644 --- a/protos/src/main/proto/studio_stats.proto +++ b/protos/src/main/proto/studio_stats.proto @@ -13501,65 +13501,107 @@ message SmlResponseMetadata { } message SmlCompletionEvent { + // DEPRECATED Use CompletionAggregateEvent instead message CompletionRequest { - enum Trigger { - UNKNOWN = 0; - - // User explicitly triggered completion - USER = 1; + option deprecated = true; - // Completion was automatically triggered - AUTOMATIC = 2; + enum Trigger { + UNKNOWN = 0 [deprecated = true]; + USER = 1 [deprecated = true]; + AUTOMATIC = 2 [deprecated = true]; } - optional Trigger trigger = 1; - optional EditorFileType file_type = 2; - - // Length of prefix (# of chars before cursor) included in the request - optional uint32 prefix_length = 3; - - // Length of suffix (# of chars after cursor) included in the request - optional uint32 suffix_length = 4; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional Trigger trigger = 1 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional EditorFileType file_type = 2 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional uint32 prefix_length = 3 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional uint32 suffix_length = 4 [deprecated = true]; } + // DEPRECATED Use CompletionAggregateEvent instead message CompletionError { - optional int32 status_code = 1; + option deprecated = true; + + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional int32 status_code = 1 [deprecated = true]; } + // DEPRECATED Use CompletionAggregateEvent instead message CompletionResult { - optional SmlResponseMetadata metadata = 1; - optional uint64 latency_ms = 2; - optional int32 num_completions = 3; + option deprecated = true; + + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional SmlResponseMetadata metadata = 1 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional uint64 latency_ms = 2 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional int32 num_completions = 3 [deprecated = true]; } + // DEPRECATED Use CompletionAggregateEvent instead message CompletionResponse { - oneof response { - CompletionResult result = 1; - CompletionError backend_error = 2; - } + option deprecated = true; + + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional CompletionResult result = 1 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional CompletionError backend_error = 2 [deprecated = true]; } + // DEPRECATED Use CompletionAggregateEvent instead message CompletionShown { - optional SmlResponseMetadata metadata = 1; - optional int32 shown_suggestion_index = 2; + option deprecated = true; + + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional SmlResponseMetadata metadata = 1 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional int32 shown_suggestion_index = 2 [deprecated = true]; } + // DEPRECATED Use CompletionAggregateEvent instead message CompletionAccepted { - optional SmlResponseMetadata metadata = 1; + option deprecated = true; + + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional SmlResponseMetadata metadata = 1 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional int32 accepted_suggestion_index = 2 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + optional int32 accepted_suggestion_length = 3 [deprecated = true]; + } - // Index of the accepted suggestion from the multiple suggestions in the - // response - optional int32 accepted_suggestion_index = 2; + message CompletionAggregateEvent { + enum Trigger { + UNKNOWN = 0; + + // User explicitly triggered completion + USER = 1; - // Length (# of chars) of the accepted suggestion - optional int32 accepted_suggestion_length = 3; + // Completion was automatically triggered + AUTOMATIC = 2; + } + + optional string model_id = 1; + optional Trigger trigger = 2; + optional EditorFileType file_type = 3; + optional uint32 completions_shown = 4; + optional uint32 completions_accepted = 5; + optional Histogram latencies_ms = 6; } oneof completion { - CompletionRequest request = 1; - CompletionResponse response = 2; - CompletionShown shown = 3; - CompletionAccepted accepted = 4; + // Historical: Not used starting with Android Studio 2023.2.1.11 + CompletionRequest request = 1 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + CompletionResponse response = 2 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + CompletionShown shown = 3 [deprecated = true]; + // Historical: Not used starting with Android Studio 2023.2.1.11 + CompletionAccepted accepted = 4 [deprecated = true]; + CompletionAggregateEvent aggregate = 5; } } |