stream_chunk.pb.go 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: runtime/internal/stream_chunk.proto
  3. /*
  4. Package internal is a generated protocol buffer package.
  5. It is generated from these files:
  6. runtime/internal/stream_chunk.proto
  7. It has these top-level messages:
  8. StreamError
  9. */
  10. package internal
  11. import proto "github.com/golang/protobuf/proto"
  12. import fmt "fmt"
  13. import math "math"
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  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.ProtoPackageIsVersion2 // please upgrade the proto package
  23. // StreamError is a response type which is returned when
  24. // streaming rpc returns an error.
  25. type StreamError struct {
  26. GrpcCode int32 `protobuf:"varint,1,opt,name=grpc_code,json=grpcCode" json:"grpc_code,omitempty"`
  27. HttpCode int32 `protobuf:"varint,2,opt,name=http_code,json=httpCode" json:"http_code,omitempty"`
  28. Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
  29. HttpStatus string `protobuf:"bytes,4,opt,name=http_status,json=httpStatus" json:"http_status,omitempty"`
  30. }
  31. func (m *StreamError) Reset() { *m = StreamError{} }
  32. func (m *StreamError) String() string { return proto.CompactTextString(m) }
  33. func (*StreamError) ProtoMessage() {}
  34. func (*StreamError) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  35. func (m *StreamError) GetGrpcCode() int32 {
  36. if m != nil {
  37. return m.GrpcCode
  38. }
  39. return 0
  40. }
  41. func (m *StreamError) GetHttpCode() int32 {
  42. if m != nil {
  43. return m.HttpCode
  44. }
  45. return 0
  46. }
  47. func (m *StreamError) GetMessage() string {
  48. if m != nil {
  49. return m.Message
  50. }
  51. return ""
  52. }
  53. func (m *StreamError) GetHttpStatus() string {
  54. if m != nil {
  55. return m.HttpStatus
  56. }
  57. return ""
  58. }
  59. func init() {
  60. proto.RegisterType((*StreamError)(nil), "grpc.gateway.runtime.StreamError")
  61. }
  62. func init() { proto.RegisterFile("runtime/internal/stream_chunk.proto", fileDescriptor0) }
  63. var fileDescriptor0 = []byte{
  64. // 181 bytes of a gzipped FileDescriptorProto
  65. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x34, 0x8e, 0xbf, 0xee, 0x82, 0x30,
  66. 0x14, 0x85, 0xd3, 0xdf, 0x1f, 0x85, 0xcb, 0x46, 0x1c, 0x9a, 0x38, 0x48, 0x74, 0x61, 0x82, 0xc1,
  67. 0x37, 0xd0, 0xf8, 0x02, 0xb0, 0xb9, 0x90, 0x0a, 0x37, 0x40, 0x94, 0x96, 0xdc, 0x5e, 0x62, 0x5c,
  68. 0x7d, 0x72, 0xd3, 0x22, 0xe3, 0xf9, 0xbe, 0x73, 0x92, 0x03, 0x07, 0x9a, 0x34, 0xf7, 0x03, 0xe6,
  69. 0xbd, 0x66, 0x24, 0xad, 0x1e, 0xb9, 0x65, 0x42, 0x35, 0x54, 0x75, 0x37, 0xe9, 0x7b, 0x36, 0x92,
  70. 0x61, 0x13, 0x6f, 0x5a, 0x1a, 0xeb, 0xac, 0x55, 0x8c, 0x4f, 0xf5, 0xca, 0xbe, 0x8b, 0xfd, 0x5b,
  71. 0x40, 0x54, 0xfa, 0xf2, 0x85, 0xc8, 0x50, 0xbc, 0x85, 0xd0, 0xf5, 0xaa, 0xda, 0x34, 0x28, 0x45,
  72. 0x22, 0xd2, 0xff, 0x22, 0x70, 0xe0, 0x6c, 0x1a, 0x74, 0xb2, 0x63, 0x1e, 0x67, 0xf9, 0x33, 0x4b,
  73. 0x07, 0xbc, 0x94, 0xb0, 0x1e, 0xd0, 0x5a, 0xd5, 0xa2, 0xfc, 0x4d, 0x44, 0x1a, 0x16, 0x4b, 0x8c,
  74. 0x77, 0x10, 0xf9, 0x99, 0x65, 0xc5, 0x93, 0x95, 0x7f, 0xde, 0x82, 0x43, 0xa5, 0x27, 0x27, 0xb8,
  75. 0x06, 0xcb, 0xf3, 0xdb, 0xca, 0xbf, 0x3d, 0x7e, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa9, 0x07, 0x92,
  76. 0xb6, 0xd4, 0x00, 0x00, 0x00,
  77. }