errors.pb.go 6.5 KB

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