blob: a6ab0af101badbf416555fbd7a68c8db4efcbb86 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: bluetooth_service.proto
package network
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
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 SetBluetoothPoweredRequest struct {
Powered bool `protobuf:"varint,1,opt,name=powered,proto3" json:"powered,omitempty"`
Credentials string `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetBluetoothPoweredRequest) Reset() { *m = SetBluetoothPoweredRequest{} }
func (m *SetBluetoothPoweredRequest) String() string { return proto.CompactTextString(m) }
func (*SetBluetoothPoweredRequest) ProtoMessage() {}
func (*SetBluetoothPoweredRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d8a85ab5c487a308, []int{0}
}
func (m *SetBluetoothPoweredRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetBluetoothPoweredRequest.Unmarshal(m, b)
}
func (m *SetBluetoothPoweredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetBluetoothPoweredRequest.Marshal(b, m, deterministic)
}
func (m *SetBluetoothPoweredRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetBluetoothPoweredRequest.Merge(m, src)
}
func (m *SetBluetoothPoweredRequest) XXX_Size() int {
return xxx_messageInfo_SetBluetoothPoweredRequest.Size(m)
}
func (m *SetBluetoothPoweredRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetBluetoothPoweredRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetBluetoothPoweredRequest proto.InternalMessageInfo
func (m *SetBluetoothPoweredRequest) GetPowered() bool {
if m != nil {
return m.Powered
}
return false
}
func (m *SetBluetoothPoweredRequest) GetCredentials() string {
if m != nil {
return m.Credentials
}
return ""
}
type SetBluetoothPoweredFastRequest struct {
Powered bool `protobuf:"varint,1,opt,name=powered,proto3" json:"powered,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetBluetoothPoweredFastRequest) Reset() { *m = SetBluetoothPoweredFastRequest{} }
func (m *SetBluetoothPoweredFastRequest) String() string { return proto.CompactTextString(m) }
func (*SetBluetoothPoweredFastRequest) ProtoMessage() {}
func (*SetBluetoothPoweredFastRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d8a85ab5c487a308, []int{1}
}
func (m *SetBluetoothPoweredFastRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetBluetoothPoweredFastRequest.Unmarshal(m, b)
}
func (m *SetBluetoothPoweredFastRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetBluetoothPoweredFastRequest.Marshal(b, m, deterministic)
}
func (m *SetBluetoothPoweredFastRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetBluetoothPoweredFastRequest.Merge(m, src)
}
func (m *SetBluetoothPoweredFastRequest) XXX_Size() int {
return xxx_messageInfo_SetBluetoothPoweredFastRequest.Size(m)
}
func (m *SetBluetoothPoweredFastRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetBluetoothPoweredFastRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetBluetoothPoweredFastRequest proto.InternalMessageInfo
func (m *SetBluetoothPoweredFastRequest) GetPowered() bool {
if m != nil {
return m.Powered
}
return false
}
type GetBluetoothPoweredRequest struct {
Credentials string `protobuf:"bytes,1,opt,name=credentials,proto3" json:"credentials,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBluetoothPoweredRequest) Reset() { *m = GetBluetoothPoweredRequest{} }
func (m *GetBluetoothPoweredRequest) String() string { return proto.CompactTextString(m) }
func (*GetBluetoothPoweredRequest) ProtoMessage() {}
func (*GetBluetoothPoweredRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_d8a85ab5c487a308, []int{2}
}
func (m *GetBluetoothPoweredRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBluetoothPoweredRequest.Unmarshal(m, b)
}
func (m *GetBluetoothPoweredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBluetoothPoweredRequest.Marshal(b, m, deterministic)
}
func (m *GetBluetoothPoweredRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBluetoothPoweredRequest.Merge(m, src)
}
func (m *GetBluetoothPoweredRequest) XXX_Size() int {
return xxx_messageInfo_GetBluetoothPoweredRequest.Size(m)
}
func (m *GetBluetoothPoweredRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetBluetoothPoweredRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetBluetoothPoweredRequest proto.InternalMessageInfo
func (m *GetBluetoothPoweredRequest) GetCredentials() string {
if m != nil {
return m.Credentials
}
return ""
}
type GetBluetoothPoweredResponse struct {
Powered bool `protobuf:"varint,1,opt,name=powered,proto3" json:"powered,omitempty"`
Persistent bool `protobuf:"varint,2,opt,name=persistent,proto3" json:"persistent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBluetoothPoweredResponse) Reset() { *m = GetBluetoothPoweredResponse{} }
func (m *GetBluetoothPoweredResponse) String() string { return proto.CompactTextString(m) }
func (*GetBluetoothPoweredResponse) ProtoMessage() {}
func (*GetBluetoothPoweredResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d8a85ab5c487a308, []int{3}
}
func (m *GetBluetoothPoweredResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBluetoothPoweredResponse.Unmarshal(m, b)
}
func (m *GetBluetoothPoweredResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBluetoothPoweredResponse.Marshal(b, m, deterministic)
}
func (m *GetBluetoothPoweredResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBluetoothPoweredResponse.Merge(m, src)
}
func (m *GetBluetoothPoweredResponse) XXX_Size() int {
return xxx_messageInfo_GetBluetoothPoweredResponse.Size(m)
}
func (m *GetBluetoothPoweredResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetBluetoothPoweredResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetBluetoothPoweredResponse proto.InternalMessageInfo
func (m *GetBluetoothPoweredResponse) GetPowered() bool {
if m != nil {
return m.Powered
}
return false
}
func (m *GetBluetoothPoweredResponse) GetPersistent() bool {
if m != nil {
return m.Persistent
}
return false
}
type GetBluetoothPoweredFastResponse struct {
Powered bool `protobuf:"varint,1,opt,name=powered,proto3" json:"powered,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetBluetoothPoweredFastResponse) Reset() { *m = GetBluetoothPoweredFastResponse{} }
func (m *GetBluetoothPoweredFastResponse) String() string { return proto.CompactTextString(m) }
func (*GetBluetoothPoweredFastResponse) ProtoMessage() {}
func (*GetBluetoothPoweredFastResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_d8a85ab5c487a308, []int{4}
}
func (m *GetBluetoothPoweredFastResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBluetoothPoweredFastResponse.Unmarshal(m, b)
}
func (m *GetBluetoothPoweredFastResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBluetoothPoweredFastResponse.Marshal(b, m, deterministic)
}
func (m *GetBluetoothPoweredFastResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBluetoothPoweredFastResponse.Merge(m, src)
}
func (m *GetBluetoothPoweredFastResponse) XXX_Size() int {
return xxx_messageInfo_GetBluetoothPoweredFastResponse.Size(m)
}
func (m *GetBluetoothPoweredFastResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetBluetoothPoweredFastResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetBluetoothPoweredFastResponse proto.InternalMessageInfo
func (m *GetBluetoothPoweredFastResponse) GetPowered() bool {
if m != nil {
return m.Powered
}
return false
}
func init() {
proto.RegisterType((*SetBluetoothPoweredRequest)(nil), "tast.cros.network.SetBluetoothPoweredRequest")
proto.RegisterType((*SetBluetoothPoweredFastRequest)(nil), "tast.cros.network.SetBluetoothPoweredFastRequest")
proto.RegisterType((*GetBluetoothPoweredRequest)(nil), "tast.cros.network.GetBluetoothPoweredRequest")
proto.RegisterType((*GetBluetoothPoweredResponse)(nil), "tast.cros.network.GetBluetoothPoweredResponse")
proto.RegisterType((*GetBluetoothPoweredFastResponse)(nil), "tast.cros.network.GetBluetoothPoweredFastResponse")
}
func init() { proto.RegisterFile("bluetooth_service.proto", fileDescriptor_d8a85ab5c487a308) }
var fileDescriptor_d8a85ab5c487a308 = []byte{
// 359 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x41, 0x4f, 0xfa, 0x40,
0x10, 0xc5, 0xe9, 0x3f, 0xff, 0x28, 0x8e, 0x17, 0x5d, 0x12, 0x21, 0x25, 0x41, 0xb2, 0x89, 0x91,
0x8b, 0xdb, 0x88, 0x37, 0x4d, 0x3c, 0x90, 0x08, 0x47, 0x4d, 0x49, 0xd4, 0x78, 0xd0, 0x94, 0x32,
0x40, 0x63, 0xe9, 0xd6, 0xdd, 0x29, 0xc4, 0xef, 0xe0, 0x87, 0x36, 0x50, 0x20, 0x8d, 0x74, 0xa1,
0xc7, 0x9d, 0xcc, 0xcc, 0x7b, 0x6f, 0x7e, 0x59, 0xa8, 0x0e, 0xc2, 0x04, 0x49, 0x4a, 0x9a, 0x7c,
0x68, 0x54, 0xb3, 0xc0, 0x47, 0x11, 0x2b, 0x49, 0x92, 0x9d, 0x92, 0xa7, 0x49, 0xf8, 0x4a, 0x6a,
0x11, 0x21, 0xcd, 0xa5, 0xfa, 0xb4, 0xeb, 0x63, 0x29, 0xc7, 0x21, 0x3a, 0xcb, 0x86, 0x41, 0x32,
0x72, 0x70, 0x1a, 0xd3, 0x77, 0xda, 0xcf, 0x5f, 0xc1, 0xee, 0x23, 0x75, 0xd6, 0xdb, 0x9e, 0xe4,
0x1c, 0x15, 0x0e, 0x5d, 0xfc, 0x4a, 0x50, 0x13, 0xab, 0xc1, 0x61, 0x9c, 0x56, 0x6a, 0x56, 0xd3,
0x6a, 0x95, 0xdd, 0xf5, 0x93, 0x35, 0xe1, 0xd8, 0x57, 0x38, 0xc4, 0x88, 0x02, 0x2f, 0xd4, 0xb5,
0x7f, 0x4d, 0xab, 0x75, 0xe4, 0x66, 0x4b, 0xfc, 0x16, 0x1a, 0x39, 0x9b, 0xbb, 0x9e, 0xa6, 0xbd,
0xdb, 0xf9, 0x3d, 0xd8, 0x3d, 0xb3, 0xab, 0x3f, 0xda, 0xd6, 0xb6, 0xf6, 0x0b, 0xd4, 0x73, 0xe7,
0x75, 0x2c, 0x23, 0x8d, 0x3b, 0x62, 0x35, 0x00, 0x62, 0x54, 0x3a, 0xd0, 0x84, 0x11, 0x2d, 0x53,
0x95, 0xdd, 0x4c, 0x85, 0xdf, 0xc1, 0x79, 0xcf, 0x14, 0x6a, 0xdf, 0xf2, 0xf6, 0xcf, 0x7f, 0x38,
0xd9, 0x8c, 0xf6, 0x53, 0x6c, 0xec, 0x1d, 0x2a, 0x39, 0x67, 0x62, 0x57, 0x62, 0x0b, 0xa4, 0x30,
0x83, 0xb2, 0xcf, 0x44, 0x0a, 0x59, 0xac, 0x21, 0x8b, 0x87, 0x05, 0x64, 0x5e, 0x62, 0x23, 0xa8,
0x1a, 0x30, 0xb0, 0xeb, 0x62, 0x1a, 0x19, 0x64, 0x3b, 0x74, 0x66, 0x50, 0xe9, 0x15, 0xcc, 0x61,
0x46, 0x6b, 0x8b, 0xa2, 0xed, 0xe9, 0xb1, 0x79, 0x89, 0x8d, 0xa1, 0x6a, 0x20, 0xc2, 0x0c, 0x66,
0xed, 0x76, 0x31, 0x91, 0x2c, 0x55, 0x5e, 0x62, 0x8f, 0x50, 0x7f, 0xf6, 0xc2, 0x60, 0xe8, 0x11,
0x6e, 0x3a, 0xbb, 0x49, 0xe4, 0x53, 0x20, 0x23, 0x2f, 0x34, 0x8a, 0x19, 0x2f, 0xd6, 0xb9, 0x7c,
0xbb, 0xf0, 0x27, 0x4a, 0x4e, 0x83, 0x64, 0x2a, 0xb5, 0xb3, 0xb0, 0xe4, 0xac, 0xfe, 0xb2, 0x76,
0x16, 0xde, 0x9c, 0x95, 0xb7, 0xc1, 0xc1, 0x72, 0xf4, 0xe6, 0x37, 0x00, 0x00, 0xff, 0xff, 0xd7,
0x91, 0x7a, 0x4f, 0xf5, 0x03, 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
// BluetoothServiceClient is the client API for BluetoothService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BluetoothServiceClient interface {
// SetBluetoothPowered sets the Bluetooth adapter power status via settingsPrivate. This setting persists across reboots.
SetBluetoothPowered(ctx context.Context, in *SetBluetoothPoweredRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// SetBluetoothPoweredFast sets the Bluetooth adapter power status via D-Bus. This setting does not persist across boots.
SetBluetoothPoweredFast(ctx context.Context, in *SetBluetoothPoweredFastRequest, opts ...grpc.CallOption) (*empty.Empty, error)
// GetBluetoothPowered checks whether the Bluetooth adapter is enabled as well as the Bluetooth boot preference.
GetBluetoothPowered(ctx context.Context, in *GetBluetoothPoweredRequest, opts ...grpc.CallOption) (*GetBluetoothPoweredResponse, error)
// GetBluetoothPoweredFast checks whether the Bluetooth adapter is enabled.
GetBluetoothPoweredFast(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetBluetoothPoweredFastResponse, error)
// ValidateBluetoothFunctional checks to see whether the Bluetooth device is usable.
ValidateBluetoothFunctional(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}
type bluetoothServiceClient struct {
cc *grpc.ClientConn
}
func NewBluetoothServiceClient(cc *grpc.ClientConn) BluetoothServiceClient {
return &bluetoothServiceClient{cc}
}
func (c *bluetoothServiceClient) SetBluetoothPowered(ctx context.Context, in *SetBluetoothPoweredRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.network.BluetoothService/SetBluetoothPowered", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bluetoothServiceClient) SetBluetoothPoweredFast(ctx context.Context, in *SetBluetoothPoweredFastRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.network.BluetoothService/SetBluetoothPoweredFast", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bluetoothServiceClient) GetBluetoothPowered(ctx context.Context, in *GetBluetoothPoweredRequest, opts ...grpc.CallOption) (*GetBluetoothPoweredResponse, error) {
out := new(GetBluetoothPoweredResponse)
err := c.cc.Invoke(ctx, "/tast.cros.network.BluetoothService/GetBluetoothPowered", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bluetoothServiceClient) GetBluetoothPoweredFast(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetBluetoothPoweredFastResponse, error) {
out := new(GetBluetoothPoweredFastResponse)
err := c.cc.Invoke(ctx, "/tast.cros.network.BluetoothService/GetBluetoothPoweredFast", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bluetoothServiceClient) ValidateBluetoothFunctional(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/tast.cros.network.BluetoothService/ValidateBluetoothFunctional", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// BluetoothServiceServer is the server API for BluetoothService service.
type BluetoothServiceServer interface {
// SetBluetoothPowered sets the Bluetooth adapter power status via settingsPrivate. This setting persists across reboots.
SetBluetoothPowered(context.Context, *SetBluetoothPoweredRequest) (*empty.Empty, error)
// SetBluetoothPoweredFast sets the Bluetooth adapter power status via D-Bus. This setting does not persist across boots.
SetBluetoothPoweredFast(context.Context, *SetBluetoothPoweredFastRequest) (*empty.Empty, error)
// GetBluetoothPowered checks whether the Bluetooth adapter is enabled as well as the Bluetooth boot preference.
GetBluetoothPowered(context.Context, *GetBluetoothPoweredRequest) (*GetBluetoothPoweredResponse, error)
// GetBluetoothPoweredFast checks whether the Bluetooth adapter is enabled.
GetBluetoothPoweredFast(context.Context, *empty.Empty) (*GetBluetoothPoweredFastResponse, error)
// ValidateBluetoothFunctional checks to see whether the Bluetooth device is usable.
ValidateBluetoothFunctional(context.Context, *empty.Empty) (*empty.Empty, error)
}
// UnimplementedBluetoothServiceServer can be embedded to have forward compatible implementations.
type UnimplementedBluetoothServiceServer struct {
}
func (*UnimplementedBluetoothServiceServer) SetBluetoothPowered(ctx context.Context, req *SetBluetoothPoweredRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetBluetoothPowered not implemented")
}
func (*UnimplementedBluetoothServiceServer) SetBluetoothPoweredFast(ctx context.Context, req *SetBluetoothPoweredFastRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetBluetoothPoweredFast not implemented")
}
func (*UnimplementedBluetoothServiceServer) GetBluetoothPowered(ctx context.Context, req *GetBluetoothPoweredRequest) (*GetBluetoothPoweredResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBluetoothPowered not implemented")
}
func (*UnimplementedBluetoothServiceServer) GetBluetoothPoweredFast(ctx context.Context, req *empty.Empty) (*GetBluetoothPoweredFastResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetBluetoothPoweredFast not implemented")
}
func (*UnimplementedBluetoothServiceServer) ValidateBluetoothFunctional(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method ValidateBluetoothFunctional not implemented")
}
func RegisterBluetoothServiceServer(s *grpc.Server, srv BluetoothServiceServer) {
s.RegisterService(&_BluetoothService_serviceDesc, srv)
}
func _BluetoothService_SetBluetoothPowered_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetBluetoothPoweredRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BluetoothServiceServer).SetBluetoothPowered(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.network.BluetoothService/SetBluetoothPowered",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BluetoothServiceServer).SetBluetoothPowered(ctx, req.(*SetBluetoothPoweredRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BluetoothService_SetBluetoothPoweredFast_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetBluetoothPoweredFastRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BluetoothServiceServer).SetBluetoothPoweredFast(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.network.BluetoothService/SetBluetoothPoweredFast",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BluetoothServiceServer).SetBluetoothPoweredFast(ctx, req.(*SetBluetoothPoweredFastRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BluetoothService_GetBluetoothPowered_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetBluetoothPoweredRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BluetoothServiceServer).GetBluetoothPowered(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.network.BluetoothService/GetBluetoothPowered",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BluetoothServiceServer).GetBluetoothPowered(ctx, req.(*GetBluetoothPoweredRequest))
}
return interceptor(ctx, in, info, handler)
}
func _BluetoothService_GetBluetoothPoweredFast_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BluetoothServiceServer).GetBluetoothPoweredFast(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.network.BluetoothService/GetBluetoothPoweredFast",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BluetoothServiceServer).GetBluetoothPoweredFast(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _BluetoothService_ValidateBluetoothFunctional_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BluetoothServiceServer).ValidateBluetoothFunctional(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/tast.cros.network.BluetoothService/ValidateBluetoothFunctional",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BluetoothServiceServer).ValidateBluetoothFunctional(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _BluetoothService_serviceDesc = grpc.ServiceDesc{
ServiceName: "tast.cros.network.BluetoothService",
HandlerType: (*BluetoothServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SetBluetoothPowered",
Handler: _BluetoothService_SetBluetoothPowered_Handler,
},
{
MethodName: "SetBluetoothPoweredFast",
Handler: _BluetoothService_SetBluetoothPoweredFast_Handler,
},
{
MethodName: "GetBluetoothPowered",
Handler: _BluetoothService_GetBluetoothPowered_Handler,
},
{
MethodName: "GetBluetoothPoweredFast",
Handler: _BluetoothService_GetBluetoothPoweredFast_Handler,
},
{
MethodName: "ValidateBluetoothFunctional",
Handler: _BluetoothService_ValidateBluetoothFunctional_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "bluetooth_service.proto",
}