github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/synchronization/scan_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/scan_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  // ScanMode specifies the mode for synchronization root scanning.
    24  type ScanMode int32
    25  
    26  const (
    27  	// ScanMode_ScanModeDefault represents an unspecified scan mode. It should
    28  	// be converted to one of the following values based on the desired default
    29  	// behavior.
    30  	ScanMode_ScanModeDefault ScanMode = 0
    31  	// ScanMode_ScanModeFull specifies that full scans should be performed on
    32  	// each synchronization cycle.
    33  	ScanMode_ScanModeFull ScanMode = 1
    34  	// ScanMode_ScanModeAccelerated specifies that scans should attempt to use
    35  	// watch-based acceleration.
    36  	ScanMode_ScanModeAccelerated ScanMode = 2
    37  )
    38  
    39  // Enum value maps for ScanMode.
    40  var (
    41  	ScanMode_name = map[int32]string{
    42  		0: "ScanModeDefault",
    43  		1: "ScanModeFull",
    44  		2: "ScanModeAccelerated",
    45  	}
    46  	ScanMode_value = map[string]int32{
    47  		"ScanModeDefault":     0,
    48  		"ScanModeFull":        1,
    49  		"ScanModeAccelerated": 2,
    50  	}
    51  )
    52  
    53  func (x ScanMode) Enum() *ScanMode {
    54  	p := new(ScanMode)
    55  	*p = x
    56  	return p
    57  }
    58  
    59  func (x ScanMode) String() string {
    60  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    61  }
    62  
    63  func (ScanMode) Descriptor() protoreflect.EnumDescriptor {
    64  	return file_synchronization_scan_mode_proto_enumTypes[0].Descriptor()
    65  }
    66  
    67  func (ScanMode) Type() protoreflect.EnumType {
    68  	return &file_synchronization_scan_mode_proto_enumTypes[0]
    69  }
    70  
    71  func (x ScanMode) Number() protoreflect.EnumNumber {
    72  	return protoreflect.EnumNumber(x)
    73  }
    74  
    75  // Deprecated: Use ScanMode.Descriptor instead.
    76  func (ScanMode) EnumDescriptor() ([]byte, []int) {
    77  	return file_synchronization_scan_mode_proto_rawDescGZIP(), []int{0}
    78  }
    79  
    80  var File_synchronization_scan_mode_proto protoreflect.FileDescriptor
    81  
    82  var file_synchronization_scan_mode_proto_rawDesc = []byte{
    83  	0x0a, 0x1f, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
    84  	0x6e, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
    85  	0x6f, 0x12, 0x0f, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69,
    86  	0x6f, 0x6e, 0x2a, 0x4a, 0x0a, 0x08, 0x53, 0x63, 0x61, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13,
    87  	0x0a, 0x0f, 0x53, 0x63, 0x61, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c,
    88  	0x74, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x63, 0x61, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x46,
    89  	0x75, 0x6c, 0x6c, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x63, 0x61, 0x6e, 0x4d, 0x6f, 0x64,
    90  	0x65, 0x41, 0x63, 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x10, 0x02, 0x42, 0x33,
    91  	0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x75, 0x74,
    92  	0x61, 0x67, 0x65, 0x6e, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2f,
    93  	0x70, 0x6b, 0x67, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74,
    94  	0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
    95  }
    96  
    97  var (
    98  	file_synchronization_scan_mode_proto_rawDescOnce sync.Once
    99  	file_synchronization_scan_mode_proto_rawDescData = file_synchronization_scan_mode_proto_rawDesc
   100  )
   101  
   102  func file_synchronization_scan_mode_proto_rawDescGZIP() []byte {
   103  	file_synchronization_scan_mode_proto_rawDescOnce.Do(func() {
   104  		file_synchronization_scan_mode_proto_rawDescData = protoimpl.X.CompressGZIP(file_synchronization_scan_mode_proto_rawDescData)
   105  	})
   106  	return file_synchronization_scan_mode_proto_rawDescData
   107  }
   108  
   109  var file_synchronization_scan_mode_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   110  var file_synchronization_scan_mode_proto_goTypes = []interface{}{
   111  	(ScanMode)(0), // 0: synchronization.ScanMode
   112  }
   113  var file_synchronization_scan_mode_proto_depIdxs = []int32{
   114  	0, // [0:0] is the sub-list for method output_type
   115  	0, // [0:0] is the sub-list for method input_type
   116  	0, // [0:0] is the sub-list for extension type_name
   117  	0, // [0:0] is the sub-list for extension extendee
   118  	0, // [0:0] is the sub-list for field type_name
   119  }
   120  
   121  func init() { file_synchronization_scan_mode_proto_init() }
   122  func file_synchronization_scan_mode_proto_init() {
   123  	if File_synchronization_scan_mode_proto != nil {
   124  		return
   125  	}
   126  	type x struct{}
   127  	out := protoimpl.TypeBuilder{
   128  		File: protoimpl.DescBuilder{
   129  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   130  			RawDescriptor: file_synchronization_scan_mode_proto_rawDesc,
   131  			NumEnums:      1,
   132  			NumMessages:   0,
   133  			NumExtensions: 0,
   134  			NumServices:   0,
   135  		},
   136  		GoTypes:           file_synchronization_scan_mode_proto_goTypes,
   137  		DependencyIndexes: file_synchronization_scan_mode_proto_depIdxs,
   138  		EnumInfos:         file_synchronization_scan_mode_proto_enumTypes,
   139  	}.Build()
   140  	File_synchronization_scan_mode_proto = out.File
   141  	file_synchronization_scan_mode_proto_rawDesc = nil
   142  	file_synchronization_scan_mode_proto_goTypes = nil
   143  	file_synchronization_scan_mode_proto_depIdxs = nil
   144  }