deprecated.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // deprecated/deprecated.proto is a deprecated file.
  3. // package deprecated contains only deprecated messages and services.
  4. package deprecated
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  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.ProtoPackageIsVersion3 // 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_f64ba265cd7eae3f, []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_f64ba265cd7eae3f, []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 (m *DeprecatedRequest) XXX_Merge(src proto.Message) {
  62. xxx_messageInfo_DeprecatedRequest.Merge(m, 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,proto3,enum=deprecated.DeprecatedEnum" json:"deprecated_field,omitempty"` // Deprecated: Do not use.
  75. // DeprecatedOneof contains a deprecated field.
  76. //
  77. // Types that are valid to be assigned to DeprecatedOneof:
  78. // *DeprecatedResponse_DeprecatedOneofField
  79. DeprecatedOneof isDeprecatedResponse_DeprecatedOneof `protobuf_oneof:"deprecated_oneof"`
  80. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  81. XXX_unrecognized []byte `json:"-"`
  82. XXX_sizecache int32 `json:"-"`
  83. }
  84. func (m *DeprecatedResponse) Reset() { *m = DeprecatedResponse{} }
  85. func (m *DeprecatedResponse) String() string { return proto.CompactTextString(m) }
  86. func (*DeprecatedResponse) ProtoMessage() {}
  87. func (*DeprecatedResponse) Descriptor() ([]byte, []int) {
  88. return fileDescriptor_f64ba265cd7eae3f, []int{1}
  89. }
  90. func (m *DeprecatedResponse) XXX_Unmarshal(b []byte) error {
  91. return xxx_messageInfo_DeprecatedResponse.Unmarshal(m, b)
  92. }
  93. func (m *DeprecatedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  94. return xxx_messageInfo_DeprecatedResponse.Marshal(b, m, deterministic)
  95. }
  96. func (m *DeprecatedResponse) XXX_Merge(src proto.Message) {
  97. xxx_messageInfo_DeprecatedResponse.Merge(m, src)
  98. }
  99. func (m *DeprecatedResponse) XXX_Size() int {
  100. return xxx_messageInfo_DeprecatedResponse.Size(m)
  101. }
  102. func (m *DeprecatedResponse) XXX_DiscardUnknown() {
  103. xxx_messageInfo_DeprecatedResponse.DiscardUnknown(m)
  104. }
  105. var xxx_messageInfo_DeprecatedResponse proto.InternalMessageInfo
  106. // Deprecated: Do not use.
  107. func (m *DeprecatedResponse) GetDeprecatedField() DeprecatedEnum {
  108. if m != nil {
  109. return m.DeprecatedField
  110. }
  111. return DeprecatedEnum_DEPRECATED
  112. }
  113. type isDeprecatedResponse_DeprecatedOneof interface {
  114. isDeprecatedResponse_DeprecatedOneof()
  115. }
  116. type DeprecatedResponse_DeprecatedOneofField struct {
  117. DeprecatedOneofField string `protobuf:"bytes,2,opt,name=deprecated_oneof_field,json=deprecatedOneofField,proto3,oneof"`
  118. }
  119. func (*DeprecatedResponse_DeprecatedOneofField) isDeprecatedResponse_DeprecatedOneof() {}
  120. func (m *DeprecatedResponse) GetDeprecatedOneof() isDeprecatedResponse_DeprecatedOneof {
  121. if m != nil {
  122. return m.DeprecatedOneof
  123. }
  124. return nil
  125. }
  126. // Deprecated: Do not use.
  127. func (m *DeprecatedResponse) GetDeprecatedOneofField() string {
  128. if x, ok := m.GetDeprecatedOneof().(*DeprecatedResponse_DeprecatedOneofField); ok {
  129. return x.DeprecatedOneofField
  130. }
  131. return ""
  132. }
  133. // XXX_OneofWrappers is for the internal use of the proto package.
  134. func (*DeprecatedResponse) XXX_OneofWrappers() []interface{} {
  135. return []interface{}{
  136. (*DeprecatedResponse_DeprecatedOneofField)(nil),
  137. }
  138. }
  139. func init() {
  140. proto.RegisterEnum("deprecated.DeprecatedEnum", DeprecatedEnum_name, DeprecatedEnum_value)
  141. proto.RegisterType((*DeprecatedRequest)(nil), "deprecated.DeprecatedRequest")
  142. proto.RegisterType((*DeprecatedResponse)(nil), "deprecated.DeprecatedResponse")
  143. }
  144. func init() { proto.RegisterFile("deprecated/deprecated.proto", fileDescriptor_f64ba265cd7eae3f) }
  145. var fileDescriptor_f64ba265cd7eae3f = []byte{
  146. // 287 bytes of a gzipped FileDescriptorProto
  147. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xcd, 0x4a, 0xf3, 0x40,
  148. 0x14, 0x86, 0x7b, 0xe6, 0x83, 0x0f, 0x9d, 0x45, 0xad, 0x83, 0x68, 0x88, 0x28, 0x25, 0xab, 0x20,
  149. 0x34, 0x81, 0xba, 0x2b, 0x6e, 0x9a, 0x26, 0xa2, 0x2b, 0x25, 0x76, 0xe5, 0x46, 0xf2, 0x73, 0x12,
  150. 0x03, 0xe9, 0x4c, 0x4c, 0x26, 0x5e, 0x83, 0xf7, 0xe3, 0xc6, 0xcb, 0x93, 0x49, 0x8b, 0x33, 0x05,
  151. 0xdd, 0x84, 0x93, 0x79, 0xdf, 0xe7, 0xfc, 0xd2, 0xf3, 0x1c, 0x9b, 0x16, 0xb3, 0x44, 0x62, 0xee,
  152. 0xeb, 0xd0, 0x6b, 0x5a, 0x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, 0x12, 0x3b, 0x99, 0x27, 0x32, 0x31, 0x4e, 0xf7, 0x05, 0x90, 0xfe, 0x1f, 0x5c,
  164. 0xd7, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x08, 0xd5, 0xa0, 0x89, 0xdd, 0x01, 0x00, 0x00,
  165. }
  166. // Reference imports to suppress errors if they are not otherwise used.
  167. var _ context.Context
  168. var _ grpc.ClientConn
  169. // This is a compile-time assertion to ensure that this generated file
  170. // is compatible with the grpc package it is being compiled against.
  171. const _ = grpc.SupportPackageIsVersion4
  172. // DeprecatedServiceClient is the client API for DeprecatedService service.
  173. //
  174. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  175. //
  176. // Deprecated: Do not use.
  177. type DeprecatedServiceClient interface {
  178. // DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
  179. //
  180. // Deprecated: Do not use.
  181. DeprecatedCall(ctx context.Context, in *DeprecatedRequest, opts ...grpc.CallOption) (*DeprecatedResponse, error)
  182. }
  183. type deprecatedServiceClient struct {
  184. cc *grpc.ClientConn
  185. }
  186. // Deprecated: Do not use.
  187. func NewDeprecatedServiceClient(cc *grpc.ClientConn) DeprecatedServiceClient {
  188. return &deprecatedServiceClient{cc}
  189. }
  190. // Deprecated: Do not use.
  191. func (c *deprecatedServiceClient) DeprecatedCall(ctx context.Context, in *DeprecatedRequest, opts ...grpc.CallOption) (*DeprecatedResponse, error) {
  192. out := new(DeprecatedResponse)
  193. err := c.cc.Invoke(ctx, "/deprecated.DeprecatedService/DeprecatedCall", in, out, opts...)
  194. if err != nil {
  195. return nil, err
  196. }
  197. return out, nil
  198. }
  199. // DeprecatedServiceServer is the server API for DeprecatedService service.
  200. //
  201. // Deprecated: Do not use.
  202. type DeprecatedServiceServer interface {
  203. // DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
  204. //
  205. // Deprecated: Do not use.
  206. DeprecatedCall(context.Context, *DeprecatedRequest) (*DeprecatedResponse, error)
  207. }
  208. // Deprecated: Do not use.
  209. // UnimplementedDeprecatedServiceServer can be embedded to have forward compatible implementations.
  210. type UnimplementedDeprecatedServiceServer struct {
  211. }
  212. func (*UnimplementedDeprecatedServiceServer) DeprecatedCall(ctx context.Context, req *DeprecatedRequest) (*DeprecatedResponse, error) {
  213. return nil, status.Errorf(codes.Unimplemented, "method DeprecatedCall not implemented")
  214. }
  215. // Deprecated: Do not use.
  216. func RegisterDeprecatedServiceServer(s *grpc.Server, srv DeprecatedServiceServer) {
  217. s.RegisterService(&_DeprecatedService_serviceDesc, srv)
  218. }
  219. func _DeprecatedService_DeprecatedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  220. in := new(DeprecatedRequest)
  221. if err := dec(in); err != nil {
  222. return nil, err
  223. }
  224. if interceptor == nil {
  225. return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, in)
  226. }
  227. info := &grpc.UnaryServerInfo{
  228. Server: srv,
  229. FullMethod: "/deprecated.DeprecatedService/DeprecatedCall",
  230. }
  231. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  232. return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, req.(*DeprecatedRequest))
  233. }
  234. return interceptor(ctx, in, info, handler)
  235. }
  236. var _DeprecatedService_serviceDesc = grpc.ServiceDesc{
  237. ServiceName: "deprecated.DeprecatedService",
  238. HandlerType: (*DeprecatedServiceServer)(nil),
  239. Methods: []grpc.MethodDesc{
  240. {
  241. MethodName: "DeprecatedCall",
  242. Handler: _DeprecatedService_DeprecatedCall_Handler,
  243. },
  244. },
  245. Streams: []grpc.StreamDesc{},
  246. Metadata: "deprecated/deprecated.proto",
  247. }