messages

package
v4.5.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package messages is a generated protocol buffer package.

It is generated from these files:

messages/hww.proto

It has these top-level messages:

Error
Success
RandomNumberResponse
RandomNumberRequest
DeviceInfoRequest
DeviceInfoResponse
SetDeviceNameRequest
SetDeviceLanguageRequest
SetPasswordRequest
CreateBackupRequest
ShowMnemonicRequest
Request
Response

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateBackupRequest

type CreateBackupRequest struct {
	// TODO add backup creation args
	Timestamp      uint32 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
	TimezoneOffset int32  `protobuf:"varint,2,opt,name=timezone_offset,json=timezoneOffset" json:"timezone_offset,omitempty"`
}

func (*CreateBackupRequest) Descriptor

func (*CreateBackupRequest) Descriptor() ([]byte, []int)

func (*CreateBackupRequest) GetTimestamp

func (m *CreateBackupRequest) GetTimestamp() uint32

func (*CreateBackupRequest) GetTimezoneOffset

func (m *CreateBackupRequest) GetTimezoneOffset() int32

func (*CreateBackupRequest) ProtoMessage

func (*CreateBackupRequest) ProtoMessage()

func (*CreateBackupRequest) Reset

func (m *CreateBackupRequest) Reset()

func (*CreateBackupRequest) String

func (m *CreateBackupRequest) String() string

type DeviceInfoRequest

type DeviceInfoRequest struct {
}

func (*DeviceInfoRequest) Descriptor

func (*DeviceInfoRequest) Descriptor() ([]byte, []int)

func (*DeviceInfoRequest) ProtoMessage

func (*DeviceInfoRequest) ProtoMessage()

func (*DeviceInfoRequest) Reset

func (m *DeviceInfoRequest) Reset()

func (*DeviceInfoRequest) String

func (m *DeviceInfoRequest) String() string

type DeviceInfoResponse

type DeviceInfoResponse struct {
	Name        string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Initialized bool   `protobuf:"varint,2,opt,name=initialized" json:"initialized,omitempty"`
	Version     string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
}

func (*DeviceInfoResponse) Descriptor

func (*DeviceInfoResponse) Descriptor() ([]byte, []int)

func (*DeviceInfoResponse) GetInitialized

func (m *DeviceInfoResponse) GetInitialized() bool

func (*DeviceInfoResponse) GetName

func (m *DeviceInfoResponse) GetName() string

func (*DeviceInfoResponse) GetVersion

func (m *DeviceInfoResponse) GetVersion() string

func (*DeviceInfoResponse) ProtoMessage

func (*DeviceInfoResponse) ProtoMessage()

func (*DeviceInfoResponse) Reset

func (m *DeviceInfoResponse) Reset()

func (*DeviceInfoResponse) String

func (m *DeviceInfoResponse) String() string

type Error

type Error struct {
	Code    int32  `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
}

func (*Error) Descriptor

func (*Error) Descriptor() ([]byte, []int)

func (*Error) GetCode

func (m *Error) GetCode() int32

func (*Error) GetMessage

func (m *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

type RandomNumberRequest

type RandomNumberRequest struct {
}

func (*RandomNumberRequest) Descriptor

func (*RandomNumberRequest) Descriptor() ([]byte, []int)

func (*RandomNumberRequest) ProtoMessage

func (*RandomNumberRequest) ProtoMessage()

func (*RandomNumberRequest) Reset

func (m *RandomNumberRequest) Reset()

func (*RandomNumberRequest) String

func (m *RandomNumberRequest) String() string

type RandomNumberResponse

type RandomNumberResponse struct {
	Number []byte `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
}

func (*RandomNumberResponse) Descriptor

func (*RandomNumberResponse) Descriptor() ([]byte, []int)

func (*RandomNumberResponse) GetNumber

func (m *RandomNumberResponse) GetNumber() []byte

func (*RandomNumberResponse) ProtoMessage

func (*RandomNumberResponse) ProtoMessage()

func (*RandomNumberResponse) Reset

func (m *RandomNumberResponse) Reset()

func (*RandomNumberResponse) String

func (m *RandomNumberResponse) String() string

type Request

type Request struct {
	// Types that are valid to be assigned to Request:
	//	*Request_RandomNumber
	//	*Request_DeviceName
	//	*Request_DeviceLanguage
	//	*Request_DeviceInfo
	//	*Request_SetPassword
	//	*Request_CreateBackup
	//	*Request_ShowMnemonic
	Request isRequest_Request `protobuf_oneof:"request"`
}

func (*Request) Descriptor

func (*Request) Descriptor() ([]byte, []int)

func (*Request) GetCreateBackup

func (m *Request) GetCreateBackup() *CreateBackupRequest

func (*Request) GetDeviceInfo

func (m *Request) GetDeviceInfo() *DeviceInfoRequest

func (*Request) GetDeviceLanguage

func (m *Request) GetDeviceLanguage() *SetDeviceLanguageRequest

func (*Request) GetDeviceName

func (m *Request) GetDeviceName() *SetDeviceNameRequest

func (*Request) GetRandomNumber

func (m *Request) GetRandomNumber() *RandomNumberRequest

func (*Request) GetRequest

func (m *Request) GetRequest() isRequest_Request

func (*Request) GetSetPassword

func (m *Request) GetSetPassword() *SetPasswordRequest

func (*Request) GetShowMnemonic

