github.com/gogo/protobuf@v1.3.2/protoc-gen-gogo/testdata/deprecated/deprecated.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // deprecated/deprecated.proto is a deprecated file.
     3  
     4  // package deprecated contains only deprecated messages and services.
     5  
     6  package deprecated
     7  
     8  import (
     9  	context "context"
    10  	fmt "fmt"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	math "math"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  // DeprecatedEnum contains deprecated values.
    30  type DeprecatedEnum int32 // Deprecated: Do not use.
    31  const (
    32  	// DEPRECATED is the iota value of this enum.
    33  	DeprecatedEnum_DEPRECATED DeprecatedEnum = 0 // Deprecated: Do not use.
    34  )
    35  
    36  var DeprecatedEnum_name = map[int32]string{
    37  	0: "DEPRECATED",
    38  }
    39  
    40  var DeprecatedEnum_value = map[string]int32{
    41  	"DEPRECATED": 0,
    42  }
    43  
    44  func (x DeprecatedEnum) String() string {
    45  	return proto.EnumName(DeprecatedEnum_name, int32(x))
    46  }
    47  
    48  func (DeprecatedEnum) EnumDescriptor() ([]byte, []int) {
    49  	return fileDescriptor_f64ba265cd7eae3f, []int{0}
    50  }
    51  
    52  // DeprecatedRequest is a request to DeprecatedCall.
    53  //
    54  // Deprecated: Do not use.
    55  type DeprecatedRequest struct {
    56  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    57  	XXX_unrecognized     []byte   `json:"-"`
    58  	XXX_sizecache        int32    `json:"-"`
    59  }
    60  
    61  func (m *DeprecatedRequest) Reset()         { *m = DeprecatedRequest{} }
    62  func (m *DeprecatedRequest) String() string { return proto.CompactTextString(m) }
    63  func (*DeprecatedRequest) ProtoMessage()    {}
    64  func (*DeprecatedRequest) Descriptor() ([]byte, []int) {
    65  	return fileDescriptor_f64ba265cd7eae3f, []int{0}
    66  }
    67  func (m *DeprecatedRequest) XXX_Unmarshal(b []byte) error {
    68  	return xxx_messageInfo_DeprecatedRequest.Unmarshal(m, b)
    69  }
    70  func (m *DeprecatedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    71  	return xxx_messageInfo_DeprecatedRequest.Marshal(b, m, deterministic)
    72  }
    73  func (m *DeprecatedRequest) XXX_Merge(src proto.Message) {
    74  	xxx_messageInfo_DeprecatedRequest.Merge(m, src)
    75  }
    76  func (m *DeprecatedRequest) XXX_Size() int {
    77  	return xxx_messageInfo_DeprecatedRequest.Size(m)
    78  }
    79  func (m *DeprecatedRequest) XXX_DiscardUnknown() {
    80  	xxx_messageInfo_DeprecatedRequest.DiscardUnknown(m)
    81  }
    82  
    83  var xxx_messageInfo_DeprecatedRequest proto.InternalMessageInfo
    84  
    85  // Deprecated: Do not use.
    86  type DeprecatedResponse struct {
    87  	// DeprecatedField contains a DeprecatedEnum.
    88  	DeprecatedField DeprecatedEnum `protobuf:"varint,1,opt,name=deprecated_field,json=deprecatedField,proto3,enum=deprecated.DeprecatedEnum" json:"deprecated_field,omitempty"` // Deprecated: Do not use.
    89  	// DeprecatedOneof contains a deprecated field.
    90  	//
    91  	// Types that are valid to be assigned to DeprecatedOneof:
    92  	//	*DeprecatedResponse_DeprecatedOneofField
    93  	DeprecatedOneof      isDeprecatedResponse_DeprecatedOneof `protobuf_oneof:"deprecated_oneof"`
    94  	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
    95  	XXX_unrecognized     []byte                               `json:"-"`
    96  	XXX_sizecache        int32                                `json:"-"`
    97  }
    98  
    99  func (m *DeprecatedResponse) Reset()         { *m = DeprecatedResponse{} }
   100  func (m *DeprecatedResponse) String() string { return proto.CompactTextString(m) }
   101  func (*DeprecatedResponse) ProtoMessage()    {}
   102  func (*DeprecatedResponse) Descriptor() ([]byte, []int) {
   103  	return fileDescriptor_f64ba265cd7eae3f, []int{1}
   104  }
   105  func (m *DeprecatedResponse) XXX_Unmarshal(b []byte) error {
   106  	return xxx_messageInfo_DeprecatedResponse.Unmarshal(m, b)
   107  }
   108  func (m *DeprecatedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   109  	return xxx_messageInfo_DeprecatedResponse.Marshal(b, m, deterministic)
   110  }
   111  func (m *DeprecatedResponse) XXX_Merge(src proto.Message) {
   112  	xxx_messageInfo_DeprecatedResponse.Merge(m, src)
   113  }
   114  func (m *DeprecatedResponse) XXX_Size() int {
   115  	return xxx_messageInfo_DeprecatedResponse.Size(m)
   116  }
   117  func (m *DeprecatedResponse) XXX_DiscardUnknown() {
   118  	xxx_messageInfo_DeprecatedResponse.DiscardUnknown(m)
   119  }
   120  
   121  var xxx_messageInfo_DeprecatedResponse proto.InternalMessageInfo
   122  
   123  type isDeprecatedResponse_DeprecatedOneof interface {
   124  	isDeprecatedResponse_DeprecatedOneof()
   125  }
   126  
   127  type DeprecatedResponse_DeprecatedOneofField struct {
   128  	DeprecatedOneofField string `protobuf:"bytes,2,opt,name=deprecated_oneof_field,json=deprecatedOneofField,proto3,oneof" json:"deprecated_oneof_field,omitempty"`
   129  }
   130  
   131  func (*DeprecatedResponse_DeprecatedOneofField) isDeprecatedResponse_DeprecatedOneof() {}
   132  
   133  func (m *DeprecatedResponse) GetDeprecatedOneof() isDeprecatedResponse_DeprecatedOneof {
   134  	if m != nil {
   135  		return m.DeprecatedOneof
   136  	}
   137  	return nil
   138  }
   139  
   140  // Deprecated: Do not use.
   141  func (m *DeprecatedResponse) GetDeprecatedField() DeprecatedEnum {
   142  	if m != nil {
   143  		return m.DeprecatedField
   144  	}
   145  	return DeprecatedEnum_DEPRECATED
   146  }
   147  
   148  // Deprecated: Do not use.
   149  func (m *DeprecatedResponse) GetDeprecatedOneofField() string {
   150  	if x, ok := m.GetDeprecatedOneof().(*DeprecatedResponse_DeprecatedOneofField); ok {
   151  		return x.DeprecatedOneofField
   152  	}
   153  	return ""
   154  }
   155  
   156  // XXX_OneofWrappers is for the internal use of the proto package.
   157  func (*DeprecatedResponse) XXX_OneofWrappers() []interface{} {
   158  	return []interface{}{
   159  		(*DeprecatedResponse_DeprecatedOneofField)(nil),
   160  	}
   161  }
   162  
   163  func init() {
   164  	proto.RegisterEnum("deprecated.DeprecatedEnum", DeprecatedEnum_name, DeprecatedEnum_value)
   165  	proto.RegisterType((*DeprecatedRequest)(nil), "deprecated.DeprecatedRequest")
   166  	proto.RegisterType((*DeprecatedResponse)(nil), "deprecated.DeprecatedResponse")
   167  }
   168  
   169  func init() { proto.RegisterFile("deprecated/deprecated.proto", fileDescriptor_f64ba265cd7eae3f) }
   170  
   171  var fileDescriptor_f64ba265cd7eae3f = []byte{
   172  	// 284 bytes of a gzipped FileDescriptorProto
   173  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4e, 0x49, 0x2d, 0x28,
   174  	0x4a, 0x4d, 0x4e, 0x2c, 0x49, 0x4d, 0xd1, 0x47, 0x30, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85,
   175  	0xb8, 0x10, 0x22, 0x4a, 0xe2, 0x5c, 0x82, 0x2e, 0x70, 0x5e, 0x50, 0x6a, 0x61, 0x69, 0x6a, 0x71,
   176  	0x89, 0x15, 0x93, 0x04, 0xa3, 0xd2, 0x66, 0x46, 0x2e, 0x21, 0x64, 0x99, 0xe2, 0x82, 0xfc, 0xbc,
   177  	0xe2, 0x54, 0x21, 0x4f, 0x2e, 0x01, 0x84, 0xee, 0xf8, 0xb4, 0xcc, 0xd4, 0x9c, 0x14, 0x09, 0x46,
   178  	0x05, 0x46, 0x0d, 0x3e, 0x23, 0x29, 0x3d, 0x24, 0x8b, 0x10, 0x3a, 0x5d, 0xf3, 0x4a, 0x73, 0x9d,
   179  	0x98, 0x24, 0x18, 0x83, 0xf8, 0x11, 0xd2, 0x6e, 0x20, 0x6d, 0x42, 0x56, 0x5c, 0x62, 0x48, 0x46,
   180  	0xe5, 0xe7, 0xa5, 0xe6, 0xa7, 0x41, 0x0d, 0x64, 0x52, 0x60, 0xd4, 0xe0, 0x04, 0x69, 0xf2, 0x60,
   181  	0x08, 0x12, 0x41, 0xa8, 0xf1, 0x07, 0x29, 0x01, 0xeb, 0x05, 0xb9, 0xd0, 0x49, 0x08, 0xc5, 0x29,
   182  	0x60, 0xfd, 0x5a, 0x1a, 0x5c, 0x7c, 0xa8, 0x56, 0x0b, 0x09, 0x71, 0x71, 0xb9, 0xb8, 0x06, 0x04,
   183  	0xb9, 0x3a, 0x3b, 0x86, 0xb8, 0xba, 0x08, 0x30, 0x48, 0x31, 0x71, 0x30, 0x4a, 0x31, 0x49, 0x30,
   184  	0x1a, 0xe5, 0x21, 0x7b, 0x3c, 0x38, 0xb5, 0xa8, 0x2c, 0x33, 0x39, 0x55, 0x28, 0x04, 0x59, 0xbb,
   185  	0x73, 0x62, 0x4e, 0x8e, 0x90, 0x2c, 0x76, 0x5f, 0x41, 0x43, 0x4a, 0x4a, 0x0e, 0x97, 0x34, 0x24,
   186  	0xb8, 0x94, 0x98, 0x3b, 0x98, 0x18, 0xa5, 0x40, 0x84, 0x93, 0x63, 0x94, 0x4d, 0x7a, 0x66, 0x49,
   187  	0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x7a, 0x7e, 0x7a, 0xbe, 0x3e, 0x38, 0x36, 0x92,
   188  	0x4a, 0xd3, 0x20, 0x8c, 0x64, 0xdd, 0xf4, 0xd4, 0x3c, 0x5d, 0xb0, 0x44, 0x49, 0x6a, 0x71, 0x49,
   189  	0x4a, 0x62, 0x49, 0x22, 0x52, 0xd4, 0xed, 0x60, 0x64, 0x4c, 0x62, 0x03, 0xab, 0x33, 0x06, 0x04,
   190  	0x00, 0x00, 0xff, 0xff, 0xf0, 0x08, 0x22, 0x8d, 0xdd, 0x01, 0x00, 0x00,
   191  }
   192  
   193  // Reference imports to suppress errors if they are not otherwise used.
   194  var _ context.Context
   195  var _ grpc.ClientConn
   196  
   197  // This is a compile-time assertion to ensure that this generated file
   198  // is compatible with the grpc package it is being compiled against.
   199  const _ = grpc.SupportPackageIsVersion4
   200  
   201  // DeprecatedServiceClient is the client API for DeprecatedService service.
   202  //
   203  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   204  //
   205  // Deprecated: Do not use.
   206  type DeprecatedServiceClient interface {
   207  	// DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
   208  	DeprecatedCall(ctx context.Context, in *DeprecatedRequest, opts ...grpc.CallOption) (*DeprecatedResponse, error)
   209  }
   210  
   211  type deprecatedServiceClient struct {
   212  	cc *grpc.ClientConn
   213  }
   214  
   215  // Deprecated: Do not use.
   216  func NewDeprecatedServiceClient(cc *grpc.ClientConn) DeprecatedServiceClient {
   217  	return &deprecatedServiceClient{cc}
   218  }
   219  
   220  // Deprecated: Do not use.
   221  func (c *deprecatedServiceClient) DeprecatedCall(ctx context.Context, in *DeprecatedRequest, opts ...grpc.CallOption) (*DeprecatedResponse, error) {
   222  	out := new(DeprecatedResponse)
   223  	err := c.cc.Invoke(ctx, "/deprecated.DeprecatedService/DeprecatedCall", in, out, opts...)
   224  	if err != nil {
   225  		return nil, err
   226  	}
   227  	return out, nil
   228  }
   229  
   230  // DeprecatedServiceServer is the server API for DeprecatedService service.
   231  //
   232  // Deprecated: Do not use.
   233  type DeprecatedServiceServer interface {
   234  	// DeprecatedCall takes a DeprecatedRequest and returns a DeprecatedResponse.
   235  	DeprecatedCall(context.Context, *DeprecatedRequest) (*DeprecatedResponse, error)
   236  }
   237  
   238  // Deprecated: Do not use.
   239  // UnimplementedDeprecatedServiceServer can be embedded to have forward compatible implementations.
   240  type UnimplementedDeprecatedServiceServer struct {
   241  }
   242  
   243  func (*UnimplementedDeprecatedServiceServer) DeprecatedCall(ctx context.Context, req *DeprecatedRequest) (*DeprecatedResponse, error) {
   244  	return nil, status.Errorf(codes.Unimplemented, "method DeprecatedCall not implemented")
   245  }
   246  
   247  // Deprecated: Do not use.
   248  func RegisterDeprecatedServiceServer(s *grpc.Server, srv DeprecatedServiceServer) {
   249  	s.RegisterService(&_DeprecatedService_serviceDesc, srv)
   250  }
   251  
   252  func _DeprecatedService_DeprecatedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   253  	in := new(DeprecatedRequest)
   254  	if err := dec(in); err != nil {
   255  		return nil, err
   256  	}
   257  	if interceptor == nil {
   258  		return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, in)
   259  	}
   260  	info := &grpc.UnaryServerInfo{
   261  		Server:     srv,
   262  		FullMethod: "/deprecated.DeprecatedService/DeprecatedCall",
   263  	}
   264  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   265  		return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, req.(*DeprecatedRequest))
   266  	}
   267  	return interceptor(ctx, in, info, handler)
   268  }
   269  
   270  var _DeprecatedService_serviceDesc = grpc.ServiceDesc{
   271  	ServiceName: "deprecated.DeprecatedService",
   272  	HandlerType: (*DeprecatedServiceServer)(nil),
   273  	Methods: []grpc.MethodDesc{
   274  		{
   275  			MethodName: "DeprecatedCall",
   276  			Handler:    _DeprecatedService_DeprecatedCall_Handler,
   277  		},
   278  	},
   279  	Streams:  []grpc.StreamDesc{},
   280  	Metadata: "deprecated/deprecated.proto",
   281  }