github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/forwarding/session.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc v5.26.1 5 // source: forwarding/session.proto 6 7 package forwarding 8 9 import ( 10 url "github.com/mutagen-io/mutagen/pkg/url" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // Session represents a forwarding session configuration and persistent state. 26 // It is mutable within the context of the daemon, so it should be accessed and 27 // modified in a synchronized fashion. Outside of the daemon (e.g. when returned 28 // via the API), it should be considered immutable. 29 type Session struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // Identifier is the (unique) session identifier. It is static. It cannot be 35 // empty. 36 Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` 37 // Version is the session version. It is static. 38 Version Version `protobuf:"varint,2,opt,name=version,proto3,enum=forwarding.Version" json:"version,omitempty"` 39 // CreationTime is the creation time of the session. It is static. It cannot 40 // be nil. 41 CreationTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=creationTime,proto3" json:"creationTime,omitempty"` 42 // CreatingVersionMajor is the major version component of the version of 43 // Mutagen which created the session. It is static. 44 CreatingVersionMajor uint32 `protobuf:"varint,4,opt,name=creatingVersionMajor,proto3" json:"creatingVersionMajor,omitempty"` 45 // CreatingVersionMinor is the minor version component of the version of 46 // Mutagen which created the session. It is static. 47 CreatingVersionMinor uint32 `protobuf:"varint,5,opt,name=creatingVersionMinor,proto3" json:"creatingVersionMinor,omitempty"` 48 // CreatingVersionPatch is the patch version component of the version of 49 // Mutagen which created the session. It is static. 50 CreatingVersionPatch uint32 `protobuf:"varint,6,opt,name=creatingVersionPatch,proto3" json:"creatingVersionPatch,omitempty"` 51 // Source is the source endpoint URL. It is static. It cannot be nil. 52 Source *url.URL `protobuf:"bytes,7,opt,name=source,proto3" json:"source,omitempty"` 53 // Destination is the destination endpoint URL. It is static. It cannot be 54 // nil. 55 Destination *url.URL `protobuf:"bytes,8,opt,name=destination,proto3" json:"destination,omitempty"` 56 // Configuration is the flattened session configuration. It is static. It 57 // cannot be nil. 58 Configuration *Configuration `protobuf:"bytes,9,opt,name=configuration,proto3" json:"configuration,omitempty"` 59 // ConfigurationSource are the source-specific session configuration 60 // overrides. It is static. 61 ConfigurationSource *Configuration `protobuf:"bytes,10,opt,name=configurationSource,proto3" json:"configurationSource,omitempty"` 62 // ConfigurationDestination are the destination-specific session 63 // configuration overrides. It is static. 64 ConfigurationDestination *Configuration `protobuf:"bytes,11,opt,name=configurationDestination,proto3" json:"configurationDestination,omitempty"` 65 // Name is a user-friendly name for the session. It may be empty and is not 66 // guaranteed to be unique across all sessions. It is only used as a simpler 67 // handle for specifying sessions. It is static. 68 Name string `protobuf:"bytes,12,opt,name=name,proto3" json:"name,omitempty"` 69 // Labels are the session labels. They are static. 70 Labels map[string]string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 71 // Paused indicates whether or not the session is marked as paused. 72 Paused bool `protobuf:"varint,14,opt,name=paused,proto3" json:"paused,omitempty"` 73 } 74 75 func (x *Session) Reset() { 76 *x = Session{} 77 if protoimpl.UnsafeEnabled { 78 mi := &file_forwarding_session_proto_msgTypes[0] 79 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 80 ms.StoreMessageInfo(mi) 81 } 82 } 83 84 func (x *Session) String() string { 85 return protoimpl.X.MessageStringOf(x) 86 } 87 88 func (*Session) ProtoMessage() {} 89 90 func (x *Session) ProtoReflect() protoreflect.Message { 91 mi := &file_forwarding_session_proto_msgTypes[0] 92 if protoimpl.UnsafeEnabled && x != nil { 93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 94 if ms.LoadMessageInfo() == nil { 95 ms.StoreMessageInfo(mi) 96 } 97 return ms 98 } 99 return mi.MessageOf(x) 100 } 101 102 // Deprecated: Use Session.ProtoReflect.Descriptor instead. 103 func (*Session) Descriptor() ([]byte, []int) { 104 return file_forwarding_session_proto_rawDescGZIP(), []int{0} 105 } 106 107 func (x *Session) GetIdentifier() string { 108 if x != nil { 109 return x.Identifier 110 } 111 return "" 112 } 113 114 func (x *Session) GetVersion() Version { 115 if x != nil { 116 return x.Version 117 } 118 return Version_Invalid 119 } 120 121 func (x *Session) GetCreationTime() *timestamppb.Timestamp { 122 if x != nil { 123 return x.CreationTime 124 } 125 return nil 126 } 127 128 func (x *Session) GetCreatingVersionMajor() uint32 { 129 if x != nil { 130 return x.CreatingVersionMajor 131 } 132 return 0 133 } 134 135 func (x *Session) GetCreatingVersionMinor() uint32 { 136 if x != nil { 137 return x.CreatingVersionMinor 138 } 139 return 0 140 } 141 142 func (x *Session) GetCreatingVersionPatch() uint32 { 143 if x != nil { 144 return x.CreatingVersionPatch 145 } 146 return 0 147 } 148 149 func (x *Session) GetSource() *url.URL { 150 if x != nil { 151 return x.Source 152 } 153 return nil 154 } 155 156 func (x *Session) GetDestination() *url.URL { 157 if x != nil { 158 return x.Destination 159 } 160 return nil 161 } 162 163 func (x *Session) GetConfiguration() *Configuration { 164 if x != nil { 165 return x.Configuration 166 } 167 return nil 168 } 169 170 func (x *Session) GetConfigurationSource() *Configuration { 171 if x != nil { 172 return x.ConfigurationSource 173 } 174 return nil 175 } 176 177 func (x *Session) GetConfigurationDestination() *Configuration { 178 if x != nil { 179 return x.ConfigurationDestination 180 } 181 return nil 182 } 183 184 func (x *Session) GetName() string { 185 if x != nil { 186 return x.Name 187 } 188 return "" 189 } 190 191 func (x *Session) GetLabels() map[string]string { 192 if x != nil { 193 return x.Labels 194 } 195 return nil 196 } 197 198 func (x *Session) GetPaused() bool { 199 if x != nil { 200 return x.Paused 201 } 202 return false 203 } 204 205 var File_forwarding_session_proto protoreflect.FileDescriptor 206 207 var file_forwarding_session_proto_rawDesc = []byte{ 208 0x0a, 0x18, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x73, 0x65, 0x73, 209 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x66, 0x6f, 0x72, 0x77, 210 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 211 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 212 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 213 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 214 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 215 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 216 0x6f, 0x1a, 0x0d, 0x75, 0x72, 0x6c, 0x2f, 0x75, 0x72, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 217 0x22, 0x87, 0x06, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 218 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 219 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x2d, 0x0a, 0x07, 220 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 221 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 222 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x0c, 0x63, 223 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 224 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 225 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 226 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x14, 0x63, 227 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 228 0x6a, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 229 0x69, 0x6e, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x6a, 0x6f, 0x72, 0x12, 230 0x32, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 231 0x6f, 0x6e, 0x4d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x14, 0x63, 232 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 233 0x6e, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 234 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 235 0x0d, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 236 0x6f, 0x6e, 0x50, 0x61, 0x74, 0x63, 0x68, 0x12, 0x20, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 237 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x75, 0x72, 0x6c, 0x2e, 0x55, 0x52, 238 0x4c, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 239 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 240 0x2e, 0x75, 0x72, 0x6c, 0x2e, 0x55, 0x52, 0x4c, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 241 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 242 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 243 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 244 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 245 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 246 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0a, 0x20, 247 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 248 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x13, 249 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 250 0x72, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 251 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 252 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 253 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 254 0x52, 0x18, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 255 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 256 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 257 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 258 0x2e, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x73, 0x73, 259 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 260 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 261 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x1a, 262 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 263 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 264 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 265 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 266 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 267 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 268 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 269 0x6f, 0x33, 270 } 271 272 var ( 273 file_forwarding_session_proto_rawDescOnce sync.Once 274 file_forwarding_session_proto_rawDescData = file_forwarding_session_proto_rawDesc 275 ) 276 277 func file_forwarding_session_proto_rawDescGZIP() []byte { 278 file_forwarding_session_proto_rawDescOnce.Do(func() { 279 file_forwarding_session_proto_rawDescData = protoimpl.X.CompressGZIP(file_forwarding_session_proto_rawDescData) 280 }) 281 return file_forwarding_session_proto_rawDescData 282 } 283 284 var file_forwarding_session_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 285 var file_forwarding_session_proto_goTypes = []interface{}{ 286 (*Session)(nil), // 0: forwarding.Session 287 nil, // 1: forwarding.Session.LabelsEntry 288 (Version)(0), // 2: forwarding.Version 289 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp 290 (*url.URL)(nil), // 4: url.URL 291 (*Configuration)(nil), // 5: forwarding.Configuration 292 } 293 var file_forwarding_session_proto_depIdxs = []int32{ 294 2, // 0: forwarding.Session.version:type_name -> forwarding.Version 295 3, // 1: forwarding.Session.creationTime:type_name -> google.protobuf.Timestamp 296 4, // 2: forwarding.Session.source:type_name -> url.URL 297 4, // 3: forwarding.Session.destination:type_name -> url.URL 298 5, // 4: forwarding.Session.configuration:type_name -> forwarding.Configuration 299 5, // 5: forwarding.Session.configurationSource:type_name -> forwarding.Configuration 300 5, // 6: forwarding.Session.configurationDestination:type_name -> forwarding.Configuration 301 1, // 7: forwarding.Session.labels:type_name -> forwarding.Session.LabelsEntry 302 8, // [8:8] is the sub-list for method output_type 303 8, // [8:8] is the sub-list for method input_type 304 8, // [8:8] is the sub-list for extension type_name 305 8, // [8:8] is the sub-list for extension extendee 306 0, // [0:8] is the sub-list for field type_name 307 } 308 309 func init() { file_forwarding_session_proto_init() } 310 func file_forwarding_session_proto_init() { 311 if File_forwarding_session_proto != nil { 312 return 313 } 314 file_forwarding_configuration_proto_init() 315 file_forwarding_version_proto_init() 316 if !protoimpl.UnsafeEnabled { 317 file_forwarding_session_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 318 switch v := v.(*Session); i { 319 case 0: 320 return &v.state 321 case 1: 322 return &v.sizeCache 323 case 2: 324 return &v.unknownFields 325 default: 326 return nil 327 } 328 } 329 } 330 type x struct{} 331 out := protoimpl.TypeBuilder{ 332 File: protoimpl.DescBuilder{ 333 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 334 RawDescriptor: file_forwarding_session_proto_rawDesc, 335 NumEnums: 0, 336 NumMessages: 2, 337 NumExtensions: 0, 338 NumServices: 0, 339 }, 340 GoTypes: file_forwarding_session_proto_goTypes, 341 DependencyIndexes: file_forwarding_session_proto_depIdxs, 342 MessageInfos: file_forwarding_session_proto_msgTypes, 343 }.Build() 344 File_forwarding_session_proto = out.File 345 file_forwarding_session_proto_rawDesc = nil 346 file_forwarding_session_proto_goTypes = nil 347 file_forwarding_session_proto_depIdxs = nil 348 }