1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: forwarding/state.proto
3
4package forwarding
5
6import (
7	fmt "fmt"
8	proto "github.com/golang/protobuf/proto"
9	math "math"
10)
11
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
16
17// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
21const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
22
23// Status encodes the status of a forwarding session.
24type Status int32
25
26const (
27	// Status_Disconnected indicates that the session is disconnected.
28	Status_Disconnected Status = 0
29	// Status_ConnectingSource indicates that the session is in the process of
30	// connecting to the source endpoint.
31	Status_ConnectingSource Status = 1
32	// Status_ConnectingDestination indicates that the session is in the process
33	// of connecting to the destination endpoint.
34	Status_ConnectingDestination Status = 2
35	// Status_ForwardingConnections indicates that the session is connected and
36	// currently forwarding connections.
37	Status_ForwardingConnections Status = 3
38)
39
40var Status_name = map[int32]string{
41	0: "Disconnected",
42	1: "ConnectingSource",
43	2: "ConnectingDestination",
44	3: "ForwardingConnections",
45}
46
47var Status_value = map[string]int32{
48	"Disconnected":          0,
49	"ConnectingSource":      1,
50	"ConnectingDestination": 2,
51	"ForwardingConnections": 3,
52}
53
54func (x Status) String() string {
55	return proto.EnumName(Status_name, int32(x))
56}
57
58func (Status) EnumDescriptor() ([]byte, []int) {
59	return fileDescriptor_074de8db3d66f399, []int{0}
60}
61
62// State encodes the state of a forwarding session.
63type State struct {
64	// Session is the session specification.
65	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
66	// Status is the status of the session.
67	Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=forwarding.Status" json:"status,omitempty"`
68	// SourceConnected indicates whether or not the source endpoint is
69	// connected.
70	SourceConnected bool `protobuf:"varint,3,opt,name=sourceConnected,proto3" json:"sourceConnected,omitempty"`
71	// DestinationConnected indicates whether or not the destination endpoint is
72	// connected.
73	DestinationConnected bool `protobuf:"varint,4,opt,name=destinationConnected,proto3" json:"destinationConnected,omitempty"`
74	// LastError indicates the last error that occurred during forwarding.
75	LastError string `protobuf:"bytes,5,opt,name=lastError,proto3" json:"lastError,omitempty"`
76	// OpenConnections is the number of connections currently open and being
77	// forwarded.
78	OpenConnections uint64 `protobuf:"varint,6,opt,name=openConnections,proto3" json:"openConnections,omitempty"`
79	// TotalConnections is the number of total connections that have been opened
80	// and forwarded (including those that are currently open).
81	TotalConnections     uint64   `protobuf:"varint,7,opt,name=totalConnections,proto3" json:"totalConnections,omitempty"`
82	XXX_NoUnkeyedLiteral struct{} `json:"-"`
83	XXX_unrecognized     []byte   `json:"-"`
84	XXX_sizecache        int32    `json:"-"`
85}
86
87func (m *State) Reset()         { *m = State{} }
88func (m *State) String() string { return proto.CompactTextString(m) }
89func (*State) ProtoMessage()    {}
90func (*State) Descriptor() ([]byte, []int) {
91	return fileDescriptor_074de8db3d66f399, []int{0}
92}
93
94func (m *State) XXX_Unmarshal(b []byte) error {
95	return xxx_messageInfo_State.Unmarshal(m, b)
96}
97func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
98	return xxx_messageInfo_State.Marshal(b, m, deterministic)
99}
100func (m *State) XXX_Merge(src proto.Message) {
101	xxx_messageInfo_State.Merge(m, src)
102}
103func (m *State) XXX_Size() int {
104	return xxx_messageInfo_State.Size(m)
105}
106func (m *State) XXX_DiscardUnknown() {
107	xxx_messageInfo_State.DiscardUnknown(m)
108}
109
110var xxx_messageInfo_State proto.InternalMessageInfo
111
112func (m *State) GetSession() *Session {
113	if m != nil {
114		return m.Session
115	}
116	return nil
117}
118
119func (m *State) GetStatus() Status {
120	if m != nil {
121		return m.Status
122	}
123	return Status_Disconnected
124}
125
126func (m *State) GetSourceConnected() bool {
127	if m != nil {
128		return m.SourceConnected
129	}
130	return false
131}
132
133func (m *State) GetDestinationConnected() bool {
134	if m != nil {
135		return m.DestinationConnected
136	}
137	return false
138}
139
140func (m *State) GetLastError() string {
141	if m != nil {
142		return m.LastError
143	}
144	return ""
145}
146
147func (m *State) GetOpenConnections() uint64 {
148	if m != nil {
149		return m.OpenConnections
150	}
151	return 0
152}
153
154func (m *State) GetTotalConnections() uint64 {
155	if m != nil {
156		return m.TotalConnections
157	}
158	return 0
159}
160
161func init() {
162	proto.RegisterEnum("forwarding.Status", Status_name, Status_value)
163	proto.RegisterType((*State)(nil), "forwarding.State")
164}
165
166func init() { proto.RegisterFile("forwarding/state.proto", fileDescriptor_074de8db3d66f399) }
167
168var fileDescriptor_074de8db3d66f399 = []byte{
169	// 299 bytes of a gzipped FileDescriptorProto
170	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x4d, 0x4e, 0xf3, 0x30,
171	0x10, 0x86, 0x3f, 0xf7, 0x27, 0xfd, 0x3a, 0x20, 0xb0, 0x4c, 0x41, 0x06, 0xb1, 0x88, 0x58, 0x59,
172	0x15, 0x4d, 0xa4, 0x72, 0x03, 0x28, 0x1c, 0x20, 0xdd, 0xb1, 0x73, 0x53, 0x37, 0x58, 0xb4, 0x9e,
173	0xca, 0x76, 0xc4, 0xc5, 0x38, 0x20, 0x4a, 0xd2, 0xe0, 0x50, 0xd8, 0x45, 0xcf, 0xfb, 0x8c, 0x26,
174	0xef, 0x18, 0xae, 0x36, 0x68, 0x3f, 0xa4, 0x5d, 0x6b, 0x53, 0xa4, 0xce, 0x4b, 0xaf, 0x92, 0xbd,
175	0x45, 0x8f, 0x0c, 0x02, 0xbf, 0xe1, 0x5d, 0x47, 0x39, 0xa7, 0xd1, 0x34, 0xd6, 0xdd, 0x67, 0x0f,
176	0x86, 0xcb, 0x6a, 0x8a, 0xcd, 0x60, 0x74, 0x88, 0x38, 0x89, 0x89, 0x38, 0x99, 0x5f, 0x24, 0x61,
177	0x2a, 0x59, 0x36, 0x51, 0xd6, 0x3a, 0x6c, 0x0a, 0x51, 0xb5, 0xad, 0x74, 0xbc, 0x17, 0x13, 0x71,
178	0x36, 0x67, 0x3f, 0xec, 0x3a, 0xc9, 0x0e, 0x06, 0x13, 0x70, 0xee, 0xb0, 0xb4, 0xb9, 0x7a, 0x42,
179	0x63, 0x54, 0xee, 0xd5, 0x9a, 0xf7, 0x63, 0x22, 0xfe, 0x67, 0xc7, 0x98, 0xcd, 0x61, 0xb2, 0x56,
180	0xce, 0x6b, 0x23, 0xbd, 0x46, 0x13, 0xf4, 0x41, 0xad, 0xff, 0x99, 0xb1, 0x5b, 0x18, 0x6f, 0xa5,
181	0xf3, 0xcf, 0xd6, 0xa2, 0xe5, 0xc3, 0x98, 0x88, 0x71, 0x16, 0x40, 0xb5, 0x1b, 0xf7, 0xaa, 0xd5,
182	0x35, 0x1a, 0xc7, 0xa3, 0x98, 0x88, 0x41, 0x76, 0x8c, 0xd9, 0x14, 0xa8, 0x47, 0x2f, 0xb7, 0x5d,
183	0x75, 0x54, 0xab, 0xbf, 0xf8, 0x74, 0x03, 0x51, 0xd3, 0x91, 0x51, 0x38, 0x5d, 0x68, 0x97, 0xb7,
184	0x7f, 0x43, 0xff, 0xb1, 0x09, 0xd0, 0x56, 0x35, 0xc5, 0xb2, 0x2e, 0x48, 0x09, 0xbb, 0x86, 0xcb,
185	0x40, 0x17, 0xa1, 0x07, 0xed, 0x55, 0xd1, 0xcb, 0xf7, 0xed, 0x3a, 0x5b, 0x68, 0xff, 0x31, 0x79,
186	0xbd, 0x2f, 0xb4, 0x7f, 0x2b, 0x57, 0x49, 0x8e, 0xbb, 0x74, 0x57, 0x7a, 0x59, 0x28, 0x33, 0xd3,
187	0xd8, 0x7e, 0xa6, 0xfb, 0xf7, 0x22, 0x0d, 0x87, 0x5f, 0x45, 0xf5, 0xab, 0x3e, 0x7c, 0x05, 0x00,
188	0x00, 0xff, 0xff, 0x30, 0x88, 0x49, 0x7b, 0x15, 0x02, 0x00, 0x00,
189}
190