github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/selection/selection.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: selection/selection.proto 6 7 package selection 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 // Selection encodes a selection mechanism that can be used to select a 24 // collection of sessions. It should have exactly one member set. 25 type Selection struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // All, if true, indicates that all sessions should be selected. 31 All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"` 32 // Specifications is a list of session specifications. Each element may be 33 // either a session identifier or name (or a prefix thereof). If non-empty, 34 // it indicates that these specifications should be used to select sessions. 35 Specifications []string `protobuf:"bytes,2,rep,name=specifications,proto3" json:"specifications,omitempty"` 36 // LabelSelector is a label selector specification. If present (non-empty), 37 // it indicates that this selector should be used to select sessions. 38 LabelSelector string `protobuf:"bytes,3,opt,name=labelSelector,proto3" json:"labelSelector,omitempty"` 39 } 40 41 func (x *Selection) Reset() { 42 *x = Selection{} 43 if protoimpl.UnsafeEnabled { 44 mi := &file_selection_selection_proto_msgTypes[0] 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 ms.StoreMessageInfo(mi) 47 } 48 } 49 50 func (x *Selection) String() string { 51 return protoimpl.X.MessageStringOf(x) 52 } 53 54 func (*Selection) ProtoMessage() {} 55 56 func (x *Selection) ProtoReflect() protoreflect.Message { 57 mi := &file_selection_selection_proto_msgTypes[0] 58 if protoimpl.UnsafeEnabled && x != nil { 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 if ms.LoadMessageInfo() == nil { 61 ms.StoreMessageInfo(mi) 62 } 63 return ms 64 } 65 return mi.MessageOf(x) 66 } 67 68 // Deprecated: Use Selection.ProtoReflect.Descriptor instead. 69 func (*Selection) Descriptor() ([]byte, []int) { 70 return file_selection_selection_proto_rawDescGZIP(), []int{0} 71 } 72 73 func (x *Selection) GetAll() bool { 74 if x != nil { 75 return x.All 76 } 77 return false 78 } 79 80 func (x *Selection) GetSpecifications() []string { 81 if x != nil { 82 return x.Specifications 83 } 84 return nil 85 } 86 87 func (x *Selection) GetLabelSelector() string { 88 if x != nil { 89 return x.LabelSelector 90 } 91 return "" 92 } 93 94 var File_selection_selection_proto protoreflect.FileDescriptor 95 96 var file_selection_selection_proto_rawDesc = []byte{ 97 0x0a, 0x19, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x6c, 0x65, 98 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x73, 0x65, 0x6c, 99 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6b, 0x0a, 0x09, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 100 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 101 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 102 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 103 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 104 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 105 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 106 0x74, 0x6f, 0x72, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 107 0x6d, 0x2f, 0x6d, 0x75, 0x74, 0x61, 0x67, 0x65, 0x6e, 0x2d, 0x69, 0x6f, 0x2f, 0x6d, 0x75, 0x74, 108 0x61, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 109 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 110 } 111 112 var ( 113 file_selection_selection_proto_rawDescOnce sync.Once 114 file_selection_selection_proto_rawDescData = file_selection_selection_proto_rawDesc 115 ) 116 117 func file_selection_selection_proto_rawDescGZIP() []byte { 118 file_selection_selection_proto_rawDescOnce.Do(func() { 119 file_selection_selection_proto_rawDescData = protoimpl.X.CompressGZIP(file_selection_selection_proto_rawDescData) 120 }) 121 return file_selection_selection_proto_rawDescData 122 } 123 124 var file_selection_selection_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 125 var file_selection_selection_proto_goTypes = []interface{}{ 126 (*Selection)(nil), // 0: selection.Selection 127 } 128 var file_selection_selection_proto_depIdxs = []int32{ 129 0, // [0:0] is the sub-list for method output_type 130 0, // [0:0] is the sub-list for method input_type 131 0, // [0:0] is the sub-list for extension type_name 132 0, // [0:0] is the sub-list for extension extendee 133 0, // [0:0] is the sub-list for field type_name 134 } 135 136 func init() { file_selection_selection_proto_init() } 137 func file_selection_selection_proto_init() { 138 if File_selection_selection_proto != nil { 139 return 140 } 141 if !protoimpl.UnsafeEnabled { 142 file_selection_selection_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 143 switch v := v.(*Selection); i { 144 case 0: 145 return &v.state 146 case 1: 147 return &v.sizeCache 148 case 2: 149 return &v.unknownFields 150 default: 151 return nil 152 } 153 } 154 } 155 type x struct{} 156 out := protoimpl.TypeBuilder{ 157 File: protoimpl.DescBuilder{ 158 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 159 RawDescriptor: file_selection_selection_proto_rawDesc, 160 NumEnums: 0, 161 NumMessages: 1, 162 NumExtensions: 0, 163 NumServices: 0, 164 }, 165 GoTypes: file_selection_selection_proto_goTypes, 166 DependencyIndexes: file_selection_selection_proto_depIdxs, 167 MessageInfos: file_selection_selection_proto_msgTypes, 168 }.Build() 169 File_selection_selection_proto = out.File 170 file_selection_selection_proto_rawDesc = nil 171 file_selection_selection_proto_goTypes = nil 172 file_selection_selection_proto_depIdxs = nil 173 }