deprecated.pb.go 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // deprecated/deprecated.proto is a deprecated file.
  3. package deprecated // import "github.com/golang/protobuf/protoc-gen-go/testdata/deprecated"
  4. /*
  5. package deprecated contains only deprecated messages and services.
  6. */
  7. import proto "github.com/golang/protobuf/proto"
  8. import fmt "fmt"
  9. import math "math"
  10. import (
  11. context "golang.org/x/net/context"
  12. grpc "google.golang.org/grpc"
  13. )
  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. // DeprecatedEnum contains deprecated values.
  24. type DeprecatedEnum int32 // Deprecated: Do not use.
  25. const (
  26. // DEPRECATED is the iota value of this enum.
  27. DeprecatedEnum_DEPRECATED DeprecatedEnum = 0 // Deprecated: Do not use.
  28. )
  29. var DeprecatedEnum_name = map[int32]string{
  30. 0: "DEPRECATED",
  31. }
  32. var DeprecatedEnum_value = map[string]int32{
  33. "DEPRECATED": 0,
  34. }
  35. func (x DeprecatedEnum) String() string {
  36. return proto.EnumName(DeprecatedEnum_name, int32(x))
  37. }
  38. func (DeprecatedEnum) EnumDescriptor() ([]byte, []int) {
  39. return fileDescriptor_deprecated_9e1889ba21817fad, []int{0}
  40. }
  41. // DeprecatedRequest is a request to DeprecatedCall.
  42. //
  43. // Deprecated: Do not use.
  44. type DeprecatedRequest struct {
  45. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  46. XXX_unrecognized []byte `json:"-"`
  47. XXX_sizecache int32 `json:"-"`
  48. }
  49. func (m *DeprecatedRequest) Reset() { *m = DeprecatedRequest{} }
  50. func (m *DeprecatedRequest) String() string { return proto.CompactTextString(m) }
  51. func (*DeprecatedRequest) ProtoMessage() {}
  52. func (*DeprecatedRequest) Descriptor() ([]byte, []int) {
  53. return fileDescriptor_deprecated_9e1889ba21817fad, []int{0}
  54. }
  55. func (m *DeprecatedRequest) XXX_Unmarshal(b []byte) error {
  56. return xxx_messageInfo_DeprecatedRequest.Unmarshal(m, b)
  57. }
  58. func (m *DeprecatedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  59. return xxx_messageInfo_DeprecatedRequest.Marshal(b, m, deterministic)
  60. }
  61. func (dst *DeprecatedRequest) XXX_Merge(src proto.Message) {
  62. xxx_messageInfo_DeprecatedRequest.Merge(dst, src)
  63. }
  64. func (m *DeprecatedRequest) XXX_Size() int {
  65. return xxx_messageInfo_DeprecatedRequest.Size(m)
  66. }
  67. func (m *DeprecatedRequest) XXX_DiscardUnknown() {
  68. xxx_messageInfo_DeprecatedRequest.DiscardUnknown(m)
  69. }
  70. var xxx_messageInfo_DeprecatedRequest proto.InternalMessageInfo
  71. // Deprecated: Do not use.
  72. type DeprecatedResponse struct {
  73. // DeprecatedField contains a DeprecatedEnum.
  74. DeprecatedField DeprecatedEnum `protobuf:"varint,1,opt,name=deprecated_field,json=deprecatedField,enum=deprecated.DeprecatedEnum" json:"deprecated_field,omitempty"` // Deprecated: Do not use.
  75. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  76. XXX_unrecognized []byte `json:"-"`
  77. XXX_sizecache int32 `json:"-"`
  78. }
  79. func (m *DeprecatedResponse) Reset() { *m = DeprecatedResponse{} }
  80. func (m *DeprecatedResponse) String() string { return proto.CompactTextString(m) }
  81. func (*DeprecatedResponse) ProtoMessage() {}
  82. func (*DeprecatedResponse) Descriptor() ([]byte, []int) {
  83. return fileDescriptor_deprecated_9e1889ba21817fad, []int{1}
  84. }
  85. func (m *DeprecatedResponse) XXX_Unmarshal(b []byte) error {
  86. return xxx_messageInfo_DeprecatedResponse.Unmarshal(m, b)
  87. }
  88. func (m *DeprecatedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  89. return xxx_messageInfo_DeprecatedResponse.Marshal(b, m, deterministic)
  90. }
  91. func (dst *DeprecatedResponse) XXX_Merge(src proto.Message) {
  92. xxx_messageInfo_DeprecatedResponse.Merge(dst, src)
  93. }
  94. func (m *DeprecatedResponse) XXX_Size() int {
  95. return xxx_messageInfo_DeprecatedResponse.Size(m)
  96. }
  97. func (m *DeprecatedResponse) XXX_DiscardUnknown() {
  98. xxx_messageInfo_DeprecatedResponse.DiscardUnknown(m)
  99. }
  100. var xxx_messageInfo_DeprecatedResponse proto.InternalMessageInfo
  101. // Deprecated: Do not use.
  102. func (m *DeprecatedResponse) GetDeprecatedField() DeprecatedEnum {
  103. if m != nil {
  104. return m.DeprecatedField
  105. }
  106. return DeprecatedEnum_DEPRECATED
  107. }
  108. func init() {
  109. proto.RegisterType((*DeprecatedRequest)(nil), "deprecated.DeprecatedRequest")
  110. proto.RegisterType((*DeprecatedResponse)(nil), "deprecated.DeprecatedResponse")
  111. proto.RegisterEnum("deprecated.DeprecatedEnum", DeprecatedEnum_name, DeprecatedEnum_value)
  112. }
  113. // Reference imports to suppress errors if they are not otherwise used.
  114. var _ context.Context
  115. var _ grpc.ClientConn
  116. // This is a compile-time assertion to ensure that this generated file
  117. // is compatible with the grpc package it is being compiled against.
  118. const _ = grpc.SupportPackageIsVersion4
  119. // Client API for DeprecatedService service
  120. // Deprecated: Do not use.
  121. type DeprecatedServiceClient interface {
  122. // DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
  123. DeprecatedCall(ctx context.Context, in *DeprecatedRequest, opts ...grpc.CallOption) (*DeprecatedResponse, error)
  124. }
  125. type deprecatedServiceClient struct {
  126. cc *grpc.ClientConn
  127. }
  128. // Deprecated: Do not use.
  129. func NewDeprecatedServiceClient(cc *grpc.ClientConn) DeprecatedServiceClient {
  130. return &deprecatedServiceClient{cc}
  131. }
  132. // Deprecated: Do not use.
  133. func (c *deprecatedServiceClient) DeprecatedCall(ctx context.Context, in *DeprecatedRequest, opts ...grpc.CallOption) (*DeprecatedResponse, error) {
  134. out := new(DeprecatedResponse)
  135. err := grpc.Invoke(ctx, "/deprecated.DeprecatedService/DeprecatedCall", in, out, c.cc, opts...)
  136. if err != nil {
  137. return nil, err
  138. }
  139. return out, nil
  140. }
  141. // Server API for DeprecatedService service
  142. // Deprecated: Do not use.
  143. type DeprecatedServiceServer interface {
  144. // DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
  145. DeprecatedCall(context.Context, *DeprecatedRequest) (*DeprecatedResponse, error)
  146. }
  147. // Deprecated: Do not use.
  148. func RegisterDeprecatedServiceServer(s *grpc.Server, srv DeprecatedServiceServer) {
  149. s.RegisterService(&_DeprecatedService_serviceDesc, srv)
  150. }
  151. func _DeprecatedService_DeprecatedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  152. in := new(DeprecatedRequest)
  153. if err := dec(in); err != nil {
  154. return nil, err
  155. }
  156. if interceptor == nil {
  157. return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, in)
  158. }
  159. info := &grpc.UnaryServerInfo{
  160. Server: srv,
  161. FullMethod: "/deprecated.DeprecatedService/DeprecatedCall",
  162. }
  163. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  164. return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, req.(*DeprecatedRequest))
  165. }
  166. return interceptor(ctx, in, info, handler)
  167. }
  168. var _DeprecatedService_serviceDesc = grpc.ServiceDesc{
  169. ServiceName: "deprecated.DeprecatedService",
  170. HandlerType: (*DeprecatedServiceServer)(nil),
  171. Methods: []grpc.MethodDesc{
  172. {
  173. MethodName: "DeprecatedCall",
  174. Handler: _DeprecatedService_DeprecatedCall_Handler,
  175. },
  176. },
  177. Streams: []grpc.StreamDesc{},
  178. Metadata: "deprecated/deprecated.proto",
  179. }
  180. func init() {
  181. proto.RegisterFile("deprecated/deprecated.proto", fileDescriptor_deprecated_9e1889ba21817fad)
  182. }
  183. var fileDescriptor_deprecated_9e1889ba21817fad = []byte{
  184. // 248 bytes of a gzipped FileDescriptorProto
  185. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0x49, 0x2d, 0x28,
  186. 0x4a, 0x4d, 0x4e, 0x2c, 0x49, 0x4d, 0xd1, 0x47, 0x30, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85,
  187. 0xb8, 0x10, 0x22, 0x4a, 0xe2, 0x5c, 0x82, 0x2e, 0x70, 0x5e, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71,
  188. 0x89, 0x15, 0x93, 0x04, 0xa3, 0x52, 0x32, 0x97, 0x10, 0xb2, 0x44, 0x71, 0x41, 0x7e, 0x5e, 0x71,
  189. 0xaa, 0x90, 0x27, 0x97, 0x00, 0x42, 0x73, 0x7c, 0x5a, 0x66, 0x6a, 0x4e, 0x8a, 0x04, 0xa3, 0x02,
  190. 0xa3, 0x06, 0x9f, 0x91, 0x94, 0x1e, 0x92, 0x3d, 0x08, 0x9d, 0xae, 0x79, 0xa5, 0xb9, 0x4e, 0x4c,
  191. 0x12, 0x8c, 0x41, 0xfc, 0x08, 0x69, 0x37, 0x90, 0x36, 0x90, 0x25, 0x5a, 0x1a, 0x5c, 0x7c, 0xa8,
  192. 0x4a, 0x85, 0x84, 0xb8, 0xb8, 0x5c, 0x5c, 0x03, 0x82, 0x5c, 0x9d, 0x1d, 0x43, 0x5c, 0x5d, 0x04,
  193. 0x18, 0xa4, 0x98, 0x38, 0x18, 0xa5, 0x98, 0x24, 0x18, 0x8d, 0xf2, 0x90, 0xdd, 0x19, 0x9c, 0x5a,
  194. 0x54, 0x96, 0x99, 0x9c, 0x2a, 0x14, 0x82, 0xac, 0xdd, 0x39, 0x31, 0x27, 0x47, 0x48, 0x16, 0xbb,
  195. 0x2b, 0xa0, 0x1e, 0x93, 0x92, 0xc3, 0x25, 0x0d, 0xf1, 0x9e, 0x12, 0x73, 0x07, 0x13, 0xa3, 0x14,
  196. 0x88, 0x70, 0x72, 0x8c, 0xb2, 0x49, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5,
  197. 0x4f, 0xcf, 0xcf, 0x49, 0xcc, 0x4b, 0xd7, 0x07, 0x07, 0x5f, 0x52, 0x69, 0x1a, 0x84, 0x91, 0xac,
  198. 0x9b, 0x9e, 0x9a, 0xa7, 0x9b, 0x9e, 0xaf, 0x5f, 0x92, 0x5a, 0x5c, 0x92, 0x92, 0x58, 0x92, 0x88,
  199. 0x14, 0xd2, 0x3b, 0x18, 0x19, 0x93, 0xd8, 0xc0, 0xaa, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff,
  200. 0x0e, 0xf5, 0x6c, 0x87, 0x8c, 0x01, 0x00, 0x00,
  201. }