// Code generated by protoc-gen-go. DO NOT EDIT. // source: auth/service/proto/accounts.proto package go_micro_auth import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ListAccountsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListAccountsRequest) Reset() { *m = ListAccountsRequest{} } func (m *ListAccountsRequest) String() string { return proto.CompactTextString(m) } func (*ListAccountsRequest) ProtoMessage() {} func (*ListAccountsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_fdbfb9fc95541122, []int{0} } func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAccountsRequest.Unmarshal(m, b) } func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListAccountsRequest.Marshal(b, m, deterministic) } func (m *ListAccountsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_ListAccountsRequest.Merge(m, src) } func (m *ListAccountsRequest) XXX_Size() int { return xxx_messageInfo_ListAccountsRequest.Size(m) } func (m *ListAccountsRequest) XXX_DiscardUnknown() { xxx_messageInfo_ListAccountsRequest.DiscardUnknown(m) } var xxx_messageInfo_ListAccountsRequest proto.InternalMessageInfo type ListAccountsResponse struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ListAccountsResponse) Reset() { *m = ListAccountsResponse{} } func (m *ListAccountsResponse) String() string { return proto.CompactTextString(m) } func (*ListAccountsResponse) ProtoMessage() {} func (*ListAccountsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_fdbfb9fc95541122, []int{1} } func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListAccountsResponse.Unmarshal(m, b) } func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListAccountsResponse.Marshal(b, m, deterministic) } func (m *ListAccountsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_ListAccountsResponse.Merge(m, src) } func (m *ListAccountsResponse) XXX_Size() int { return xxx_messageInfo_ListAccountsResponse.Size(m) } func (m *ListAccountsResponse) XXX_DiscardUnknown() { xxx_messageInfo_ListAccountsResponse.DiscardUnknown(m) } var xxx_messageInfo_ListAccountsResponse proto.InternalMessageInfo func (m *ListAccountsResponse) GetAccounts() []*Account { if m != nil { return m.Accounts } return nil } func init() { proto.RegisterType((*ListAccountsRequest)(nil), "go.micro.auth.ListAccountsRequest") proto.RegisterType((*ListAccountsResponse)(nil), "go.micro.auth.ListAccountsResponse") } func init() { proto.RegisterFile("auth/service/proto/accounts.proto", fileDescriptor_fdbfb9fc95541122) } var fileDescriptor_fdbfb9fc95541122 = []byte{ // 164 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0x2c, 0x2d, 0xc9, 0xd0, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x4f, 0x4c, 0x4e, 0xce, 0x2f, 0xcd, 0x2b, 0x29, 0xd6, 0x03, 0x73, 0x85, 0x78, 0xd3, 0xf3, 0xf5, 0x72, 0x33, 0x93, 0x8b, 0xf2, 0xf5, 0x40, 0x6a, 0xa5, 0x64, 0xb1, 0xe9, 0x28, 0x2d, 0xc9, 0x80, 0xa8, 0x56, 0x12, 0xe5, 0x12, 0xf6, 0xc9, 0x2c, 0x2e, 0x71, 0x84, 0x9a, 0x11, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0xa2, 0xe4, 0xc5, 0x25, 0x82, 0x2a, 0x5c, 0x5c, 0x90, 0x9f, 0x57, 0x9c, 0x2a, 0x64, 0xc4, 0xc5, 0x01, 0xb3, 0x4e, 0x82, 0x51, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x4c, 0x0f, 0xc5, 0x3e, 0x3d, 0xa8, 0x96, 0x20, 0xb8, 0x3a, 0xa3, 0x58, 0x2e, 0x0e, 0x98, 0x39, 0x42, 0x81, 0x5c, 0x2c, 0x20, 0x73, 0x85, 0x94, 0xd0, 0x74, 0x61, 0x71, 0x83, 0x94, 0x32, 0x5e, 0x35, 0x10, 0x07, 0x29, 0x31, 0x24, 0xb1, 0x81, 0x3d, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x82, 0x00, 0x19, 0x2f, 0x1b, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // AccountsClient is the client API for Accounts service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type AccountsClient interface { List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) } type accountsClient struct { cc *grpc.ClientConn } func NewAccountsClient(cc *grpc.ClientConn) AccountsClient { return &accountsClient{cc} } func (c *accountsClient) List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) { out := new(ListAccountsResponse) err := c.cc.Invoke(ctx, "/go.micro.auth.Accounts/List", in, out, opts...) if err != nil { return nil, err } return out, nil } // AccountsServer is the server API for Accounts service. type AccountsServer interface { List(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) } // UnimplementedAccountsServer can be embedded to have forward compatible implementations. type UnimplementedAccountsServer struct { } func (*UnimplementedAccountsServer) List(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method List not implemented") } func RegisterAccountsServer(s *grpc.Server, srv AccountsServer) { s.RegisterService(&_Accounts_serviceDesc, srv) } func _Accounts_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListAccountsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountsServer).List(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/go.micro.auth.Accounts/List", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountsServer).List(ctx, req.(*ListAccountsRequest)) } return interceptor(ctx, in, info, handler) } var _Accounts_serviceDesc = grpc.ServiceDesc{ ServiceName: "go.micro.auth.Accounts", HandlerType: (*AccountsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _Accounts_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/service/proto/accounts.proto", }