Documentation ¶
Index ¶
- Variables
- type AppData
- type ClientEvent
- func (*ClientEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ClientEvent) GetErrorCode() int32
- func (x *ClientEvent) GetNetworkType() int32
- func (x *ClientEvent) GetNumberDiscardedEvents() uint32
- func (x *ClientEvent) GetTimeConnectionEndedMs() uint64
- func (x *ClientEvent) GetTimeConnectionEstablishedMs() uint64
- func (x *ClientEvent) GetTimeConnectionStartedMs() uint64
- func (x *ClientEvent) GetType() ClientEvent_Type
- func (*ClientEvent) ProtoMessage()
- func (x *ClientEvent) ProtoReflect() protoreflect.Message
- func (x *ClientEvent) Reset()
- func (x *ClientEvent) String() string
- type ClientEvent_Type
- func (ClientEvent_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ClientEvent_Type) Enum() *ClientEvent_Type
- func (ClientEvent_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClientEvent_Type) Number() protoreflect.EnumNumber
- func (x ClientEvent_Type) String() string
- func (ClientEvent_Type) Type() protoreflect.EnumType
- func (x *ClientEvent_Type) UnmarshalJSON(b []byte) errordeprecated
- type Close
- type DataMessageStanza
- func (*DataMessageStanza) Descriptor() ([]byte, []int)deprecated
- func (x *DataMessageStanza) GetAppData() []*AppData
- func (x *DataMessageStanza) GetCategory() string
- func (x *DataMessageStanza) GetDeviceUserId() int64
- func (x *DataMessageStanza) GetFrom() string
- func (x *DataMessageStanza) GetFromTrustedServer() bool
- func (x *DataMessageStanza) GetId() string
- func (x *DataMessageStanza) GetImmediateAck() bool
- func (x *DataMessageStanza) GetLastStreamIdReceived() int32
- func (x *DataMessageStanza) GetPersistentId() string
- func (x *DataMessageStanza) GetQueued() int32
- func (x *DataMessageStanza) GetRawData() []byte
- func (x *DataMessageStanza) GetRegId() string
- func (x *DataMessageStanza) GetSent() int64
- func (x *DataMessageStanza) GetStatus() int64
- func (x *DataMessageStanza) GetStreamId() int32
- func (x *DataMessageStanza) GetTo() string
- func (x *DataMessageStanza) GetToken() string
- func (x *DataMessageStanza) GetTtl() int32
- func (*DataMessageStanza) ProtoMessage()
- func (x *DataMessageStanza) ProtoReflect() protoreflect.Message
- func (x *DataMessageStanza) Reset()
- func (x *DataMessageStanza) String() string
- type ErrorInfo
- func (*ErrorInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorInfo) GetCode() int32
- func (x *ErrorInfo) GetExtension() *Extension
- func (x *ErrorInfo) GetMessage() string
- func (x *ErrorInfo) GetType() string
- func (*ErrorInfo) ProtoMessage()
- func (x *ErrorInfo) ProtoReflect() protoreflect.Message
- func (x *ErrorInfo) Reset()
- func (x *ErrorInfo) String() string
- type Extension
- type HeartbeatAck
- func (*HeartbeatAck) Descriptor() ([]byte, []int)deprecated
- func (x *HeartbeatAck) GetLastStreamIdReceived() int32
- func (x *HeartbeatAck) GetStatus() int64
- func (x *HeartbeatAck) GetStreamId() int32
- func (*HeartbeatAck) ProtoMessage()
- func (x *HeartbeatAck) ProtoReflect() protoreflect.Message
- func (x *HeartbeatAck) Reset()
- func (x *HeartbeatAck) String() string
- type HeartbeatConfig
- func (*HeartbeatConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HeartbeatConfig) GetIntervalMs() int32
- func (x *HeartbeatConfig) GetIp() string
- func (x *HeartbeatConfig) GetUploadStat() bool
- func (*HeartbeatConfig) ProtoMessage()
- func (x *HeartbeatConfig) ProtoReflect() protoreflect.Message
- func (x *HeartbeatConfig) Reset()
- func (x *HeartbeatConfig) String() string
- type HeartbeatPing
- func (*HeartbeatPing) Descriptor() ([]byte, []int)deprecated
- func (x *HeartbeatPing) GetLastStreamIdReceived() int32
- func (x *HeartbeatPing) GetStatus() int64
- func (x *HeartbeatPing) GetStreamId() int32
- func (*HeartbeatPing) ProtoMessage()
- func (x *HeartbeatPing) ProtoReflect() protoreflect.Message
- func (x *HeartbeatPing) Reset()
- func (x *HeartbeatPing) String() string
- type HeartbeatStat
- func (*HeartbeatStat) Descriptor() ([]byte, []int)deprecated
- func (x *HeartbeatStat) GetIntervalMs() int32
- func (x *HeartbeatStat) GetIp() string
- func (x *HeartbeatStat) GetTimeout() bool
- func (*HeartbeatStat) ProtoMessage()
- func (x *HeartbeatStat) ProtoReflect() protoreflect.Message
- func (x *HeartbeatStat) Reset()
- func (x *HeartbeatStat) String() string
- type IqStanza
- func (*IqStanza) Descriptor() ([]byte, []int)deprecated
- func (x *IqStanza) GetAccountId() int64
- func (x *IqStanza) GetError() *ErrorInfo
- func (x *IqStanza) GetExtension() *Extension
- func (x *IqStanza) GetFrom() string
- func (x *IqStanza) GetId() string
- func (x *IqStanza) GetLastStreamIdReceived() int32
- func (x *IqStanza) GetPersistentId() string
- func (x *IqStanza) GetRmqId() int64
- func (x *IqStanza) GetStatus() int64
- func (x *IqStanza) GetStreamId() int32
- func (x *IqStanza) GetTo() string
- func (x *IqStanza) GetType() IqStanza_IqType
- func (*IqStanza) ProtoMessage()
- func (x *IqStanza) ProtoReflect() protoreflect.Message
- func (x *IqStanza) Reset()
- func (x *IqStanza) String() string
- type IqStanza_IqType
- func (IqStanza_IqType) Descriptor() protoreflect.EnumDescriptor
- func (x IqStanza_IqType) Enum() *IqStanza_IqType
- func (IqStanza_IqType) EnumDescriptor() ([]byte, []int)deprecated
- func (x IqStanza_IqType) Number() protoreflect.EnumNumber
- func (x IqStanza_IqType) String() string
- func (IqStanza_IqType) Type() protoreflect.EnumType
- func (x *IqStanza_IqType) UnmarshalJSON(b []byte) errordeprecated
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetAccountId() int64
- func (x *LoginRequest) GetAdaptiveHeartbeat() bool
- func (x *LoginRequest) GetAuthService() LoginRequest_AuthService
- func (x *LoginRequest) GetAuthToken() string
- func (x *LoginRequest) GetClientEvent() []*ClientEvent
- func (x *LoginRequest) GetDeviceId() string
- func (x *LoginRequest) GetDomain() string
- func (x *LoginRequest) GetHeartbeatStat() *HeartbeatStat
- func (x *LoginRequest) GetId() string
- func (x *LoginRequest) GetLastRmqId() int64
- func (x *LoginRequest) GetNetworkType() int32
- func (x *LoginRequest) GetReceivedPersistentId() []string
- func (x *LoginRequest) GetResource() string
- func (x *LoginRequest) GetSetting() []*Setting
- func (x *LoginRequest) GetStatus() int64
- func (x *LoginRequest) GetUseRmq2() bool
- func (x *LoginRequest) GetUser() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginRequest_AuthService
- func (LoginRequest_AuthService) Descriptor() protoreflect.EnumDescriptor
- func (x LoginRequest_AuthService) Enum() *LoginRequest_AuthService
- func (LoginRequest_AuthService) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoginRequest_AuthService) Number() protoreflect.EnumNumber
- func (x LoginRequest_AuthService) String() string
- func (LoginRequest_AuthService) Type() protoreflect.EnumType
- func (x *LoginRequest_AuthService) UnmarshalJSON(b []byte) errordeprecated
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetError() *ErrorInfo
- func (x *LoginResponse) GetHeartbeatConfig() *HeartbeatConfig
- func (x *LoginResponse) GetId() string
- func (x *LoginResponse) GetJid() string
- func (x *LoginResponse) GetLastStreamIdReceived() int32
- func (x *LoginResponse) GetServerTimestamp() int64
- func (x *LoginResponse) GetSetting() []*Setting
- func (x *LoginResponse) GetStreamId() int32
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type SelectiveAck
- type Setting
- type StreamAck
- type StreamErrorStanza
- func (*StreamErrorStanza) Descriptor() ([]byte, []int)deprecated
- func (x *StreamErrorStanza) GetText() string
- func (x *StreamErrorStanza) GetType() string
- func (*StreamErrorStanza) ProtoMessage()
- func (x *StreamErrorStanza) ProtoReflect() protoreflect.Message
- func (x *StreamErrorStanza) Reset()
- func (x *StreamErrorStanza) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ClientEvent_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "DISCARDED_EVENTS", 2: "FAILED_CONNECTION", 3: "SUCCESSFUL_CONNECTION", } ClientEvent_Type_value = map[string]int32{ "UNKNOWN": 0, "DISCARDED_EVENTS": 1, "FAILED_CONNECTION": 2, "SUCCESSFUL_CONNECTION": 3, } )
Enum value maps for ClientEvent_Type.
var ( LoginRequest_AuthService_name = map[int32]string{ 2: "ANDROID_ID", } LoginRequest_AuthService_value = map[string]int32{ "ANDROID_ID": 2, } )
Enum value maps for LoginRequest_AuthService.
var ( IqStanza_IqType_name = map[int32]string{ 0: "GET", 1: "SET", 2: "RESULT", 3: "IQ_ERROR", } IqStanza_IqType_value = map[string]int32{ "GET": 0, "SET": 1, "RESULT": 2, "IQ_ERROR": 3, } )
Enum value maps for IqStanza_IqType.
var File_mcs_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AppData ¶
type AppData struct { Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"` Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AppData) Descriptor
deprecated
func (*AppData) ProtoMessage ¶
func (*AppData) ProtoMessage()
func (*AppData) ProtoReflect ¶
func (x *AppData) ProtoReflect() protoreflect.Message
type ClientEvent ¶
type ClientEvent struct { // Common fields [1-99] Type *ClientEvent_Type `protobuf:"varint,1,opt,name=type,enum=mcs_proto.ClientEvent_Type" json:"type,omitempty"` // Fields for DISCARDED_EVENTS messages [100-199] NumberDiscardedEvents *uint32 `protobuf:"varint,100,opt,name=number_discarded_events,json=numberDiscardedEvents" json:"number_discarded_events,omitempty"` // Fields for FAILED_CONNECTION and SUCCESSFUL_CONNECTION messages [200-299] // Network type is a value in net::NetworkChangeNotifier::ConnectionType. NetworkType *int32 `protobuf:"varint,200,opt,name=network_type,json=networkType" json:"network_type,omitempty"` TimeConnectionStartedMs *uint64 `` /* 130-byte string literal not displayed */ TimeConnectionEndedMs *uint64 `protobuf:"varint,203,opt,name=time_connection_ended_ms,json=timeConnectionEndedMs" json:"time_connection_ended_ms,omitempty"` // Error code should be a net::Error value. ErrorCode *int32 `protobuf:"varint,204,opt,name=error_code,json=errorCode" json:"error_code,omitempty"` // Fields for SUCCESSFUL_CONNECTION messages [300-399] TimeConnectionEstablishedMs *uint64 `` /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
ClientEvents are used to inform the server of failed and successful connections.
func (*ClientEvent) Descriptor
deprecated
func (*ClientEvent) Descriptor() ([]byte, []int)
Deprecated: Use ClientEvent.ProtoReflect.Descriptor instead.
func (*ClientEvent) GetErrorCode ¶
func (x *ClientEvent) GetErrorCode() int32
func (*ClientEvent) GetNetworkType ¶
func (x *ClientEvent) GetNetworkType() int32
func (*ClientEvent) GetNumberDiscardedEvents ¶
func (x *ClientEvent) GetNumberDiscardedEvents() uint32
func (*ClientEvent) GetTimeConnectionEndedMs ¶
func (x *ClientEvent) GetTimeConnectionEndedMs() uint64
func (*ClientEvent) GetTimeConnectionEstablishedMs ¶
func (x *ClientEvent) GetTimeConnectionEstablishedMs() uint64
func (*ClientEvent) GetTimeConnectionStartedMs ¶
func (x *ClientEvent) GetTimeConnectionStartedMs() uint64
func (*ClientEvent) GetType ¶
func (x *ClientEvent) GetType() ClientEvent_Type
func (*ClientEvent) ProtoMessage ¶
func (*ClientEvent) ProtoMessage()
func (*ClientEvent) ProtoReflect ¶
func (x *ClientEvent) ProtoReflect() protoreflect.Message
func (*ClientEvent) Reset ¶
func (x *ClientEvent) Reset()
func (*ClientEvent) String ¶
func (x *ClientEvent) String() string
type ClientEvent_Type ¶
type ClientEvent_Type int32
const ( ClientEvent_UNKNOWN ClientEvent_Type = 0 // Count of discarded events if the buffer filled up and was trimmed. ClientEvent_DISCARDED_EVENTS ClientEvent_Type = 1 // Failed connection event: the connection failed to be established or we // had a login error. ClientEvent_FAILED_CONNECTION ClientEvent_Type = 2 // Successful connection event: information about the last successful // connection, including the time at which it was established. ClientEvent_SUCCESSFUL_CONNECTION ClientEvent_Type = 3 )
func (ClientEvent_Type) Descriptor ¶
func (ClientEvent_Type) Descriptor() protoreflect.EnumDescriptor
func (ClientEvent_Type) Enum ¶
func (x ClientEvent_Type) Enum() *ClientEvent_Type
func (ClientEvent_Type) EnumDescriptor
deprecated
func (ClientEvent_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClientEvent_Type.Descriptor instead.
func (ClientEvent_Type) Number ¶
func (x ClientEvent_Type) Number() protoreflect.EnumNumber
func (ClientEvent_Type) String ¶
func (x ClientEvent_Type) String() string
func (ClientEvent_Type) Type ¶
func (ClientEvent_Type) Type() protoreflect.EnumType
func (*ClientEvent_Type) UnmarshalJSON
deprecated
func (x *ClientEvent_Type) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Close ¶
type Close struct {
// contains filtered or unexported fields
}
* TAG: 4
func (*Close) Descriptor
deprecated
func (*Close) ProtoMessage ¶
func (*Close) ProtoMessage()
func (*Close) ProtoReflect ¶
func (x *Close) ProtoReflect() protoreflect.Message
type DataMessageStanza ¶
type DataMessageStanza struct { // This is the message ID, set by client, DMP.9 (message_id) Id *string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` // Project ID of the sender, DMP.1 From *string `protobuf:"bytes,3,req,name=from" json:"from,omitempty"` // Part of DMRequest - also the key in DataMessageProto. To *string `protobuf:"bytes,4,opt,name=to" json:"to,omitempty"` // Package name. DMP.2 Category *string `protobuf:"bytes,5,req,name=category" json:"category,omitempty"` // The collapsed key, DMP.3 Token *string `protobuf:"bytes,6,opt,name=token" json:"token,omitempty"` // User data + GOOGLE. prefixed special entries, DMP.4 AppData []*AppData `protobuf:"bytes,7,rep,name=app_data,json=appData" json:"app_data,omitempty"` // Not used. FromTrustedServer *bool `protobuf:"varint,8,opt,name=from_trusted_server,json=fromTrustedServer" json:"from_trusted_server,omitempty"` // Part of the ACK protocol, returned in DataMessageResponse on server side. // It's part of the key of DMP. PersistentId *string `protobuf:"bytes,9,opt,name=persistent_id,json=persistentId" json:"persistent_id,omitempty"` // In-stream ack. Increments on each message sent - a bit redundant // Not used in DMP/DMR. StreamId *int32 `protobuf:"varint,10,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"` LastStreamIdReceived *int32 `protobuf:"varint,11,opt,name=last_stream_id_received,json=lastStreamIdReceived" json:"last_stream_id_received,omitempty"` // Sent by the device shortly after registration. RegId *string `protobuf:"bytes,13,opt,name=reg_id,json=regId" json:"reg_id,omitempty"` // serial number of the target user, DMP.8 // It is the 'serial number' according to user manager. DeviceUserId *int64 `protobuf:"varint,16,opt,name=device_user_id,json=deviceUserId" json:"device_user_id,omitempty"` // Time to live, in seconds. Ttl *int32 `protobuf:"varint,17,opt,name=ttl" json:"ttl,omitempty"` // Timestamp ( according to client ) when message was sent by app, in seconds Sent *int64 `protobuf:"varint,18,opt,name=sent" json:"sent,omitempty"` // How long has the message been queued before the flush, in seconds. // This is needed to account for the time difference between server and // client: server should adjust 'sent' based on its 'receive' time. Queued *int32 `protobuf:"varint,19,opt,name=queued" json:"queued,omitempty"` Status *int64 `protobuf:"varint,20,opt,name=status" json:"status,omitempty"` // Optional field containing the binary payload of the message. RawData []byte `protobuf:"bytes,21,opt,name=raw_data,json=rawData" json:"raw_data,omitempty"` // If set the server requests immediate ack. Used for important messages and // for testing. ImmediateAck *bool `protobuf:"varint,24,opt,name=immediate_ack,json=immediateAck" json:"immediate_ack,omitempty"` // contains filtered or unexported fields }
* TAG: 8
func (*DataMessageStanza) Descriptor
deprecated
func (*DataMessageStanza) Descriptor() ([]byte, []int)
Deprecated: Use DataMessageStanza.ProtoReflect.Descriptor instead.
func (*DataMessageStanza) GetAppData ¶
func (x *DataMessageStanza) GetAppData() []*AppData
func (*DataMessageStanza) GetCategory ¶
func (x *DataMessageStanza) GetCategory() string
func (*DataMessageStanza) GetDeviceUserId ¶
func (x *DataMessageStanza) GetDeviceUserId() int64
func (*DataMessageStanza) GetFrom ¶
func (x *DataMessageStanza) GetFrom() string
func (*DataMessageStanza) GetFromTrustedServer ¶
func (x *DataMessageStanza) GetFromTrustedServer() bool
func (*DataMessageStanza) GetId ¶
func (x *DataMessageStanza) GetId() string
func (*DataMessageStanza) GetImmediateAck ¶
func (x *DataMessageStanza) GetImmediateAck() bool
func (*DataMessageStanza) GetLastStreamIdReceived ¶
func (x *DataMessageStanza) GetLastStreamIdReceived() int32
func (*DataMessageStanza) GetPersistentId ¶
func (x *DataMessageStanza) GetPersistentId() string
func (*DataMessageStanza) GetQueued ¶
func (x *DataMessageStanza) GetQueued() int32
func (*DataMessageStanza) GetRawData ¶
func (x *DataMessageStanza) GetRawData() []byte
func (*DataMessageStanza) GetRegId ¶
func (x *DataMessageStanza) GetRegId() string
func (*DataMessageStanza) GetSent ¶
func (x *DataMessageStanza) GetSent() int64
func (*DataMessageStanza) GetStatus ¶
func (x *DataMessageStanza) GetStatus() int64
func (*DataMessageStanza) GetStreamId ¶
func (x *DataMessageStanza) GetStreamId() int32
func (*DataMessageStanza) GetTo ¶
func (x *DataMessageStanza) GetTo() string
func (*DataMessageStanza) GetToken ¶
func (x *DataMessageStanza) GetToken() string
func (*DataMessageStanza) GetTtl ¶
func (x *DataMessageStanza) GetTtl() int32
func (*DataMessageStanza) ProtoMessage ¶
func (*DataMessageStanza) ProtoMessage()
func (*DataMessageStanza) ProtoReflect ¶
func (x *DataMessageStanza) ProtoReflect() protoreflect.Message
func (*DataMessageStanza) Reset ¶
func (x *DataMessageStanza) Reset()
func (*DataMessageStanza) String ¶
func (x *DataMessageStanza) String() string
type ErrorInfo ¶
type ErrorInfo struct { Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` Message *string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` Type *string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` Extension *Extension `protobuf:"bytes,4,opt,name=extension" json:"extension,omitempty"` // contains filtered or unexported fields }
func (*ErrorInfo) Descriptor
deprecated
func (*ErrorInfo) GetExtension ¶
func (*ErrorInfo) GetMessage ¶
func (*ErrorInfo) ProtoMessage ¶
func (*ErrorInfo) ProtoMessage()
func (*ErrorInfo) ProtoReflect ¶
func (x *ErrorInfo) ProtoReflect() protoreflect.Message
type Extension ¶
type Extension struct { // 12: SelectiveAck // 13: StreamAck Id *int32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Extension) Descriptor
deprecated
func (*Extension) ProtoMessage ¶
func (*Extension) ProtoMessage()
func (*Extension) ProtoReflect ¶
func (x *Extension) ProtoReflect() protoreflect.Message
type HeartbeatAck ¶
type HeartbeatAck struct { StreamId *int32 `protobuf:"varint,1,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"` LastStreamIdReceived *int32 `protobuf:"varint,2,opt,name=last_stream_id_received,json=lastStreamIdReceived" json:"last_stream_id_received,omitempty"` Status *int64 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"` // contains filtered or unexported fields }
* TAG: 1
func (*HeartbeatAck) Descriptor
deprecated
func (*HeartbeatAck) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatAck.ProtoReflect.Descriptor instead.
func (*HeartbeatAck) GetLastStreamIdReceived ¶
func (x *HeartbeatAck) GetLastStreamIdReceived() int32
func (*HeartbeatAck) GetStatus ¶
func (x *HeartbeatAck) GetStatus() int64
func (*HeartbeatAck) GetStreamId ¶
func (x *HeartbeatAck) GetStreamId() int32
func (*HeartbeatAck) ProtoMessage ¶
func (*HeartbeatAck) ProtoMessage()
func (*HeartbeatAck) ProtoReflect ¶
func (x *HeartbeatAck) ProtoReflect() protoreflect.Message
func (*HeartbeatAck) Reset ¶
func (x *HeartbeatAck) Reset()
func (*HeartbeatAck) String ¶
func (x *HeartbeatAck) String() string
type HeartbeatConfig ¶
type HeartbeatConfig struct { UploadStat *bool `protobuf:"varint,1,opt,name=upload_stat,json=uploadStat" json:"upload_stat,omitempty"` Ip *string `protobuf:"bytes,2,opt,name=ip" json:"ip,omitempty"` IntervalMs *int32 `protobuf:"varint,3,opt,name=interval_ms,json=intervalMs" json:"interval_ms,omitempty"` // contains filtered or unexported fields }
func (*HeartbeatConfig) Descriptor
deprecated
func (*HeartbeatConfig) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatConfig.ProtoReflect.Descriptor instead.
func (*HeartbeatConfig) GetIntervalMs ¶
func (x *HeartbeatConfig) GetIntervalMs() int32
func (*HeartbeatConfig) GetIp ¶
func (x *HeartbeatConfig) GetIp() string
func (*HeartbeatConfig) GetUploadStat ¶
func (x *HeartbeatConfig) GetUploadStat() bool
func (*HeartbeatConfig) ProtoMessage ¶
func (*HeartbeatConfig) ProtoMessage()
func (*HeartbeatConfig) ProtoReflect ¶
func (x *HeartbeatConfig) ProtoReflect() protoreflect.Message
func (*HeartbeatConfig) Reset ¶
func (x *HeartbeatConfig) Reset()
func (*HeartbeatConfig) String ¶
func (x *HeartbeatConfig) String() string
type HeartbeatPing ¶
type HeartbeatPing struct { StreamId *int32 `protobuf:"varint,1,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"` LastStreamIdReceived *int32 `protobuf:"varint,2,opt,name=last_stream_id_received,json=lastStreamIdReceived" json:"last_stream_id_received,omitempty"` Status *int64 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"` // contains filtered or unexported fields }
* TAG: 0
func (*HeartbeatPing) Descriptor
deprecated
func (*HeartbeatPing) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatPing.ProtoReflect.Descriptor instead.
func (*HeartbeatPing) GetLastStreamIdReceived ¶
func (x *HeartbeatPing) GetLastStreamIdReceived() int32
func (*HeartbeatPing) GetStatus ¶
func (x *HeartbeatPing) GetStatus() int64
func (*HeartbeatPing) GetStreamId ¶
func (x *HeartbeatPing) GetStreamId() int32
func (*HeartbeatPing) ProtoMessage ¶
func (*HeartbeatPing) ProtoMessage()
func (*HeartbeatPing) ProtoReflect ¶
func (x *HeartbeatPing) ProtoReflect() protoreflect.Message
func (*HeartbeatPing) Reset ¶
func (x *HeartbeatPing) Reset()
func (*HeartbeatPing) String ¶
func (x *HeartbeatPing) String() string
type HeartbeatStat ¶
type HeartbeatStat struct { Ip *string `protobuf:"bytes,1,req,name=ip" json:"ip,omitempty"` Timeout *bool `protobuf:"varint,2,req,name=timeout" json:"timeout,omitempty"` IntervalMs *int32 `protobuf:"varint,3,req,name=interval_ms,json=intervalMs" json:"interval_ms,omitempty"` // contains filtered or unexported fields }
func (*HeartbeatStat) Descriptor
deprecated
func (*HeartbeatStat) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatStat.ProtoReflect.Descriptor instead.
func (*HeartbeatStat) GetIntervalMs ¶
func (x *HeartbeatStat) GetIntervalMs() int32
func (*HeartbeatStat) GetIp ¶
func (x *HeartbeatStat) GetIp() string
func (*HeartbeatStat) GetTimeout ¶
func (x *HeartbeatStat) GetTimeout() bool
func (*HeartbeatStat) ProtoMessage ¶
func (*HeartbeatStat) ProtoMessage()
func (*HeartbeatStat) ProtoReflect ¶
func (x *HeartbeatStat) ProtoReflect() protoreflect.Message
func (*HeartbeatStat) Reset ¶
func (x *HeartbeatStat) Reset()
func (*HeartbeatStat) String ¶
func (x *HeartbeatStat) String() string
type IqStanza ¶
type IqStanza struct { RmqId *int64 `protobuf:"varint,1,opt,name=rmq_id,json=rmqId" json:"rmq_id,omitempty"` Type *IqStanza_IqType `protobuf:"varint,2,req,name=type,enum=mcs_proto.IqStanza_IqType" json:"type,omitempty"` Id *string `protobuf:"bytes,3,req,name=id" json:"id,omitempty"` From *string `protobuf:"bytes,4,opt,name=from" json:"from,omitempty"` To *string `protobuf:"bytes,5,opt,name=to" json:"to,omitempty"` Error *ErrorInfo `protobuf:"bytes,6,opt,name=error" json:"error,omitempty"` // Only field used in the 38+ protocol (besides common last_stream_id_received, status, rmq_id) Extension *Extension `protobuf:"bytes,7,opt,name=extension" json:"extension,omitempty"` PersistentId *string `protobuf:"bytes,8,opt,name=persistent_id,json=persistentId" json:"persistent_id,omitempty"` StreamId *int32 `protobuf:"varint,9,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"` LastStreamIdReceived *int32 `protobuf:"varint,10,opt,name=last_stream_id_received,json=lastStreamIdReceived" json:"last_stream_id_received,omitempty"` AccountId *int64 `protobuf:"varint,11,opt,name=account_id,json=accountId" json:"account_id,omitempty"` Status *int64 `protobuf:"varint,12,opt,name=status" json:"status,omitempty"` // contains filtered or unexported fields }
* TAG: 7 IqRequest must contain a single extension. IqResponse may contain 0 or 1 extensions.
func (*IqStanza) Descriptor
deprecated
func (*IqStanza) GetAccountId ¶
func (*IqStanza) GetExtension ¶
func (*IqStanza) GetLastStreamIdReceived ¶
func (*IqStanza) GetPersistentId ¶
func (*IqStanza) GetStreamId ¶
func (*IqStanza) GetType ¶
func (x *IqStanza) GetType() IqStanza_IqType
func (*IqStanza) ProtoMessage ¶
func (*IqStanza) ProtoMessage()
func (*IqStanza) ProtoReflect ¶
func (x *IqStanza) ProtoReflect() protoreflect.Message
type IqStanza_IqType ¶
type IqStanza_IqType int32
const ( IqStanza_GET IqStanza_IqType = 0 IqStanza_SET IqStanza_IqType = 1 IqStanza_RESULT IqStanza_IqType = 2 IqStanza_IQ_ERROR IqStanza_IqType = 3 )
func (IqStanza_IqType) Descriptor ¶
func (IqStanza_IqType) Descriptor() protoreflect.EnumDescriptor
func (IqStanza_IqType) Enum ¶
func (x IqStanza_IqType) Enum() *IqStanza_IqType
func (IqStanza_IqType) EnumDescriptor
deprecated
func (IqStanza_IqType) EnumDescriptor() ([]byte, []int)
Deprecated: Use IqStanza_IqType.Descriptor instead.
func (IqStanza_IqType) Number ¶
func (x IqStanza_IqType) Number() protoreflect.EnumNumber
func (IqStanza_IqType) String ¶
func (x IqStanza_IqType) String() string
func (IqStanza_IqType) Type ¶
func (IqStanza_IqType) Type() protoreflect.EnumType
func (*IqStanza_IqType) UnmarshalJSON
deprecated
func (x *IqStanza_IqType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type LoginRequest ¶
type LoginRequest struct { Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` // Must be present ( proto required ), may be empty // string. // mcs.android.com. Domain *string `protobuf:"bytes,2,req,name=domain" json:"domain,omitempty"` // Decimal android ID User *string `protobuf:"bytes,3,req,name=user" json:"user,omitempty"` Resource *string `protobuf:"bytes,4,req,name=resource" json:"resource,omitempty"` // Secret AuthToken *string `protobuf:"bytes,5,req,name=auth_token,json=authToken" json:"auth_token,omitempty"` // Format is: android-HEX_DEVICE_ID // The user is the decimal value. DeviceId *string `protobuf:"bytes,6,opt,name=device_id,json=deviceId" json:"device_id,omitempty"` // RMQ1 - no longer used LastRmqId *int64 `protobuf:"varint,7,opt,name=last_rmq_id,json=lastRmqId" json:"last_rmq_id,omitempty"` Setting []*Setting `protobuf:"bytes,8,rep,name=setting" json:"setting,omitempty"` // optional int32 compress = 9; ReceivedPersistentId []string `protobuf:"bytes,10,rep,name=received_persistent_id,json=receivedPersistentId" json:"received_persistent_id,omitempty"` AdaptiveHeartbeat *bool `protobuf:"varint,12,opt,name=adaptive_heartbeat,json=adaptiveHeartbeat" json:"adaptive_heartbeat,omitempty"` HeartbeatStat *HeartbeatStat `protobuf:"bytes,13,opt,name=heartbeat_stat,json=heartbeatStat" json:"heartbeat_stat,omitempty"` // Must be true. UseRmq2 *bool `protobuf:"varint,14,opt,name=use_rmq2,json=useRmq2" json:"use_rmq2,omitempty"` AccountId *int64 `protobuf:"varint,15,opt,name=account_id,json=accountId" json:"account_id,omitempty"` // ANDROID_ID = 2 AuthService *LoginRequest_AuthService `` /* 129-byte string literal not displayed */ NetworkType *int32 `protobuf:"varint,17,opt,name=network_type,json=networkType" json:"network_type,omitempty"` Status *int64 `protobuf:"varint,18,opt,name=status" json:"status,omitempty"` // Events recorded on the client after the last successful connection. ClientEvent []*ClientEvent `protobuf:"bytes,22,rep,name=client_event,json=clientEvent" json:"client_event,omitempty"` // contains filtered or unexported fields }
* TAG: 2
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetAccountId ¶
func (x *LoginRequest) GetAccountId() int64
func (*LoginRequest) GetAdaptiveHeartbeat ¶
func (x *LoginRequest) GetAdaptiveHeartbeat() bool
func (*LoginRequest) GetAuthService ¶
func (x *LoginRequest) GetAuthService() LoginRequest_AuthService
func (*LoginRequest) GetAuthToken ¶
func (x *LoginRequest) GetAuthToken() string
func (*LoginRequest) GetClientEvent ¶
func (x *LoginRequest) GetClientEvent() []*ClientEvent
func (*LoginRequest) GetDeviceId ¶
func (x *LoginRequest) GetDeviceId() string
func (*LoginRequest) GetDomain ¶
func (x *LoginRequest) GetDomain() string
func (*LoginRequest) GetHeartbeatStat ¶
func (x *LoginRequest) GetHeartbeatStat() *HeartbeatStat
func (*LoginRequest) GetId ¶
func (x *LoginRequest) GetId() string
func (*LoginRequest) GetLastRmqId ¶
func (x *LoginRequest) GetLastRmqId() int64
func (*LoginRequest) GetNetworkType ¶
func (x *LoginRequest) GetNetworkType() int32
func (*LoginRequest) GetReceivedPersistentId ¶
func (x *LoginRequest) GetReceivedPersistentId() []string
func (*LoginRequest) GetResource ¶
func (x *LoginRequest) GetResource() string
func (*LoginRequest) GetSetting ¶
func (x *LoginRequest) GetSetting() []*Setting
func (*LoginRequest) GetStatus ¶
func (x *LoginRequest) GetStatus() int64
func (*LoginRequest) GetUseRmq2 ¶
func (x *LoginRequest) GetUseRmq2() bool
func (*LoginRequest) GetUser ¶
func (x *LoginRequest) GetUser() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginRequest_AuthService ¶
type LoginRequest_AuthService int32
const (
LoginRequest_ANDROID_ID LoginRequest_AuthService = 2
)
func (LoginRequest_AuthService) Descriptor ¶
func (LoginRequest_AuthService) Descriptor() protoreflect.EnumDescriptor
func (LoginRequest_AuthService) Enum ¶
func (x LoginRequest_AuthService) Enum() *LoginRequest_AuthService
func (LoginRequest_AuthService) EnumDescriptor
deprecated
func (LoginRequest_AuthService) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoginRequest_AuthService.Descriptor instead.
func (LoginRequest_AuthService) Number ¶
func (x LoginRequest_AuthService) Number() protoreflect.EnumNumber
func (LoginRequest_AuthService) String ¶
func (x LoginRequest_AuthService) String() string
func (LoginRequest_AuthService) Type ¶
func (LoginRequest_AuthService) Type() protoreflect.EnumType
func (*LoginRequest_AuthService) UnmarshalJSON
deprecated
func (x *LoginRequest_AuthService) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type LoginResponse ¶
type LoginResponse struct { Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` // Not used. Jid *string `protobuf:"bytes,2,opt,name=jid" json:"jid,omitempty"` // Null if login was ok. Error *ErrorInfo `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` Setting []*Setting `protobuf:"bytes,4,rep,name=setting" json:"setting,omitempty"` StreamId *int32 `protobuf:"varint,5,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"` // Should be "1" LastStreamIdReceived *int32 `protobuf:"varint,6,opt,name=last_stream_id_received,json=lastStreamIdReceived" json:"last_stream_id_received,omitempty"` HeartbeatConfig *HeartbeatConfig `protobuf:"bytes,7,opt,name=heartbeat_config,json=heartbeatConfig" json:"heartbeat_config,omitempty"` // used by the client to synchronize with the server timestamp. ServerTimestamp *int64 `protobuf:"varint,8,opt,name=server_timestamp,json=serverTimestamp" json:"server_timestamp,omitempty"` // contains filtered or unexported fields }
* TAG: 3
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetError ¶
func (x *LoginResponse) GetError() *ErrorInfo
func (*LoginResponse) GetHeartbeatConfig ¶
func (x *LoginResponse) GetHeartbeatConfig() *HeartbeatConfig
func (*LoginResponse) GetId ¶
func (x *LoginResponse) GetId() string
func (*LoginResponse) GetJid ¶
func (x *LoginResponse) GetJid() string
func (*LoginResponse) GetLastStreamIdReceived ¶
func (x *LoginResponse) GetLastStreamIdReceived() int32
func (*LoginResponse) GetServerTimestamp ¶
func (x *LoginResponse) GetServerTimestamp() int64
func (*LoginResponse) GetSetting ¶
func (x *LoginResponse) GetSetting() []*Setting
func (*LoginResponse) GetStreamId ¶
func (x *LoginResponse) GetStreamId() int32
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type SelectiveAck ¶
type SelectiveAck struct { Id []string `protobuf:"bytes,1,rep,name=id" json:"id,omitempty"` // contains filtered or unexported fields }
* Included in IQ sent after LoginResponse from server with ID 12.
func (*SelectiveAck) Descriptor
deprecated
func (*SelectiveAck) Descriptor() ([]byte, []int)
Deprecated: Use SelectiveAck.ProtoReflect.Descriptor instead.
func (*SelectiveAck) GetId ¶
func (x *SelectiveAck) GetId() []string
func (*SelectiveAck) ProtoMessage ¶
func (*SelectiveAck) ProtoMessage()
func (*SelectiveAck) ProtoReflect ¶
func (x *SelectiveAck) ProtoReflect() protoreflect.Message
func (*SelectiveAck) Reset ¶
func (x *SelectiveAck) Reset()
func (*SelectiveAck) String ¶
func (x *SelectiveAck) String() string
type Setting ¶
type Setting struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Setting) Descriptor
deprecated
func (*Setting) ProtoMessage ¶
func (*Setting) ProtoMessage()
func (*Setting) ProtoReflect ¶
func (x *Setting) ProtoReflect() protoreflect.Message
type StreamAck ¶
type StreamAck struct {
// contains filtered or unexported fields
}
* Included in IQ with ID 13, sent from client or server after 10 unconfirmed messages.
func (*StreamAck) Descriptor
deprecated
func (*StreamAck) ProtoMessage ¶
func (*StreamAck) ProtoMessage()
func (*StreamAck) ProtoReflect ¶
func (x *StreamAck) ProtoReflect() protoreflect.Message
type StreamErrorStanza ¶
type StreamErrorStanza struct { Type *string `protobuf:"bytes,1,req,name=type" json:"type,omitempty"` Text *string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` // contains filtered or unexported fields }
func (*StreamErrorStanza) Descriptor
deprecated
func (*StreamErrorStanza) Descriptor() ([]byte, []int)
Deprecated: Use StreamErrorStanza.ProtoReflect.Descriptor instead.
func (*StreamErrorStanza) GetText ¶
func (x *StreamErrorStanza) GetText() string
func (*StreamErrorStanza) GetType ¶
func (x *StreamErrorStanza) GetType() string
func (*StreamErrorStanza) ProtoMessage ¶
func (*StreamErrorStanza) ProtoMessage()
func (*StreamErrorStanza) ProtoReflect ¶
func (x *StreamErrorStanza) ProtoReflect() protoreflect.Message
func (*StreamErrorStanza) Reset ¶
func (x *StreamErrorStanza) Reset()
func (*StreamErrorStanza) String ¶
func (x *StreamErrorStanza) String() string