github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/synchronization/hashing/algorithm.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/hashing/algorithm.proto 6 7 package hashing 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 // Algorithm specifies a hashing algorithm. 24 type Algorithm int32 25 26 const ( 27 // Algorithm_AlgorithmDefault represents an unspecified hashing algorithm. 28 // It should be converted to one of the following values based on the 29 // desired default behavior. 30 Algorithm_AlgorithmDefault Algorithm = 0 31 // Algorithm_AlgorithmSHA1 specifies that SHA-1 hashing should be used. 32 Algorithm_AlgorithmSHA1 Algorithm = 1 33 // Algorithm_AlgorithmSHA256 specifies that SHA-256 hashing should be used. 34 Algorithm_AlgorithmSHA256 Algorithm = 2 35 // Algorithm_AlgorithmXXH128 specifies that XXH128 hashing should be used. 36 Algorithm_AlgorithmXXH128 Algorithm = 3 37 ) 38 39 // Enum value maps for Algorithm. 40 var ( 41 Algorithm_name = map[int32]string{ 42 0: "AlgorithmDefault", 43 1: "AlgorithmSHA1", 44 2: "AlgorithmSHA256", 45 3: "AlgorithmXXH128", 46 } 47 Algorithm_value = map[string]int32{ 48 "AlgorithmDefault": 0, 49 "AlgorithmSHA1": 1, 50 "AlgorithmSHA256": 2, 51 "AlgorithmXXH128": 3, 52 } 53 ) 54 55 func (x Algorithm) Enum() *Algorithm { 56 p := new(Algorithm) 57 *p = x 58 return p 59 } 60 61 func (x Algorithm) String() string { 62 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 63 } 64 65 func (Algorithm) Descriptor() protoreflect.EnumDescriptor { 66 return file_synchronization_hashing_algorithm_proto_enumTypes[0].Descriptor() 67 } 68 69 func (Algorithm) Type() protoreflect.EnumType { 70 return &file_synchronization_hashing_algorithm_proto_enumTypes[0] 71 } 72 73 func (x Algorithm) Number() protoreflect.EnumNumber { 74 return protoreflect.EnumNumber(x) 75 } 76 77 // Deprecated: Use Algorithm.Descriptor instead. 78 func (Algorithm) EnumDescriptor() ([]byte, []int) { 79 return file_synchronization_hashing_algorithm_proto_rawDescGZIP(), []int{0} 80 } 81 82 var File_synchronization_hashing_algorithm_proto protoreflect.FileDescriptor 83 84 var file_synchronization_hashing_algorithm_proto_rawDesc = []byte{ 85 0x0a, 0x27, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 86 0x6e, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 87 0x74, 0x68, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x68, 0x61, 0x73, 0x68, 0x69, 88 0x6e, 0x67, 0x2a, 0x5e, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 89 0x14, 0x0a, 0x10, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x44, 0x65, 0x66, 0x61, 90 0x75, 0x6c, 0x74, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 91 0x68, 0x6d, 0x53, 0x48, 0x41, 0x31, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x6c, 0x67, 0x6f, 92 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36, 0x10, 0x02, 0x12, 0x13, 0x0a, 93 0x0f, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x58, 0x58, 0x48, 0x31, 0x32, 0x38, 94 0x10, 0x03, 0x42, 0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 95 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 0x75, 0x74, 0x61, 96 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x6e, 97 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x69, 0x6e, 0x67, 0x62, 98 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 99 } 100 101 var ( 102 file_synchronization_hashing_algorithm_proto_rawDescOnce sync.Once 103 file_synchronization_hashing_algorithm_proto_rawDescData = file_synchronization_hashing_algorithm_proto_rawDesc 104 ) 105 106 func file_synchronization_hashing_algorithm_proto_rawDescGZIP() []byte { 107 file_synchronization_hashing_algorithm_proto_rawDescOnce.Do(func() { 108 file_synchronization_hashing_algorithm_proto_rawDescData = protoimpl.X.CompressGZIP(file_synchronization_hashing_algorithm_proto_rawDescData) 109 }) 110 return file_synchronization_hashing_algorithm_proto_rawDescData 111 } 112 113 var file_synchronization_hashing_algorithm_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 114 var file_synchronization_hashing_algorithm_proto_goTypes = []interface{}{ 115 (Algorithm)(0), // 0: hashing.Algorithm 116 } 117 var file_synchronization_hashing_algorithm_proto_depIdxs = []int32{ 118 0, // [0:0] is the sub-list for method output_type 119 0, // [0:0] is the sub-list for method input_type 120 0, // [0:0] is the sub-list for extension type_name 121 0, // [0:0] is the sub-list for extension extendee 122 0, // [0:0] is the sub-list for field type_name 123 } 124 125 func init() { file_synchronization_hashing_algorithm_proto_init() } 126 func file_synchronization_hashing_algorithm_proto_init() { 127 if File_synchronization_hashing_algorithm_proto != nil { 128 return 129 } 130 type x struct{} 131 out := protoimpl.TypeBuilder{ 132 File: protoimpl.DescBuilder{ 133 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 134 RawDescriptor: file_synchronization_hashing_algorithm_proto_rawDesc, 135 NumEnums: 1, 136 NumMessages: 0, 137 NumExtensions: 0, 138 NumServices: 0, 139 }, 140 GoTypes: file_synchronization_hashing_algorithm_proto_goTypes, 141 DependencyIndexes: file_synchronization_hashing_algorithm_proto_depIdxs, 142 EnumInfos: file_synchronization_hashing_algorithm_proto_enumTypes, 143 }.Build() 144 File_synchronization_hashing_algorithm_proto = out.File 145 file_synchronization_hashing_algorithm_proto_rawDesc = nil 146 file_synchronization_hashing_algorithm_proto_goTypes = nil 147 file_synchronization_hashing_algorithm_proto_depIdxs = nil 148 }