application_details.proto 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Copyright 2021 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. syntax = "proto3";
  15. package google.devtools.testing.v1;
  16. import "google/api/annotations.proto";
  17. import "google/devtools/testing/v1/test_execution.proto";
  18. import "google/api/client.proto";
  19. option go_package = "google.golang.org/genproto/googleapis/devtools/testing/v1;testing";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "ApplicationDetailProto";
  22. option java_package = "com.google.devtools.testing.v1";
  23. // A service which parses input applications and returns details that can be
  24. // useful in the context of testing.
  25. service ApplicationDetailService {
  26. option (google.api.default_host) = "testing.googleapis.com";
  27. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  28. // Gets the details of an Android application APK.
  29. rpc GetApkDetails(GetApkDetailsRequest) returns (GetApkDetailsResponse) {
  30. option (google.api.http) = {
  31. post: "/v1/applicationDetailService/getApkDetails"
  32. body: "location"
  33. };
  34. }
  35. }
  36. // Android application details based on application manifest and apk archive
  37. // contents.
  38. message ApkDetail {
  39. ApkManifest apk_manifest = 1;
  40. }
  41. // An Android app manifest. See
  42. // http://developer.android.com/guide/topics/manifest/manifest-intro.html
  43. message ApkManifest {
  44. // Full Java-style package name for this application, e.g.
  45. // "com.example.foo".
  46. string package_name = 1;
  47. // Minimum API level required for the application to run.
  48. int32 min_sdk_version = 2;
  49. // Maximum API level on which the application is designed to run.
  50. int32 max_sdk_version = 3;
  51. // Specifies the API Level on which the application is designed to run.
  52. int32 target_sdk_version = 6;
  53. // User-readable name for the application.
  54. string application_label = 4;
  55. repeated IntentFilter intent_filters = 5;
  56. // Permissions declared to be used by the application
  57. repeated string uses_permission = 7;
  58. }
  59. // The <intent-filter> section of an <activity> tag.
  60. // https://developer.android.com/guide/topics/manifest/intent-filter-element.html
  61. message IntentFilter {
  62. // The android:name value of the <action> tag.
  63. repeated string action_names = 1;
  64. // The android:name value of the <category> tag.
  65. repeated string category_names = 2;
  66. // The android:mimeType value of the <data> tag.
  67. string mime_type = 3;
  68. }
  69. // A request to get the details of an Android application APK.
  70. message GetApkDetailsRequest {
  71. // The APK to be parsed for details.
  72. FileReference location = 1;
  73. }
  74. // Response containing the details of the specified Android application APK.
  75. message GetApkDetailsResponse {
  76. // Details of the Android APK.
  77. ApkDetail apk_detail = 1;
  78. }