1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package status
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 anypb "google.golang.org/protobuf/types/known/anypb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40
41
42
43
44
45
46 type Status struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51
52
53 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
54
55
56
57
58 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
59
60
61 Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
62 }
63
64 func (x *Status) Reset() {
65 *x = Status{}
66 if protoimpl.UnsafeEnabled {
67 mi := &file_google_rpc_status_proto_msgTypes[0]
68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
69 ms.StoreMessageInfo(mi)
70 }
71 }
72
73 func (x *Status) String() string {
74 return protoimpl.X.MessageStringOf(x)
75 }
76
77 func (*Status) ProtoMessage() {}
78
79 func (x *Status) ProtoReflect() protoreflect.Message {
80 mi := &file_google_rpc_status_proto_msgTypes[0]
81 if protoimpl.UnsafeEnabled && x != nil {
82 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
83 if ms.LoadMessageInfo() == nil {
84 ms.StoreMessageInfo(mi)
85 }
86 return ms
87 }
88 return mi.MessageOf(x)
89 }
90
91
92 func (*Status) Descriptor() ([]byte, []int) {
93 return file_google_rpc_status_proto_rawDescGZIP(), []int{0}
94 }
95
96 func (x *Status) GetCode() int32 {
97 if x != nil {
98 return x.Code
99 }
100 return 0
101 }
102
103 func (x *Status) GetMessage() string {
104 if x != nil {
105 return x.Message
106 }
107 return ""
108 }
109
110 func (x *Status) GetDetails() []*anypb.Any {
111 if x != nil {
112 return x.Details
113 }
114 return nil
115 }
116
117 var File_google_rpc_status_proto protoreflect.FileDescriptor
118
119 var file_google_rpc_status_proto_rawDesc = []byte{
120 0x0a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61,
121 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
122 0x65, 0x2e, 0x72, 0x70, 0x63, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
123 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
124 0x22, 0x66, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
125 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18,
126 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
127 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61,
128 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
129 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52,
130 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x42, 0x61, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e,
131 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x0b, 0x53, 0x74, 0x61, 0x74,
132 0x75, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
133 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
134 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
135 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x3b, 0x73, 0x74, 0x61, 0x74,
136 0x75, 0x73, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x52, 0x50, 0x43, 0x62, 0x06, 0x70, 0x72, 0x6f,
137 0x74, 0x6f, 0x33,
138 }
139
140 var (
141 file_google_rpc_status_proto_rawDescOnce sync.Once
142 file_google_rpc_status_proto_rawDescData = file_google_rpc_status_proto_rawDesc
143 )
144
145 func file_google_rpc_status_proto_rawDescGZIP() []byte {
146 file_google_rpc_status_proto_rawDescOnce.Do(func() {
147 file_google_rpc_status_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_rpc_status_proto_rawDescData)
148 })
149 return file_google_rpc_status_proto_rawDescData
150 }
151
152 var file_google_rpc_status_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
153 var file_google_rpc_status_proto_goTypes = []interface{}{
154 (*Status)(nil),
155 (*anypb.Any)(nil),
156 }
157 var file_google_rpc_status_proto_depIdxs = []int32{
158 1,
159 1,
160 1,
161 1,
162 1,
163 0,
164 }
165
166 func init() { file_google_rpc_status_proto_init() }
167 func file_google_rpc_status_proto_init() {
168 if File_google_rpc_status_proto != nil {
169 return
170 }
171 if !protoimpl.UnsafeEnabled {
172 file_google_rpc_status_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
173 switch v := v.(*Status); i {
174 case 0:
175 return &v.state
176 case 1:
177 return &v.sizeCache
178 case 2:
179 return &v.unknownFields
180 default:
181 return nil
182 }
183 }
184 }
185 type x struct{}
186 out := protoimpl.TypeBuilder{
187 File: protoimpl.DescBuilder{
188 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
189 RawDescriptor: file_google_rpc_status_proto_rawDesc,
190 NumEnums: 0,
191 NumMessages: 1,
192 NumExtensions: 0,
193 NumServices: 0,
194 },
195 GoTypes: file_google_rpc_status_proto_goTypes,
196 DependencyIndexes: file_google_rpc_status_proto_depIdxs,
197 MessageInfos: file_google_rpc_status_proto_msgTypes,
198 }.Build()
199 File_google_rpc_status_proto = out.File
200 file_google_rpc_status_proto_rawDesc = nil
201 file_google_rpc_status_proto_goTypes = nil
202 file_google_rpc_status_proto_depIdxs = nil
203 }
204
View as plain text