github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/url/url.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: url/url.proto 6 7 package url 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // Kind indicates the kind of a URL. 24 type Kind int32 25 26 const ( 27 // Synchronization indicates a synchronization URL. 28 Kind_Synchronization Kind = 0 29 // Forwarding indicates a forwarding URL. 30 Kind_Forwarding Kind = 1 31 ) 32 33 // Enum value maps for Kind. 34 var ( 35 Kind_name = map[int32]string{ 36 0: "Synchronization", 37 1: "Forwarding", 38 } 39 Kind_value = map[string]int32{ 40 "Synchronization": 0, 41 "Forwarding": 1, 42 } 43 ) 44 45 func (x Kind) Enum() *Kind { 46 p := new(Kind) 47 *p = x 48 return p 49 } 50 51 func (x Kind) String() string { 52 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 53 } 54 55 func (Kind) Descriptor() protoreflect.EnumDescriptor { 56 return file_url_url_proto_enumTypes[0].Descriptor() 57 } 58 59 func (Kind) Type() protoreflect.EnumType { 60 return &file_url_url_proto_enumTypes[0] 61 } 62 63 func (x Kind) Number() protoreflect.EnumNumber { 64 return protoreflect.EnumNumber(x) 65 } 66 67 // Deprecated: Use Kind.Descriptor instead. 68 func (Kind) EnumDescriptor() ([]byte, []int) { 69 return file_url_url_proto_rawDescGZIP(), []int{0} 70 } 71 72 // Protocol indicates a location type. 73 type Protocol int32 74 75 const ( 76 // Local indicates that the resource is on the local system. 77 Protocol_Local Protocol = 0 78 // SSH indicates that the resource is accessible via SSH. 79 Protocol_SSH Protocol = 1 80 // Docker indicates that the resource is inside a Docker container. 81 Protocol_Docker Protocol = 11 82 ) 83 84 // Enum value maps for Protocol. 85 var ( 86 Protocol_name = map[int32]string{ 87 0: "Local", 88 1: "SSH", 89 11: "Docker", 90 } 91 Protocol_value = map[string]int32{ 92 "Local": 0, 93 "SSH": 1, 94 "Docker": 11, 95 } 96 ) 97 98 func (x Protocol) Enum() *Protocol { 99 p := new(Protocol) 100 *p = x 101 return p 102 } 103 104 func (x Protocol) String() string { 105 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 106 } 107 108 func (Protocol) Descriptor() protoreflect.EnumDescriptor { 109 return file_url_url_proto_enumTypes[1].Descriptor() 110 } 111 112 func (Protocol) Type() protoreflect.EnumType { 113 return &file_url_url_proto_enumTypes[1] 114 } 115 116 func (x Protocol) Number() protoreflect.EnumNumber { 117 return protoreflect.EnumNumber(x) 118 } 119 120 // Deprecated: Use Protocol.Descriptor instead. 121 func (Protocol) EnumDescriptor() ([]byte, []int) { 122 return file_url_url_proto_rawDescGZIP(), []int{1} 123 } 124 125 // URL represents a pointer to a resource. It should be considered immutable. 126 type URL struct { 127 state protoimpl.MessageState 128 sizeCache protoimpl.SizeCache 129 unknownFields protoimpl.UnknownFields 130 131 // Kind indicates the URL kind. 132 // NOTE: This field number is out of order for historical reasons. 133 Kind Kind `protobuf:"varint,7,opt,name=kind,proto3,enum=url.Kind" json:"kind,omitempty"` 134 // Protocol indicates a location type. 135 Protocol Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=url.Protocol" json:"protocol,omitempty"` 136 // User is the user under which a resource should be accessed. 137 User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` 138 // Host is protocol-specific, but generally indicates the location of the 139 // remote. 140 Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` 141 // Port indicates a TCP port via which to access the remote location, if 142 // applicable. 143 Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` 144 // Path indicates the path of a resource. 145 Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` 146 // Environment contains captured environment variable information. It is not 147 // a required component and its contents and their behavior depend on the 148 // transport implementation. 149 Environment map[string]string `protobuf:"bytes,6,rep,name=environment,proto3" json:"environment,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 150 // Parameters are internal transport parameters. These are set for URLs 151 // generated internally that require additional metadata. Parameters are not 152 // required and their behavior is dependent on the transport implementation. 153 Parameters map[string]string `protobuf:"bytes,8,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 154 } 155 156 func (x *URL) Reset() { 157 *x = URL{} 158 if protoimpl.UnsafeEnabled { 159 mi := &file_url_url_proto_msgTypes[0] 160 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 161 ms.StoreMessageInfo(mi) 162 } 163 } 164 165 func (x *URL) String() string { 166 return protoimpl.X.MessageStringOf(x) 167 } 168 169 func (*URL) ProtoMessage() {} 170 171 func (x *URL) ProtoReflect() protoreflect.Message { 172 mi := &file_url_url_proto_msgTypes[0] 173 if protoimpl.UnsafeEnabled && x != nil { 174 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 175 if ms.LoadMessageInfo() == nil { 176 ms.StoreMessageInfo(mi) 177 } 178 return ms 179 } 180 return mi.MessageOf(x) 181 } 182 183 // Deprecated: Use URL.ProtoReflect.Descriptor instead. 184 func (*URL) Descriptor() ([]byte, []int) { 185 return file_url_url_proto_rawDescGZIP(), []int{0} 186 } 187 188 func (x *URL) GetKind() Kind { 189 if x != nil { 190 return x.Kind 191 } 192 return Kind_Synchronization 193 } 194 195 func (x *URL) GetProtocol() Protocol { 196 if x != nil { 197 return x.Protocol 198 } 199 return Protocol_Local 200 } 201 202 func (x *URL) GetUser() string { 203 if x != nil { 204 return x.User 205 } 206 return "" 207 } 208 209 func (x *URL) GetHost() string { 210 if x != nil { 211 return x.Host 212 } 213 return "" 214 } 215 216 func (x *URL) GetPort() uint32 { 217 if x != nil { 218 return x.Port 219 } 220 return 0 221 } 222 223 func (x *URL) GetPath() string { 224 if x != nil { 225 return x.Path 226 } 227 return "" 228 } 229 230 func (x *URL) GetEnvironment() map[string]string { 231 if x != nil { 232 return x.Environment 233 } 234 return nil 235 } 236 237 func (x *URL) GetParameters() map[string]string { 238 if x != nil { 239 return x.Parameters 240 } 241 return nil 242 } 243 244 var File_url_url_proto protoreflect.FileDescriptor 245 246 var file_url_url_proto_rawDesc = []byte{ 247 0x0a, 0x0d, 0x75, 0x72, 0x6c, 0x2f, 0x75, 0x72, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 248 0x03, 0x75, 0x72, 0x6c, 0x22, 0x95, 0x03, 0x0a, 0x03, 0x55, 0x52, 0x4c, 0x12, 0x1d, 0x0a, 0x04, 249 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x75, 0x72, 0x6c, 250 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x29, 0x0a, 0x08, 0x70, 251 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 252 0x75, 0x72, 0x6c, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 253 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 254 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 255 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 256 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 257 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 258 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 259 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x75, 0x72, 260 0x6c, 0x2e, 0x55, 0x52, 0x4c, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 261 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 262 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 263 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x75, 0x72, 0x6c, 0x2e, 0x55, 0x52, 264 0x4c, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 265 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x3e, 0x0a, 266 0x10, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 267 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 268 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 269 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 270 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 271 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 272 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 273 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x2b, 0x0a, 0x04, 274 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 275 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x6f, 0x72, 276 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x2a, 0x2a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 277 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x10, 0x00, 278 0x12, 0x07, 0x0a, 0x03, 0x53, 0x53, 0x48, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x6f, 0x63, 279 0x6b, 0x65, 0x72, 0x10, 0x0b, 0x42, 0x27, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 280 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 281 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x75, 0x72, 0x6c, 0x62, 0x06, 282 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 283 } 284 285 var ( 286 file_url_url_proto_rawDescOnce sync.Once 287 file_url_url_proto_rawDescData = file_url_url_proto_rawDesc 288 ) 289 290 func file_url_url_proto_rawDescGZIP() []byte { 291 file_url_url_proto_rawDescOnce.Do(func() { 292 file_url_url_proto_rawDescData = protoimpl.X.CompressGZIP(file_url_url_proto_rawDescData) 293 }) 294 return file_url_url_proto_rawDescData 295 } 296 297 var file_url_url_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 298 var file_url_url_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 299 var file_url_url_proto_goTypes = []interface{}{ 300 (Kind)(0), // 0: url.Kind 301 (Protocol)(0), // 1: url.Protocol 302 (*URL)(nil), // 2: url.URL 303 nil, // 3: url.URL.EnvironmentEntry 304 nil, // 4: url.URL.ParametersEntry 305 } 306 var file_url_url_proto_depIdxs = []int32{ 307 0, // 0: url.URL.kind:type_name -> url.Kind 308 1, // 1: url.URL.protocol:type_name -> url.Protocol 309 3, // 2: url.URL.environment:type_name -> url.URL.EnvironmentEntry 310 4, // 3: url.URL.parameters:type_name -> url.URL.ParametersEntry 311 4, // [4:4] is the sub-list for method output_type 312 4, // [4:4] is the sub-list for method input_type 313 4, // [4:4] is the sub-list for extension type_name 314 4, // [4:4] is the sub-list for extension extendee 315 0, // [0:4] is the sub-list for field type_name 316 } 317 318 func init() { file_url_url_proto_init() } 319 func file_url_url_proto_init() { 320 if File_url_url_proto != nil { 321 return 322 } 323 if !protoimpl.UnsafeEnabled { 324 file_url_url_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 325 switch v := v.(*URL); i { 326 case 0: 327 return &v.state 328 case 1: 329 return &v.sizeCache 330 case 2: 331 return &v.unknownFields 332 default: 333 return nil 334 } 335 } 336 } 337 type x struct{} 338 out := protoimpl.TypeBuilder{ 339 File: protoimpl.DescBuilder{ 340 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 341 RawDescriptor: file_url_url_proto_rawDesc, 342 NumEnums: 2, 343 NumMessages: 3, 344 NumExtensions: 0, 345 NumServices: 0, 346 }, 347 GoTypes: file_url_url_proto_goTypes, 348 DependencyIndexes: file_url_url_proto_depIdxs, 349 EnumInfos: file_url_url_proto_enumTypes, 350 MessageInfos: file_url_url_proto_msgTypes, 351 }.Build() 352 File_url_url_proto = out.File 353 file_url_url_proto_rawDesc = nil 354 file_url_url_proto_goTypes = nil 355 file_url_url_proto_depIdxs = nil 356 }