288 lines
8.2 KiB
Go
288 lines
8.2 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: ControlChannel.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package Protocol_Data_Control is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
ControlChannel.proto
|
|
|
|
It has these top-level messages:
|
|
Packet
|
|
OpenChannel
|
|
ChannelResult
|
|
KeepAlive
|
|
EnableFeatures
|
|
FeaturesEnabled
|
|
*/
|
|
package Protocol_Data_Control
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
type ChannelResult_CommonError int32
|
|
|
|
const (
|
|
ChannelResult_GenericError ChannelResult_CommonError = 0
|
|
ChannelResult_UnknownTypeError ChannelResult_CommonError = 1
|
|
ChannelResult_UnauthorizedError ChannelResult_CommonError = 2
|
|
ChannelResult_BadUsageError ChannelResult_CommonError = 3
|
|
ChannelResult_FailedError ChannelResult_CommonError = 4
|
|
)
|
|
|
|
var ChannelResult_CommonError_name = map[int32]string{
|
|
0: "GenericError",
|
|
1: "UnknownTypeError",
|
|
2: "UnauthorizedError",
|
|
3: "BadUsageError",
|
|
4: "FailedError",
|
|
}
|
|
var ChannelResult_CommonError_value = map[string]int32{
|
|
"GenericError": 0,
|
|
"UnknownTypeError": 1,
|
|
"UnauthorizedError": 2,
|
|
"BadUsageError": 3,
|
|
"FailedError": 4,
|
|
}
|
|
|
|
func (x ChannelResult_CommonError) Enum() *ChannelResult_CommonError {
|
|
p := new(ChannelResult_CommonError)
|
|
*p = x
|
|
return p
|
|
}
|
|
func (x ChannelResult_CommonError) String() string {
|
|
return proto.EnumName(ChannelResult_CommonError_name, int32(x))
|
|
}
|
|
func (x *ChannelResult_CommonError) UnmarshalJSON(data []byte) error {
|
|
value, err := proto.UnmarshalJSONEnum(ChannelResult_CommonError_value, data, "ChannelResult_CommonError")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
*x = ChannelResult_CommonError(value)
|
|
return nil
|
|
}
|
|
|
|
type Packet struct {
|
|
// Must contain exactly one field
|
|
OpenChannel *OpenChannel `protobuf:"bytes,1,opt,name=open_channel" json:"open_channel,omitempty"`
|
|
ChannelResult *ChannelResult `protobuf:"bytes,2,opt,name=channel_result" json:"channel_result,omitempty"`
|
|
KeepAlive *KeepAlive `protobuf:"bytes,3,opt,name=keep_alive" json:"keep_alive,omitempty"`
|
|
EnableFeatures *EnableFeatures `protobuf:"bytes,4,opt,name=enable_features" json:"enable_features,omitempty"`
|
|
FeaturesEnabled *FeaturesEnabled `protobuf:"bytes,5,opt,name=features_enabled" json:"features_enabled,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *Packet) Reset() { *m = Packet{} }
|
|
func (m *Packet) String() string { return proto.CompactTextString(m) }
|
|
func (*Packet) ProtoMessage() {}
|
|
|
|
func (m *Packet) GetOpenChannel() *OpenChannel {
|
|
if m != nil {
|
|
return m.OpenChannel
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetChannelResult() *ChannelResult {
|
|
if m != nil {
|
|
return m.ChannelResult
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetKeepAlive() *KeepAlive {
|
|
if m != nil {
|
|
return m.KeepAlive
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetEnableFeatures() *EnableFeatures {
|
|
if m != nil {
|
|
return m.EnableFeatures
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetFeaturesEnabled() *FeaturesEnabled {
|
|
if m != nil {
|
|
return m.FeaturesEnabled
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OpenChannel struct {
|
|
ChannelIdentifier *int32 `protobuf:"varint,1,req,name=channel_identifier" json:"channel_identifier,omitempty"`
|
|
ChannelType *string `protobuf:"bytes,2,req,name=channel_type" json:"channel_type,omitempty"`
|
|
XXX_extensions map[int32]proto.Extension `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *OpenChannel) Reset() { *m = OpenChannel{} }
|
|
func (m *OpenChannel) String() string { return proto.CompactTextString(m) }
|
|
func (*OpenChannel) ProtoMessage() {}
|
|
|
|
var extRange_OpenChannel = []proto.ExtensionRange{
|
|
{100, 536870911},
|
|
}
|
|
|
|
func (*OpenChannel) ExtensionRangeArray() []proto.ExtensionRange {
|
|
return extRange_OpenChannel
|
|
}
|
|
func (m *OpenChannel) ExtensionMap() map[int32]proto.Extension {
|
|
if m.XXX_extensions == nil {
|
|
m.XXX_extensions = make(map[int32]proto.Extension)
|
|
}
|
|
return m.XXX_extensions
|
|
}
|
|
|
|
func (m *OpenChannel) GetChannelIdentifier() int32 {
|
|
if m != nil && m.ChannelIdentifier != nil {
|
|
return *m.ChannelIdentifier
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *OpenChannel) GetChannelType() string {
|
|
if m != nil && m.ChannelType != nil {
|
|
return *m.ChannelType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ChannelResult struct {
|
|
ChannelIdentifier *int32 `protobuf:"varint,1,req,name=channel_identifier" json:"channel_identifier,omitempty"`
|
|
Opened *bool `protobuf:"varint,2,req,name=opened" json:"opened,omitempty"`
|
|
CommonError *ChannelResult_CommonError `protobuf:"varint,3,opt,name=common_error,enum=Protocol.Data.Control.ChannelResult_CommonError" json:"common_error,omitempty"`
|
|
XXX_extensions map[int32]proto.Extension `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *ChannelResult) Reset() { *m = ChannelResult{} }
|
|
func (m *ChannelResult) String() string { return proto.CompactTextString(m) }
|
|
func (*ChannelResult) ProtoMessage() {}
|
|
|
|
var extRange_ChannelResult = []proto.ExtensionRange{
|
|
{100, 536870911},
|
|
}
|
|
|
|
func (*ChannelResult) ExtensionRangeArray() []proto.ExtensionRange {
|
|
return extRange_ChannelResult
|
|
}
|
|
func (m *ChannelResult) ExtensionMap() map[int32]proto.Extension {
|
|
if m.XXX_extensions == nil {
|
|
m.XXX_extensions = make(map[int32]proto.Extension)
|
|
}
|
|
return m.XXX_extensions
|
|
}
|
|
|
|
func (m *ChannelResult) GetChannelIdentifier() int32 {
|
|
if m != nil && m.ChannelIdentifier != nil {
|
|
return *m.ChannelIdentifier
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ChannelResult) GetOpened() bool {
|
|
if m != nil && m.Opened != nil {
|
|
return *m.Opened
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ChannelResult) GetCommonError() ChannelResult_CommonError {
|
|
if m != nil && m.CommonError != nil {
|
|
return *m.CommonError
|
|
}
|
|
return ChannelResult_GenericError
|
|
}
|
|
|
|
type KeepAlive struct {
|
|
ResponseRequested *bool `protobuf:"varint,1,req,name=response_requested" json:"response_requested,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *KeepAlive) Reset() { *m = KeepAlive{} }
|
|
func (m *KeepAlive) String() string { return proto.CompactTextString(m) }
|
|
func (*KeepAlive) ProtoMessage() {}
|
|
|
|
func (m *KeepAlive) GetResponseRequested() bool {
|
|
if m != nil && m.ResponseRequested != nil {
|
|
return *m.ResponseRequested
|
|
}
|
|
return false
|
|
}
|
|
|
|
type EnableFeatures struct {
|
|
Feature []string `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty"`
|
|
XXX_extensions map[int32]proto.Extension `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *EnableFeatures) Reset() { *m = EnableFeatures{} }
|
|
func (m *EnableFeatures) String() string { return proto.CompactTextString(m) }
|
|
func (*EnableFeatures) ProtoMessage() {}
|
|
|
|
var extRange_EnableFeatures = []proto.ExtensionRange{
|
|
{100, 536870911},
|
|
}
|
|
|
|
func (*EnableFeatures) ExtensionRangeArray() []proto.ExtensionRange {
|
|
return extRange_EnableFeatures
|
|
}
|
|
func (m *EnableFeatures) ExtensionMap() map[int32]proto.Extension {
|
|
if m.XXX_extensions == nil {
|
|
m.XXX_extensions = make(map[int32]proto.Extension)
|
|
}
|
|
return m.XXX_extensions
|
|
}
|
|
|
|
func (m *EnableFeatures) GetFeature() []string {
|
|
if m != nil {
|
|
return m.Feature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FeaturesEnabled struct {
|
|
Feature []string `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty"`
|
|
XXX_extensions map[int32]proto.Extension `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *FeaturesEnabled) Reset() { *m = FeaturesEnabled{} }
|
|
func (m *FeaturesEnabled) String() string { return proto.CompactTextString(m) }
|
|
func (*FeaturesEnabled) ProtoMessage() {}
|
|
|
|
var extRange_FeaturesEnabled = []proto.ExtensionRange{
|
|
{100, 536870911},
|
|
}
|
|
|
|
func (*FeaturesEnabled) ExtensionRangeArray() []proto.ExtensionRange {
|
|
return extRange_FeaturesEnabled
|
|
}
|
|
func (m *FeaturesEnabled) ExtensionMap() map[int32]proto.Extension {
|
|
if m.XXX_extensions == nil {
|
|
m.XXX_extensions = make(map[int32]proto.Extension)
|
|
}
|
|
return m.XXX_extensions
|
|
}
|
|
|
|
func (m *FeaturesEnabled) GetFeature() []string {
|
|
if m != nil {
|
|
return m.Feature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("Protocol.Data.Control.ChannelResult_CommonError", ChannelResult_CommonError_name, ChannelResult_CommonError_value)
|
|
}
|