| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: nearby_share_service.proto |
| |
| package nearbyservice |
| |
| 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 |
| |
| // CrOSLoginRequest to login to Chrome with configurable GAIA credentials. |
| type CrOSLoginRequest struct { |
| Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` |
| Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| KeepState bool `protobuf:"varint,3,opt,name=keep_state,json=keepState,proto3" json:"keep_state,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSLoginRequest) Reset() { *m = CrOSLoginRequest{} } |
| func (m *CrOSLoginRequest) String() string { return proto.CompactTextString(m) } |
| func (*CrOSLoginRequest) ProtoMessage() {} |
| func (*CrOSLoginRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{0} |
| } |
| |
| func (m *CrOSLoginRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSLoginRequest.Unmarshal(m, b) |
| } |
| func (m *CrOSLoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSLoginRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSLoginRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSLoginRequest.Merge(m, src) |
| } |
| func (m *CrOSLoginRequest) XXX_Size() int { |
| return xxx_messageInfo_CrOSLoginRequest.Size(m) |
| } |
| func (m *CrOSLoginRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSLoginRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSLoginRequest proto.InternalMessageInfo |
| |
| func (m *CrOSLoginRequest) GetUsername() string { |
| if m != nil { |
| return m.Username |
| } |
| return "" |
| } |
| |
| func (m *CrOSLoginRequest) GetPassword() string { |
| if m != nil { |
| return m.Password |
| } |
| return "" |
| } |
| |
| func (m *CrOSLoginRequest) GetKeepState() bool { |
| if m != nil { |
| return m.KeepState |
| } |
| return false |
| } |
| |
| // CrOSSetupRequest is a request to setup and configure Nearby Share on a |
| // ChromeOS device. |
| type CrOSSetupRequest struct { |
| DataUsage int32 `protobuf:"varint,1,opt,name=data_usage,json=dataUsage,proto3" json:"data_usage,omitempty"` |
| Visibility int32 `protobuf:"varint,2,opt,name=visibility,proto3" json:"visibility,omitempty"` |
| DeviceName string `protobuf:"bytes,3,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` |
| SenderUsername string `protobuf:"bytes,4,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSSetupRequest) Reset() { *m = CrOSSetupRequest{} } |
| func (m *CrOSSetupRequest) String() string { return proto.CompactTextString(m) } |
| func (*CrOSSetupRequest) ProtoMessage() {} |
| func (*CrOSSetupRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{1} |
| } |
| |
| func (m *CrOSSetupRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSSetupRequest.Unmarshal(m, b) |
| } |
| func (m *CrOSSetupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSSetupRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSSetupRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSSetupRequest.Merge(m, src) |
| } |
| func (m *CrOSSetupRequest) XXX_Size() int { |
| return xxx_messageInfo_CrOSSetupRequest.Size(m) |
| } |
| func (m *CrOSSetupRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSSetupRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSSetupRequest proto.InternalMessageInfo |
| |
| func (m *CrOSSetupRequest) GetDataUsage() int32 { |
| if m != nil { |
| return m.DataUsage |
| } |
| return 0 |
| } |
| |
| func (m *CrOSSetupRequest) GetVisibility() int32 { |
| if m != nil { |
| return m.Visibility |
| } |
| return 0 |
| } |
| |
| func (m *CrOSSetupRequest) GetDeviceName() string { |
| if m != nil { |
| return m.DeviceName |
| } |
| return "" |
| } |
| |
| func (m *CrOSSetupRequest) GetSenderUsername() string { |
| if m != nil { |
| return m.SenderUsername |
| } |
| return "" |
| } |
| |
| // CrOSPrepareFileRequest contains the archive of files to be sent by Nearby Share. |
| type CrOSPrepareFileRequest struct { |
| FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSPrepareFileRequest) Reset() { *m = CrOSPrepareFileRequest{} } |
| func (m *CrOSPrepareFileRequest) String() string { return proto.CompactTextString(m) } |
| func (*CrOSPrepareFileRequest) ProtoMessage() {} |
| func (*CrOSPrepareFileRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{2} |
| } |
| |
| func (m *CrOSPrepareFileRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSPrepareFileRequest.Unmarshal(m, b) |
| } |
| func (m *CrOSPrepareFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSPrepareFileRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSPrepareFileRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSPrepareFileRequest.Merge(m, src) |
| } |
| func (m *CrOSPrepareFileRequest) XXX_Size() int { |
| return xxx_messageInfo_CrOSPrepareFileRequest.Size(m) |
| } |
| func (m *CrOSPrepareFileRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSPrepareFileRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSPrepareFileRequest proto.InternalMessageInfo |
| |
| func (m *CrOSPrepareFileRequest) GetFileName() string { |
| if m != nil { |
| return m.FileName |
| } |
| return "" |
| } |
| |
| // CrOSPrepareFileResponse is the individual file names that were extracted that will be sent. |
| type CrOSPrepareFileResponse struct { |
| FileNames []string `protobuf:"bytes,1,rep,name=file_names,json=fileNames,proto3" json:"file_names,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSPrepareFileResponse) Reset() { *m = CrOSPrepareFileResponse{} } |
| func (m *CrOSPrepareFileResponse) String() string { return proto.CompactTextString(m) } |
| func (*CrOSPrepareFileResponse) ProtoMessage() {} |
| func (*CrOSPrepareFileResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{3} |
| } |
| |
| func (m *CrOSPrepareFileResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSPrepareFileResponse.Unmarshal(m, b) |
| } |
| func (m *CrOSPrepareFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSPrepareFileResponse.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSPrepareFileResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSPrepareFileResponse.Merge(m, src) |
| } |
| func (m *CrOSPrepareFileResponse) XXX_Size() int { |
| return xxx_messageInfo_CrOSPrepareFileResponse.Size(m) |
| } |
| func (m *CrOSPrepareFileResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSPrepareFileResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSPrepareFileResponse proto.InternalMessageInfo |
| |
| func (m *CrOSPrepareFileResponse) GetFileNames() []string { |
| if m != nil { |
| return m.FileNames |
| } |
| return nil |
| } |
| |
| // CrOSSendFilesRequest contains the files to be sent by Nearby Share. |
| type CrOSSendFilesRequest struct { |
| FileNames []string `protobuf:"bytes,1,rep,name=file_names,json=fileNames,proto3" json:"file_names,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSSendFilesRequest) Reset() { *m = CrOSSendFilesRequest{} } |
| func (m *CrOSSendFilesRequest) String() string { return proto.CompactTextString(m) } |
| func (*CrOSSendFilesRequest) ProtoMessage() {} |
| func (*CrOSSendFilesRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{4} |
| } |
| |
| func (m *CrOSSendFilesRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSSendFilesRequest.Unmarshal(m, b) |
| } |
| func (m *CrOSSendFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSSendFilesRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSSendFilesRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSSendFilesRequest.Merge(m, src) |
| } |
| func (m *CrOSSendFilesRequest) XXX_Size() int { |
| return xxx_messageInfo_CrOSSendFilesRequest.Size(m) |
| } |
| func (m *CrOSSendFilesRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSSendFilesRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSSendFilesRequest proto.InternalMessageInfo |
| |
| func (m *CrOSSendFilesRequest) GetFileNames() []string { |
| if m != nil { |
| return m.FileNames |
| } |
| return nil |
| } |
| |
| // CrOSSelectShareTargetRequest contains the receiver to send files to. |
| type CrOSSelectShareTargetRequest struct { |
| ReceiverName string `protobuf:"bytes,1,opt,name=receiver_name,json=receiverName,proto3" json:"receiver_name,omitempty"` |
| CollectShareToken bool `protobuf:"varint,2,opt,name=collect_share_token,json=collectShareToken,proto3" json:"collect_share_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSSelectShareTargetRequest) Reset() { *m = CrOSSelectShareTargetRequest{} } |
| func (m *CrOSSelectShareTargetRequest) String() string { return proto.CompactTextString(m) } |
| func (*CrOSSelectShareTargetRequest) ProtoMessage() {} |
| func (*CrOSSelectShareTargetRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{5} |
| } |
| |
| func (m *CrOSSelectShareTargetRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSSelectShareTargetRequest.Unmarshal(m, b) |
| } |
| func (m *CrOSSelectShareTargetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSSelectShareTargetRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSSelectShareTargetRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSSelectShareTargetRequest.Merge(m, src) |
| } |
| func (m *CrOSSelectShareTargetRequest) XXX_Size() int { |
| return xxx_messageInfo_CrOSSelectShareTargetRequest.Size(m) |
| } |
| func (m *CrOSSelectShareTargetRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSSelectShareTargetRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSSelectShareTargetRequest proto.InternalMessageInfo |
| |
| func (m *CrOSSelectShareTargetRequest) GetReceiverName() string { |
| if m != nil { |
| return m.ReceiverName |
| } |
| return "" |
| } |
| |
| func (m *CrOSSelectShareTargetRequest) GetCollectShareToken() bool { |
| if m != nil { |
| return m.CollectShareToken |
| } |
| return false |
| } |
| |
| // CrOSFileHashRequest contains the list of files we want to hash. |
| type CrOSFileHashRequest struct { |
| FileNames []string `protobuf:"bytes,1,rep,name=file_names,json=fileNames,proto3" json:"file_names,omitempty"` |
| FileDir string `protobuf:"bytes,2,opt,name=file_dir,json=fileDir,proto3" json:"file_dir,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSFileHashRequest) Reset() { *m = CrOSFileHashRequest{} } |
| func (m *CrOSFileHashRequest) String() string { return proto.CompactTextString(m) } |
| func (*CrOSFileHashRequest) ProtoMessage() {} |
| func (*CrOSFileHashRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{6} |
| } |
| |
| func (m *CrOSFileHashRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSFileHashRequest.Unmarshal(m, b) |
| } |
| func (m *CrOSFileHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSFileHashRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSFileHashRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSFileHashRequest.Merge(m, src) |
| } |
| func (m *CrOSFileHashRequest) XXX_Size() int { |
| return xxx_messageInfo_CrOSFileHashRequest.Size(m) |
| } |
| func (m *CrOSFileHashRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSFileHashRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSFileHashRequest proto.InternalMessageInfo |
| |
| func (m *CrOSFileHashRequest) GetFileNames() []string { |
| if m != nil { |
| return m.FileNames |
| } |
| return nil |
| } |
| |
| func (m *CrOSFileHashRequest) GetFileDir() string { |
| if m != nil { |
| return m.FileDir |
| } |
| return "" |
| } |
| |
| // CrOSFileHashResponse contains the list of hashes generated for a list of |
| // files. |
| type CrOSFileHashResponse struct { |
| Hashes []string `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSFileHashResponse) Reset() { *m = CrOSFileHashResponse{} } |
| func (m *CrOSFileHashResponse) String() string { return proto.CompactTextString(m) } |
| func (*CrOSFileHashResponse) ProtoMessage() {} |
| func (*CrOSFileHashResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{7} |
| } |
| |
| func (m *CrOSFileHashResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSFileHashResponse.Unmarshal(m, b) |
| } |
| func (m *CrOSFileHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSFileHashResponse.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSFileHashResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSFileHashResponse.Merge(m, src) |
| } |
| func (m *CrOSFileHashResponse) XXX_Size() int { |
| return xxx_messageInfo_CrOSFileHashResponse.Size(m) |
| } |
| func (m *CrOSFileHashResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSFileHashResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSFileHashResponse proto.InternalMessageInfo |
| |
| func (m *CrOSFileHashResponse) GetHashes() []string { |
| if m != nil { |
| return m.Hashes |
| } |
| return nil |
| } |
| |
| // CrOSReceiveFilesRequest contains the sender name that we want to receive |
| // files from and the file transfer timeout in seconds. |
| type CrOSReceiveFilesRequest struct { |
| SenderName string `protobuf:"bytes,1,opt,name=sender_name,json=senderName,proto3" json:"sender_name,omitempty"` |
| TransferTimeoutSeconds int32 `protobuf:"varint,2,opt,name=transfer_timeout_seconds,json=transferTimeoutSeconds,proto3" json:"transfer_timeout_seconds,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSReceiveFilesRequest) Reset() { *m = CrOSReceiveFilesRequest{} } |
| func (m *CrOSReceiveFilesRequest) String() string { return proto.CompactTextString(m) } |
| func (*CrOSReceiveFilesRequest) ProtoMessage() {} |
| func (*CrOSReceiveFilesRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{8} |
| } |
| |
| func (m *CrOSReceiveFilesRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSReceiveFilesRequest.Unmarshal(m, b) |
| } |
| func (m *CrOSReceiveFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSReceiveFilesRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSReceiveFilesRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSReceiveFilesRequest.Merge(m, src) |
| } |
| func (m *CrOSReceiveFilesRequest) XXX_Size() int { |
| return xxx_messageInfo_CrOSReceiveFilesRequest.Size(m) |
| } |
| func (m *CrOSReceiveFilesRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSReceiveFilesRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSReceiveFilesRequest proto.InternalMessageInfo |
| |
| func (m *CrOSReceiveFilesRequest) GetSenderName() string { |
| if m != nil { |
| return m.SenderName |
| } |
| return "" |
| } |
| |
| func (m *CrOSReceiveFilesRequest) GetTransferTimeoutSeconds() int32 { |
| if m != nil { |
| return m.TransferTimeoutSeconds |
| } |
| return 0 |
| } |
| |
| // CrOSShareTokenResponse contains the share token from the receiver. |
| type CrOSShareTokenResponse struct { |
| ShareToken string `protobuf:"bytes,1,opt,name=share_token,json=shareToken,proto3" json:"share_token,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSShareTokenResponse) Reset() { *m = CrOSShareTokenResponse{} } |
| func (m *CrOSShareTokenResponse) String() string { return proto.CompactTextString(m) } |
| func (*CrOSShareTokenResponse) ProtoMessage() {} |
| func (*CrOSShareTokenResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{9} |
| } |
| |
| func (m *CrOSShareTokenResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSShareTokenResponse.Unmarshal(m, b) |
| } |
| func (m *CrOSShareTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSShareTokenResponse.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSShareTokenResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSShareTokenResponse.Merge(m, src) |
| } |
| func (m *CrOSShareTokenResponse) XXX_Size() int { |
| return xxx_messageInfo_CrOSShareTokenResponse.Size(m) |
| } |
| func (m *CrOSShareTokenResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSShareTokenResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSShareTokenResponse proto.InternalMessageInfo |
| |
| func (m *CrOSShareTokenResponse) GetShareToken() string { |
| if m != nil { |
| return m.ShareToken |
| } |
| return "" |
| } |
| |
| // CrOSAttributesResponse contains the attributes for a chromeos DUT. |
| type CrOSAttributesResponse struct { |
| Attributes string `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CrOSAttributesResponse) Reset() { *m = CrOSAttributesResponse{} } |
| func (m *CrOSAttributesResponse) String() string { return proto.CompactTextString(m) } |
| func (*CrOSAttributesResponse) ProtoMessage() {} |
| func (*CrOSAttributesResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_c9d9f6df6ba76c0a, []int{10} |
| } |
| |
| func (m *CrOSAttributesResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CrOSAttributesResponse.Unmarshal(m, b) |
| } |
| func (m *CrOSAttributesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CrOSAttributesResponse.Marshal(b, m, deterministic) |
| } |
| func (m *CrOSAttributesResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CrOSAttributesResponse.Merge(m, src) |
| } |
| func (m *CrOSAttributesResponse) XXX_Size() int { |
| return xxx_messageInfo_CrOSAttributesResponse.Size(m) |
| } |
| func (m *CrOSAttributesResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_CrOSAttributesResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CrOSAttributesResponse proto.InternalMessageInfo |
| |
| func (m *CrOSAttributesResponse) GetAttributes() string { |
| if m != nil { |
| return m.Attributes |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*CrOSLoginRequest)(nil), "tast.cros.nearbyservice.CrOSLoginRequest") |
| proto.RegisterType((*CrOSSetupRequest)(nil), "tast.cros.nearbyservice.CrOSSetupRequest") |
| proto.RegisterType((*CrOSPrepareFileRequest)(nil), "tast.cros.nearbyservice.CrOSPrepareFileRequest") |
| proto.RegisterType((*CrOSPrepareFileResponse)(nil), "tast.cros.nearbyservice.CrOSPrepareFileResponse") |
| proto.RegisterType((*CrOSSendFilesRequest)(nil), "tast.cros.nearbyservice.CrOSSendFilesRequest") |
| proto.RegisterType((*CrOSSelectShareTargetRequest)(nil), "tast.cros.nearbyservice.CrOSSelectShareTargetRequest") |
| proto.RegisterType((*CrOSFileHashRequest)(nil), "tast.cros.nearbyservice.CrOSFileHashRequest") |
| proto.RegisterType((*CrOSFileHashResponse)(nil), "tast.cros.nearbyservice.CrOSFileHashResponse") |
| proto.RegisterType((*CrOSReceiveFilesRequest)(nil), "tast.cros.nearbyservice.CrOSReceiveFilesRequest") |
| proto.RegisterType((*CrOSShareTokenResponse)(nil), "tast.cros.nearbyservice.CrOSShareTokenResponse") |
| proto.RegisterType((*CrOSAttributesResponse)(nil), "tast.cros.nearbyservice.CrOSAttributesResponse") |
| } |
| |
| func init() { proto.RegisterFile("nearby_share_service.proto", fileDescriptor_c9d9f6df6ba76c0a) } |
| |
| var fileDescriptor_c9d9f6df6ba76c0a = []byte{ |
| // 846 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x6f, 0x1b, 0x45, |
| 0x10, 0x8e, 0x09, 0x2d, 0xb9, 0x49, 0x08, 0x74, 0x0b, 0x8e, 0x71, 0x68, 0x1b, 0x1d, 0x0f, 0x04, |
| 0x41, 0xce, 0x88, 0x2a, 0x52, 0x90, 0x90, 0xc0, 0x35, 0x54, 0xa9, 0x28, 0x6e, 0x75, 0xe7, 0x80, |
| 0x04, 0x0f, 0xa7, 0xf5, 0xdd, 0xf8, 0xbc, 0xea, 0xf9, 0xf6, 0xd8, 0xdd, 0x73, 0x95, 0x07, 0x1e, |
| 0xe0, 0x6f, 0xf0, 0x47, 0x79, 0x44, 0xbb, 0x7b, 0x77, 0xb6, 0xeb, 0xfa, 0x12, 0xf9, 0x71, 0x67, |
| 0xf7, 0xfb, 0x66, 0xe6, 0xdb, 0x99, 0x0f, 0xba, 0x19, 0x52, 0x31, 0xbe, 0x0e, 0xe5, 0x94, 0x0a, |
| 0x0c, 0x25, 0x8a, 0x39, 0x8b, 0xd0, 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x8c, 0xcb, |
| 0x9e, 0x86, 0xf7, 0x4a, 0x8c, 0xec, 0x69, 0x9e, 0xde, 0x0a, 0xcf, 0xf8, 0xae, 0xc9, 0xf8, 0xf8, |
| 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x35, 0xbd, 0x02, 0x32, 0x96, 0x09, 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 |
| |
| // NearbyShareServiceClient is the client API for NearbyShareService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type NearbyShareServiceClient interface { |
| // NewChromeLogin logs into a Chrome session as a fake user with the Nearby |
| // Share flags enabled. Close must be called later to clean up the associated resources. |
| NewChromeLogin(ctx context.Context, in *CrOSLoginRequest, opts ...grpc.CallOption) (*empty.Empty, error) |
| // Close releases the resources obtained by New. |
| CloseChrome(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) |
| // CrOSSetup configures Nearby Share on a ChromeOS device. |
| CrOSSetup(ctx context.Context, in *CrOSSetupRequest, opts ...grpc.CallOption) (*empty.Empty, error) |
| // FilesHashes returns a list of hashes for a list of files. |
| FilesHashes(ctx context.Context, in *CrOSFileHashRequest, opts ...grpc.CallOption) (*CrOSFileHashResponse, error) |
| // PrepareFiles extracts test files. |
| PrepareFiles(ctx context.Context, in *CrOSPrepareFileRequest, opts ...grpc.CallOption) (*CrOSPrepareFileResponse, error) |
| // StartSend tries to sends files to receiver. |
| StartSend(ctx context.Context, in *CrOSSendFilesRequest, opts ...grpc.CallOption) (*empty.Empty, error) |
| // SelectShareTarget will select the receiver device. |
| SelectShareTarget(ctx context.Context, in *CrOSSelectShareTargetRequest, opts ...grpc.CallOption) (*CrOSShareTokenResponse, error) |
| // StartHighVisibilityMode enables the Nearby Share High Visibility mode from |
| // quick settings. |
| StartHighVisibilityMode(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) |
| // StartReceiving will enable high vis receiving from javascript. |
| StartReceiving(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) |
| // WaitForSenderAndAcceptShare is called by receiver to receive the file from |
| // sender. |
| WaitForSenderAndAcceptShare(ctx context.Context, in *CrOSReceiveFilesRequest, opts ...grpc.CallOption) (*CrOSShareTokenResponse, error) |
| // AcceptIncomingShareNotificationAndWaitForCompletion is used for in contacts |
| // transfers where the Chromebook accepts the transfer via a notification and |
| // waits for a followup notification to see the transfer is complete. |
| AcceptIncomingShareNotificationAndWaitForCompletion(ctx context.Context, in *CrOSReceiveFilesRequest, opts ...grpc.CallOption) (*empty.Empty, error) |
| // StartLogging is used to begin logging at the start of a test. |
| StartLogging(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) |
| // SaveLogs is used to saved the relevant log files for a nearby share run. |
| SaveLogs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) |
| // ClearTransferredFiles clears the transferred files in the receiver's Downloads folder. |
| ClearTransferredFiles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) |
| // CrOSAttributes gets device info for a chromebook used in remote tests. |
| CrOSAttributes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*CrOSAttributesResponse, error) |
| } |
| |
| type nearbyShareServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewNearbyShareServiceClient(cc *grpc.ClientConn) NearbyShareServiceClient { |
| return &nearbyShareServiceClient{cc} |
| } |
| |
| func (c *nearbyShareServiceClient) NewChromeLogin(ctx context.Context, in *CrOSLoginRequest, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/NewChromeLogin", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) CloseChrome(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/CloseChrome", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) CrOSSetup(ctx context.Context, in *CrOSSetupRequest, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/CrOSSetup", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) FilesHashes(ctx context.Context, in *CrOSFileHashRequest, opts ...grpc.CallOption) (*CrOSFileHashResponse, error) { |
| out := new(CrOSFileHashResponse) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/FilesHashes", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) PrepareFiles(ctx context.Context, in *CrOSPrepareFileRequest, opts ...grpc.CallOption) (*CrOSPrepareFileResponse, error) { |
| out := new(CrOSPrepareFileResponse) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/PrepareFiles", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) StartSend(ctx context.Context, in *CrOSSendFilesRequest, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/StartSend", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) SelectShareTarget(ctx context.Context, in *CrOSSelectShareTargetRequest, opts ...grpc.CallOption) (*CrOSShareTokenResponse, error) { |
| out := new(CrOSShareTokenResponse) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/SelectShareTarget", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) StartHighVisibilityMode(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/StartHighVisibilityMode", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) StartReceiving(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/StartReceiving", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) WaitForSenderAndAcceptShare(ctx context.Context, in *CrOSReceiveFilesRequest, opts ...grpc.CallOption) (*CrOSShareTokenResponse, error) { |
| out := new(CrOSShareTokenResponse) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/WaitForSenderAndAcceptShare", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) AcceptIncomingShareNotificationAndWaitForCompletion(ctx context.Context, in *CrOSReceiveFilesRequest, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/AcceptIncomingShareNotificationAndWaitForCompletion", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) StartLogging(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/StartLogging", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) SaveLogs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/SaveLogs", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) ClearTransferredFiles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/ClearTransferredFiles", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *nearbyShareServiceClient) CrOSAttributes(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*CrOSAttributesResponse, error) { |
| out := new(CrOSAttributesResponse) |
| err := c.cc.Invoke(ctx, "/tast.cros.nearbyservice.NearbyShareService/CrOSAttributes", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // NearbyShareServiceServer is the server API for NearbyShareService service. |
| type NearbyShareServiceServer interface { |
| // NewChromeLogin logs into a Chrome session as a fake user with the Nearby |
| // Share flags enabled. Close must be called later to clean up the associated resources. |
| NewChromeLogin(context.Context, *CrOSLoginRequest) (*empty.Empty, error) |
| // Close releases the resources obtained by New. |
| CloseChrome(context.Context, *empty.Empty) (*empty.Empty, error) |
| // CrOSSetup configures Nearby Share on a ChromeOS device. |
| CrOSSetup(context.Context, *CrOSSetupRequest) (*empty.Empty, error) |
| // FilesHashes returns a list of hashes for a list of files. |
| FilesHashes(context.Context, *CrOSFileHashRequest) (*CrOSFileHashResponse, error) |
| // PrepareFiles extracts test files. |
| PrepareFiles(context.Context, *CrOSPrepareFileRequest) (*CrOSPrepareFileResponse, error) |
| // StartSend tries to sends files to receiver. |
| StartSend(context.Context, *CrOSSendFilesRequest) (*empty.Empty, error) |
| // SelectShareTarget will select the receiver device. |
| SelectShareTarget(context.Context, *CrOSSelectShareTargetRequest) (*CrOSShareTokenResponse, error) |
| // StartHighVisibilityMode enables the Nearby Share High Visibility mode from |
| // quick settings. |
| StartHighVisibilityMode(context.Context, *empty.Empty) (*empty.Empty, error) |
| // StartReceiving will enable high vis receiving from javascript. |
| StartReceiving(context.Context, *empty.Empty) (*empty.Empty, error) |
| // WaitForSenderAndAcceptShare is called by receiver to receive the file from |
| // sender. |
| WaitForSenderAndAcceptShare(context.Context, *CrOSReceiveFilesRequest) (*CrOSShareTokenResponse, error) |
| // AcceptIncomingShareNotificationAndWaitForCompletion is used for in contacts |
| // transfers where the Chromebook accepts the transfer via a notification and |
| // waits for a followup notification to see the transfer is complete. |
| AcceptIncomingShareNotificationAndWaitForCompletion(context.Context, *CrOSReceiveFilesRequest) (*empty.Empty, error) |
| // StartLogging is used to begin logging at the start of a test. |
| StartLogging(context.Context, *empty.Empty) (*empty.Empty, error) |
| // SaveLogs is used to saved the relevant log files for a nearby share run. |
| SaveLogs(context.Context, *empty.Empty) (*empty.Empty, error) |
| // ClearTransferredFiles clears the transferred files in the receiver's Downloads folder. |
| ClearTransferredFiles(context.Context, *empty.Empty) (*empty.Empty, error) |
| // CrOSAttributes gets device info for a chromebook used in remote tests. |
| CrOSAttributes(context.Context, *empty.Empty) (*CrOSAttributesResponse, error) |
| } |
| |
| // UnimplementedNearbyShareServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedNearbyShareServiceServer struct { |
| } |
| |
| func (*UnimplementedNearbyShareServiceServer) NewChromeLogin(ctx context.Context, req *CrOSLoginRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method NewChromeLogin not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) CloseChrome(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CloseChrome not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) CrOSSetup(ctx context.Context, req *CrOSSetupRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CrOSSetup not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) FilesHashes(ctx context.Context, req *CrOSFileHashRequest) (*CrOSFileHashResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method FilesHashes not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) PrepareFiles(ctx context.Context, req *CrOSPrepareFileRequest) (*CrOSPrepareFileResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method PrepareFiles not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) StartSend(ctx context.Context, req *CrOSSendFilesRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method StartSend not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) SelectShareTarget(ctx context.Context, req *CrOSSelectShareTargetRequest) (*CrOSShareTokenResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SelectShareTarget not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) StartHighVisibilityMode(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method StartHighVisibilityMode not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) StartReceiving(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method StartReceiving not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) WaitForSenderAndAcceptShare(ctx context.Context, req *CrOSReceiveFilesRequest) (*CrOSShareTokenResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method WaitForSenderAndAcceptShare not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) AcceptIncomingShareNotificationAndWaitForCompletion(ctx context.Context, req *CrOSReceiveFilesRequest) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method AcceptIncomingShareNotificationAndWaitForCompletion not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) StartLogging(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method StartLogging not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) SaveLogs(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SaveLogs not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) ClearTransferredFiles(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method ClearTransferredFiles not implemented") |
| } |
| func (*UnimplementedNearbyShareServiceServer) CrOSAttributes(ctx context.Context, req *empty.Empty) (*CrOSAttributesResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method CrOSAttributes not implemented") |
| } |
| |
| func RegisterNearbyShareServiceServer(s *grpc.Server, srv NearbyShareServiceServer) { |
| s.RegisterService(&_NearbyShareService_serviceDesc, srv) |
| } |
| |
| func _NearbyShareService_NewChromeLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CrOSLoginRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(NearbyShareServiceServer).NewChromeLogin(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/NewChromeLogin", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).NewChromeLogin(ctx, req.(*CrOSLoginRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_CloseChrome_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.(NearbyShareServiceServer).CloseChrome(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/CloseChrome", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).CloseChrome(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_CrOSSetup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CrOSSetupRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(NearbyShareServiceServer).CrOSSetup(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/CrOSSetup", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).CrOSSetup(ctx, req.(*CrOSSetupRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_FilesHashes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CrOSFileHashRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(NearbyShareServiceServer).FilesHashes(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/FilesHashes", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).FilesHashes(ctx, req.(*CrOSFileHashRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_PrepareFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CrOSPrepareFileRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(NearbyShareServiceServer).PrepareFiles(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/PrepareFiles", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).PrepareFiles(ctx, req.(*CrOSPrepareFileRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_StartSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CrOSSendFilesRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(NearbyShareServiceServer).StartSend(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/StartSend", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).StartSend(ctx, req.(*CrOSSendFilesRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_SelectShareTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CrOSSelectShareTargetRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(NearbyShareServiceServer).SelectShareTarget(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/SelectShareTarget", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).SelectShareTarget(ctx, req.(*CrOSSelectShareTargetRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_StartHighVisibilityMode_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.(NearbyShareServiceServer).StartHighVisibilityMode(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/StartHighVisibilityMode", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).StartHighVisibilityMode(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_StartReceiving_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.(NearbyShareServiceServer).StartReceiving(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/StartReceiving", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).StartReceiving(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_WaitForSenderAndAcceptShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CrOSReceiveFilesRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(NearbyShareServiceServer).WaitForSenderAndAcceptShare(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/WaitForSenderAndAcceptShare", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).WaitForSenderAndAcceptShare(ctx, req.(*CrOSReceiveFilesRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_AcceptIncomingShareNotificationAndWaitForCompletion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CrOSReceiveFilesRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(NearbyShareServiceServer).AcceptIncomingShareNotificationAndWaitForCompletion(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/AcceptIncomingShareNotificationAndWaitForCompletion", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).AcceptIncomingShareNotificationAndWaitForCompletion(ctx, req.(*CrOSReceiveFilesRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_StartLogging_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.(NearbyShareServiceServer).StartLogging(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/StartLogging", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).StartLogging(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_SaveLogs_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.(NearbyShareServiceServer).SaveLogs(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/SaveLogs", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).SaveLogs(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_ClearTransferredFiles_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.(NearbyShareServiceServer).ClearTransferredFiles(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/ClearTransferredFiles", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).ClearTransferredFiles(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _NearbyShareService_CrOSAttributes_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.(NearbyShareServiceServer).CrOSAttributes(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.nearbyservice.NearbyShareService/CrOSAttributes", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(NearbyShareServiceServer).CrOSAttributes(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _NearbyShareService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "tast.cros.nearbyservice.NearbyShareService", |
| HandlerType: (*NearbyShareServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "NewChromeLogin", |
| Handler: _NearbyShareService_NewChromeLogin_Handler, |
| }, |
| { |
| MethodName: "CloseChrome", |
| Handler: _NearbyShareService_CloseChrome_Handler, |
| }, |
| { |
| MethodName: "CrOSSetup", |
| Handler: _NearbyShareService_CrOSSetup_Handler, |
| }, |
| { |
| MethodName: "FilesHashes", |
| Handler: _NearbyShareService_FilesHashes_Handler, |
| }, |
| { |
| MethodName: "PrepareFiles", |
| Handler: _NearbyShareService_PrepareFiles_Handler, |
| }, |
| { |
| MethodName: "StartSend", |
| Handler: _NearbyShareService_StartSend_Handler, |
| }, |
| { |
| MethodName: "SelectShareTarget", |
| Handler: _NearbyShareService_SelectShareTarget_Handler, |
| }, |
| { |
| MethodName: "StartHighVisibilityMode", |
| Handler: _NearbyShareService_StartHighVisibilityMode_Handler, |
| }, |
| { |
| MethodName: "StartReceiving", |
| Handler: _NearbyShareService_StartReceiving_Handler, |
| }, |
| { |
| MethodName: "WaitForSenderAndAcceptShare", |
| Handler: _NearbyShareService_WaitForSenderAndAcceptShare_Handler, |
| }, |
| { |
| MethodName: "AcceptIncomingShareNotificationAndWaitForCompletion", |
| Handler: _NearbyShareService_AcceptIncomingShareNotificationAndWaitForCompletion_Handler, |
| }, |
| { |
| MethodName: "StartLogging", |
| Handler: _NearbyShareService_StartLogging_Handler, |
| }, |
| { |
| MethodName: "SaveLogs", |
| Handler: _NearbyShareService_SaveLogs_Handler, |
| }, |
| { |
| MethodName: "ClearTransferredFiles", |
| Handler: _NearbyShareService_ClearTransferredFiles_Handler, |
| }, |
| { |
| MethodName: "CrOSAttributes", |
| Handler: _NearbyShareService_CrOSAttributes_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "nearby_share_service.proto", |
| } |