func (m *Request) GetShowMnemonic() *ShowMnemonicRequest

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_OneofFuncs

func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Request_CreateBackup

type Request_CreateBackup struct {
	CreateBackup *CreateBackupRequest `protobuf:"bytes,6,opt,name=create_backup,json=createBackup,oneof"`
}

type Request_DeviceInfo

type Request_DeviceInfo struct {
	DeviceInfo *DeviceInfoRequest `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,oneof"`
}

type Request_DeviceLanguage

type Request_DeviceLanguage struct {
	DeviceLanguage *SetDeviceLanguageRequest `protobuf:"bytes,3,opt,name=device_language,json=deviceLanguage,oneof"`
}

type Request_DeviceName

type Request_DeviceName struct {
	DeviceName *SetDeviceNameRequest `protobuf:"bytes,2,opt,name=device_name,json=deviceName,oneof"`
}

type Request_RandomNumber

type Request_RandomNumber struct {
	RandomNumber *RandomNumberRequest `protobuf:"bytes,1,opt,name=random_number,json=randomNumber,oneof"`
}

type Request_SetPassword

type Request_SetPassword struct {
	SetPassword *SetPasswordRequest `protobuf:"bytes,5,opt,name=set_password,json=setPassword,oneof"`
}

type Request_ShowMnemonic

type Request_ShowMnemonic struct {
	ShowMnemonic *ShowMnemonicRequest `protobuf:"bytes,7,opt,name=show_mnemonic,json=showMnemonic,oneof"`
}

type Response

type Response struct {
	// Types that are valid to be assigned to Response:
	//	*Response_Success
	//	*Response_Error
	//	*Response_RandomNumber
	//	*Response_DeviceInfo
	Response isResponse_Response `protobuf_oneof:"response"`
}

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetDeviceInfo

func (m *Response) GetDeviceInfo() *DeviceInfoResponse

func (*Response) GetError

func (m *Response) GetError() *Error

func (*Response) GetRandomNumber

func (m *Response) GetRandomNumber() *RandomNumberResponse

func (*Response) GetResponse

func (m *Response) GetResponse() isResponse_Response

func (*Response) GetSuccess

func (m *Response) GetSuccess() *Success

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_OneofFuncs

func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Response_DeviceInfo

type Response_DeviceInfo struct {
	DeviceInfo *DeviceInfoResponse `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,oneof"`
}

type Response_Error

type Response_Error struct {
	Error *Error `protobuf:"bytes,2,opt,name=error,oneof"`
}

type Response_RandomNumber

type Response_RandomNumber struct {
	RandomNumber *RandomNumberResponse `protobuf:"bytes,3,opt,name=random_number,json=randomNumber,oneof"`
}

type Response_Success

type Response_Success struct {
	Success *Success `protobuf:"bytes,1,opt,name=success,oneof"`
}

type SetDeviceLanguageRequest

type SetDeviceLanguageRequest struct {
	Language string `protobuf:"bytes,1,opt,name=language" json:"language,omitempty"`
}

func (*SetDeviceLanguageRequest) Descriptor

func (*SetDeviceLanguageRequest) Descriptor() ([]byte, []int)

func (*SetDeviceLanguageRequest) GetLanguage

func (m *SetDeviceLanguageRequest) GetLanguage() string

func (*SetDeviceLanguageRequest) ProtoMessage

func (*SetDeviceLanguageRequest) ProtoMessage()

func (*SetDeviceLanguageRequest) Reset

func (m *SetDeviceLanguageRequest) Reset()

func (*SetDeviceLanguageRequest) String

func (m *SetDeviceLanguageRequest) String() string

type SetDeviceNameRequest

type SetDeviceNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*SetDeviceNameRequest) Descriptor

func (*SetDeviceNameRequest) Descriptor() ([]byte, []int)

func (*SetDeviceNameRequest) GetName

func (m *SetDeviceNameRequest) GetName() string

func (*SetDeviceNameRequest) ProtoMessage

func (*SetDeviceNameRequest) ProtoMessage()

func (*SetDeviceNameRequest) Reset

func (m *SetDeviceNameRequest) Reset()

func (*SetDeviceNameRequest) String

func (m *SetDeviceNameRequest) String() string

type SetPasswordRequest

type SetPasswordRequest struct {
}

func (*SetPasswordRequest) Descriptor

func (*SetPasswordRequest) Descriptor() ([]byte, []int)

func (*SetPasswordRequest) ProtoMessage

func (*SetPasswordRequest) ProtoMessage()

func (*SetPasswordRequest) Reset

func (m *SetPasswordRequest) Reset()

func (*SetPasswordRequest) String

func (m *SetPasswordRequest) String() string

type ShowMnemonicRequest

type ShowMnemonicRequest struct {
}

func (*ShowMnemonicRequest) Descriptor

func (*ShowMnemonicRequest) Descriptor() ([]byte, []int)

func (*ShowMnemonicRequest) ProtoMessage

func (*ShowMnemonicRequest) ProtoMessage()

func (*ShowMnemonicRequest) Reset

func (m *ShowMnemonicRequest) Reset()

func (*ShowMnemonicRequest) String

func (m *ShowMnemonicRequest) String() string

type Success

type Success struct {
}

func (*Success) Descriptor

func (*Success) Descriptor() ([]byte, []int)

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) Reset

func (m *Success) Reset()

func (*Success) String

func (m *Success) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL