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