khenaidoo | d948f77 | 2021-08-11 17:49:24 -0400 | [diff] [blame^] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: internal/errors.proto |
| 3 | |
| 4 | package internal |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | any "github.com/golang/protobuf/ptypes/any" |
| 10 | math "math" |
| 11 | ) |
| 12 | |
| 13 | // Reference imports to suppress errors if they are not otherwise used. |
| 14 | var _ = proto.Marshal |
| 15 | var _ = fmt.Errorf |
| 16 | var _ = math.Inf |
| 17 | |
| 18 | // This is a compile-time assertion to ensure that this generated file |
| 19 | // is compatible with the proto package it is being compiled against. |
| 20 | // A compilation error at this line likely means your copy of the |
| 21 | // proto package needs to be updated. |
| 22 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 23 | |
| 24 | // Error is the generic error returned from unary RPCs. |
| 25 | type Error struct { |
| 26 | Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` |
| 27 | // This is to make the error more compatible with users that expect errors to be Status objects: |
| 28 | // https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto |
| 29 | // It should be the exact same message as the Error field. |
| 30 | Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` |
| 31 | Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` |
| 32 | Details []*any.Any `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"` |
| 33 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 34 | XXX_unrecognized []byte `json:"-"` |
| 35 | XXX_sizecache int32 `json:"-"` |
| 36 | } |
| 37 | |
| 38 | func (m *Error) Reset() { *m = Error{} } |
| 39 | func (m *Error) String() string { return proto.CompactTextString(m) } |
| 40 | func (*Error) ProtoMessage() {} |
| 41 | func (*Error) Descriptor() ([]byte, []int) { |
| 42 | return fileDescriptor_9b093362ca6d1e03, []int{0} |
| 43 | } |
| 44 | |
| 45 | func (m *Error) XXX_Unmarshal(b []byte) error { |
| 46 | return xxx_messageInfo_Error.Unmarshal(m, b) |
| 47 | } |
| 48 | func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 49 | return xxx_messageInfo_Error.Marshal(b, m, deterministic) |
| 50 | } |
| 51 | func (m *Error) XXX_Merge(src proto.Message) { |
| 52 | xxx_messageInfo_Error.Merge(m, src) |
| 53 | } |
| 54 | func (m *Error) XXX_Size() int { |
| 55 | return xxx_messageInfo_Error.Size(m) |
| 56 | } |
| 57 | func (m *Error) XXX_DiscardUnknown() { |
| 58 | xxx_messageInfo_Error.DiscardUnknown(m) |
| 59 | } |
| 60 | |
| 61 | var xxx_messageInfo_Error proto.InternalMessageInfo |
| 62 | |
| 63 | func (m *Error) GetError() string { |
| 64 | if m != nil { |
| 65 | return m.Error |
| 66 | } |
| 67 | return "" |
| 68 | } |
| 69 | |
| 70 | func (m *Error) GetCode() int32 { |
| 71 | if m != nil { |
| 72 | return m.Code |
| 73 | } |
| 74 | return 0 |
| 75 | } |
| 76 | |
| 77 | func (m *Error) GetMessage() string { |
| 78 | if m != nil { |
| 79 | return m.Message |
| 80 | } |
| 81 | return "" |
| 82 | } |
| 83 | |
| 84 | func (m *Error) GetDetails() []*any.Any { |
| 85 | if m != nil { |
| 86 | return m.Details |
| 87 | } |
| 88 | return nil |
| 89 | } |
| 90 | |
| 91 | // StreamError is a response type which is returned when |
| 92 | // streaming rpc returns an error. |
| 93 | type StreamError struct { |
| 94 | GrpcCode int32 `protobuf:"varint,1,opt,name=grpc_code,json=grpcCode,proto3" json:"grpc_code,omitempty"` |
| 95 | HttpCode int32 `protobuf:"varint,2,opt,name=http_code,json=httpCode,proto3" json:"http_code,omitempty"` |
| 96 | Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` |
| 97 | HttpStatus string `protobuf:"bytes,4,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"` |
| 98 | Details []*any.Any `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` |
| 99 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 100 | XXX_unrecognized []byte `json:"-"` |
| 101 | XXX_sizecache int32 `json:"-"` |
| 102 | } |
| 103 | |
| 104 | func (m *StreamError) Reset() { *m = StreamError{} } |
| 105 | func (m *StreamError) String() string { return proto.CompactTextString(m) } |
| 106 | func (*StreamError) ProtoMessage() {} |
| 107 | func (*StreamError) Descriptor() ([]byte, []int) { |
| 108 | return fileDescriptor_9b093362ca6d1e03, []int{1} |
| 109 | } |
| 110 | |
| 111 | func (m *StreamError) XXX_Unmarshal(b []byte) error { |
| 112 | return xxx_messageInfo_StreamError.Unmarshal(m, b) |
| 113 | } |
| 114 | func (m *StreamError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 115 | return xxx_messageInfo_StreamError.Marshal(b, m, deterministic) |
| 116 | } |
| 117 | func (m *StreamError) XXX_Merge(src proto.Message) { |
| 118 | xxx_messageInfo_StreamError.Merge(m, src) |
| 119 | } |
| 120 | func (m *StreamError) XXX_Size() int { |
| 121 | return xxx_messageInfo_StreamError.Size(m) |
| 122 | } |
| 123 | func (m *StreamError) XXX_DiscardUnknown() { |
| 124 | xxx_messageInfo_StreamError.DiscardUnknown(m) |
| 125 | } |
| 126 | |
| 127 | var xxx_messageInfo_StreamError proto.InternalMessageInfo |
| 128 | |
| 129 | func (m *StreamError) GetGrpcCode() int32 { |
| 130 | if m != nil { |
| 131 | return m.GrpcCode |
| 132 | } |
| 133 | return 0 |
| 134 | } |
| 135 | |
| 136 | func (m *StreamError) GetHttpCode() int32 { |
| 137 | if m != nil { |
| 138 | return m.HttpCode |
| 139 | } |
| 140 | return 0 |
| 141 | } |
| 142 | |
| 143 | func (m *StreamError) GetMessage() string { |
| 144 | if m != nil { |
| 145 | return m.Message |
| 146 | } |
| 147 | return "" |
| 148 | } |
| 149 | |
| 150 | func (m *StreamError) GetHttpStatus() string { |
| 151 | if m != nil { |
| 152 | return m.HttpStatus |
| 153 | } |
| 154 | return "" |
| 155 | } |
| 156 | |
| 157 | func (m *StreamError) GetDetails() []*any.Any { |
| 158 | if m != nil { |
| 159 | return m.Details |
| 160 | } |
| 161 | return nil |
| 162 | } |
| 163 | |
| 164 | func init() { |
| 165 | proto.RegisterType((*Error)(nil), "grpc.gateway.runtime.Error") |
| 166 | proto.RegisterType((*StreamError)(nil), "grpc.gateway.runtime.StreamError") |
| 167 | } |
| 168 | |
| 169 | func init() { proto.RegisterFile("internal/errors.proto", fileDescriptor_9b093362ca6d1e03) } |
| 170 | |
| 171 | var fileDescriptor_9b093362ca6d1e03 = []byte{ |
| 172 | // 252 bytes of a gzipped FileDescriptorProto |
| 173 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xc1, 0x4a, 0xc4, 0x30, |
| 174 | 0x10, 0x86, 0x89, 0xbb, 0x75, 0xdb, 0xe9, 0x2d, 0x54, 0x88, 0xee, 0xc1, 0xb2, 0xa7, 0x9e, 0x52, |
| 175 | 0xd0, 0x27, 0xd0, 0xc5, 0x17, 0xe8, 0xde, 0xbc, 0x2c, 0xd9, 0xdd, 0x31, 0x16, 0xda, 0xa4, 0x24, |
| 176 | 0x53, 0xa4, 0xf8, 0x56, 0x3e, 0xa1, 0x24, 0xa5, 0xb0, 0x27, 0xf1, 0xd6, 0xf9, 0xfb, 0xcf, 0x7c, |
| 177 | 0x1f, 0x81, 0xbb, 0xd6, 0x10, 0x3a, 0xa3, 0xba, 0x1a, 0x9d, 0xb3, 0xce, 0xcb, 0xc1, 0x59, 0xb2, |
| 178 | 0xbc, 0xd0, 0x6e, 0x38, 0x4b, 0xad, 0x08, 0xbf, 0xd4, 0x24, 0xdd, 0x68, 0xa8, 0xed, 0xf1, 0xe1, |
| 179 | 0x5e, 0x5b, 0xab, 0x3b, 0xac, 0x63, 0xe7, 0x34, 0x7e, 0xd4, 0xca, 0x4c, 0xf3, 0xc2, 0xee, 0x1b, |
| 180 | 0x92, 0xb7, 0x70, 0x80, 0x17, 0x90, 0xc4, 0x4b, 0x82, 0x95, 0xac, 0xca, 0x9a, 0x79, 0xe0, 0x1c, |
| 181 | 0xd6, 0x67, 0x7b, 0x41, 0x71, 0x53, 0xb2, 0x2a, 0x69, 0xe2, 0x37, 0x17, 0xb0, 0xe9, 0xd1, 0x7b, |
| 182 | 0xa5, 0x51, 0xac, 0x62, 0x77, 0x19, 0xb9, 0x84, 0xcd, 0x05, 0x49, 0xb5, 0x9d, 0x17, 0xeb, 0x72, |
| 183 | 0x55, 0xe5, 0x4f, 0x85, 0x9c, 0xc9, 0x72, 0x21, 0xcb, 0x17, 0x33, 0x35, 0x4b, 0x69, 0xf7, 0xc3, |
| 184 | 0x20, 0x3f, 0x90, 0x43, 0xd5, 0xcf, 0x0e, 0x5b, 0xc8, 0x82, 0xff, 0x31, 0x22, 0x59, 0x44, 0xa6, |
| 185 | 0x21, 0xd8, 0x07, 0xec, 0x16, 0xb2, 0x4f, 0xa2, 0xe1, 0x78, 0xe5, 0x93, 0x86, 0x60, 0xff, 0xb7, |
| 186 | 0xd3, 0x23, 0xe4, 0x71, 0xcd, 0x93, 0xa2, 0x31, 0x78, 0x85, 0xbf, 0x10, 0xa2, 0x43, 0x4c, 0xae, |
| 187 | 0xa5, 0x93, 0x7f, 0x48, 0xbf, 0xc2, 0x7b, 0xba, 0xbc, 0xfd, 0xe9, 0x36, 0x56, 0x9e, 0x7f, 0x03, |
| 188 | 0x00, 0x00, 0xff, 0xff, 0xde, 0x72, 0x6b, 0x83, 0x8e, 0x01, 0x00, 0x00, |
| 189 | } |