aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar Jakob Buchgraber <buchgr@google.com>2018-07-09 21:11:28 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2018-07-10 10:07:16 +0200
commiteb3a183b900889e1d1d8d5edc13e1b7aa26dcab6 (patch)
tree28aba5c8dda475f9b07ff03d992fb3c3165d099f /third_party
parente6860a80e92d3372f18a3c6b30c7fdd0d6001e3e (diff)
third_party/googleapis: sync error_details.proto
Diffstat (limited to 'third_party')
-rw-r--r--third_party/googleapis/google/rpc/error_details.proto31
1 files changed, 30 insertions, 1 deletions
diff --git a/third_party/googleapis/google/rpc/error_details.proto b/third_party/googleapis/google/rpc/error_details.proto
index 4732d421d9..f24ae00999 100644
--- a/third_party/googleapis/google/rpc/error_details.proto
+++ b/third_party/googleapis/google/rpc/error_details.proto
@@ -1,4 +1,4 @@
-// Copyright 2016 Google Inc.
+// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -86,6 +86,35 @@ message QuotaFailure {
repeated Violation violations = 1;
}
+// Describes what preconditions have failed.
+//
+// For example, if an RPC failed because it required the Terms of Service to be
+// acknowledged, it could list the terms of service violation in the
+// PreconditionFailure message.
+message PreconditionFailure {
+ // A message type used to describe a single precondition failure.
+ message Violation {
+ // The type of PreconditionFailure. We recommend using a service-specific
+ // enum type to define the supported precondition violation types. For
+ // example, "TOS" for "Terms of Service violation".
+ string type = 1;
+
+ // The subject, relative to the type, that failed.
+ // For example, "google.com/cloud" relative to the "TOS" type would
+ // indicate which terms of service is being referenced.
+ string subject = 2;
+
+ // A description of how the precondition failed. Developers can use this
+ // description to understand how to fix the failure.
+ //
+ // For example: "Terms of service not accepted".
+ string description = 3;
+ }
+
+ // Describes all precondition violations.
+ repeated Violation violations = 1;
+}
+
// Describes violations in a client request. This error type focuses on the
// syntactic aspects of the request.
message BadRequest {