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