Protocol_Data_ContactRequest

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package Protocol_Data_ContactRequest is a generated protocol buffer package.

It is generated from these files:

ContactRequestChannel.proto

It has these top-level messages:

ContactRequest
Response

Index

Constants

This section is empty.

Variables

View Source
var E_ContactRequest = &proto.ExtensionDesc{
	ExtendedType:  (*Protocol_Data_Control.OpenChannel)(nil),
	ExtensionType: (*ContactRequest)(nil),
	Field:         200,
	Name:          "Protocol.Data.ContactRequest.contact_request",
	Tag:           "bytes,200,opt,name=contact_request",
}
View Source
var E_Response = &proto.ExtensionDesc{
	ExtendedType:  (*Protocol_Data_Control.ChannelResult)(nil),
	ExtensionType: (*Response)(nil),
	Field:         201,
	Name:          "Protocol.Data.ContactRequest.response",
	Tag:           "bytes,201,opt,name=response",
}
View Source
var Limits_name = map[int32]string{
	2000: "MessageMaxCharacters",
	30:   "NicknameMaxCharacters",
}
View Source
var Limits_value = map[string]int32{
	"MessageMaxCharacters":  2000,
	"NicknameMaxCharacters": 30,
}
View Source
var Response_Status_name = map[int32]string{
	0: "Undefined",
	1: "Pending",
	2: "Accepted",
	3: "Rejected",
	4: "Error",
}
View Source
var Response_Status_value = map[string]int32{
	"Undefined": 0,
	"Pending":   1,
	"Accepted":  2,
	"Rejected":  3,
	"Error":     4,
}

Functions

This section is empty.

Types

type ContactRequest

type ContactRequest struct {
	Nickname         *string `protobuf:"bytes,1,opt,name=nickname" json:"nickname,omitempty"`
	MessageText      *string `protobuf:"bytes,2,opt,name=message_text" json:"message_text,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Sent only as an attachment to OpenChannel

func (*ContactRequest) GetMessageText

func (m *ContactRequest) GetMessageText() string

func (*ContactRequest) GetNickname

func (m *ContactRequest) GetNickname() string

func (*ContactRequest) ProtoMessage

func (*ContactRequest) ProtoMessage()

func (*ContactRequest) Reset

func (m *ContactRequest) Reset()

func (*ContactRequest) String

func (m *ContactRequest) String() string

type Limits

type Limits int32
const (
	Limits_MessageMaxCharacters  Limits = 2000
	Limits_NicknameMaxCharacters Limits = 30
)

func (Limits) Enum

func (x Limits) Enum() *Limits

func (Limits) String

func (x Limits) String() string

func (*Limits) UnmarshalJSON

func (x *Limits) UnmarshalJSON(data []byte) error

type Response

type Response struct {
	Status           *Response_Status `protobuf:"varint,1,req,name=status,enum=Protocol.Data.ContactRequest.Response_Status" json:"status,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

Response is the only valid message to send on the channel

func (*Response) GetStatus

func (m *Response) GetStatus() Response_Status

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

type Response_Status

type Response_Status int32
const (
	Response_Undefined Response_Status = 0
	Response_Pending   Response_Status = 1
	Response_Accepted  Response_Status = 2
	Response_Rejected  Response_Status = 3
	Response_Error     Response_Status = 4
)

func (Response_Status) Enum

func (x Response_Status) Enum() *Response_Status

func (Response_Status) String

func (x Response_Status) String() string

func (*Response_Status) UnmarshalJSON

func (x *Response_Status) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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