github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/synchronization/watch_mode.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: synchronization/watch_mode.proto 6 7 package synchronization 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 // WatchMode specifies the mode for filesystem watching. 24 type WatchMode int32 25 26 const ( 27 // WatchMode_WatchModeDefault represents an unspecified watch mode. It 28 // should be converted to one of the following values based on the desired 29 // default behavior. 30 WatchMode_WatchModeDefault WatchMode = 0 31 // WatchMode_WatchModePortable specifies that native recursive watching 32 // should be used to monitor paths on systems that support it if those paths 33 // fall under the home directory. In these cases, a watch on the entire home 34 // directory is established and filtered for events pertaining to the 35 // specified path. On all other systems and for all other paths, poll-based 36 // watching is used. 37 WatchMode_WatchModePortable WatchMode = 1 38 // WatchMode_WatchModeForcePoll specifies that only poll-based watching 39 // should be used. 40 WatchMode_WatchModeForcePoll WatchMode = 2 41 // WatchMode_WatchModeNoWatch specifies that no watching should be used 42 // (i.e. no events should be generated). 43 WatchMode_WatchModeNoWatch WatchMode = 3 44 ) 45 46 // Enum value maps for WatchMode. 47 var ( 48 WatchMode_name = map[int32]string{ 49 0: "WatchModeDefault", 50 1: "WatchModePortable", 51 2: "WatchModeForcePoll", 52 3: "WatchModeNoWatch", 53 } 54 WatchMode_value = map[string]int32{ 55 "WatchModeDefault": 0, 56 "WatchModePortable": 1, 57 "WatchModeForcePoll": 2, 58 "WatchModeNoWatch": 3, 59 } 60 ) 61 62 func (x WatchMode) Enum() *WatchMode { 63 p := new(WatchMode) 64 *p = x 65 return p 66 } 67 68 func (x WatchMode) String() string { 69 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 70 } 71 72 func (WatchMode) Descriptor() protoreflect.EnumDescriptor { 73 return file_synchronization_watch_mode_proto_enumTypes[0].Descriptor() 74 } 75 76 func (WatchMode) Type() protoreflect.EnumType { 77 return &file_synchronization_watch_mode_proto_enumTypes[0] 78 } 79 80 func (x WatchMode) Number() protoreflect.EnumNumber { 81 return protoreflect.EnumNumber(x) 82 } 83 84 // Deprecated: Use WatchMode.Descriptor instead. 85 func (WatchMode) EnumDescriptor() ([]byte, []int) { 86 return file_synchronization_watch_mode_proto_rawDescGZIP(), []int{0} 87 } 88 89 var File_synchronization_watch_mode_proto protoreflect.FileDescriptor 90 91 var file_synchronization_watch_mode_proto_rawDesc = []byte{ 92 0x0a, 0x20, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 93 0x6e, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 94 0x74, 0x6f, 0x12, 0x0f, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 95 0x69, 0x6f, 0x6e, 0x2a, 0x66, 0x0a, 0x09, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 96 0x12, 0x14, 0x0a, 0x10, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x44, 0x65, 0x66, 97 0x61, 0x75, 0x6c, 0x74, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4d, 98 0x6f, 0x64, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x16, 0x0a, 99 0x12, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x65, 0x46, 0x6f, 0x72, 0x63, 0x65, 0x50, 100 0x6f, 0x6c, 0x6c, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x57, 0x61, 0x74, 0x63, 0x68, 0x4d, 0x6f, 101 0x64, 0x65, 0x4e, 0x6f, 0x57, 0x61, 0x74, 0x63, 0x68, 0x10, 0x03, 0x42, 0x33, 0x5a, 0x31, 0x67, 102 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 103 0x6e, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 104 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 105 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 106 } 107 108 var ( 109 file_synchronization_watch_mode_proto_rawDescOnce sync.Once 110 file_synchronization_watch_mode_proto_rawDescData = file_synchronization_watch_mode_proto_rawDesc 111 ) 112 113 func file_synchronization_watch_mode_proto_rawDescGZIP() []byte { 114 file_synchronization_watch_mode_proto_rawDescOnce.Do(func() { 115 file_synchronization_watch_mode_proto_rawDescData = protoimpl.X.CompressGZIP(file_synchronization_watch_mode_proto_rawDescData) 116 }) 117 return file_synchronization_watch_mode_proto_rawDescData 118 } 119 120 var file_synchronization_watch_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 121 var file_synchronization_watch_mode_proto_goTypes = []interface{}{ 122 (WatchMode)(0), // 0: synchronization.WatchMode 123 } 124 var file_synchronization_watch_mode_proto_depIdxs = []int32{ 125 0, // [0:0] is the sub-list for method output_type 126 0, // [0:0] is the sub-list for method input_type 127 0, // [0:0] is the sub-list for extension type_name 128 0, // [0:0] is the sub-list for extension extendee 129 0, // [0:0] is the sub-list for field type_name 130 } 131 132 func init() { file_synchronization_watch_mode_proto_init() } 133 func file_synchronization_watch_mode_proto_init() { 134 if File_synchronization_watch_mode_proto != nil { 135 return 136 } 137 type x struct{} 138 out := protoimpl.TypeBuilder{ 139 File: protoimpl.DescBuilder{ 140 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 141 RawDescriptor: file_synchronization_watch_mode_proto_rawDesc, 142 NumEnums: 1, 143 NumMessages: 0, 144 NumExtensions: 0, 145 NumServices: 0, 146 }, 147 GoTypes: file_synchronization_watch_mode_proto_goTypes, 148 DependencyIndexes: file_synchronization_watch_mode_proto_depIdxs, 149 EnumInfos: file_synchronization_watch_mode_proto_enumTypes, 150 }.Build() 151 File_synchronization_watch_mode_proto = out.File 152 file_synchronization_watch_mode_proto_rawDesc = nil 153 file_synchronization_watch_mode_proto_goTypes = nil 154 file_synchronization_watch_mode_proto_depIdxs = nil 155 }