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