|
@@ -1,21 +1,12 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// source: google/rpc/status.proto
|
|
// source: google/rpc/status.proto
|
|
|
|
|
|
|
|
-/*
|
|
|
|
|
-Package status is a generated protocol buffer package.
|
|
|
|
|
-
|
|
|
|
|
-It is generated from these files:
|
|
|
|
|
- google/rpc/status.proto
|
|
|
|
|
-
|
|
|
|
|
-It has these top-level messages:
|
|
|
|
|
- Status
|
|
|
|
|
-*/
|
|
|
|
|
-package status
|
|
|
|
|
|
|
+package status // import "google.golang.org/genproto/googleapis/rpc/status"
|
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
import fmt "fmt"
|
|
import fmt "fmt"
|
|
|
import math "math"
|
|
import math "math"
|
|
|
-import google_protobuf "github.com/golang/protobuf/ptypes/any"
|
|
|
|
|
|
|
+import any "github.com/golang/protobuf/ptypes/any"
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ = proto.Marshal
|
|
var _ = proto.Marshal
|
|
@@ -45,7 +36,7 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
// error message is needed, put the localized message in the error details or
|
|
// error message is needed, put the localized message in the error details or
|
|
|
// localize it in the client. The optional error details may contain arbitrary
|
|
// localize it in the client. The optional error details may contain arbitrary
|
|
|
// information about the error. There is a predefined set of error detail types
|
|
// information about the error. There is a predefined set of error detail types
|
|
|
-// in the package `google.rpc` which can be used for common error conditions.
|
|
|
|
|
|
|
+// in the package `google.rpc` that can be used for common error conditions.
|
|
|
//
|
|
//
|
|
|
// # Language mapping
|
|
// # Language mapping
|
|
|
//
|
|
//
|
|
@@ -68,7 +59,7 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
// errors.
|
|
// errors.
|
|
|
//
|
|
//
|
|
|
// - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
// - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
|
-// have a `Status` message for error reporting purpose.
|
|
|
|
|
|
|
+// have a `Status` message for error reporting.
|
|
|
//
|
|
//
|
|
|
// - Batch operations. If a client uses batch request and batch response, the
|
|
// - Batch operations. If a client uses batch request and batch response, the
|
|
|
// `Status` message should be used directly inside batch response, one for
|
|
// `Status` message should be used directly inside batch response, one for
|
|
@@ -82,20 +73,42 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
// be used directly after any stripping needed for security/privacy reasons.
|
|
// be used directly after any stripping needed for security/privacy reasons.
|
|
|
type Status struct {
|
|
type Status struct {
|
|
|
// The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
|
|
// The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
|
|
|
- Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
|
|
|
|
|
|
|
+ Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
// A developer-facing error message, which should be in English. Any
|
|
// A developer-facing error message, which should be in English. Any
|
|
|
// user-facing error message should be localized and sent in the
|
|
// user-facing error message should be localized and sent in the
|
|
|
// [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
|
|
// [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
|
|
|
- Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
|
|
|
|
|
- // A list of messages that carry the error details. There will be a
|
|
|
|
|
- // common set of message types for APIs to use.
|
|
|
|
|
- Details []*google_protobuf.Any `protobuf:"bytes,3,rep,name=details" json:"details,omitempty"`
|
|
|
|
|
|
|
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
|
|
|
+ // A list of messages that carry the error details. There is a common set of
|
|
|
|
|
+ // message types for APIs to use.
|
|
|
|
|
+ Details []*any.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
|
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (m *Status) Reset() { *m = Status{} }
|
|
|
|
|
+func (m *Status) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
+func (*Status) ProtoMessage() {}
|
|
|
|
|
+func (*Status) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return fileDescriptor_status_c656c685916bdf47, []int{0}
|
|
|
|
|
+}
|
|
|
|
|
+func (m *Status) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
+ return xxx_messageInfo_Status.Unmarshal(m, b)
|
|
|
|
|
+}
|
|
|
|
|
+func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
+ return xxx_messageInfo_Status.Marshal(b, m, deterministic)
|
|
|
|
|
+}
|
|
|
|
|
+func (dst *Status) XXX_Merge(src proto.Message) {
|
|
|
|
|
+ xxx_messageInfo_Status.Merge(dst, src)
|
|
|
|
|
+}
|
|
|
|
|
+func (m *Status) XXX_Size() int {
|
|
|
|
|
+ return xxx_messageInfo_Status.Size(m)
|
|
|
|
|
+}
|
|
|
|
|
+func (m *Status) XXX_DiscardUnknown() {
|
|
|
|
|
+ xxx_messageInfo_Status.DiscardUnknown(m)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Status) Reset() { *m = Status{} }
|
|
|
|
|
-func (m *Status) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
-func (*Status) ProtoMessage() {}
|
|
|
|
|
-func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
|
|
|
+var xxx_messageInfo_Status proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Status) GetCode() int32 {
|
|
func (m *Status) GetCode() int32 {
|
|
|
if m != nil {
|
|
if m != nil {
|
|
@@ -111,7 +124,7 @@ func (m *Status) GetMessage() string {
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (m *Status) GetDetails() []*google_protobuf.Any {
|
|
|
|
|
|
|
+func (m *Status) GetDetails() []*any.Any {
|
|
|
if m != nil {
|
|
if m != nil {
|
|
|
return m.Details
|
|
return m.Details
|
|
|
}
|
|
}
|
|
@@ -122,9 +135,9 @@ func init() {
|
|
|
proto.RegisterType((*Status)(nil), "google.rpc.Status")
|
|
proto.RegisterType((*Status)(nil), "google.rpc.Status")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func init() { proto.RegisterFile("google/rpc/status.proto", fileDescriptor0) }
|
|
|
|
|
|
|
+func init() { proto.RegisterFile("google/rpc/status.proto", fileDescriptor_status_c656c685916bdf47) }
|
|
|
|
|
|
|
|
-var fileDescriptor0 = []byte{
|
|
|
|
|
|
|
+var fileDescriptor_status_c656c685916bdf47 = []byte{
|
|
|
// 209 bytes of a gzipped FileDescriptorProto
|
|
// 209 bytes of a gzipped FileDescriptorProto
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcf, 0xcf, 0x4f,
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcf, 0xcf, 0x4f,
|
|
|
0xcf, 0x49, 0xd5, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, 0x2b, 0x28,
|
|
0xcf, 0x49, 0xd5, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, 0x2b, 0x28,
|