diff options
| author | n1c00o <n@nc0.fr> | 2023-02-05 11:29:53 +0100 | 
|---|---|---|
| committer | Nicolas <34602094+n1c00o@users.noreply.github.com> | 2023-02-06 22:35:54 +0100 | 
| commit | 24cd243c8768452d77df349b1f0988bcab497ff1 (patch) | |
| tree | ff49e4ee9a2378481d25b36c8fb8b037212598cd /third_party/googleapis/google/devtools/resultstore/v2 | |
| parent | ad8afa40ffeea085e1705b455abf4379a06a5a83 (diff) | |
Deleting current code
Diffstat (limited to 'third_party/googleapis/google/devtools/resultstore/v2')
19 files changed, 0 insertions, 4339 deletions
diff --git a/third_party/googleapis/google/devtools/resultstore/v2/BUILD.bazel b/third_party/googleapis/google/devtools/resultstore/v2/BUILD.bazel deleted file mode 100644 index 9517445..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/BUILD.bazel +++ /dev/null @@ -1,209 +0,0 @@ -# This file was automatically generated by BuildFileGenerator - -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - -############################################################################## -# Common -############################################################################## -load("@rules_proto//proto:defs.bzl", "proto_library") - -proto_library( -    name = "resultstore_proto", -    srcs = [ -        "action.proto", -        "common.proto", -        "configuration.proto", -        "configured_target.proto", -        "coverage.proto", -        "coverage_summary.proto", -        "download_metadata.proto", -        "file.proto", -        "file_processing_error.proto", -        "file_set.proto", -        "invocation.proto", -        "resultstore_download.proto", -        "resultstore_file_download.proto", -        "resultstore_upload.proto", -        "target.proto", -        "test_suite.proto", -        "upload_metadata.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/api:resource_proto", -        "@com_google_protobuf//:duration_proto", -        "@com_google_protobuf//:empty_proto", -        "@com_google_protobuf//:field_mask_proto", -        "@com_google_protobuf//:timestamp_proto", -        "@com_google_protobuf//:wrappers_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "resultstore_java_proto", -    deps = [":resultstore_proto"], -) - -java_grpc_library( -    name = "resultstore_java_grpc", -    srcs = [":resultstore_proto"], -    deps = [":resultstore_java_proto"], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_proto_library", -) - -go_proto_library( -    name = "resultstore_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/devtools/resultstore/v2", -    protos = [":resultstore_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "moved_proto_library", -    "py_grpc_library", -    "py_proto_library", -) - -moved_proto_library( -    name = "resultstore_moved_proto", -    srcs = [":resultstore_proto"], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/api:resource_proto", -        "@com_google_protobuf//:duration_proto", -        "@com_google_protobuf//:empty_proto", -        "@com_google_protobuf//:field_mask_proto", -        "@com_google_protobuf//:timestamp_proto", -        "@com_google_protobuf//:wrappers_proto", -    ], -) - -py_proto_library( -    name = "resultstore_py_proto", -    deps = [":resultstore_moved_proto"], -) - -py_grpc_library( -    name = "resultstore_py_grpc", -    srcs = [":resultstore_moved_proto"], -    deps = [":resultstore_py_proto"], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "resultstore_php_proto", -    deps = [":resultstore_proto"], -) - -php_grpc_library( -    name = "resultstore_php_grpc", -    srcs = [":resultstore_proto"], -    deps = [":resultstore_php_proto"], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "resultstore_ruby_proto", -    deps = [":resultstore_proto"], -) - -ruby_grpc_library( -    name = "resultstore_ruby_grpc", -    srcs = [":resultstore_proto"], -    deps = [":resultstore_ruby_proto"], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "resultstore_csharp_proto", -    deps = [":resultstore_proto"], -) - -csharp_grpc_library( -    name = "resultstore_csharp_grpc", -    srcs = [":resultstore_proto"], -    deps = [":resultstore_csharp_proto"], -) - -############################################################################## -# C++ -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "cc_grpc_library", -    "cc_proto_library", -) - -cc_proto_library( -    name = "resultstore_cc_proto", -    deps = [":resultstore_proto"], -) - -cc_grpc_library( -    name = "resultstore_cc_grpc", -    srcs = [":resultstore_proto"], -    grpc_only = True, -    deps = [":resultstore_cc_proto"], -) diff --git a/third_party/googleapis/google/devtools/resultstore/v2/action.proto b/third_party/googleapis/google/devtools/resultstore/v2/action.proto deleted file mode 100644 index f97cf80..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/action.proto +++ /dev/null @@ -1,354 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/common.proto"; -import "google/devtools/resultstore/v2/coverage.proto"; -import "google/devtools/resultstore/v2/file.proto"; -import "google/devtools/resultstore/v2/file_processing_error.proto"; -import "google/devtools/resultstore/v2/test_suite.proto"; -import "google/protobuf/duration.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "ActionProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// An action that happened as part of a configured target. This action could be -// a build, a test, or another type of action, as specified in action_type -// oneof. -// -// Each parent ConfiguredTarget resource should have at least one Action as its -// child resource before the invocation is finalized. For a simple build, at -// least one build action should be created to represent the build result, and -// at least one test action should be created to represent the test result, if -// any. -message Action { -  option (google.api.resource) = { -    type: "resultstore.googleapis.com/Action" -    pattern: "invocations/{invocation}/targets/{target}/configuredTargets/{configured_target}/actions/{action}" -  }; - -  // The resource ID components that identify the Action. -  message Id { -    // The Invocation ID. -    string invocation_id = 1; - -    // The Target ID. -    string target_id = 2; - -    // The Configuration ID. -    string configuration_id = 3; - -    // The Action ID. -    string action_id = 4; -  } - -  // The resource name.  Its format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/url_encode(${CONFIG_ID})/actions/${url_encode(ACTION_ID)} -  // -  // See CreateActionRequest proto for more information. -  string name = 1; - -  // The resource ID components that identify the Action. They must match the -  // resource name after proper encoding. -  Id id = 2; - -  // The status of the action. -  StatusAttributes status_attributes = 3; - -  // The timing of the whole action. For TestActions, the start time may be -  // before the test actually started, and the duration may last until after the -  // test actually finished. -  Timing timing = 4; - -  // The type of the action. The type of an action may not change over the -  // lifetime of the invocation. If one of these fields is to be set, it must be -  // set in the CreateAction method. It may be set to an empty message that is -  // populated in later methods or post-processing. A generic "untyped" action -  // can be created by not setting any of these fields. An untyped action will -  // be untyped for the lifetime of the invocation. -  oneof action_type { -    // Used only when this action represents a build action. -    BuildAction build_action = 9; - -    // Only for test actions. -    TestAction test_action = 10; -  } - -  // General attributes of the action. -  ActionAttributes action_attributes = 5; - -  // A list of resources that this action depended upon. May be used to provide -  // the cause of a build failure in the case of a failed build action. -  repeated Dependency action_dependencies = 14; - -  // Arbitrary name-value pairs. -  // This is implemented as a multi-map. Multiple properties are allowed with -  // the same key. Properties will be returned in lexicographical order by key. -  repeated Property properties = 7; - -  // A list of file references for action level files. -  // The file IDs must be unique within this list. Duplicate file IDs will -  // result in an error. Files will be returned in lexicographical order by ID. -  // -  // Files with the following reserved file IDs cause specific post-processing -  // or have special handling. These files must be immediately available to -  // ResultStore for processing when the reference is uploaded. -  // -  // For build actions: -  // stdout: The stdout of the action -  // stderr: The stderr of the action -  // baseline.lcov: Baseline coverage file to be parsed by the server. This -  //     uses a stripped down implementation of the LCOV standard. -  //     http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php -  // -  // For test actions: -  // test.xml: The test suite / test case data in XML format. -  // test.log: The combined stdout and stderr of the test process. -  // test.lcov: Coverage file to be parsed by the server. This uses a stripped -  //     down implementation of the LCOV standard. -  //     http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php -  repeated File files = 8; - -  // List of names of file sets that are referenced from this Action. -  // Each name must point to a file set under the same Invocation. The name -  // format must be: invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID} -  repeated string file_sets = 15; - -  // Coverage data was collected while running the build or test action. This -  // usually includes line coverage, and may also include branch coverage. -  // For test actions, this is usually only for the source files which were -  // actually executed by that particular action. -  // For build actions, this is the baseline coverage, which captures the -  // instrumented files and lines, without any lines being executed. This -  // ensures files that are never covered at all are included. -  ActionCoverage coverage = 11; - -  // ResultStore will read and parse Files with reserved IDs listed above. Read -  // and parse errors for all these Files are reported here. -  // This is implemented as a map, with one FileProcessingErrors for each file. -  // Typically produced when parsing Files, but may also be provided directly -  // by clients. -  repeated FileProcessingErrors file_processing_errors = 13; -} - -// A build action, such as building a java library. -message BuildAction { -  // The type of the action.  This is intended to be a clue as to how the output -  // of the action should be parsed. For example "javac" for a Java compile -  // action. -  string type = 1; - -  // The "primary" input artifact processed by this action.  E.g., the .cc file -  // of a C++ compile action.  Empty string ("") if the action has no input -  // artifacts or no "primary" input artifact. -  string primary_input_path = 2; - -  // The "primary" output artifact processed by this action.  E.g., the .o file -  // of a C++ compile action.  Empty string ("") if the action has no output -  // artifacts or no "primary" output artifact. -  string primary_output_path = 3; -} - -// A test action, such as running a JUnit4 test binary. -message TestAction { -  // Timing data for execution of the test action. -  TestTiming test_timing = 1; - -  // If the test is divided up into shards to improve performance, set this to -  // indicate which shard this test action is for. Value must be in interval -  // [0, total_shard_count). Defaults to 0, which is appropriate if all test -  // cases are run in the same process. -  int32 shard_number = 2; - -  // If the user requested that every test be run multiple times, as is often -  // done to measure flakiness, set this to indicate which run this test action -  // is for. Value must be in interval [0, total_run_count). Defaults to 0, -  // which is appropriate if multiple runs were not requested. -  int32 run_number = 3; - -  // If flaky tests are automatically retried, set this to indicate which -  // attempt this test action is for. (e.g. 0 for the first attempt, 1 for -  // second, and so on). Defaults to 0, which is appropriate if this is the only -  // attempt. -  int32 attempt_number = 4; - -  // A tree of test suites and test cases that were run by this test action. -  // Each test case has its own status information, including stack traces. -  // Typically produced by parsing an XML Log, but may also be provided directly -  // by clients. -  TestSuite test_suite = 5; - -  // Warnings for this test action. -  repeated TestWarning warnings = 8; - -  // Estimated memory consumption of the test action, in bytes. A default value -  // of 0 means there is no memory consumption estimate specified. -  int64 estimated_memory_bytes = 10; -} - -// General attributes of an action -message ActionAttributes { -  // Strategy used for executing the action. -  ExecutionStrategy execution_strategy = 1; - -  // Exit code of the process that ran the action. A non-zero value means -  // failure. -  int32 exit_code = 2; - -  // Where the action was run. -  string hostname = 3; - -  // Information about the input files used in all actions under this configured -  // target. -  InputFileInfo input_file_info = 4; -} - -// File count and size information for the input files to a configured target. -message InputFileInfo { -  // The number of input files (counting every file, even if a duplicate). -  int64 count = 1; - -  // The number of distinct input files. -  int64 distinct_count = 2; - -  // The max number of input files allowed by the build system (counting every -  // file, even if a duplicate). -  int64 count_limit = 3; - -  // The total size of the distinct input files. -  int64 distinct_bytes = 4; - -  // The max allowed total size of the distinct input files. -  int64 distinct_byte_limit = 5; -} - -// Timing data for tests executed locally on the machine running the build. -message LocalTestTiming { -  // Time taken by the test process, typically surrounded by a small wrapper -  // script. -  google.protobuf.Duration test_process_duration = 1; -} - -// Timing data for one attempt to execute a test action remotely. -message RemoteTestAttemptTiming { -  // Idle period before the test process is invoked on the remote machine. -  google.protobuf.Duration queue_duration = 1; - -  // Time to upload data dependencies from the local machine to the remote -  // machine running the test, or to the distributed cache. -  google.protobuf.Duration upload_duration = 2; - -  // Time to set up the remote machine. -  // Not to be confused with setup time in -  // xUnit test frameworks, which falls within the test_process_time. -  google.protobuf.Duration machine_setup_duration = 3; - -  // Time taken by the test process, typically surrounded by a small wrapper -  // script. -  // For Java tests, this includes JVM setup, flag parsing, class path setup, -  // parsing files to setup the suite, and finally running your test methods. -  // In many cases, only a small fraction of the test process time is spent -  // running the test methods. -  google.protobuf.Duration test_process_duration = 4; - -  // Time spent retrieving test logs and any other test outputs, back to the -  // local machine. -  google.protobuf.Duration download_duration = 5; -} - -// Timing data for the part of the test execution that is done remotely. -message RemoteTestTiming { -  // Time taken locally to determine what to do. -  google.protobuf.Duration local_analysis_duration = 1; - -  // Normally there is only one attempt, but the system may retry on internal -  // errors, leading to multiple attempts. -  repeated RemoteTestAttemptTiming attempts = 2; -} - -// Timing data for execution of a test action. The action may be performed -// locally, on the machine running the build, or remotely. -message TestTiming { -  // Test timing for either a local or remote execution. -  oneof location { -    // Used for local test actions. -    LocalTestTiming local = 1; - -    // Used for remote test actions. -    RemoteTestTiming remote = 2; -  } - -  // The amount of CPU time spent by the test process executing system calls -  // within the kernel, as opposed to library code. Time the test process spent -  // blocked does not count towards this figure. -  google.protobuf.Duration system_time_duration = 3; - -  // The amount of CPU time spent by the test process executing user-mode code -  // outside the kernel, as opposed to library code. Time the test process -  // spent blocked does not count towards this figure. You can add user_time to -  // system_time to get total CPU time taken by the test process. -  google.protobuf.Duration user_time_duration = 4; - -  // Most build systems cache build results to speed up incremental builds. -  // Some also cache test results too. This indicates whether the test results -  // were found in a cache, and where that cache was located. -  TestCaching test_caching = 5; -} - -// A warning from a test execution. -message TestWarning { -  // Contains the message detailing the warning. -  string warning_message = 1; -} - -// Indicates how/where this Action was executed. -enum ExecutionStrategy { -  // The action did not indicate how it was executed. -  EXECUTION_STRATEGY_UNSPECIFIED = 0; - -  // The action was executed in some other form. -  OTHER_ENVIRONMENT = 1; - -  // The action used a remote build service. -  REMOTE_SERVICE = 2; - -  // The action was executed locally, in parallel with other actions. -  LOCAL_PARALLEL = 3; - -  // The action was executed locally, without parallelism. -  LOCAL_SEQUENTIAL = 4; -} - -// Most build systems cache build results to speed up incremental builds. -// Some also cache test results too. This indicates whether the test results -// were found in a cache, and where that cache was located. -enum TestCaching { -  // The implicit default enum value. Should never be set. -  TEST_CACHING_UNSPECIFIED = 0; - -  // The test result was found in a local cache, so it wasn't run again. -  LOCAL_CACHE_HIT = 1; - -  // The test result was found in a remote cache, so it wasn't run again. -  REMOTE_CACHE_HIT = 2; - -  // The test result was not found in any cache, so it had to be run again. -  CACHE_MISS = 3; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/common.proto b/third_party/googleapis/google/devtools/resultstore/v2/common.proto deleted file mode 100644 index c8169dc..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/common.proto +++ /dev/null @@ -1,224 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "CommonProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// Describes the status of a resource in both enum and string form. -// Only use description when conveying additional info not captured in the enum -// name. -message StatusAttributes { -  // Enum representation of the status. -  Status status = 1; - -  // A longer description about the status. -  string description = 2; -} - -// A generic key-value property definition. -message Property { -  // The key. -  string key = 1; - -  // The value. -  string value = 2; -} - -// The timing of a particular Invocation, Action, etc. The start_time is -// specified, stop time can be calculated by adding duration to start_time. -message Timing { -  // The time the resource started running. This is in UTC Epoch time. -  google.protobuf.Timestamp start_time = 1; - -  // The duration for which the resource ran. -  google.protobuf.Duration duration = 2; -} - -// Represents a dependency of a resource on another resource. This can be used -// to define a graph or a workflow paradigm through resources. -message Dependency { -  // The resource depended upon. It may be a Target, ConfiguredTarget, or -  // Action. -  oneof resource { -    // The name of a target.  Its format must be: -    // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -    // This must point to an target under the same invocation. -    string target = 1; - -    // The name of a configured target.  Its format must be: -    // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${url_encode(CONFIG_ID)} -    // This must point to an configured target under the same invocation. -    string configured_target = 2; - -    // The name of an action.  Its format must be: -    // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${url_encode(CONFIG_ID)}/actions/${url_encode(ACTION_ID)} -    // This must point to an action under the same invocation. -    string action = 3; -  } - -  // A label describing this dependency. -  // The label "Root Cause" is handled specially. It is used to point to the -  // exact resource that caused a resource to fail. -  string label = 4; -} - -// These correspond to the prefix of the rule name. Eg cc_test has language CC. -enum Language { -  // Language unspecified or not listed here. -  LANGUAGE_UNSPECIFIED = 0; - -  // Not related to any particular language -  NONE = 1; - -  // Android -  ANDROID = 2; - -  // ActionScript (Flash) -  AS = 3; - -  // C++ or C -  CC = 4; - -  // Cascading-Style-Sheets -  CSS = 5; - -  // Dart -  DART = 6; - -  // Go -  GO = 7; - -  // Google-Web-Toolkit -  GWT = 8; - -  // Haskell -  HASKELL = 9; - -  // Java -  JAVA = 10; - -  // Javascript -  JS = 11; - -  // Lisp -  LISP = 12; - -  // Objective-C -  OBJC = 13; - -  // Python -  PY = 14; - -  // Shell (Typically Bash) -  SH = 15; - -  // Swift -  SWIFT = 16; - -  // Typescript -  TS = 18; - -  // Webtesting -  WEB = 19; - -  // Scala -  SCALA = 20; - -  // Protocol Buffer -  PROTO = 21; - -  // Extensible Markup Language -  XML = 22; -} - -// Status of a resource. -enum Status { -  // The implicit default enum value. Should never be set. -  STATUS_UNSPECIFIED = 0; - -  // Displays as "Building". Means the target is compiling, linking, etc. -  BUILDING = 1; - -  // Displays as "Built". Means the target was built successfully. -  // If testing was requested, it should never reach this status: it should go -  // straight from BUILDING to TESTING. -  BUILT = 2; - -  // Displays as "Broken". Means build failure such as compile error. -  FAILED_TO_BUILD = 3; - -  // Displays as "Testing". Means the test is running. -  TESTING = 4; - -  // Displays as "Passed". Means the test was run and passed. -  PASSED = 5; - -  // Displays as "Failed". Means the test was run and failed. -  FAILED = 6; - -  // Displays as "Timed out". Means the test didn't finish in time. -  TIMED_OUT = 7; - -  // Displays as "Cancelled". Means the build or test was cancelled. -  // E.g. User hit control-C. -  CANCELLED = 8; - -  // Displays as "Tool Failed". Means the build or test had internal tool -  // failure. -  TOOL_FAILED = 9; - -  // Displays as "Incomplete". Means the build or test did not complete.  This -  // might happen when a build breakage or test failure causes the tool to stop -  // trying to build anything more or run any more tests, with the default -  // bazel --nokeep_going option or the --notest_keep_going option. -  INCOMPLETE = 10; - -  // Displays as "Flaky". Means the aggregate status contains some runs that -  // were successful, and some that were not. -  FLAKY = 11; - -  // Displays as "Unknown". Means the tool uploading to the server died -  // mid-upload or does not know the state. -  UNKNOWN = 12; - -  // Displays as "Skipped". Means building and testing were skipped. -  // (E.g. Restricted to a different configuration.) -  SKIPPED = 13; -} - -// Indicates the upload status of the invocation, whether it is -// post-processing, or immutable, etc. -enum UploadStatus { -  // The implicit default enum value. Should never be set. -  UPLOAD_STATUS_UNSPECIFIED = 0; - -  // The invocation is still uploading to the ResultStore. -  UPLOADING = 1; - -  // The invocation upload is complete. The ResultStore is still post-processing -  // the invocation. -  POST_PROCESSING = 2; - -  // All post-processing is complete, and the invocation is now immutable. -  IMMUTABLE = 3; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/configuration.proto b/third_party/googleapis/google/devtools/resultstore/v2/configuration.proto deleted file mode 100644 index 9e98e64..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/configuration.proto +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/common.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "ConfigurationProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// Represents a configuration within an Invocation associated with one or more -// ConfiguredTargets. It captures the environment and other settings that -// were used. -message Configuration { -  option (google.api.resource) = { -    type: "resultstore.googleapis.com/Configuration" -    pattern: "invocations/{invocation}/configs/{config}" -  }; - -  // The resource ID components that identify the Configuration. -  message Id { -    // The Invocation ID. -    string invocation_id = 1; - -    // The Configuration ID. -    string configuration_id = 2; -  } - -  // The format of this Configuration resource name must be: -  // invocations/${INVOCATION_ID}/configs/${url_encode(CONFIG_ID)} -  // The configuration ID of "default" should be preferred for the default -  // configuration in a single-config invocation. -  string name = 1; - -  // The resource ID components that identify the Configuration. They must match -  // the resource name after proper encoding. -  Id id = 2; - -  // The aggregate status for this configuration. -  StatusAttributes status_attributes = 3; - -  // Attributes that apply only to this configuration. -  ConfigurationAttributes configuration_attributes = 5; - -  // Arbitrary name-value pairs. -  // This is implemented as a multi-map. Multiple properties are allowed with -  // the same key. Properties will be returned in lexicographical order by key. -  repeated Property properties = 6; - -  // A human-readable name for Configuration for UIs. -  // It is recommended that this name be unique. -  // If omitted, UIs should default to configuration_id. -  string display_name = 8; -} - -// Attributes that apply only to the configuration. -message ConfigurationAttributes { -  // The type of cpu. (e.g. "x86", "powerpc") -  string cpu = 1; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/configured_target.proto b/third_party/googleapis/google/devtools/resultstore/v2/configured_target.proto deleted file mode 100644 index 4700f78..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/configured_target.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/common.proto"; -import "google/devtools/resultstore/v2/file.proto"; -import "google/protobuf/duration.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "ConfiguredTargetProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// Each ConfiguredTarget represents data for a given configuration of a given -// target in a given Invocation. -// Every ConfiguredTarget should have at least one Action as a child resource -// before the invocation is finalized. Refer to the Action's documentation for -// more info on this. -message ConfiguredTarget { -  option (google.api.resource) = { -    type: "resultstore.googleapis.com/ConfiguredTarget" -    pattern: "invocations/{invocation}/targets/{target}/configuredTargets/{configured_target}" -  }; - -  // The resource ID components that identify the ConfiguredTarget. -  message Id { -    // The Invocation ID. -    string invocation_id = 1; - -    // The Target ID. -    string target_id = 2; - -    // The Configuration ID. -    string configuration_id = 3; -  } - -  // The resource name.  Its format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${url_encode(CONFIG_ID)} -  // where ${CONFIG_ID} must match the ID of an existing Configuration under -  // this Invocation. -  string name = 1; - -  // The resource ID components that identify the ConfiguredTarget. They must -  // match the resource name after proper encoding. -  Id id = 2; - -  // The aggregate status for this configuration of this target. If testing -  // was not requested, set this to the build status (e.g. BUILT or -  // FAILED_TO_BUILD). -  StatusAttributes status_attributes = 3; - -  // Captures the start time and duration of this configured target. -  Timing timing = 4; - -  // Test specific attributes for this ConfiguredTarget. -  ConfiguredTestAttributes test_attributes = 6; - -  // Arbitrary name-value pairs. -  // This is implemented as a multi-map. Multiple properties are allowed with -  // the same key. Properties will be returned in lexicographical order by key. -  repeated Property properties = 7; - -  // A list of file references for configured target level files. -  // The file IDs must be unique within this list. Duplicate file IDs will -  // result in an error. Files will be returned in lexicographical order by ID. -  repeated File files = 8; -} - -// Attributes that apply only to test actions under this configured target. -message ConfiguredTestAttributes { -  // Total number of test runs. For example, in bazel this is specified with -  // --runs_per_test. Zero if runs_per_test is not used. -  int32 total_run_count = 2; - -  // Total number of test shards. Zero if shard count was not specified. -  int32 total_shard_count = 3; - -  // How long test is allowed to run. -  google.protobuf.Duration timeout_duration = 5; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/coverage.proto b/third_party/googleapis/google/devtools/resultstore/v2/coverage.proto deleted file mode 100644 index 86087f5..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/coverage.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "CoverageProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// Describes line coverage for a file -message LineCoverage { -  // Which source lines in the file represent the start of a statement that was -  // instrumented to detect whether it was executed by the test. -  // -  // This is a bitfield where i-th bit corresponds to the i-th line. Divide line -  // number by 8 to get index into byte array. Mod line number by 8 to get bit -  // number (0 = LSB, 7 = MSB). -  // -  // A 1 denotes the line was instrumented. -  // A 0 denotes the line was not instrumented. -  bytes instrumented_lines = 1; - -  // Which of the instrumented source lines were executed by the test. Should -  // include lines that were not instrumented. -  // -  // This is a bitfield where i-th bit corresponds to the i-th line. Divide line -  // number by 8 to get index into byte array. Mod line number by 8 to get bit -  // number (0 = LSB, 7 = MSB). -  // -  // A 1 denotes the line was executed. -  // A 0 denotes the line was not executed. -  bytes executed_lines = 2; -} - -// Describes branch coverage for a file -message BranchCoverage { -  // The field branch_present denotes the lines containing at least one branch. -  // -  // This is a bitfield where i-th bit corresponds to the i-th line. Divide line -  // number by 8 to get index into byte array. Mod line number by 8 to get bit -  // number (0 = LSB, 7 = MSB). -  // -  // A 1 denotes the line contains at least one branch. -  // A 0 denotes the line contains no branches. -  bytes branch_present = 1; - -  // Contains the number of branches present, only for the lines which have the -  // corresponding bit set in branch_present, in a relative order ignoring -  // lines which do not have any branches. -  repeated int32 branches_in_line = 2; - -  // As each branch can have any one of the following three states: not -  // executed, executed but not taken, executed and taken. -  // -  // This is a bitfield where i-th bit corresponds to the i-th branch. Divide -  // branch number by 8 to get index into byte array. Mod branch number by 8 to -  // get bit number (0 = LSB, 7 = MSB). -  // -  // i-th bit of the following two byte arrays are used to denote the above -  // mentioned states. -  // -  // not executed: i-th bit of executed == 0 && i-th bit of taken == 0 -  // executed but not taken: i-th bit of executed == 1 && i-th bit of taken == 0 -  // executed and taken: i-th bit of executed == 1 && i-th bit of taken == 1 -  bytes executed = 3; - -  // Described above. -  bytes taken = 4; -} - -// Describes code coverage for a particular file under test. -message FileCoverage { -  // Path of source file within the SourceContext of this Invocation. -  string path = 1; - -  // Details of lines in a file for calculating line coverage. -  LineCoverage line_coverage = 2; - -  // Details of branches in a file for calculating branch coverage. -  BranchCoverage branch_coverage = 3; -} - -// Describes code coverage for a build or test Action. This is used to store -// baseline coverage for build Actions and test coverage for test Actions. -message ActionCoverage { -  // List of coverage info for all source files that the TestResult covers. -  repeated FileCoverage file_coverages = 2; -} - -// Describes aggregate code coverage for a collection of build or test Actions. -// A line or branch is covered if and only if it is covered in any of the build -// or test actions. -message AggregateCoverage { -  // Aggregated coverage info for all source files that the actions cover. -  repeated FileCoverage file_coverages = 1; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/coverage_summary.proto b/third_party/googleapis/google/devtools/resultstore/v2/coverage_summary.proto deleted file mode 100644 index 4068f03..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/coverage_summary.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/devtools/resultstore/v2/common.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "CoverageSummaryProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// Summary of line coverage -message LineCoverageSummary { -  // Number of lines instrumented for coverage. -  int32 instrumented_line_count = 1; - -  // Number of instrumented lines that were executed by the test. -  int32 executed_line_count = 2; -} - -// Summary of branch coverage -// A branch may be: -//  * not executed.  Counted only in total. -//  * executed but not taken.  Appears in total and executed. -//  * executed and taken.  Appears in all three fields. -message BranchCoverageSummary { -  // The number of branches present in the file. -  int32 total_branch_count = 1; - -  // The number of branches executed out of the total branches present. -  // A branch is executed when its condition is evaluated. -  // This is <= total_branch_count as not all branches are executed. -  int32 executed_branch_count = 2; - -  // The number of branches taken out of the total branches executed. -  // A branch is taken when its condition is satisfied. -  // This is <= executed_branch_count as not all executed branches are taken. -  int32 taken_branch_count = 3; -} - -// Summary of coverage in each language -message LanguageCoverageSummary { -  // This summary is for all files written in this programming language. -  Language language = 1; - -  // Summary of lines covered vs instrumented. -  LineCoverageSummary line_summary = 2; - -  // Summary of branch coverage. -  BranchCoverageSummary branch_summary = 3; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/download_metadata.proto b/third_party/googleapis/google/devtools/resultstore/v2/download_metadata.proto deleted file mode 100644 index 5d9999c..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/download_metadata.proto +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/common.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "DownloadMetadataProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// The download metadata for an invocation -message DownloadMetadata { -  option (google.api.resource) = { -    type: "resultstore.googleapis.com/DownloadMetadata" -    pattern: "invocations/{invocation}/downloadMetadata" -  }; - -  // The name of the download metadata.  Its format will be: -  // invocations/${INVOCATION_ID}/downloadMetadata -  string name = 1; - -  // Indicates the upload status of the invocation, whether it is -  // post-processing, or immutable, etc. -  UploadStatus upload_status = 2; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/file.proto b/third_party/googleapis/google/devtools/resultstore/v2/file.proto deleted file mode 100644 index 3d041c0..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/file.proto +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/protobuf/wrappers.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "FileProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// The metadata for a file or an archive file entry. -message File { -  // If known, the hash function used to compute this digest. -  enum HashType { -    // Unknown -    HASH_TYPE_UNSPECIFIED = 0; - -    // MD5 -    MD5 = 1; - -    // SHA-1 -    SHA1 = 2; - -    // SHA-256 -    SHA256 = 3; -  } - -  // The identifier of the file or archive entry. -  // User-provided, must be unique for the repeated field it is in. When an -  // Append RPC is called with a Files field populated, if a File already exists -  // with this ID, that File will be overwritten with the new File proto. -  string uid = 1; - -  // The URI of a file. -  // This could also be the URI of an entire archive. -  // Most log data doesn't need to be stored forever, so a ttl is suggested. -  // Note that if you ever move or delete the file at this URI, the link from -  // the server will be broken. -  string uri = 2; - -  // The length of the file in bytes.  Allows the filesize to be shown in the -  // UI.  Omit if file is still being written or length is not known.  This -  // could also be the length of an entire archive. -  google.protobuf.Int64Value length = 3; - -  // The content-type (aka MIME-type) of the file.  This is sent to the web -  // browser so it knows how to handle the file. (e.g. text/plain, image/jpeg, -  // text/html, etc). For zip archives, use "application/zip". -  string content_type = 4; - -  // If the above path, length, and content_type are referring to an archive, -  // and you wish to refer to a particular entry within that archive, put the -  // particular archive entry data here. -  ArchiveEntry archive_entry = 5; - -  // A url to a content display app/site for this file or archive entry. -  string content_viewer = 6; - -  // Whether to hide this file or archive entry in the UI.  Defaults to false. -  // A checkbox lets users see hidden files, but they're hidden by default. -  bool hidden = 7; - -  // A short description of what this file or archive entry contains. This -  // description should help someone viewing the list of these files to -  // understand the purpose of this file and what they would want to view it -  // for. -  string description = 8; - -  // The digest of this file in hexadecimal-like string if known. -  string digest = 9; - -  // The algorithm corresponding to the digest if known. -  HashType hash_type = 10; -} - -// Information specific to an entry in an archive. -message ArchiveEntry { -  // The relative path of the entry within the archive. -  string path = 1; - -  // The uncompressed length of the archive entry in bytes.  Allows the entry -  // size to be shown in the UI.  Omit if the length is not known. -  google.protobuf.Int64Value length = 2; - -  // The content-type (aka MIME-type) of the archive entry. (e.g. text/plain, -  // image/jpeg, text/html, etc). This is sent to the web browser so it knows -  // how to handle the entry. -  string content_type = 3; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/file_processing_error.proto b/third_party/googleapis/google/devtools/resultstore/v2/file_processing_error.proto deleted file mode 100644 index 5d0f158..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/file_processing_error.proto +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "FileProcessingErrorProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// Stores errors reading or parsing a file during post-processing. -message FileProcessingErrors { -  // The uid of the File being read or parsed. -  string file_uid = 1; - -  // What went wrong. -  repeated FileProcessingError file_processing_errors = 3; -} - -// Stores an error reading or parsing a file during post-processing. -message FileProcessingError { -  // The type of error that occurred. -  FileProcessingErrorType type = 1; - -  // Error message describing the problem. -  string message = 2; -} - -// Errors in file post-processing are categorized using this enum. -enum FileProcessingErrorType { -  // Type unspecified or not listed here. -  FILE_PROCESSING_ERROR_TYPE_UNSPECIFIED = 0; - -  // A read error occurred trying to read the file. -  GENERIC_READ_ERROR = 1; - -  // There was an error trying to parse the file. -  GENERIC_PARSE_ERROR = 2; - -  // File is exceeds size limit. -  FILE_TOO_LARGE = 3; - -  // The result of parsing the file exceeded size limit. -  OUTPUT_TOO_LARGE = 4; - -  // Read access to the file was denied by file system. -  ACCESS_DENIED = 5; - -  // Deadline exceeded trying to read the file. -  DEADLINE_EXCEEDED = 6; - -  // File not found. -  NOT_FOUND = 7; - -  // File is empty but was expected to have content. -  FILE_EMPTY = 8; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/file_set.proto b/third_party/googleapis/google/devtools/resultstore/v2/file_set.proto deleted file mode 100644 index e67843d..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/file_set.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/file.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "FileSetProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// This resource represents a set of Files and other (nested) FileSets. -// A FileSet is a node in the graph, and the file_sets field represents the -// outgoing edges. A resource may reference various nodes in the graph to -// represent the transitive closure of all files from those nodes. -// The FileSets must form a directed acyclic graph. The Upload API is unable to -// enforce that the graph is acyclic at write time, and if cycles are written, -// it may cause issues at read time. -// -// A FileSet may be referenced by other resources in conjunction with Files. -// -// Clients should prefer using Files directly under resources. Clients should -// not use FileSets unless their usecase requires a directed acyclic graph of -// Files. -message FileSet { -  option (google.api.resource) = { -    type: "resultstore.googleapis.com/FileSet" -    pattern: "invocations/{invocation}/fileSets/{file_set}" -  }; - -  // The resource ID components that identify the FileSet. -  message Id { -    // The Invocation ID. -    string invocation_id = 1; - -    // The FileSet ID. -    string file_set_id = 2; -  } - -  // The format of this FileSet resource name must be: -  // invocations/${INVOCATION_ID}/fileSets/${url_encode(FILE_SET_ID)} -  string name = 1; - -  // The resource ID components that identify the file set. They must match the -  // resource name after proper encoding. -  Id id = 2; - -  // List of names of other file sets that are referenced from this one. -  // Each name must point to a file set under the same invocation. The name -  // format must be: invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID} -  repeated string file_sets = 3; - -  // Files that are contained within this file set. -  // The uid field in the file should be unique for the Invocation. -  repeated File files = 4; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/invocation.proto b/third_party/googleapis/google/devtools/resultstore/v2/invocation.proto deleted file mode 100644 index 7fcaab2..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/invocation.proto +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/common.proto"; -import "google/devtools/resultstore/v2/coverage.proto"; -import "google/devtools/resultstore/v2/coverage_summary.proto"; -import "google/devtools/resultstore/v2/file.proto"; -import "google/devtools/resultstore/v2/file_processing_error.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "InvocationProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// An Invocation typically represents the result of running a tool. Each has a -// unique ID, typically generated by the server. Target resources under each -// Invocation contain the bulk of the data. -message Invocation { -  option (google.api.resource) = { -    type: "resultstore.googleapis.com/Invocation" -    pattern: "invocations/{invocation}" -  }; - -  // The resource ID components that identify the Invocation. -  message Id { -    // The Invocation ID. -    string invocation_id = 1; -  } - -  // The resource name.  Its format must be: -  // invocations/${INVOCATION_ID} -  string name = 1; - -  // The resource ID components that identify the Invocation. They must match -  // the resource name after proper encoding. -  Id id = 2; - -  // The aggregate status of the invocation. -  StatusAttributes status_attributes = 3; - -  // When this invocation started and its duration. -  Timing timing = 4; - -  // Attributes of this invocation. -  InvocationAttributes invocation_attributes = 5; - -  // The workspace the tool was run in. -  WorkspaceInfo workspace_info = 6; - -  // Arbitrary name-value pairs. -  // This is implemented as a multi-map. Multiple properties are allowed with -  // the same key. Properties will be returned in lexicographical order by key. -  repeated Property properties = 7; - -  // A list of file references for invocation level files. -  // The file IDs must be unique within this list. Duplicate file IDs will -  // result in an error. Files will be returned in lexicographical order by ID. -  // Use this field to specify build logs, and other invocation level logs. -  // -  // Files with the following reserved file IDs cause specific post-processing -  // or have special handling. These files must be immediately available to -  // ResultStore for processing when the reference is uploaded. -  // -  // build.log: The primary log for the Invocation. -  // coverage_report.lcov: Aggregate coverage report for the invocation. -  repeated File files = 8; - -  // Summary of aggregate coverage across all Actions in this Invocation. -  // If missing, this data will be populated by the server from the -  // coverage_report.lcov file or the union of all ActionCoverages under this -  // invocation (in that order). -  repeated LanguageCoverageSummary coverage_summaries = 9; - -  // Aggregate code coverage for all build and test Actions within this -  // Invocation. If missing, this data will be populated by the server -  // from the coverage_report.lcov file or the union of all ActionCoverages -  // under this invocation (in that order). -  AggregateCoverage aggregate_coverage = 10; - -  // NOT IMPLEMENTED. -  // ResultStore will read and parse Files with reserved IDs listed above. Read -  // and parse errors for all these Files are reported here. -  // This is implemented as a map, with one FileProcessingErrors for each file. -  // Typically produced when parsing Files, but may also be provided directly -  // by clients. -  repeated FileProcessingErrors file_processing_errors = 11; -} - -// If known, represents the state of the user/build-system workspace. -message WorkspaceContext { - -} - -// Describes the workspace under which the tool was invoked, this includes -// information that was fed into the command, the source code referenced, and -// the tool itself. -message WorkspaceInfo { -  // Data about the workspace that might be useful for debugging. -  WorkspaceContext workspace_context = 1; - -  // Where the tool was invoked -  string hostname = 3; - -  // The client's working directory where the build/test was run from. -  string working_directory = 4; - -  // Tools should set tool_tag to the name of the tool or use case. -  string tool_tag = 5; - -  // The command lines invoked. The first command line is the one typed by the -  // user, then each one after that should be an expansion of the previous -  // command line. -  repeated CommandLine command_lines = 7; -} - -// The command and arguments that produced this Invocation. -message CommandLine { -  // A label describing this command line. -  string label = 1; - -  // The command-line tool that is run: argv[0]. -  string tool = 2; - -  // The arguments to the above tool: argv[1]...argv[N]. -  repeated string args = 3; - -  // The subcommand that was run with the tool, usually "build" or "test". -  // For example, in the Bazel command "bazel build //foo", this would be set -  // to "build". Omit if the tool doesn't accept a subcommand.  This is must -  // be a reference to one of values in args. -  string command = 4; -} - -// Attributes that apply to all invocations. -message InvocationAttributes { -  // Immutable. The Cloud Project that owns this invocation (this is different than the -  // Consumer Cloud Project that calls this API). -  // This must be set in the CreateInvocation call, and can't be changed. -  // As input, callers can set this field to a project id (string) or a -  // stringified int64 project number. As output, the API populates this field -  // with the stringified int64 project number (per -  // https://google.aip.dev/cloud/2510). -  string project_id = 1 [(google.api.field_behavior) = IMMUTABLE]; - -  // The list of users in the command chain.  The first user in this sequence -  // is the one who instigated the first command in the chain. For example, -  // this might contain just the user that ran a Bazel command, or a robot -  // that tested a change as part of a CI system. It could also contain the user -  // that manually triggered a CI test, then the robot that ran the test. -  repeated string users = 2; - -  // Labels to categorize this invocation. -  // This is implemented as a set. All labels will be unique. Any duplicate -  // labels added will be ignored. Labels will be returned in lexicographical -  // order. Labels should be a list of words describing the Invocation. Labels -  // should be short, easy to read, and you shouldn't have more than a handful. -  // Labels should not be used for unique properties such as unique IDs. Use -  // properties in cases that don't meet these conditions. -  repeated string labels = 3; - -  // This field describes the overall context or purpose of this invocation. -  // It will be used in the UI to give users more information about -  // how or why this invocation was run. -  string description = 4; - -  // If this Invocation was run in the context of a larger Continuous -  // Integration build or other automated system, this field may contain more -  // information about the greater context. -  repeated InvocationContext invocation_contexts = 6; - -  // Exit code of the process that ran the invocation. A non-zero value -  // means failure. For example, the exit code of a "bazel test" command. -  int32 exit_code = 7; -} - -// Describes the invocation context which includes a display name and URL. -message InvocationContext { -  // A human readable name for the context under which this Invocation was run. -  string display_name = 1; - -  // A URL pointing to a UI containing more information -  string url = 2; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/resultstore_download.proto b/third_party/googleapis/google/devtools/resultstore/v2/resultstore_download.proto deleted file mode 100644 index e7bdfb9..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/resultstore_download.proto +++ /dev/null @@ -1,904 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/action.proto"; -import "google/devtools/resultstore/v2/configuration.proto"; -import "google/devtools/resultstore/v2/configured_target.proto"; -import "google/devtools/resultstore/v2/download_metadata.proto"; -import "google/devtools/resultstore/v2/file_set.proto"; -import "google/devtools/resultstore/v2/invocation.proto"; -import "google/devtools/resultstore/v2/target.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "ResultStoreDownloadProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// This is the interface used to download information from the ResultStore -// database. -// -// Most APIs require setting a response FieldMask via the 'fields' URL query -// parameter or the X-Goog-FieldMask HTTP/gRPC header. -service ResultStoreDownload { -  option (google.api.default_host) = "resultstore.googleapis.com"; -  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - -  // Retrieves the invocation with the given name. -  // -  // An error will be reported in the following cases: -  // - If the invocation is not found. -  // - If the given invocation name is badly formatted. -  // - If no field mask was given. -  rpc GetInvocation(GetInvocationRequest) returns (Invocation) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Searches for invocations matching the given query parameters. Results will -  // be ordered by timing.start_time with most recent first, but total ordering -  // of results is not guaranteed when difference in timestamps is very small. -  // Results may be stale. Results may be omitted. -  // -  // -  // An error will be reported in the following cases: -  // - If a query string is not provided -  // - If no field mask was given. -  rpc SearchInvocations(SearchInvocationsRequest) returns (SearchInvocationsResponse) { -    option (google.api.http) = { -      get: "/v2/invocations:search" -    }; -  } - -  // Exports the invocation and its child resources with a given name. -  // -  // An error will be reported in the following cases: -  // - If the invocation is not found. -  // - If the given invocation name is badly formatted. -  // - If no field mask was given. -  rpc ExportInvocation(ExportInvocationRequest) returns (ExportInvocationResponse) { -    option (google.api.http) = { -      post: "/v2/{name=invocations/*}:export" -      body: "*" -    }; -  } - -  // Retrieves the metadata for an invocation with the given name. -  // -  // An error will be reported in the following cases: -  // - If the invocation is not found. -  // - If the given invocation name is badly formatted. -  rpc GetInvocationDownloadMetadata(GetInvocationDownloadMetadataRequest) returns (DownloadMetadata) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*/downloadMetadata}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Retrieves the configuration with the given name. -  // -  // An error will be reported in the following cases: -  // - If the configuration or its parent invocation is not found. -  // - If the given configuration name is badly formatted. -  // - If no field mask was given. -  rpc GetConfiguration(GetConfigurationRequest) returns (Configuration) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*/configs/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Retrieves all configurations for a parent invocation. -  // This might be limited by user or server, -  // in which case a continuation token is provided. -  // The order in which results are returned is undefined, but stable. -  // -  // An error will be reported in the following cases: -  // - If the parent invocation is not found. -  // - If the given parent invocation name is badly formatted. -  // - If no field mask was given. -  rpc ListConfigurations(ListConfigurationsRequest) returns (ListConfigurationsResponse) { -    option (google.api.http) = { -      get: "/v2/{parent=invocations/*}/configs" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Retrieves the target with the given name. -  // -  // An error will be reported in the following cases: -  // - If the target or its parent invocation is not found. -  // - If the given target name is badly formatted. -  // - If no field mask was given. -  rpc GetTarget(GetTargetRequest) returns (Target) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*/targets/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Retrieves all targets for a parent invocation.  This might be limited by -  // user or server, in which case a continuation token is provided. -  // The order in which results are returned is undefined, but stable. -  // -  // An error will be reported in the following cases: -  // - If the parent is not found. -  // - If the given parent name is badly formatted. -  // - If no field mask was given. -  rpc ListTargets(ListTargetsRequest) returns (ListTargetsResponse) { -    option (google.api.http) = { -      get: "/v2/{parent=invocations/*}/targets" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Retrieves the configured target with the given name. -  // -  // An error will be reported in the following cases: -  // - If the configured target is not found. -  // - If the given name is badly formatted. -  // - If no field mask was given. -  rpc GetConfiguredTarget(GetConfiguredTargetRequest) returns (ConfiguredTarget) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*/targets/*/configuredTargets/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Retrieves all configured targets for a parent invocation/target. -  // This might be limited by user or server, in which case a continuation -  // token is provided. Supports '-' for targetId meaning all targets. -  // The order in which results are returned is undefined, but stable and -  // consistent with ListTargets and ListConfigurations. -  // -  // An error will be reported in the following cases: -  // - If the parent is not found. -  // - If the given parent name is badly formatted. -  // - If no field mask was given. -  rpc ListConfiguredTargets(ListConfiguredTargetsRequest) returns (ListConfiguredTargetsResponse) { -    option (google.api.http) = { -      get: "/v2/{parent=invocations/*/targets/*}/configuredTargets" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Searches for ConfiguredTargets matching the given query parameters. Results -  // will be ordered by timing.start_time with most recent first, but total -  // ordering of results is not guaranteed when difference in timestamps is -  // very small. Results may be stale. Results may be omitted. -  // -  // -  // Field masks are supported for only these fields and their subfields: -  // - configured_targets.name -  // - configured_targets.id -  // - configured_targets.status_attributes -  // - configured_targets.timing -  // - next_page_token -  // -  // An error will be reported in the following cases: -  // - If a query string is not provided -  // - If no field mask was given. -  rpc SearchConfiguredTargets(SearchConfiguredTargetsRequest) returns (SearchConfiguredTargetsResponse) { -    option (google.api.http) = { -      get: "/v2/{parent=invocations/*/targets/*}/configuredTargets:search" -    }; -  } - -  // Retrieves the action with the given name. -  // -  // An error will be reported in the following cases: -  // - If the action is not found. -  // - If the given name is badly formatted. -  // - If no field mask was given. -  rpc GetAction(GetActionRequest) returns (Action) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*/targets/*/configuredTargets/*/actions/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Retrieves all actions for a parent invocation/target/configuration. -  // This might be limited by user or server, in which case a continuation -  // token is provided. Supports '-' for configurationId to mean all -  // actions for all configurations for a target, or '-' for targetId and -  // configurationId to mean all actions for all configurations and all targets. -  // Does not support targetId '-' with a specified configuration. -  // The order in which results are returned is undefined, but stable and -  // consistent with ListConfiguredTargets. -  // -  // An error will be reported in the following cases: -  // - If the parent is not found. -  // - If the given parent name is badly formatted. -  // - If no field mask was given. -  rpc ListActions(ListActionsRequest) returns (ListActionsResponse) { -    option (google.api.http) = { -      get: "/v2/{parent=invocations/*/targets/*/configuredTargets/*}/actions" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Retrieves a list of actions for a parent invocation or multiple parents -  // target/configuration. This might be limited by user or server, in which -  // case a continuation token is provided. The order in which results are -  // returned is undefined, but stable and consistent with -  // ListConfiguredTargets. -  // -  // An error will be reported in the following cases: -  // - If the given parent name is badly formatted. -  // - If no field mask was given. -  rpc BatchListActions(BatchListActionsRequest) returns (BatchListActionsResponse) { -    option (google.api.http) = { -      get: "/v2/{parent=invocations/*}/actions:batchList" -    }; -  } - -  // Retrieves the file set with the given name. -  // -  // An error will be reported in the following cases: -  // - If the file set or its parent invocation is not found. -  // - If the given file set name is badly formatted. -  // - If no field mask was given. -  rpc GetFileSet(GetFileSetRequest) returns (FileSet) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*/fileSets/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Retrieves all file sets for a parent invocation. -  // This might be limited by user or server, -  // in which case a continuation token is provided. -  // The order in which results are returned is undefined, but stable. -  // -  // An error will be reported in the following cases: -  // - If the parent invocation is not found. -  // - If the given parent invocation name is badly formatted. -  // - If no field mask was given. -  rpc ListFileSets(ListFileSetsRequest) returns (ListFileSetsResponse) { -    option (google.api.http) = { -      get: "/v2/{parent=invocations/*}/fileSets" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Returns the transitive closure of FileSets. This might be limited by user -  // or server, in which case a continuation token is provided. -  // The order in which results are returned is undefined, and unstable. -  // -  // An error will be reported in the following cases: -  // - If page_token is too large to continue the calculation. -  // - If the resource is not found. -  // - If the given resource name is badly formatted. -  // - If no field mask was given. -  rpc TraverseFileSets(TraverseFileSetsRequest) returns (TraverseFileSetsResponse) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*/fileSets/*}:traverseFileSets" -      additional_bindings { -        get: "/v2/{name=invocations/*/targets/*/configuredTargets/*/actions/*}:traverseFileSets" -      } -    }; -  } -} - -// Request passed into GetInvocation -message GetInvocationRequest { -  // Required. The name of the invocation to retrieve. It must match this format: -  // invocations/${INVOCATION_ID} -  // where INVOCATION_ID must be an RFC 4122-compliant UUID. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; -} - -// Request passed into SearchInvocations -message SearchInvocationsRequest { -  // The maximum number of items to return. Zero means all, but may be capped by -  // the server. -  int32 page_size = 1; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous Search request, if -    // any. -    string page_token = 2; - -    // Absolute number of results to skip. May be rejected if too high. -    int64 offset = 3; -  } - -  // A filtering query string. -  // -  // Only a limited number of fields and operators are supported. Not every -  // field supports every operator. -  // -  // Fields that support equals ("=") restrictions: -  // -  // name -  // status_attributes.status -  // workspace_info.hostname -  // -  // Fields that support contains (":") restrictions: -  // -  // invocation_attributes.users -  // invocation_attributes.labels -  // -  // Fields that support comparison ("<", "<=", ">", ">=") restrictions; -  // -  // timing.start_time -  // -  // Supported custom function global restrictions: -  // -  // propertyEquals("key", "value") -  string query = 4; - -  // The project id to search under. -  string project_id = 5; - -  // If true, all equals or contains restrictions on string fields in query will -  // require exact match. Otherwise, a string field restriction may ignore case -  // and punctuation. -  bool exact_match = 7; -} - -// Response from calling SearchInvocations -message SearchInvocationsResponse { -  // Invocations matching the search, possibly capped at request.page_size or a -  // server limit. -  repeated Invocation invocations = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results. -  string next_page_token = 2; -} - -// Request passed into ExportInvocationRequest -message ExportInvocationRequest { -  // Required. The name of the invocation to retrieve. It must match this format: -  // invocations/${INVOCATION_ID} -  // where INVOCATION_ID must be an RFC 4122-compliant UUID. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // The maximum number of items to return. Zero means all, but may be capped by -  // the server. -  int32 page_size = 2; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous export request, if -    // any. -    string page_token = 3; - -    // Absolute number of results to skip. -    int64 offset = 4; -  } -} - -// Response from calling ExportInvocationResponse. -// Possibly capped at request.page_size or a server limit. -message ExportInvocationResponse { -  // Parent Invocation resource. -  Invocation invocation = 1; - -  // Targets matching the request invocation. -  repeated Target targets = 2; - -  // Configurations matching the request invocation. -  repeated Configuration configurations = 3; - -  // ConfiguredTargets matching the request invocation. -  repeated ConfiguredTarget configured_targets = 4; - -  // Actions matching the request invocation. -  repeated Action actions = 5; - -  // FileSets matching the request invocation. -  repeated FileSet file_sets = 6; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results in the list. -  string next_page_token = 7; -} - -// Request passed into GetInvocationDownloadMetadata -message GetInvocationDownloadMetadataRequest { -  // Required. The name of the download metadata to retrieve. It must match this format: -  // invocations/${INVOCATION_ID}/downloadMetadata -  // where INVOCATION_ID must be an RFC 4122-compliant UUID. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/DownloadMetadata" -    } -  ]; -} - -// Request passed into GetConfiguration -message GetConfigurationRequest { -  // Required. The name of the configuration to retrieve. It must match this format: -  // invocations/${INVOCATION_ID}/configs/${CONFIGURATION_ID} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Configuration" -    } -  ]; -} - -// Request passed into ListConfigurations -message ListConfigurationsRequest { -  // Required. The invocation name of the configurations to retrieve. -  // It must match this format: invocations/${INVOCATION_ID} -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // The maximum number of items to return. -  // Zero means all, but may be capped by the server. -  int32 page_size = 2; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous List request, if any. -    string page_token = 3; - -    // Absolute number of results to skip. -    int64 offset = 4; -  } - -  // A filter to return only resources that match it. -  // Any fields used in the filter must be also specified in the field mask. -  // May cause pages with 0 results and a next_page_token to be returned. -  string filter = 5; -} - -// Response from calling ListConfigurations -message ListConfigurationsResponse { -  // Configurations matching the request invocation, -  // possibly capped at request.page_size or a server limit. -  repeated Configuration configurations = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results in the list. -  string next_page_token = 2; -} - -// Request passed into GetTarget -message GetTargetRequest { -  // Required. The name of the target to retrieve. It must match this format: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Target" -    } -  ]; -} - -// Request passed into ListTargets -message ListTargetsRequest { -  // Required. The invocation name of the targets to retrieve. It must match this format: -  // invocations/${INVOCATION_ID} -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // The maximum number of items to return. -  // Zero means all, but may be capped by the server. -  int32 page_size = 2; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous List request, if any. -    string page_token = 3; - -    // Absolute number of results to skip. -    int64 offset = 4; -  } - -  // A filter to return only resources that match it. -  // Any fields used in the filter must be also specified in the field mask. -  // May cause pages with 0 results and a next_page_token to be returned. -  string filter = 5; -} - -// Response from calling ListTargetsResponse -message ListTargetsResponse { -  // Targets matching the request invocation, -  // possibly capped at request.page_size or a server limit. -  repeated Target targets = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results in the list. -  string next_page_token = 2; -} - -// Request passed into GetConfiguredTarget -message GetConfiguredTargetRequest { -  // Required. The name of the configured target to retrieve. It must match this format: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIGURATION_ID} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/ConfiguredTarget" -    } -  ]; -} - -// Request passed into ListConfiguredTargets -message ListConfiguredTargetsRequest { -  // Required. The invocation and target name of the configured targets to retrieve. -  // It must match this format: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -  // Supports '-' for ${TARGET_ID} meaning all targets. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Target" -    } -  ]; - -  // The maximum number of items to return. -  // Zero means all, but may be capped by the server. -  int32 page_size = 2; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous List request, if any. -    string page_token = 3; - -    // Absolute number of results to skip. -    int64 offset = 4; -  } - -  // A filter to return only resources that match it. -  // Any fields used in the filter must be also specified in the field mask. -  // May cause pages with 0 results and a next_page_token to be returned. -  string filter = 5; -} - -// Response from calling ListConfiguredTargets -message ListConfiguredTargetsResponse { -  // ConfiguredTargets matching the request, -  // possibly capped at request.page_size or a server limit. -  repeated ConfiguredTarget configured_targets = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results in the list. -  string next_page_token = 2; -} - -// Request passed into SearchConfiguredTargets -message SearchConfiguredTargetsRequest { -  // Required. Must be set to invocations/-/targets/- -  // This only supports searching all ConfiguredTargets across all Invocations. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Target" -    } -  ]; - -  // The maximum number of items to return. Zero means all, but may be capped by -  // the server. -  int32 page_size = 2; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous Search request, if -    // any. -    string page_token = 3; - -    // Absolute number of results to skip. May be rejected if too high. -    int64 offset = 4; -  } - -  // A filtering query string. -  // -  // Only a limited number of fields and operators are supported. Not every -  // field supports every operator. Access to parent resources is provided -  // via synthetic fields ‘invocation’, ‘configuration’, and ‘target’. -  // -  // Any search must contain an equals restriction on id.target_id. -  // -  // Fields that support equals ("=") restrictions: -  // -  // id.target_id -  // status_attributes.status -  // -  // target.target_attributes.type -  // target.target_attributes.language -  // target.test_attributes.size -  // -  // configuration.configuration_attributes.cpu -  // -  // invocation.workspace_info.hostname -  // -  // Fields that support contains (":") restrictions: -  // -  // target.target_attributes.tags -  // -  // invocation.invocation_attributes.users -  // invocation.invocation_attributes.labels -  // -  // Fields that support comparison ("<", "<=", ">", ">=") restrictions; -  // -  // timing.start_time -  // -  // Supported custom function global restrictions: -  // -  // invocationPropertyEquals("key", "value") -  // targetPropertyEquals("key", "value") -  // configurationPropertyEquals("key", "value") -  // configuredTargetPropertyEquals("key", "value") -  string query = 5; - -  // The project id to search under. -  string project_id = 6; - -  // If true, all equals or contains restrictions on string fields in query will -  // require exact match. Otherwise, a string field restriction may ignore case -  // and punctuation. -  bool exact_match = 7; -} - -// Response from calling SearchConfiguredTargets -message SearchConfiguredTargetsResponse { -  // ConfiguredTargets matching the search, possibly capped at request.page_size -  // or a server limit. -  repeated ConfiguredTarget configured_targets = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results. -  string next_page_token = 2; -} - -// Request passed into GetAction -message GetActionRequest { -  // Required. The name of the action to retrieve. It must match this format: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIGURATION_ID}/actions/${ACTION_ID} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Action" -    } -  ]; -} - -// Request passed into ListActions -message ListActionsRequest { -  // Required. The invocation, target, and configuration name of the action to retrieve. -  // It must match this format: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIGURATION_ID} -  // Supports '-' for ${CONFIGURATION_ID} to mean all Actions for all -  // Configurations for a Target, or '-' for ${TARGET_ID} and -  // ${CONFIGURATION_ID} to mean all Actions for all Configurations and all -  // Targets. Does not support ${TARGET_ID} '-' with a specified configuration. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/ConfiguredTarget" -    } -  ]; - -  // The maximum number of items to return. -  // Zero means all, but may be capped by the server. -  int32 page_size = 2; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous List request, if any. -    string page_token = 3; - -    // Absolute number of results to skip. -    int64 offset = 4; -  } - -  // A filter to return only resources that match it. -  // Any fields used in the filter must be also specified in the field mask. -  // May cause pages with 0 results and a next_page_token to be returned. -  string filter = 5; -} - -// Response from calling ListActions -message ListActionsResponse { -  // Actions matching the request, -  // possibly capped at request.page_size or a server limit. -  repeated Action actions = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results in the list. -  string next_page_token = 2; -} - -// Request passed into BatchListActionsRequest -message BatchListActionsRequest { -  // Required. The invocation name of the actions to retrieve. It must match this format: -  // invocations/${INVOCATION_ID} -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // The names of the configured targets to retrieve. -  // It must match this format: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIGURATION_ID} -  repeated string configured_targets = 2; - -  // The maximum number of items to return. -  // Zero means all, but may be capped by the server. -  int32 page_size = 3; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous List request, if any. -    // Page tokens will become larger with every page returned, and if a page -    // token becomes too large, it will no longer be possible to continue to -    // calculate the transitive dependencies. The API will return a 400 -    // Bad request (HTTPS), or a INVALID_ARGUMENT (gRPC ) when -    // this happens. -    string page_token = 4; - -    // Absolute number of results to skip. -    // Not yet implemented. 0 for default. -    int64 offset = 5; -  } - -  // A filter to return only resources that match it. -  // Any fields used in the filter must be also specified in the field mask. -  // May cause pages with 0 results and a next_page_token to be returned. -  string filter = 6; -} - -// Response from calling BatchListActionsResponse -message BatchListActionsResponse { -  // Actions matching the request, -  // possibly capped at request.page_size or a server limit. -  repeated Action actions = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results in the list. -  string next_page_token = 2; - -  // Not found configured target names. -  repeated string not_found = 3; -} - -// Request passed into GetFileSet -message GetFileSetRequest { -  // Required. The name of the file set to retrieve. It must match this format: -  // invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/FileSet" -    } -  ]; -} - -// Request passed into ListFileSets -message ListFileSetsRequest { -  // Required. The invocation name of the file sets to retrieve. -  // It must match this format: invocations/${INVOCATION_ID} -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // The maximum number of items to return. -  // Zero means all, but may be capped by the server. -  int32 page_size = 2; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous List request, if any. -    string page_token = 3; - -    // Absolute number of results to skip. -    int64 offset = 4; -  } - -  // A filter to return only resources that match it. -  // Any fields used in the filter must be also specified in the field mask. -  // May cause pages with 0 results and a next_page_token to be returned. -  string filter = 5; -} - -// Response from calling ListFileSets -message ListFileSetsResponse { -  // File sets matching the request, -  // possibly capped at request.page_size or a server limit. -  repeated FileSet file_sets = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results in the list. -  string next_page_token = 2; -} - -// Request passed into TraverseFileSets -message TraverseFileSetsRequest { -  // Required. The name of the resource to traverse. -  // It must match one of the following formats: -  // -  // invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID} -  // This returns the transitive closure of FileSets referenced by the given -  // FileSet, including itself. -  // -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIGURATION_ID}/actions/${ACTION_ID} -  // This returns the transitive closure of FileSets referenced by the given -  // Action. If ${ACTION_ID} is "-", this returns the transitive closure of -  // FileSets referenced by all Actions under the given ConfiguredTarget. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "*" -    } -  ]; - -  // The maximum number of items to return. -  // Zero means all, but may be capped by the server. -  int32 page_size = 2; - -  // Options for pagination. -  oneof page_start { -    // The next_page_token value returned from a previous List request, if any. -    // Page tokens will become larger with every page returned, and if a page -    // token becomes too large, it will no longer be possible to continue to -    // calculate the transitive dependencies. The API will return a 400 -    // Bad request (HTTPS), or a INVALID_ARGUMENT (gRPC ) when -    // this happens. -    string page_token = 3; - -    // Absolute number of results to skip. -    // Not yet implemented. 0 for default. -    int64 offset = 4; -  } -} - -// Response from calling TraverseFileSets -message TraverseFileSetsResponse { -  // File sets matching the request. -  // The order in which results are returned is undefined, but stable. -  repeated FileSet file_sets = 1; - -  // Token to retrieve the next page of results, or empty if there are no -  // more results in the list. -  string next_page_token = 2; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/resultstore_file_download.proto b/third_party/googleapis/google/devtools/resultstore/v2/resultstore_file_download.proto deleted file mode 100644 index 3ab027a..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/resultstore_file_download.proto +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "ResultStoreFileDownloadProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// This API allows download of File messages referenced in -// ResultStore resources. -service ResultStoreFileDownload { -  option (google.api.default_host) = "resultstore.googleapis.com"; -  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - -  // Retrieves the File with the given uri. -  // returns a stream of bytes to be stitched together in order. -  // -  // An error will be reported in the following cases: -  // - If the File is not found. -  // - If the given File uri is badly formatted. -  rpc GetFile(GetFileRequest) returns (stream GetFileResponse) { -    option (google.api.http) = { -      get: "/v2/{uri=file/*}" -    }; -  } - -  // Retrieves the tail of a File with the given uri. -  // -  // An error will be reported in the following cases: -  // - If the File is not found. -  // - If the given File uri is badly formatted. -  rpc GetFileTail(GetFileTailRequest) returns (GetFileTailResponse) { -    option (google.api.http) = { -      get: "/v2/{uri=file/tail/*}" -    }; -  } -} - -// Request object for GetFile -message GetFileRequest { -  // This corresponds to the uri field in the File message. -  string uri = 1; - -  // The offset for the first byte to return in the read, relative to the start -  // of the resource. -  // -  // A `read_offset` that is negative or greater than the size of the resource -  // will cause an `OUT_OF_RANGE` error. -  int64 read_offset = 2; - -  // The maximum number of `data` bytes the server is allowed to return in the -  // sum of all `ReadResponse` messages. A `read_limit` of zero indicates that -  // there is no limit, and a negative `read_limit` will cause an error. -  // -  // If the stream returns fewer bytes than allowed by the `read_limit` and no -  // error occurred, the stream includes all data from the `read_offset` to the -  // end of the resource. -  int64 read_limit = 3; - -  // Only applies if the referenced file is a known archive type (ar, jar, zip) -  // The above read_offset and read_limit fields are applied to this entry. -  // If this file is not an archive, INVALID_ARGUMENT is thrown. -  string archive_entry = 4; -} - -// Response object for GetFile -message GetFileResponse { -  // The file data. -  bytes data = 1; -} - -// Request object for GetFileTail -message GetFileTailRequest { -  // This corresponds to the uri field in the File message. -  string uri = 1; - -  // The offset for the first byte to return in the read, relative to the end -  // of the resource. -  // -  // A `read_offset` that is negative or greater than the size of the resource -  // will cause an `OUT_OF_RANGE` error. -  int64 read_offset = 2; - -  // The maximum number of `data` bytes the server is allowed to return. The -  // server will return bytes starting from the tail of the file. -  // -  // A `read_limit` of zero indicates that there is no limit, and a negative -  // `read_limit` will cause an error. -  int64 read_limit = 3; - -  // Only applies if the referenced file is a known archive type (ar, jar, zip) -  // The above read_offset and read_limit fields are applied to this entry. -  // If this file is not an archive, INVALID_ARGUMENT is thrown. -  string archive_entry = 4; -} - -// Response object for GetFileTail -message GetFileTailResponse { -  // The file data, encoded with UTF-8. -  bytes data = 1; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/resultstore_upload.proto b/third_party/googleapis/google/devtools/resultstore/v2/resultstore_upload.proto deleted file mode 100644 index 00c478a..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/resultstore_upload.proto +++ /dev/null @@ -1,1276 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/action.proto"; -import "google/devtools/resultstore/v2/configuration.proto"; -import "google/devtools/resultstore/v2/configured_target.proto"; -import "google/devtools/resultstore/v2/file_set.proto"; -import "google/devtools/resultstore/v2/invocation.proto"; -import "google/devtools/resultstore/v2/target.proto"; -import "google/devtools/resultstore/v2/upload_metadata.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "ResultStoreUploadProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// This is the interface used to upload information to the ResultStore database, -// to update that information as necessary, and to make it immutable at the end. -// -// This interface intentionally does not support user read-modify-write -// operations. They may corrupt data, and are too expensive. For the same -// reason, all upload RPCs will return no resource fields except name and ID. An -// uploader should hold as little state as possible in memory to avoid running -// out of memory. -service ResultStoreUpload { -  option (google.api.default_host) = "resultstore.googleapis.com"; -  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - -  // Creates the given invocation. -  // -  // This is not an implicitly idempotent API, so a request id is required to -  // make it idempotent. -  // -  // Returns an empty Invocation proto with only the name and ID fields -  // populated. -  // -  // An error will be reported in the following cases: -  // - If an invocation with the same ID already exists. -  rpc CreateInvocation(CreateInvocationRequest) returns (Invocation) { -    option (google.api.http) = { -      post: "/v2/invocations" -      body: "invocation" -    }; -    option (google.api.method_signature) = "request_id,invocation,invocation_id,authorization_token"; -  } - -  // Applies a standard update to the invocation identified by the given proto's -  // name.  For all types of fields (primitive, message, or repeated), replaces -  // them with the given proto fields if they are under the given field mask -  // paths.  Fields that match the mask but aren't populated in the given -  // invocation are cleared. This is an implicitly idempotent API. -  // -  // Returns an empty Invocation proto with only the name and ID fields -  // populated. -  // -  // An error will be reported in the following cases: -  // - If the invocation does not exist. -  // - If the invocation is finalized. -  // - If no field mask was given. -  rpc UpdateInvocation(UpdateInvocationRequest) returns (Invocation) { -    option (google.api.http) = { -      patch: "/v2/{invocation.name=invocations/*}" -      body: "invocation" -    }; -    option (google.api.method_signature) = "invocation,update_mask,authorization_token"; -  } - -  // Applies a merge update to the invocation identified by the given proto's -  // name.  For primitive and message fields, replaces them with the ones in -  // the given proto if they are covered under the field mask paths.  For -  // repeated fields, merges to them with the given ones if they are covered -  // under the field mask paths. This is not an implicitly idempotent API, so a -  // request id is required to make it idempotent. -  // -  // Returns an empty Invocation proto with only the name and ID fields -  // populated. -  // -  // -  // An error will be reported in the following cases: -  // - If the invocation does not exist. -  // - If the invocation is finalized. -  // - If no field mask was given. -  rpc MergeInvocation(MergeInvocationRequest) returns (Invocation) { -    option (google.api.http) = { -      post: "/v2/{invocation.name=invocations/*}:merge" -      body: "*" -    }; -  } - -  // Touches the invocation identified by the given proto's name. -  // -  // This is useful when you need to notify ResultStore that you haven't -  // abandoned the upload, since abandoned uploads will be automatically -  // finalized after a set period. -  // -  // An error will be reported in the following cases: -  // - If the invocation does not exist. -  // - If the invocation is finalized. -  rpc TouchInvocation(TouchInvocationRequest) returns (TouchInvocationResponse) { -    option (google.api.http) = { -      post: "/v2/{name=invocations/*}:touch" -      body: "*" -    }; -  } - -  // Declares the invocation with the given name as finalized and immutable by -  // the user. It may still be mutated by post-processing. This is an implicitly -  // idempotent API. -  // -  // If an Invocation is not updated for 24 hours, some time after that -  // this will be called automatically. -  // -  // An error will be reported in the following cases: -  // - If the invocation does not exist. -  rpc FinalizeInvocation(FinalizeInvocationRequest) returns (FinalizeInvocationResponse) { -    option (google.api.http) = { -      post: "/v2/{name=invocations/*}:finalize" -      body: "*" -    }; -  } - -  // Deletes an immutable invocation (permanently) -  // Note: this does not delete indirect data, e.g. files stored in other -  // services. -  // -  // An error will be reported in the following cases: -  // - If the invocation does not exist. -  // - If the invocation is not finalized.  This can be retried until it is. -  rpc DeleteInvocation(DeleteInvocationRequest) returns (google.protobuf.Empty) { -    option (google.api.http) = { -      delete: "/v2/{name=invocations/*}" -    }; -  } - -  // Creates the given target under the given parent invocation. The given -  // target ID is URL encoded, converted to the full resource name, and assigned -  // to the target's name field. This is not an implicitly idempotent API, so a -  // request id is required to make it idempotent. -  // -  // Returns an empty Target proto with only the name and ID fields populated. -  // -  // An error will be reported in the following cases: -  // - If no target ID is provided. -  // - If the parent invocation does not exist. -  // - If the parent invocation is finalized. -  // - If a target with the same name already exists. -  rpc CreateTarget(CreateTargetRequest) returns (Target) { -    option (google.api.http) = { -      post: "/v2/{parent=invocations/*}/targets" -      body: "target" -    }; -    option (google.api.method_signature) = "request_id,parent,target,target_id,authorization_token"; -  } - -  // Applies a standard update to the target identified by the given proto's -  // name. For all types of fields (primitive, message, or repeated), replaces -  // them with the given proto fields if they are under the given field mask -  // paths. Fields that match the mask but aren't populated in the given -  // target are cleared. This is an implicitly idempotent API. -  // -  // Returns an empty Target proto with only the name and ID fields populated. -  // -  // An error will be reported in the following cases: -  // - If the target does not exist. -  // - If the target or parent invocation is finalized. -  // - If no field mask was given. -  rpc UpdateTarget(UpdateTargetRequest) returns (Target) { -    option (google.api.http) = { -      patch: "/v2/{target.name=invocations/*/targets/*}" -      body: "target" -    }; -    option (google.api.method_signature) = "target,update_mask,authorization_token"; -  } - -  // Applies a merge update to the target identified by the given proto's -  // name. For primitive and message fields, replaces them with the ones in the -  // given proto if they are covered under the field mask paths.  For repeated -  // fields, merges to them with the given ones if they are covered under the -  // field mask paths. This is not an implicitly idempotent API, so a request -  // id is required to make it idempotent. -  // -  // Returns an empty Target proto with only the name and ID fields populated. -  // -  // -  // An error will be reported in the following cases: -  // - If the target does not exist. -  // - If the target or parent invocation is finalized. -  // - If no field mask was given. -  rpc MergeTarget(MergeTargetRequest) returns (Target) { -    option (google.api.http) = { -      post: "/v2/{target.name=invocations/*/targets/*}:merge" -      body: "*" -    }; -  } - -  // Declares the target with the given name as finalized and immutable by the -  // user. It may still be mutated by post-processing. This is an implicitly -  // idempotent API. -  // -  // An error will be reported in the following cases: -  // - If the target does not exist. -  rpc FinalizeTarget(FinalizeTargetRequest) returns (FinalizeTargetResponse) { -    option (google.api.http) = { -      post: "/v2/{name=invocations/*/targets/*}:finalize" -      body: "*" -    }; -  } - -  // Creates the given configured target under the given parent target. -  // The given configured target ID is URL encoded, converted to the full -  // resource name, and assigned to the configured target's name field. -  // This is not an implicitly idempotent API, so a request id is required -  // to make it idempotent. -  // -  // Returns an empty ConfiguredTarget proto with only the name and ID fields -  // populated. -  // -  // An error will be reported in the following cases: -  // - If no config ID is provided. -  // - If a configured target with the same ID already exists. -  // - If the parent target does not exist. -  // - If the parent target or invocation is finalized. -  rpc CreateConfiguredTarget(CreateConfiguredTargetRequest) returns (ConfiguredTarget) { -    option (google.api.http) = { -      post: "/v2/{parent=invocations/*/targets/*}/configuredTargets" -      body: "configured_target" -    }; -    option (google.api.method_signature) = "request_id,parent,configured_target,config_id,authorization_token"; -  } - -  // Applies a standard update to the configured target identified by the given -  // proto's name. For all types of fields (primitive, message, or repeated), -  // replaces them with the given proto fields if they are under the given -  // field mask paths. Fields that match the mask but aren't populated in the -  // given configured target are cleared. This is an implicitly idempotent API. -  // -  // Returns an empty ConfiguredTarget proto with only the name and ID fields -  // populated. -  // -  // An error will be reported in the following cases: -  // - If the configured target does not exist. -  // - If the parent target or invocation is finalized. -  // - If no field mask was given. -  rpc UpdateConfiguredTarget(UpdateConfiguredTargetRequest) returns (ConfiguredTarget) { -    option (google.api.http) = { -      patch: "/v2/{configured_target.name=invocations/*/targets/*/configuredTargets/*}" -      body: "configured_target" -    }; -    option (google.api.method_signature) = "configured_target,update_mask,authorization_token"; -  } - -  // Applies a merge update to the configured target identified by the given -  // proto's name. For primitive and message fields, replaces them with the -  // ones in the given proto if they are covered under the field mask paths. -  // For repeated fields, merges to them with the given ones if they are -  // covered under the field mask paths. This is not an implicitly idempotent -  // API, so a request id is required to make it idempotent. -  // -  // Returns an empty ConfiguredTarget proto with only the name and ID fields -  // populated. -  // -  // -  // An error will be reported in the following cases: -  // - If the configured target does not exist. -  // - If the parent target or invocation is finalized. -  // - If no field mask was given. -  rpc MergeConfiguredTarget(MergeConfiguredTargetRequest) returns (ConfiguredTarget) { -    option (google.api.http) = { -      post: "/v2/{configured_target.name=invocations/*/targets/*/configuredTargets/*}:merge" -      body: "*" -    }; -  } - -  // Declares the configured target with the given name as finalized and -  // immutable by the user. It may still be mutated by post-processing. This is -  // an implicitly idempotent API. -  // -  // An error will be reported in the following cases: -  // - If the configured target does not exist. -  rpc FinalizeConfiguredTarget(FinalizeConfiguredTargetRequest) returns (FinalizeConfiguredTargetResponse) { -    option (google.api.http) = { -      post: "/v2/{name=invocations/*/targets/*/configuredTargets/*}:finalize" -      body: "*" -    }; -  } - -  // Creates the given action under the given configured target. The given -  // action ID is URL encoded, converted to the full resource name, and -  // assigned to the action's name field. This is not an implicitly -  // idempotent API, so a request id is required to make it idempotent. -  // -  // Returns an empty Action proto with only the name and ID fields populated. -  // -  // An error will be reported in the following cases: -  // - If no action ID provided. -  // - If the parent configured target does not exist. -  // - If the parent target or invocation is finalized. -  // - If an action  with the same name already exists. -  rpc CreateAction(CreateActionRequest) returns (Action) { -    option (google.api.http) = { -      post: "/v2/{parent=invocations/*/targets/*/configuredTargets/*}/actions" -      body: "action" -    }; -    option (google.api.method_signature) = "request_id,parent,action,action_id,authorization_token"; -  } - -  // Applies a standard update to the action identified by the given -  // proto's name.  For all types of fields (primitive, message, or repeated), -  // replaces them with the given proto fields if they are under the given -  // field mask paths.  Fields that match the mask but aren't populated in the -  // given action are cleared.  This is an implicitly idempotent API. -  // -  // Returns an empty Action proto with only the name and ID fields populated. -  // -  // An error will be reported in the following cases: -  // - If the action does not exist. -  // - If the parent target or invocation is finalized. -  // - If no field mask was given. -  rpc UpdateAction(UpdateActionRequest) returns (Action) { -    option (google.api.http) = { -      patch: "/v2/{action.name=invocations/*/targets/*/configuredTargets/*/actions/*}" -      body: "action" -    }; -    option (google.api.method_signature) = "action,update_mask,authorization_token"; -  } - -  // Applies a merge update to the action identified by the given -  // proto's name.  For primitive and message fields, replaces them with the -  // ones in the given proto if they are covered under the field mask paths. -  // For repeated fields, merges to them with the given ones if they are -  // covered under the field mask paths. This is not an implicitly idempotent -  // API, so a request id is required to make it idempotent. -  // -  // Returns an empty Action proto with only the name and ID fields populated. -  // -  // -  // An error will be reported in the following cases: -  // - If the action does not exist. -  // - If the parent target or invocation is finalized. -  // - If no field mask was given. -  rpc MergeAction(MergeActionRequest) returns (Action) { -    option (google.api.http) = { -      post: "/v2/{action.name=invocations/*/targets/*/configuredTargets/*/actions/*}:merge" -      body: "*" -    }; -  } - -  // Creates the given configuration under the given parent invocation. The -  // given configuration ID is URL encoded, converted to the full resource name, -  // and assigned to the configuration's name field. The configuration ID of -  // "default" should be preferred for the default configuration in a -  // single-config invocation. This is not an implicitly idempotent API, so a -  // request id is required to make it idempotent. -  // -  // Returns an empty Configuration proto with only the name and ID fields -  // populated. -  // -  // An error will be reported in the following cases: -  // - If no configuration ID is provided. -  // - If the parent invocation does not exist. -  // - If the parent invocation is finalized. -  // - If a configuration with the same name already exists. -  rpc CreateConfiguration(CreateConfigurationRequest) returns (Configuration) { -    option (google.api.http) = { -      post: "/v2/{parent=invocations/*}/configs" -      body: "configuration" -    }; -    option (google.api.method_signature) = "request_id,parent,configuration,config_id,authorization_token"; -  } - -  // Applies a standard update to the configuration identified by the given -  // proto's name. For all types of fields (primitive, message, or repeated), -  // replaces them with the given proto fields if they are under the given field -  // mask paths. Fields that match the mask but aren't populated in the given -  // configuration are cleared. This is an implicitly idempotent API. -  // -  // Returns an empty Configuration proto with only the name and ID fields -  // populated. -  // -  // An error will be reported in the following cases: -  // - If the configuration does not exist. -  // - If the parent invocation is finalized. -  // - If no field mask was given. -  // - If a given field mask path is not valid. -  rpc UpdateConfiguration(UpdateConfigurationRequest) returns (Configuration) { -    option (google.api.http) = { -      patch: "/v2/{configuration.name=invocations/*/configs/*}" -      body: "configuration" -    }; -    option (google.api.method_signature) = "configuration,update_mask,authorization_token"; -  } - -  // Creates the given file set under the given parent invocation. The given -  // file set ID is URL encoded, converted to the full resource name, and -  // assigned to the file set's name field. This is not an implicitly idempotent -  // API, so a request id is required to make it idempotent. -  // -  // Returns an empty FileSet proto with only the name and ID fields populated. -  // -  // An error will be reported in the following cases: -  // - If no file set ID is provided. -  // - If a file set with the same name already exists. -  // - If the parent invocation does not exist. -  // - If the parent invocation is finalized. -  rpc CreateFileSet(CreateFileSetRequest) returns (FileSet) { -    option (google.api.http) = { -      post: "/v2/{parent=invocations/*}/fileSets" -      body: "file_set" -    }; -    option (google.api.method_signature) = "request_id,parent,file_set,file_set_id,authorization_token"; -  } - -  // Applies a standard update to the file set identified by the given proto's -  // name. For all types of fields (primitive, message, or repeated), replaces -  // them with the given proto fields if they are under the given field mask -  // paths. Fields that match the mask but aren't populated in the given -  // configuration are cleared. This is an implicitly idempotent API. -  // -  // Returns an empty FileSet proto with only the name and ID fields populated. -  // -  // An error will be reported in the following cases: -  // - If the file set does not exist. -  // - If the parent invocation is finalized. -  // - If no field mask was given. -  // - If a given field mask path is not valid. -  rpc UpdateFileSet(UpdateFileSetRequest) returns (FileSet) { -    option (google.api.http) = { -      patch: "/v2/{file_set.name=invocations/*/fileSets/*}" -      body: "file_set" -    }; -    option (google.api.method_signature) = "file_set,update_mask,authorization_token"; -  } - -  // Applies a merge update to the file set identified by the given proto's -  // name. For primitive and message fields, updates them with the ones in the -  // given proto if they are covered under the field mask paths. For repeated -  // fields, merges to them with the given ones if they are covered under the -  // field mask paths. This is not an implicitly idempotent API, so a request -  // id is required to make it idempotent. -  // -  // Returns an empty FileSet proto with only the name and ID fields populated. -  // -  // -  // An error will be reported in the following cases: -  // - If the file set does not exist. -  // - If the parent invocation is finalized. -  // - If a given field mask path is not valid. -  // - If no field mask was given. -  rpc MergeFileSet(MergeFileSetRequest) returns (FileSet) { -    option (google.api.http) = { -      post: "/v2/{file_set.name=invocations/*/fileSets/*}:merge" -      body: "*" -    }; -  } - -  // This is the RPC used for batch upload. It supports uploading multiple -  // resources for an invocation in a transaction safe manner. -  // -  // To use this RPC, the CreateInvocationRequest must have been provided a -  // resume_token. -  // -  // Combining batch upload with normal upload on a single Invocation is not -  // supported. If an Invocation is created with a resume_token, all further -  // calls must be through UploadBatch. If an Invocation is created without -  // resume_token normal upload, all further upload calls must be through normal -  // upload RPCs. -  // -  // The recommend total size of UploadBatchRequest is 10 MiB. If -  // it is too large, it may be rejected. -  rpc UploadBatch(UploadBatchRequest) returns (UploadBatchResponse) { -    option (google.api.http) = { -      post: "/v2/{parent=invocations/*}/batch:upload" -      body: "*" -    }; -  } - -  // Provides a way to read the metadata for an invocation. -  // The UploadMetadata could still be retrieved by this RPC even the Invocation -  // has been finalized. -  // This API requires setting a response FieldMask via 'fields' URL query -  // parameter or X-Goog-FieldMask HTTP/gRPC header. -  // -  // An error will be reported in the following case: -  // - If the invocation does not exist. -  // - If no field mask was given. -  rpc GetInvocationUploadMetadata(GetInvocationUploadMetadataRequest) returns (UploadMetadata) { -    option (google.api.http) = { -      get: "/v2/{name=invocations/*/uploadMetadata}" -    }; -    option (google.api.method_signature) = "name,authorization_token"; -  } -} - -// Request passed into CreateInvocation -message CreateInvocationRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID. If set, invocation_id must also be provided. -  // Restricted to 36 Unicode characters. -  string request_id = 1; - -  // The invocation ID. It is optional, but strongly recommended. -  // -  // If left empty then a new unique ID will be assigned by the server. If -  // populated, a RFC 4122-compliant v4 UUID is preferred, but v3 or v5 UUIDs -  // are allowed too. -  string invocation_id = 2; - -  // Required. The invocation to create.  Its name field will be ignored, since the name -  // will be derived from the id field above and assigned by the server. -  Invocation invocation = 3 [(google.api.field_behavior) = REQUIRED]; - -  // This is a token to authorize upload access to this invocation. It must be -  // set to a RFC 4122-compliant v3, v4, or v5 UUID. Once this is set in -  // CreateInvocation, all other upload RPCs for that Invocation and any of its -  // child resources must also include the exact same token, or they will be -  // rejected. The generated token should be unique to this invocation, and it -  // should be kept secret. -  // -  // The purpose of this field is to prevent other users and tools from -  // clobbering your upload intentionally or accidentally. The standard way of -  // using this token is to create a second v4 UUID when the invocation_id is -  // created, and storing them together during the upload. Essentially, this is -  // a "password" to the invocation. -  string authorization_token = 4; - -  // By default, Invocations are auto-finalized if they are not modified for 24 -  // hours. If you need auto-finalize to happen sooner, set this field to the -  // time you'd like auto-finalize to occur. -  google.protobuf.Timestamp auto_finalize_time = 6; - -  // Client provided unique token for batch upload to ensure data integrity and -  // to provide a way to resume batch upload in case of a distributed failure on -  // the client side. The standard uploading client is presumed to have many -  // machines uploading to ResultStore, and that any given machine could process -  // any given Invocation at any time. This field is used to coordinate between -  // the client's machines, resolve concurrency issues, and enforce "exactly -  // once" semantics on each batch within the upload. -  // -  // The typical usage of the resume_token is that it should contain a "key" -  // indicating to the client where it is in the upload process, so that the -  // client can use it to resume the upload by reconstructing the state of -  // upload from the point where it was interrupted. -  // -  // If this matches the previously uploaded resume_token, then this request -  // will silently do nothing, making CreateInvocation idempotent. -  // If this token is provided, all further upload RPCs must be done through -  // UploadBatch. This token must not be combined with request_id. -  // Must be web safe Base64 encoded bytes. -  string initial_resume_token = 7; - -  // Client-specific data used to resume batch upload if an error occurs and -  // retry is needed. This serves a role closely related to resume_token, as -  // both fields may be used to provide state required to restore a Batch -  // Upload, but they differ in two important aspects: -  //  - it is not compared to previous values, and as such does not provide -  //    concurrency control; -  //  - it allows for a larger payload, since the contents are never -  //    inspected/compared; -  // The size of the message must be within 1 MiB. Too large requests will be -  // rejected. -  bytes uploader_state = 8; -} - -// Request passed into UpdateInvocation -message UpdateInvocationRequest { -  // Contains the name and the fields of the invocation to be updated.  The -  // name format must be: invocations/${INVOCATION_ID} -  Invocation invocation = 3; - -  // Indicates which fields to update. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; -} - -// Request passed into MergeInvocation -message MergeInvocationRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Contains the name and the fields of the invocation to be merged.  The -  // name format must be: invocations/${INVOCATION_ID} -  Invocation invocation = 3; - -  // Indicates which fields to merge. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; -} - -// Request passed into TouchInvocation -message TouchInvocationRequest { -  // Required. The name of the invocation.  Its format must be: -  // invocations/${INVOCATION_ID} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 2; -} - -// Response returned from TouchInvocation -message TouchInvocationResponse { -  // The name of the invocation.  Its format will be: -  // invocations/${INVOCATION_ID} -  string name = 1; - -  // The resource ID components that identify the Invocation. -  Invocation.Id id = 2; -} - -// Request passed into DeleteInvocation -message DeleteInvocationRequest { -  // Required. The name of the invocation.  Its format must be: -  // invocations/${INVOCATION_ID} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; -} - -// Request passed into FinalizeInvocation -message FinalizeInvocationRequest { -  // Required. The name of the invocation.  Its format must be: -  // invocations/${INVOCATION_ID} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 3; -} - -// Response returned from FinalizeInvocation -message FinalizeInvocationResponse { -  // The name of the invocation.  Its format will be: -  // invocations/${INVOCATION_ID} -  string name = 1; - -  // The resource ID components that identify the Invocation. -  Invocation.Id id = 2; -} - -// Request passed into CreateTarget -message CreateTargetRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Required. The name of the parent invocation in which the target is created. -  // Its format must be invocations/${INVOCATION_ID} -  string parent = 2 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // The target identifier.  It can be any string up to 1024 Unicode characters -  // long except for the reserved id '-'. -  string target_id = 3; - -  // Required. The target to create.  Its name field will be ignored, since the name will -  // be derived from the id field above and assigned by the server. -  Target target = 4 [(google.api.field_behavior) = REQUIRED]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; -} - -// Request passed into UpdateTarget -message UpdateTargetRequest { -  // Contains the name and the fields of the target to be updated.  The name -  // format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -  Target target = 3; - -  // Indicates which fields to update. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; - -  // If true then the Update operation will become a Create operation if the -  // Target is NOT_FOUND. -  bool create_if_not_found = 6; -} - -// Request passed into MergeTarget -message MergeTargetRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Contains the name and the fields of the target to be merged.  The name -  // format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -  Target target = 3; - -  // Indicates which fields to merge. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; - -  // If true then the Merge operation will become a Create operation if the -  // Target is NOT_FOUND. -  bool create_if_not_found = 6; -} - -// Request passed into FinalizeTarget -message FinalizeTargetRequest { -  // Required. The name of the target.  Its format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Target" -    } -  ]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 3; -} - -// Response returned from FinalizeTarget -message FinalizeTargetResponse { -  // The name of the target.  Its format will be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -  string name = 1; - -  // The resource ID components that identify the Target. -  Target.Id id = 2; -} - -// Request passed into CreateConfiguredTarget -message CreateConfiguredTargetRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Required. The name of the parent target in which the configured target is created. -  // Its format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -  string parent = 2 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Target" -    } -  ]; - -  // The configuration identifier. This must match the ID of an existing -  // Configuration under this Invocation. Cannot be the reserved id '-'. -  string config_id = 3; - -  // Required. The configured target to create. Its name field will be ignored, since the -  // name will be derived from the id field above and assigned by the server. -  ConfiguredTarget configured_target = 4 [(google.api.field_behavior) = REQUIRED]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; -} - -// Request passed into UpdateConfiguredTarget -message UpdateConfiguredTargetRequest { -  // Contains the name and the fields of the configured target to be updated. -  // The name format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIG_ID} -  ConfiguredTarget configured_target = 3; - -  // Indicates which fields to update. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; - -  // If true then the Update operation will become a Create operation if the -  // ConfiguredTarget is NOT_FOUND. -  bool create_if_not_found = 6; -} - -// Request passed into MergeConfiguredTarget -message MergeConfiguredTargetRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Contains the name and the fields of the configured target to be merged. -  // The name format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIG_ID} -  ConfiguredTarget configured_target = 3; - -  // Indicates which fields to merge. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; - -  // If true then the Merge operation will become a Create operation if the -  // ConfiguredTarget is NOT_FOUND. -  bool create_if_not_found = 6; -} - -// Request passed into FinalizeConfiguredTarget -message FinalizeConfiguredTargetRequest { -  // Required. The name of the configured target. Its format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIG_ID} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/ConfiguredTarget" -    } -  ]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 3; -} - -// Response returned from FinalizeConfiguredTarget -message FinalizeConfiguredTargetResponse { -  // The name of the configured target. Its format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIG_ID} -  string name = 1; - -  // The resource ID components that identify the ConfiguredTarget. -  ConfiguredTarget.Id id = 2; -} - -// Request passed into CreateAction -message CreateActionRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Required. The name of the parent configured target in which the action is created. -  // Its format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIG_ID} -  string parent = 2 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/ConfiguredTarget" -    } -  ]; - -  // The action identifier. It can be any string up to 512 Unicode characters -  // long, except for the reserved id '-'. -  // -  // Recommended IDs for Test Actions: -  // "test": For a single test action. -  // "test_shard0_run0_attempt0" ... "test_shard9_run9_attempt9": For tests with -  //  shard/run/attempts. -  // -  // Recommended IDs for Build Actions: -  // "build": If you only have a single build action. -  string action_id = 3; - -  // Required. The action to create.  Its name field will be ignored, since the -  // name will be derived from the id field above and assigned by the server. -  Action action = 4 [(google.api.field_behavior) = REQUIRED]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; -} - -// Request passed into UpdateAction -message UpdateActionRequest { -  // Contains the name and the fields of the action to be updated.  The -  // name format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIG_ID}/actions/${ACTION_ID} -  Action action = 3; - -  // Indicates which fields to update. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; - -  // If true then the Update operation will become a Create operation if the -  // Action is NOT_FOUND. -  bool create_if_not_found = 6; -} - -// Request passed into MergeAction -message MergeActionRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Contains the name and the fields of the action to be merged.  The -  // name format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)}/configuredTargets/${CONFIG_ID}/actions/${ACTION_ID} -  Action action = 3; - -  // Indicates which fields to merge. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; - -  // If true then the Merge operation will become a Create operation if the -  // Action is NOT_FOUND. -  bool create_if_not_found = 6; -} - -// Request passed into CreateConfiguration -message CreateConfigurationRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Required. The name of the parent invocation in which the configuration is created. -  // Its format must be invocations/${INVOCATION_ID} -  string parent = 2 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // The configuration identifier. It can be any string up to 256 Unicode -  // characters long. The configuration ID of "default" should be preferred for -  // the default configuration in a single-config invocation. Cannot be the -  // reserved id '-'. -  string config_id = 3; - -  // Required. The configuration to create. Its name field will be ignored, since the name -  // will be derived from the id field above and assigned by the server. -  Configuration configuration = 4 [(google.api.field_behavior) = REQUIRED]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; -} - -// Request passed into UpdateConfiguration -message UpdateConfigurationRequest { -  // Contains the name and fields of the configuration to be updated. The name -  // format must be: -  // invocations/${INVOCATION_ID}/configs/${CONFIG_ID} -  Configuration configuration = 3; - -  // Indicates which fields to update. -  google.protobuf.FieldMask update_mask = 4; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; - -  // If true then the Update operation will become a Create operation if the -  // Configuration is NOT_FOUND. -  bool create_if_not_found = 6; -} - -// Request passed into CreateFileSet -message CreateFileSetRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Required. The name of the parent invocation in which the file set is created. -  // Its format must be invocations/${INVOCATION_ID} -  string parent = 2 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/Invocation" -    } -  ]; - -  // The file set identifier. It can be any string up to 256 Unicode characters -  // long. -  string file_set_id = 3; - -  // Required. The file set to create. Its name field will be ignored, since the name will -  // be derived from the id field above and assigned by the server. -  FileSet file_set = 4 [(google.api.field_behavior) = REQUIRED]; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 5; -} - -// Request passed into UpdateFileSet -message UpdateFileSetRequest { -  // Contains the name and fields of the file set to be updated. The name format -  // must be: invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID} -  FileSet file_set = 1; - -  // Indicates which fields to update. -  google.protobuf.FieldMask update_mask = 2; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 3; - -  // If true then the Update operation will become a Create operation if the -  // FileSet is NOT_FOUND. -  bool create_if_not_found = 4; -} - -// Request passed into MergeFileSet -message MergeFileSetRequest { -  // A unique identifier for this request. Must be set to a different value for -  // each request that affects a given resource (eg. a random UUID). Required -  // for the operation to be idempotent. This is achieved by ignoring this -  // request if the last successful operation on the resource had the same -  // request ID.  Restricted to 36 Unicode characters. -  string request_id = 1; - -  // Contains the name and fields of the file set to be merged. The name -  // format must be: -  // invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID} -  FileSet file_set = 2; - -  // Indicates which fields to merge. -  google.protobuf.FieldMask update_mask = 3; - -  // This is a token to authorize access to this invocation. It must be set to -  // the same value that was provided in the CreateInvocationRequest. -  string authorization_token = 4; - -  // If true then the Merge operation will become a Create operation if the -  // FileSet is NOT_FOUND. -  bool create_if_not_found = 5; -} - -// Request passed into UploadBatch -message UploadBatchRequest { -  // Required. The name of the invocation being modified. -  // The name format must be: invocations/${INVOCATION_ID} -  string parent = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Required. A UUID that must match the value provided in CreateInvocationRequest. -  string authorization_token = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The token of this batch, that will be committed in this UploadBatchRequest. -  // If this matches the previously uploaded resume_token, then this request -  // will silently do nothing. -  // See CreateInvocationRequest.initial_resume_token for more information. -  // Must be web safe Base64 encoded bytes. -  string next_resume_token = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The token of the previous batch that was committed in a UploadBatchRequest. -  // This will be checked after next_resume_token match is checked. If this does -  // not match the previously uploaded resume_token, a 409 Conflict (HTTPS) or -  // ABORTED (gRPC ) error code indicating a concurrency -  // failure will be returned, and that the user should call -  // GetInvocationUploadMetadata to fetch the current resume_token to -  // reconstruct the state of the upload to resume it. -  // See CreateInvocationRequest.initial_resume_token for more information. -  // Must be web safe Base64 encoded bytes. -  string resume_token = 4 [(google.api.field_behavior) = REQUIRED]; - -  // Client-specific data used to resume batch upload if an error occurs and -  // retry is needed. This serves a role closely related to resume_token, as -  // both fields may be used to provide state required to restore a Batch -  // Upload, but they differ in two important aspects: -  //  - it is not compared to previous values, and as such does not provide -  //    concurrency control; -  //  - it allows for a larger payload, since the contents are never -  //    inspected/compared; -  // The size of the message must be within 1 MiB. Too large requests will be -  // rejected. -  bytes uploader_state = 6; - -  // The individual upload requests for this batch. -  // This field may be empty, allowing this RPC to be used like TouchInvocation. -  repeated UploadRequest upload_requests = 5; -} - -// Response for UploadBatch -message UploadBatchResponse { - -} - -// The individual upload requests for this batch. -message UploadRequest { -  // The resource ID components that identify the resource being uploaded. -  message Id { -    // Required for Target, ConfiguredTarget, or Action. -    // The Target ID. -    string target_id = 1; - -    // Required for Configuration, ConfiguredTarget, or Action. -    // The Configuration ID. -    string configuration_id = 2; - -    // Required for Action. -    // The Action ID. -    string action_id = 3; - -    // Required for FileSet. -    // The FileSet ID. -    string file_set_id = 4; -  } - -  // The operation for the request (e.g. Create(), Update(), etc.) -  enum UploadOperation { -    // Unspecified -    UPLOAD_OPERATION_UNSPECIFIED = 0; - -    // Create the given resources except Invocation. -    // For more information, check the Create APIs. -    CREATE = 1; - -    // Applies a standard update to the resource identified by the given -    // proto's name. For more information, see the Update APIs. -    // UploadBatch does not support arbitrary field masks. The list of allowed -    // field masks can be found below. -    UPDATE = 2; - -    // Applies an merge update to the resource identified by the given -    // proto's name. For more information, see the Merge APIs. -    // UploadBatch does not support arbitrary field masks. The list of allowed -    // field masks can be found below. -    MERGE = 3; - -    // Declares the resource with the given name as finalized and immutable by -    // the uploader. Only supported for Invocation, Target, ConfiguredTarget. -    // There must be no operation on child resources after parent resource is -    // Finalized. If there is a Finalize of Invocation, it must be the final -    // UploadRequest. For more information, see the Finalize APIs. -    // An empty resource should be provided below. -    FINALIZE = 4; -  } - -  // The resource ID components that identify the resource being uploaded. -  Id id = 1; - -  // The operation for the request (e.g. Create(), Update(), etc.) -  UploadOperation upload_operation = 2; - -  // Required for Update and Merge operations. -  // Ignored for Create and Finalize operations. -  // Masks the fields of the resource being uploaded. Provides support for a -  // more granular upload. FieldMasks are limited to certain fields and must -  // match one of the follow patterns, where * means any single field name. -  // -  // For Update Operations: -  // -  // Invocation: [*, status_attributes.*, timing.*, invocation_attributes.*, -  // workspace_info.*]. -  // Target: [*, status_attributes.*, timing.*]. -  // Configuration: [*, status_attributes.*]. -  // ConfiguredTarget: [*, status_attributes.*]. -  // Action: [*, status_attributes.*, timing.*, test_action.test_suite, -  // test_action.infrastructure_failure_info]. -  // FileSet: [*]. -  // -  // For Merge Operations: -  // -  // Invocation: [invocation_attributes.labels, workspace_info.command_lines, -  // properties, files, file_processing_errors]. -  // Target: [files]. -  // ConfiguredTarget: [files]. -  // Action: [files, file_processing_errors]. -  google.protobuf.FieldMask update_mask = 3; - -  // If true then the Update, Merge operation will become a Create operation if -  // the resource is NOT_FOUND. Not supported for Invocation resource. -  bool create_if_not_found = 10; - -  // The proto of the resource being uploaded. -  oneof resource { -    // The Invocation Resource -    Invocation invocation = 4; - -    // The Target Resource -    Target target = 5; - -    // The Configuration Resource -    Configuration configuration = 6; - -    // The ConfiguredTarget Resource -    ConfiguredTarget configured_target = 7; - -    // The Action Resource -    Action action = 8; - -    // The FileSet Resource -    FileSet file_set = 9; -  } -} - -// Request passed into GetInvocationUploadMetadata -message GetInvocationUploadMetadataRequest { -  // Required. The name of the UploadMetadata being requested. -  // The name format must be: invocations/${INVOCATION_ID}/uploadMetadata -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "resultstore.googleapis.com/UploadMetadata" -    } -  ]; - -  // Required. A UUID that must match the value provided in CreateInvocationRequest. -  string authorization_token = 2 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/resultstore_v2.yaml b/third_party/googleapis/google/devtools/resultstore/v2/resultstore_v2.yaml deleted file mode 100644 index a22bba1..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/resultstore_v2.yaml +++ /dev/null @@ -1,32 +0,0 @@ -type: google.api.Service -config_version: 3 -name: resultstore.googleapis.com -title: Result Store API - -apis: -- name: google.devtools.resultstore.v2.ResultStoreDownload -- name: google.devtools.resultstore.v2.ResultStoreFileDownload -- name: google.devtools.resultstore.v2.ResultStoreUpload - -documentation: -  summary: The Result Store API v2. -  overview: An API for reading Invocation results from previous runs. - -authentication: -  rules: -  - selector: 'google.devtools.resultstore.v2.ResultStoreDownload.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: google.devtools.resultstore.v2.ResultStoreFileDownload.GetFile -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: google.devtools.resultstore.v2.ResultStoreFileDownload.GetFileTail -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform -  - selector: 'google.devtools.resultstore.v2.ResultStoreUpload.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/devtools/resultstore/v2/target.proto b/third_party/googleapis/google/devtools/resultstore/v2/target.proto deleted file mode 100644 index e6e3d21..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/target.proto +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/resource.proto"; -import "google/devtools/resultstore/v2/common.proto"; -import "google/devtools/resultstore/v2/file.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "TargetProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// Each Target represents data for a given target in a given Invocation. -// ConfiguredTarget and Action resources under each Target contain the bulk of -// the data. -message Target { -  option (google.api.resource) = { -    type: "resultstore.googleapis.com/Target" -    pattern: "invocations/{invocation}/targets/{target}" -  }; - -  // The resource ID components that identify the Target. -  message Id { -    // The Invocation ID. -    string invocation_id = 1; - -    // The Target ID. -    string target_id = 2; -  } - -  // The resource name.  Its format must be: -  // invocations/${INVOCATION_ID}/targets/${url_encode(TARGET_ID)} -  string name = 1; - -  // The resource ID components that identify the Target. They must match the -  // resource name after proper encoding. -  Id id = 2; - -  // This is the aggregate status of the target. -  StatusAttributes status_attributes = 3; - -  // When this target started and its duration. -  Timing timing = 4; - -  // Attributes that apply to all targets. -  TargetAttributes target_attributes = 5; - -  // Attributes that apply to all test actions under this target. -  TestAttributes test_attributes = 6; - -  // Arbitrary name-value pairs. -  // This is implemented as a multi-map. Multiple properties are allowed with -  // the same key. Properties will be returned in lexicographical order by key. -  repeated Property properties = 7; - -  // A list of file references for target level files. -  // The file IDs must be unique within this list. Duplicate file IDs will -  // result in an error. Files will be returned in lexicographical order by ID. -  // Use this field to specify outputs not related to a configuration. -  repeated File files = 8; - -  // Provides a hint to clients as to whether to display the Target to users. -  // If true then clients likely want to display the Target by default. -  // Once set to true, this may not be set back to false. -  bool visible = 10; -} - -// Attributes that apply to all targets. -message TargetAttributes { -  // If known, indicates the type of this target.  In bazel this corresponds -  // to the rule-suffix. -  TargetType type = 1; - -  // If known, the main language of this target, e.g. java, cc, python, etc. -  Language language = 2; - -  // The tags attribute of the build rule. These should be short, descriptive -  // words, and there should only be a few of them. -  // This is implemented as a set. All tags will be unique. Any duplicate tags -  // will be ignored. Tags will be returned in lexicographical order. -  repeated string tags = 3; -} - -// Attributes that apply only to test actions under this target. -message TestAttributes { -  // Indicates how big the user indicated the test action was. -  TestSize size = 1; -} - -// These correspond to the suffix of the rule name. Eg cc_test has type TEST. -enum TargetType { -  // Unspecified by the build system. -  TARGET_TYPE_UNSPECIFIED = 0; - -  // An application e.g. ios_application. -  APPLICATION = 1; - -  // A binary target e.g. cc_binary. -  BINARY = 2; - -  // A library target e.g. java_library -  LIBRARY = 3; - -  // A package -  PACKAGE = 4; - -  // Any test target, in bazel that means a rule with a '_test' suffix. -  TEST = 5; -} - -// Indicates how big the user indicated the test action was. -enum TestSize { -  // Unspecified by the user. -  TEST_SIZE_UNSPECIFIED = 0; - -  // Unit test taking less than 1 minute. -  SMALL = 1; - -  // Integration tests taking less than 5 minutes. -  MEDIUM = 2; - -  // End-to-end tests taking less than 15 minutes. -  LARGE = 3; - -  // Even bigger than LARGE. -  ENORMOUS = 4; - -  // Something that doesn't fit into the above categories. -  OTHER_SIZE = 5; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/test_suite.proto b/third_party/googleapis/google/devtools/resultstore/v2/test_suite.proto deleted file mode 100644 index aa2c7c5..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/test_suite.proto +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/devtools/resultstore/v2/common.proto"; -import "google/devtools/resultstore/v2/file.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "TestSuiteProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// The result of running a test suite, as reported in a <testsuite> element of -// an XML log. -message TestSuite { -  // The full name of this suite, as reported in the name attribute. For Java -  // tests, this is normally the fully qualified class name. Eg. -  // "com.google.common.hash.BloomFilterTest". -  string suite_name = 1; - -  // The results of the test cases and test suites contained in this suite, -  // as reported in the <testcase> and <testsuite> elements contained within -  // this <testsuite>. -  repeated Test tests = 2; - -  // Failures reported in <failure> elements within this <testsuite>. -  repeated TestFailure failures = 3; - -  // Errors reported in <error> elements within this <testsuite>. -  repeated TestError errors = 4; - -  // The timing for the entire TestSuite, as reported by the time attribute. -  Timing timing = 6; - -  // Arbitrary name-value pairs, as reported in custom attributes or in a -  // <properties> element within this <testsuite>. Multiple properties are -  // allowed with the same key. Properties will be returned in lexicographical -  // order by key. -  repeated Property properties = 7; - -  // Files produced by this test suite, as reported by undeclared output -  // annotations. -  // The file IDs must be unique within this list. Duplicate file IDs will -  // result in an error. Files will be returned in lexicographical order by ID. -  repeated File files = 8; -} - -// The result of running a test case or test suite. JUnit3 TestDecorators are -// represented as a TestSuite with a single test. -message Test { -  // Either a TestCase of a TestSuite -  oneof test_type { -    // When this contains just a single TestCase -    TestCase test_case = 1; - -    // When this contains a TestSuite of test cases. -    TestSuite test_suite = 2; -  } -} - -// The result of running a test case, as reported in a <testcase> element of -// an XML log. -message TestCase { -  // The result of running a test case. -  enum Result { -    // The implicit default enum value. Do not use. -    RESULT_UNSPECIFIED = 0; - -    // Test case ran to completion. Look for failures or errors to determine -    // whether it passed, failed, or errored. -    COMPLETED = 1; - -    // Test case started but did not complete because the test harness received -    // a signal and decided to stop running tests. -    INTERRUPTED = 2; - -    // Test case was not started because the test harness received a SIGINT or -    // timed out. -    CANCELLED = 3; - -    // Test case was not run because the user or process running the test -    // specified a filter that excluded this test case. -    FILTERED = 4; - -    // Test case was not run to completion because the test case decided it -    // should not be run (eg. due to a failed assumption in a JUnit4 test). -    // Per-test setup or tear-down may or may not have run. -    SKIPPED = 5; - -    // The test framework did not run the test case because it was labeled as -    // suppressed.  Eg. if someone temporarily disables a failing test. -    SUPPRESSED = 6; -  } - -  // The name of the test case, as reported in the name attribute. For Java, -  // this is normally the method name. Eg. "testBasic". -  string case_name = 1; - -  // The name of the class in which the test case was defined, as reported in -  // the classname attribute. For Java, this is normally the fully qualified -  // class name. Eg. "com.google.common.hash.BloomFilterTest". -  string class_name = 2; - -  // An enum reported in the result attribute that is used in conjunction with -  // failures and errors below to report the outcome. -  Result result = 3; - -  // Failures reported in <failure> elements within this <testcase>. -  repeated TestFailure failures = 4; - -  // Errors reported in <error> elements within this <testcase>. -  repeated TestError errors = 5; - -  // The timing for the TestCase, as reported by the time attribute. -  Timing timing = 7; - -  // Arbitrary name-value pairs, as reported in custom attributes or in a -  // <properties> element within this <testcase>. Multiple properties are -  // allowed with the same key. Properties will be returned in lexicographical -  // order by key. -  repeated Property properties = 8; - -  // Files produced by this test case, as reported by undeclared output -  // annotations. -  // The file IDs must be unique within this list. Duplicate file IDs will -  // result in an error. Files will be returned in lexicographical order by ID. -  repeated File files = 9; -} - -// Represents a violated assertion, as reported in a <failure> element within a -// <testcase>. Some languages allow assertions to be made without stopping the -// test case when they're violated, leading to multiple TestFailures. For Java, -// multiple TestFailures are used to represent a chained exception. -message TestFailure { -  // The exception message reported in the message attribute. Typically short, -  // but may be multi-line. Eg. "Expected 'foo' but was 'bar'". -  string failure_message = 1; - -  // The type of the exception being thrown, reported in the type attribute. -  // Eg: "org.junit.ComparisonFailure" -  string exception_type = 2; - -  // The stack trace reported as the content of the <failure> element, often in -  // a CDATA block. This contains one line for each stack frame, each including -  // a method/function name, a class/file name, and a line number. Most recent -  // call is usually first, but not for Python stack traces. May contain the -  // exception_type and message. -  string stack_trace = 3; - -  // The expected values. -  // -  // These values can be diffed against the actual values. Often, there is just -  // one actual and one expected value. If there is more than one, they should -  // be compared as an unordered collection. -  repeated string expected = 4; - -  // The actual values. -  // -  // These values can be diffed against the expected values. Often, there is -  // just one actual and one expected value. If there is more than one, they -  // should be compared as an unordered collection. -  repeated string actual = 5; -} - -// Represents an exception that prevented a test case from completing, as -// reported in an <error> element within a <testcase>. For Java, multiple -// TestErrors are used to represent a chained exception. -message TestError { -  // The exception message, as reported in the message attribute. Typically -  // short, but may be multi-line. Eg. "argument cannot be null". -  string error_message = 1; - -  // The type of the exception being thrown, reported in the type attribute. -  // For Java, this is a fully qualified Throwable class name. -  // Eg: "java.lang.IllegalArgumentException" -  string exception_type = 2; - -  // The stack trace reported as the content of the <error> element, often in -  // a CDATA block. This contains one line for each stack frame, each including -  // a method/function name, a class/file name, and a line number. Most recent -  // call is usually first, but not for Python stack traces. May contain the -  // exception_type and message. -  string stack_trace = 3; -} diff --git a/third_party/googleapis/google/devtools/resultstore/v2/upload_metadata.proto b/third_party/googleapis/google/devtools/resultstore/v2/upload_metadata.proto deleted file mode 100644 index f7f071a..0000000 --- a/third_party/googleapis/google/devtools/resultstore/v2/upload_metadata.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2021 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -//     http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.resultstore.v2; - -import "google/api/resource.proto"; - -option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore"; -option java_multiple_files = true; -option java_outer_classname = "UploadMetadataProto"; -option java_package = "com.google.devtools.resultstore.v2"; - -// The upload metadata for an invocation -message UploadMetadata { -  option (google.api.resource) = { -    type: "resultstore.googleapis.com/UploadMetadata" -    pattern: "invocations/{invocation}/uploadMetadata" -  }; - -  // The name of the upload metadata.  Its format will be: -  // invocations/${INVOCATION_ID}/uploadMetadata -  string name = 1; - -  // The resume token of the last batch that was committed in the most recent -  // batch upload. -  // More information with resume_token could be found in -  // resultstore_upload.proto -  string resume_token = 2; - -  // Client-specific data used to resume batch upload if an error occurs and -  // retry action is needed. -  bytes uploader_state = 3; -}  | 
