github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/gen/proto/go/userpreferences/v1/cluster_preferences.pb.go (about) 1 // Copyright 2023 Gravitational, Inc 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.34.0 18 // protoc (unknown) 19 // source: teleport/userpreferences/v1/cluster_preferences.proto 20 21 package userpreferencesv1 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 // PinnedResourcesUserPreferences is a collection of resource IDs that will be 38 // displayed in the user's pinned resources tab in the Web UI. 39 type PinnedResourcesUserPreferences struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // resource_ids is a list of unified resource name sort keys. 45 ResourceIds []string `protobuf:"bytes,1,rep,name=resource_ids,json=resourceIds,proto3" json:"resource_ids,omitempty"` 46 } 47 48 func (x *PinnedResourcesUserPreferences) Reset() { 49 *x = PinnedResourcesUserPreferences{} 50 if protoimpl.UnsafeEnabled { 51 mi := &file_teleport_userpreferences_v1_cluster_preferences_proto_msgTypes[0] 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 ms.StoreMessageInfo(mi) 54 } 55 } 56 57 func (x *PinnedResourcesUserPreferences) String() string { 58 return protoimpl.X.MessageStringOf(x) 59 } 60 61 func (*PinnedResourcesUserPreferences) ProtoMessage() {} 62 63 func (x *PinnedResourcesUserPreferences) ProtoReflect() protoreflect.Message { 64 mi := &file_teleport_userpreferences_v1_cluster_preferences_proto_msgTypes[0] 65 if protoimpl.UnsafeEnabled && x != nil { 66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 67 if ms.LoadMessageInfo() == nil { 68 ms.StoreMessageInfo(mi) 69 } 70 return ms 71 } 72 return mi.MessageOf(x) 73 } 74 75 // Deprecated: Use PinnedResourcesUserPreferences.ProtoReflect.Descriptor instead. 76 func (*PinnedResourcesUserPreferences) Descriptor() ([]byte, []int) { 77 return file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescGZIP(), []int{0} 78 } 79 80 func (x *PinnedResourcesUserPreferences) GetResourceIds() []string { 81 if x != nil { 82 return x.ResourceIds 83 } 84 return nil 85 } 86 87 // ClusterUserPreferences are user preferences saved per cluster. 88 type ClusterUserPreferences struct { 89 state protoimpl.MessageState 90 sizeCache protoimpl.SizeCache 91 unknownFields protoimpl.UnknownFields 92 93 // pinned_resources is a list of pinned resources. 94 PinnedResources *PinnedResourcesUserPreferences `protobuf:"bytes,1,opt,name=pinned_resources,json=pinnedResources,proto3" json:"pinned_resources,omitempty"` 95 } 96 97 func (x *ClusterUserPreferences) Reset() { 98 *x = ClusterUserPreferences{} 99 if protoimpl.UnsafeEnabled { 100 mi := &file_teleport_userpreferences_v1_cluster_preferences_proto_msgTypes[1] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104 } 105 106 func (x *ClusterUserPreferences) String() string { 107 return protoimpl.X.MessageStringOf(x) 108 } 109 110 func (*ClusterUserPreferences) ProtoMessage() {} 111 112 func (x *ClusterUserPreferences) ProtoReflect() protoreflect.Message { 113 mi := &file_teleport_userpreferences_v1_cluster_preferences_proto_msgTypes[1] 114 if protoimpl.UnsafeEnabled && x != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(x) 122 } 123 124 // Deprecated: Use ClusterUserPreferences.ProtoReflect.Descriptor instead. 125 func (*ClusterUserPreferences) Descriptor() ([]byte, []int) { 126 return file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescGZIP(), []int{1} 127 } 128 129 func (x *ClusterUserPreferences) GetPinnedResources() *PinnedResourcesUserPreferences { 130 if x != nil { 131 return x.PinnedResources 132 } 133 return nil 134 } 135 136 var File_teleport_userpreferences_v1_cluster_preferences_proto protoreflect.FileDescriptor 137 138 var file_teleport_userpreferences_v1_cluster_preferences_proto_rawDesc = []byte{ 139 0x0a, 0x35, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70, 140 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 141 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 142 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 143 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 144 0x73, 0x2e, 0x76, 0x31, 0x22, 0x43, 0x0a, 0x1e, 0x50, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x52, 0x65, 145 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x65, 146 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 147 0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 148 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x16, 0x43, 0x6c, 149 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 150 0x6e, 0x63, 0x65, 0x73, 0x12, 0x66, 0x0a, 0x10, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x72, 151 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 152 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 153 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x69, 0x6e, 154 0x6e, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x55, 0x73, 0x65, 0x72, 155 0x50, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x0f, 0x70, 0x69, 0x6e, 156 0x6e, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0x59, 0x5a, 0x57, 157 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x61, 0x76, 0x69, 158 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 159 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 160 0x67, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 161 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 162 0x65, 0x6e, 0x63, 0x65, 0x73, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 163 } 164 165 var ( 166 file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescOnce sync.Once 167 file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescData = file_teleport_userpreferences_v1_cluster_preferences_proto_rawDesc 168 ) 169 170 func file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescGZIP() []byte { 171 file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescOnce.Do(func() { 172 file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescData = protoimpl.X.CompressGZIP(file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescData) 173 }) 174 return file_teleport_userpreferences_v1_cluster_preferences_proto_rawDescData 175 } 176 177 var file_teleport_userpreferences_v1_cluster_preferences_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 178 var file_teleport_userpreferences_v1_cluster_preferences_proto_goTypes = []interface{}{ 179 (*PinnedResourcesUserPreferences)(nil), // 0: teleport.userpreferences.v1.PinnedResourcesUserPreferences 180 (*ClusterUserPreferences)(nil), // 1: teleport.userpreferences.v1.ClusterUserPreferences 181 } 182 var file_teleport_userpreferences_v1_cluster_preferences_proto_depIdxs = []int32{ 183 0, // 0: teleport.userpreferences.v1.ClusterUserPreferences.pinned_resources:type_name -> teleport.userpreferences.v1.PinnedResourcesUserPreferences 184 1, // [1:1] is the sub-list for method output_type 185 1, // [1:1] is the sub-list for method input_type 186 1, // [1:1] is the sub-list for extension type_name 187 1, // [1:1] is the sub-list for extension extendee 188 0, // [0:1] is the sub-list for field type_name 189 } 190 191 func init() { file_teleport_userpreferences_v1_cluster_preferences_proto_init() } 192 func file_teleport_userpreferences_v1_cluster_preferences_proto_init() { 193 if File_teleport_userpreferences_v1_cluster_preferences_proto != nil { 194 return 195 } 196 if !protoimpl.UnsafeEnabled { 197 file_teleport_userpreferences_v1_cluster_preferences_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 198 switch v := v.(*PinnedResourcesUserPreferences); i { 199 case 0: 200 return &v.state 201 case 1: 202 return &v.sizeCache 203 case 2: 204 return &v.unknownFields 205 default: 206 return nil 207 } 208 } 209 file_teleport_userpreferences_v1_cluster_preferences_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 210 switch v := v.(*ClusterUserPreferences); i { 211 case 0: 212 return &v.state 213 case 1: 214 return &v.sizeCache 215 case 2: 216 return &v.unknownFields 217 default: 218 return nil 219 } 220 } 221 } 222 type x struct{} 223 out := protoimpl.TypeBuilder{ 224 File: protoimpl.DescBuilder{ 225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 226 RawDescriptor: file_teleport_userpreferences_v1_cluster_preferences_proto_rawDesc, 227 NumEnums: 0, 228 NumMessages: 2, 229 NumExtensions: 0, 230 NumServices: 0, 231 }, 232 GoTypes: file_teleport_userpreferences_v1_cluster_preferences_proto_goTypes, 233 DependencyIndexes: file_teleport_userpreferences_v1_cluster_preferences_proto_depIdxs, 234 MessageInfos: file_teleport_userpreferences_v1_cluster_preferences_proto_msgTypes, 235 }.Build() 236 File_teleport_userpreferences_v1_cluster_preferences_proto = out.File 237 file_teleport_userpreferences_v1_cluster_preferences_proto_rawDesc = nil 238 file_teleport_userpreferences_v1_cluster_preferences_proto_goTypes = nil 239 file_teleport_userpreferences_v1_cluster_preferences_proto_depIdxs = nil 240 }