diff options
Diffstat (limited to 'vendor/google.golang.org/genproto/googleapis/rpc/status')
-rw-r--r-- | vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go | 55 |
1 files changed, 34 insertions, 21 deletions
diff --git a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go index 8867ae7..7bfe37a 100644 --- a/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go +++ b/vendor/google.golang.org/genproto/googleapis/rpc/status/status.pb.go | |||
@@ -1,21 +1,12 @@ | |||
1 | // Code generated by protoc-gen-go. DO NOT EDIT. | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
2 | // source: google/rpc/status.proto | 2 | // source: google/rpc/status.proto |
3 | 3 | ||
4 | /* | 4 | package status // import "google.golang.org/genproto/googleapis/rpc/status" |
5 | Package status is a generated protocol buffer package. | ||
6 | |||
7 | It is generated from these files: | ||
8 | google/rpc/status.proto | ||
9 | |||
10 | It has these top-level messages: | ||
11 | Status | ||
12 | */ | ||
13 | package status | ||
14 | 5 | ||
15 | import proto "github.com/golang/protobuf/proto" | 6 | import proto "github.com/golang/protobuf/proto" |
16 | import fmt "fmt" | 7 | import fmt "fmt" |
17 | import math "math" | 8 | import math "math" |
18 | import google_protobuf "github.com/golang/protobuf/ptypes/any" | 9 | import any "github.com/golang/protobuf/ptypes/any" |
19 | 10 | ||
20 | // Reference imports to suppress errors if they are not otherwise used. | 11 | // Reference imports to suppress errors if they are not otherwise used. |
21 | var _ = proto.Marshal | 12 | var _ = proto.Marshal |
@@ -82,20 +73,42 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package | |||
82 | // be used directly after any stripping needed for security/privacy reasons. | 73 | // be used directly after any stripping needed for security/privacy reasons. |
83 | type Status struct { | 74 | type Status struct { |
84 | // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. | 75 | // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. |
85 | Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` | 76 | Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` |
86 | // A developer-facing error message, which should be in English. Any | 77 | // A developer-facing error message, which should be in English. Any |
87 | // user-facing error message should be localized and sent in the | 78 | // user-facing error message should be localized and sent in the |
88 | // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. | 79 | // [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. |
89 | Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` | 80 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` |
90 | // A list of messages that carry the error details. There is a common set of | 81 | // A list of messages that carry the error details. There is a common set of |
91 | // message types for APIs to use. | 82 | // message types for APIs to use. |
92 | Details []*google_protobuf.Any `protobuf:"bytes,3,rep,name=details" json:"details,omitempty"` | 83 | Details []*any.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` |
84 | XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||
85 | XXX_unrecognized []byte `json:"-"` | ||
86 | XXX_sizecache int32 `json:"-"` | ||
87 | } | ||
88 | |||
89 | func (m *Status) Reset() { *m = Status{} } | ||
90 | func (m *Status) String() string { return proto.CompactTextString(m) } | ||
91 | func (*Status) ProtoMessage() {} | ||
92 | func (*Status) Descriptor() ([]byte, []int) { | ||
93 | return fileDescriptor_status_c6e4de62dcdf2edf, []int{0} | ||
94 | } | ||
95 | func (m *Status) XXX_Unmarshal(b []byte) error { | ||
96 | return xxx_messageInfo_Status.Unmarshal(m, b) | ||
97 | } | ||
98 | func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||
99 | return xxx_messageInfo_Status.Marshal(b, m, deterministic) | ||
100 | } | ||
101 | func (dst *Status) XXX_Merge(src proto.Message) { | ||
102 | xxx_messageInfo_Status.Merge(dst, src) | ||
103 | } | ||
104 | func (m *Status) XXX_Size() int { | ||
105 | return xxx_messageInfo_Status.Size(m) | ||
106 | } | ||
107 | func (m *Status) XXX_DiscardUnknown() { | ||
108 | xxx_messageInfo_Status.DiscardUnknown(m) | ||
93 | } | 109 | } |
94 | 110 | ||
95 | func (m *Status) Reset() { *m = Status{} } | 111 | var xxx_messageInfo_Status proto.InternalMessageInfo |
96 | func (m *Status) String() string { return proto.CompactTextString(m) } | ||
97 | func (*Status) ProtoMessage() {} | ||
98 | func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } | ||
99 | 112 | ||
100 | func (m *Status) GetCode() int32 { | 113 | func (m *Status) GetCode() int32 { |
101 | if m != nil { | 114 | if m != nil { |
@@ -111,7 +124,7 @@ func (m *Status) GetMessage() string { | |||
111 | return "" | 124 | return "" |
112 | } | 125 | } |
113 | 126 | ||
114 | func (m *Status) GetDetails() []*google_protobuf.Any { | 127 | func (m *Status) GetDetails() []*any.Any { |
115 | if m != nil { | 128 | if m != nil { |
116 | return m.Details | 129 | return m.Details |
117 | } | 130 | } |
@@ -122,9 +135,9 @@ func init() { | |||
122 | proto.RegisterType((*Status)(nil), "google.rpc.Status") | 135 | proto.RegisterType((*Status)(nil), "google.rpc.Status") |
123 | } | 136 | } |
124 | 137 | ||
125 | func init() { proto.RegisterFile("google/rpc/status.proto", fileDescriptor0) } | 138 | func init() { proto.RegisterFile("google/rpc/status.proto", fileDescriptor_status_c6e4de62dcdf2edf) } |
126 | 139 | ||
127 | var fileDescriptor0 = []byte{ | 140 | var fileDescriptor_status_c6e4de62dcdf2edf = []byte{ |
128 | // 209 bytes of a gzipped FileDescriptorProto | 141 | // 209 bytes of a gzipped FileDescriptorProto |
129 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcf, 0xcf, 0x4f, | 142 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcf, 0xcf, 0x4f, |
130 | 0xcf, 0x49, 0xd5, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, 0x2b, 0x28, | 143 | 0xcf, 0x49, 0xd5, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x2e, 0x49, 0x2c, 0x29, 0x2d, 0xd6, 0x2b, 0x28, |