1// Copyright 2021 Google LLC 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.26.0 18// protoc v3.12.2 19// source: google/cloud/gkebackup/logging/v1/logged_backup_plan.proto 20 21package logging 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 28 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 29) 30 31const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36) 37 38// BackupPlan as stored in Platform log. It's used to log the details of 39// a createBackupPlan/updateBackupPlan request, so only fields that can be taken 40// from user input are included here. 41type LoggedBackupPlan struct { 42 state protoimpl.MessageState 43 sizeCache protoimpl.SizeCache 44 unknownFields protoimpl.UnknownFields 45 46 // User specified descriptive string for this BackupPlan. 47 Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` 48 // GCP resource name of the source cluster for this BackupPlan. 49 Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"` 50 // RetentionPolicy governs lifecycle of Backups created under this plan. 51 RetentionPolicy *LoggedBackupPlan_RetentionPolicy `protobuf:"bytes,3,opt,name=retention_policy,json=retentionPolicy,proto3" json:"retention_policy,omitempty"` 52 // A set of custom labels supplied by user. 53 Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 54 // Defines scheduled Backup creation under this BackupPlan. 55 BackupSchedule *LoggedBackupPlan_Schedule `protobuf:"bytes,5,opt,name=backup_schedule,json=backupSchedule,proto3" json:"backup_schedule,omitempty"` 56 // A flag indicates whether the plan has been deactivated. 57 Deactivated bool `protobuf:"varint,6,opt,name=deactivated,proto3" json:"deactivated,omitempty"` 58 // Defines backup configuration of this BackupPlan. 59 BackupConfig *LoggedBackupPlan_BackupConfig `protobuf:"bytes,7,opt,name=backup_config,json=backupConfig,proto3" json:"backup_config,omitempty"` 60} 61 62func (x *LoggedBackupPlan) Reset() { 63 *x = LoggedBackupPlan{} 64 if protoimpl.UnsafeEnabled { 65 mi := &file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[0] 66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 67 ms.StoreMessageInfo(mi) 68 } 69} 70 71func (x *LoggedBackupPlan) String() string { 72 return protoimpl.X.MessageStringOf(x) 73} 74 75func (*LoggedBackupPlan) ProtoMessage() {} 76 77func (x *LoggedBackupPlan) ProtoReflect() protoreflect.Message { 78 mi := &file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[0] 79 if protoimpl.UnsafeEnabled && x != nil { 80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 81 if ms.LoadMessageInfo() == nil { 82 ms.StoreMessageInfo(mi) 83 } 84 return ms 85 } 86 return mi.MessageOf(x) 87} 88 89// Deprecated: Use LoggedBackupPlan.ProtoReflect.Descriptor instead. 90func (*LoggedBackupPlan) Descriptor() ([]byte, []int) { 91 return file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescGZIP(), []int{0} 92} 93 94func (x *LoggedBackupPlan) GetDescription() string { 95 if x != nil { 96 return x.Description 97 } 98 return "" 99} 100 101func (x *LoggedBackupPlan) GetCluster() string { 102 if x != nil { 103 return x.Cluster 104 } 105 return "" 106} 107 108func (x *LoggedBackupPlan) GetRetentionPolicy() *LoggedBackupPlan_RetentionPolicy { 109 if x != nil { 110 return x.RetentionPolicy 111 } 112 return nil 113} 114 115func (x *LoggedBackupPlan) GetLabels() map[string]string { 116 if x != nil { 117 return x.Labels 118 } 119 return nil 120} 121 122func (x *LoggedBackupPlan) GetBackupSchedule() *LoggedBackupPlan_Schedule { 123 if x != nil { 124 return x.BackupSchedule 125 } 126 return nil 127} 128 129func (x *LoggedBackupPlan) GetDeactivated() bool { 130 if x != nil { 131 return x.Deactivated 132 } 133 return false 134} 135 136func (x *LoggedBackupPlan) GetBackupConfig() *LoggedBackupPlan_BackupConfig { 137 if x != nil { 138 return x.BackupConfig 139 } 140 return nil 141} 142 143// RentionPolicy is an inner message type to define: 144// 1. When to automatically delete Backups created under this BackupPlan 145// 2. A plan level minimum Backup retain days which blocks deletion 146// 3. Lock to disallow any policy updates 147type LoggedBackupPlan_RetentionPolicy struct { 148 state protoimpl.MessageState 149 sizeCache protoimpl.SizeCache 150 unknownFields protoimpl.UnknownFields 151 152 // Number of days during which deletion of a Backup created under this 153 // BackupPlan will be blocked. 154 BackupDeleteLockDays int32 `protobuf:"varint,1,opt,name=backup_delete_lock_days,json=backupDeleteLockDays,proto3" json:"backup_delete_lock_days,omitempty"` 155 // Number of days after which the service will delete a Backup. 156 // If specified, a Backup created under this BackupPlan will be 157 // automatically deleted after its age reaches create_time + 158 // backup_retain_days. 159 BackupRetainDays int32 `protobuf:"varint,2,opt,name=backup_retain_days,json=backupRetainDays,proto3" json:"backup_retain_days,omitempty"` 160 // A flag denotes that the retention policy of this BackupPlan is locked. 161 // If set to True, no further update is allowed on this policy, including 162 // the 'locked' field itself. 163 // Default to False. 164 Locked bool `protobuf:"varint,3,opt,name=locked,proto3" json:"locked,omitempty"` 165} 166 167func (x *LoggedBackupPlan_RetentionPolicy) Reset() { 168 *x = LoggedBackupPlan_RetentionPolicy{} 169 if protoimpl.UnsafeEnabled { 170 mi := &file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[1] 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 ms.StoreMessageInfo(mi) 173 } 174} 175 176func (x *LoggedBackupPlan_RetentionPolicy) String() string { 177 return protoimpl.X.MessageStringOf(x) 178} 179 180func (*LoggedBackupPlan_RetentionPolicy) ProtoMessage() {} 181 182func (x *LoggedBackupPlan_RetentionPolicy) ProtoReflect() protoreflect.Message { 183 mi := &file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[1] 184 if protoimpl.UnsafeEnabled && x != nil { 185 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 186 if ms.LoadMessageInfo() == nil { 187 ms.StoreMessageInfo(mi) 188 } 189 return ms 190 } 191 return mi.MessageOf(x) 192} 193 194// Deprecated: Use LoggedBackupPlan_RetentionPolicy.ProtoReflect.Descriptor instead. 195func (*LoggedBackupPlan_RetentionPolicy) Descriptor() ([]byte, []int) { 196 return file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescGZIP(), []int{0, 0} 197} 198 199func (x *LoggedBackupPlan_RetentionPolicy) GetBackupDeleteLockDays() int32 { 200 if x != nil { 201 return x.BackupDeleteLockDays 202 } 203 return 0 204} 205 206func (x *LoggedBackupPlan_RetentionPolicy) GetBackupRetainDays() int32 { 207 if x != nil { 208 return x.BackupRetainDays 209 } 210 return 0 211} 212 213func (x *LoggedBackupPlan_RetentionPolicy) GetLocked() bool { 214 if x != nil { 215 return x.Locked 216 } 217 return false 218} 219 220// Schedule, an inner message type defines a cron schedule. 221type LoggedBackupPlan_Schedule struct { 222 state protoimpl.MessageState 223 sizeCache protoimpl.SizeCache 224 unknownFields protoimpl.UnknownFields 225 226 // A cron style string schedule on which an operation will be executed. 227 CronSchedule string `protobuf:"bytes,1,opt,name=cron_schedule,json=cronSchedule,proto3" json:"cron_schedule,omitempty"` 228 // A flag to toggle scheduled operation. 229 Paused bool `protobuf:"varint,2,opt,name=paused,proto3" json:"paused,omitempty"` 230} 231 232func (x *LoggedBackupPlan_Schedule) Reset() { 233 *x = LoggedBackupPlan_Schedule{} 234 if protoimpl.UnsafeEnabled { 235 mi := &file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[2] 236 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 237 ms.StoreMessageInfo(mi) 238 } 239} 240 241func (x *LoggedBackupPlan_Schedule) String() string { 242 return protoimpl.X.MessageStringOf(x) 243} 244 245func (*LoggedBackupPlan_Schedule) ProtoMessage() {} 246 247func (x *LoggedBackupPlan_Schedule) ProtoReflect() protoreflect.Message { 248 mi := &file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[2] 249 if protoimpl.UnsafeEnabled && x != nil { 250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 251 if ms.LoadMessageInfo() == nil { 252 ms.StoreMessageInfo(mi) 253 } 254 return ms 255 } 256 return mi.MessageOf(x) 257} 258 259// Deprecated: Use LoggedBackupPlan_Schedule.ProtoReflect.Descriptor instead. 260func (*LoggedBackupPlan_Schedule) Descriptor() ([]byte, []int) { 261 return file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescGZIP(), []int{0, 1} 262} 263 264func (x *LoggedBackupPlan_Schedule) GetCronSchedule() string { 265 if x != nil { 266 return x.CronSchedule 267 } 268 return "" 269} 270 271func (x *LoggedBackupPlan_Schedule) GetPaused() bool { 272 if x != nil { 273 return x.Paused 274 } 275 return false 276} 277 278// BackupConfig, an inner message type defines the configuration of creating 279// a backup from this BackupPlan 280type LoggedBackupPlan_BackupConfig struct { 281 state protoimpl.MessageState 282 sizeCache protoimpl.SizeCache 283 unknownFields protoimpl.UnknownFields 284 285 // Types that are assignable to BackupScope: 286 // *LoggedBackupPlan_BackupConfig_AllNamespaces 287 // *LoggedBackupPlan_BackupConfig_SelectedNamespaces 288 // *LoggedBackupPlan_BackupConfig_SelectedApplications 289 BackupScope isLoggedBackupPlan_BackupConfig_BackupScope `protobuf_oneof:"backup_scope"` 290 // A boolean flag specifies whether volume data should be backed up 291 IncludeVolumeData bool `protobuf:"varint,4,opt,name=include_volume_data,json=includeVolumeData,proto3" json:"include_volume_data,omitempty"` 292 // A boolean flag specifies whether secrets should be backed up 293 IncludeSecrets bool `protobuf:"varint,5,opt,name=include_secrets,json=includeSecrets,proto3" json:"include_secrets,omitempty"` 294 // Custom encryption key. For preview, support GCP KMS only. 295 // This only contains the key metadata, and no key material. 296 EncryptionKey *EncryptionKey `protobuf:"bytes,6,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"` 297} 298 299func (x *LoggedBackupPlan_BackupConfig) Reset() { 300 *x = LoggedBackupPlan_BackupConfig{} 301 if protoimpl.UnsafeEnabled { 302 mi := &file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[3] 303 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 304 ms.StoreMessageInfo(mi) 305 } 306} 307 308func (x *LoggedBackupPlan_BackupConfig) String() string { 309 return protoimpl.X.MessageStringOf(x) 310} 311 312func (*LoggedBackupPlan_BackupConfig) ProtoMessage() {} 313 314func (x *LoggedBackupPlan_BackupConfig) ProtoReflect() protoreflect.Message { 315 mi := &file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[3] 316 if protoimpl.UnsafeEnabled && x != nil { 317 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 318 if ms.LoadMessageInfo() == nil { 319 ms.StoreMessageInfo(mi) 320 } 321 return ms 322 } 323 return mi.MessageOf(x) 324} 325 326// Deprecated: Use LoggedBackupPlan_BackupConfig.ProtoReflect.Descriptor instead. 327func (*LoggedBackupPlan_BackupConfig) Descriptor() ([]byte, []int) { 328 return file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescGZIP(), []int{0, 2} 329} 330 331func (m *LoggedBackupPlan_BackupConfig) GetBackupScope() isLoggedBackupPlan_BackupConfig_BackupScope { 332 if m != nil { 333 return m.BackupScope 334 } 335 return nil 336} 337 338func (x *LoggedBackupPlan_BackupConfig) GetAllNamespaces() bool { 339 if x, ok := x.GetBackupScope().(*LoggedBackupPlan_BackupConfig_AllNamespaces); ok { 340 return x.AllNamespaces 341 } 342 return false 343} 344 345func (x *LoggedBackupPlan_BackupConfig) GetSelectedNamespaces() *Namespaces { 346 if x, ok := x.GetBackupScope().(*LoggedBackupPlan_BackupConfig_SelectedNamespaces); ok { 347 return x.SelectedNamespaces 348 } 349 return nil 350} 351 352func (x *LoggedBackupPlan_BackupConfig) GetSelectedApplications() *NamespacedNames { 353 if x, ok := x.GetBackupScope().(*LoggedBackupPlan_BackupConfig_SelectedApplications); ok { 354 return x.SelectedApplications 355 } 356 return nil 357} 358 359func (x *LoggedBackupPlan_BackupConfig) GetIncludeVolumeData() bool { 360 if x != nil { 361 return x.IncludeVolumeData 362 } 363 return false 364} 365 366func (x *LoggedBackupPlan_BackupConfig) GetIncludeSecrets() bool { 367 if x != nil { 368 return x.IncludeSecrets 369 } 370 return false 371} 372 373func (x *LoggedBackupPlan_BackupConfig) GetEncryptionKey() *EncryptionKey { 374 if x != nil { 375 return x.EncryptionKey 376 } 377 return nil 378} 379 380type isLoggedBackupPlan_BackupConfig_BackupScope interface { 381 isLoggedBackupPlan_BackupConfig_BackupScope() 382} 383 384type LoggedBackupPlan_BackupConfig_AllNamespaces struct { 385 // If set to true, backup whole cluster 386 AllNamespaces bool `protobuf:"varint,1,opt,name=all_namespaces,json=allNamespaces,proto3,oneof"` 387} 388 389type LoggedBackupPlan_BackupConfig_SelectedNamespaces struct { 390 // If set, backup the list of namespaces 391 SelectedNamespaces *Namespaces `protobuf:"bytes,2,opt,name=selected_namespaces,json=selectedNamespaces,proto3,oneof"` 392} 393 394type LoggedBackupPlan_BackupConfig_SelectedApplications struct { 395 // If set, backup the list of applications 396 SelectedApplications *NamespacedNames `protobuf:"bytes,3,opt,name=selected_applications,json=selectedApplications,proto3,oneof"` 397} 398 399func (*LoggedBackupPlan_BackupConfig_AllNamespaces) isLoggedBackupPlan_BackupConfig_BackupScope() {} 400 401func (*LoggedBackupPlan_BackupConfig_SelectedNamespaces) isLoggedBackupPlan_BackupConfig_BackupScope() { 402} 403 404func (*LoggedBackupPlan_BackupConfig_SelectedApplications) isLoggedBackupPlan_BackupConfig_BackupScope() { 405} 406 407var File_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto protoreflect.FileDescriptor 408 409var file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDesc = []byte{ 410 0x0a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 411 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 412 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 413 0x70, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x67, 0x6f, 414 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x62, 0x61, 415 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 416 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6b, 417 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 418 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 419 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x09, 0x0a, 0x10, 0x4c, 0x6f, 0x67, 0x67, 0x65, 420 0x64, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 421 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 422 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 423 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 424 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x6e, 0x0a, 0x10, 0x72, 0x65, 0x74, 0x65, 0x6e, 425 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 426 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 427 0x2e, 0x67, 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 428 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x42, 0x61, 0x63, 0x6b, 429 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 430 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 431 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x57, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 432 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 433 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 434 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 435 0x65, 0x64, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 436 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 437 0x12, 0x65, 0x0a, 0x0f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 438 0x75, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 439 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 440 0x75, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 441 0x67, 0x67, 0x65, 0x64, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x53, 442 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x0e, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 443 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x61, 0x63, 0x74, 444 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x64, 0x65, 445 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x64, 0x12, 0x65, 0x0a, 0x0d, 0x62, 0x61, 0x63, 446 0x6b, 0x75, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 447 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 448 0x67, 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 449 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x42, 0x61, 0x63, 0x6b, 0x75, 450 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x43, 0x6f, 0x6e, 0x66, 451 0x69, 0x67, 0x52, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 452 0x1a, 0x8e, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x74, 0x65, 0x6e, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 453 0x6c, 0x69, 0x63, 0x79, 0x12, 0x35, 0x0a, 0x17, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x64, 454 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 455 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x44, 0x65, 0x6c, 456 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x63, 0x6b, 0x44, 0x61, 0x79, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x62, 457 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x64, 0x61, 0x79, 458 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 459 0x65, 0x74, 0x61, 0x69, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 460 0x6b, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 461 0x64, 0x1a, 0x47, 0x0a, 0x08, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x23, 0x0a, 462 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 463 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 464 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 465 0x28, 0x08, 0x52, 0x06, 0x70, 0x61, 0x75, 0x73, 0x65, 0x64, 0x1a, 0xc6, 0x03, 0x0a, 0x0c, 0x42, 466 0x61, 0x63, 0x6b, 0x75, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0e, 0x61, 467 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 468 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 469 0x61, 0x63, 0x65, 0x73, 0x12, 0x60, 0x0a, 0x13, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 470 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 471 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 472 0x2e, 0x67, 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 473 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 474 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 475 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x12, 0x69, 0x0a, 0x15, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 476 0x65, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 477 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 478 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x6c, 479 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 480 0x61, 0x63, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x48, 0x00, 0x52, 0x14, 0x73, 0x65, 0x6c, 481 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 482 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x76, 0x6f, 0x6c, 483 0x75, 0x6d, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 484 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x44, 0x61, 0x74, 485 0x61, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x73, 0x65, 0x63, 486 0x72, 0x65, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 487 0x75, 0x64, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x57, 0x0a, 0x0e, 0x65, 0x6e, 488 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 489 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 490 0x64, 0x2e, 0x67, 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 491 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 492 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 493 0x4b, 0x65, 0x79, 0x42, 0x0e, 0x0a, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x73, 0x63, 494 0x6f, 0x70, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 495 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 496 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 497 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xf6, 498 0x01, 0x0a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 499 0x67, 0x6b, 0x65, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 500 0x67, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x4c, 0x6f, 0x67, 0x67, 0x65, 0x64, 0x42, 0x61, 0x63, 0x6b, 501 0x75, 0x70, 0x50, 0x6c, 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 502 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 503 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 504 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x6b, 0x65, 0x62, 0x61, 505 0x63, 0x6b, 0x75, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 506 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0xaa, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 507 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x47, 0x6b, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 508 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x21, 0x47, 0x6f, 509 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x6b, 0x65, 0x42, 0x61, 510 0x63, 0x6b, 0x75, 0x70, 0x5c, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xea, 511 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 512 0x3a, 0x47, 0x6b, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x3a, 0x3a, 0x4c, 0x6f, 0x67, 0x67, 513 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 514} 515 516var ( 517 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescOnce sync.Once 518 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescData = file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDesc 519) 520 521func file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescGZIP() []byte { 522 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescOnce.Do(func() { 523 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescData) 524 }) 525 return file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDescData 526} 527 528var file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 529var file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_goTypes = []interface{}{ 530 (*LoggedBackupPlan)(nil), // 0: google.cloud.gkebackup.logging.v1.LoggedBackupPlan 531 (*LoggedBackupPlan_RetentionPolicy)(nil), // 1: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.RetentionPolicy 532 (*LoggedBackupPlan_Schedule)(nil), // 2: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.Schedule 533 (*LoggedBackupPlan_BackupConfig)(nil), // 3: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.BackupConfig 534 nil, // 4: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.LabelsEntry 535 (*Namespaces)(nil), // 5: google.cloud.gkebackup.logging.v1.Namespaces 536 (*NamespacedNames)(nil), // 6: google.cloud.gkebackup.logging.v1.NamespacedNames 537 (*EncryptionKey)(nil), // 7: google.cloud.gkebackup.logging.v1.EncryptionKey 538} 539var file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_depIdxs = []int32{ 540 1, // 0: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.retention_policy:type_name -> google.cloud.gkebackup.logging.v1.LoggedBackupPlan.RetentionPolicy 541 4, // 1: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.labels:type_name -> google.cloud.gkebackup.logging.v1.LoggedBackupPlan.LabelsEntry 542 2, // 2: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.backup_schedule:type_name -> google.cloud.gkebackup.logging.v1.LoggedBackupPlan.Schedule 543 3, // 3: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.backup_config:type_name -> google.cloud.gkebackup.logging.v1.LoggedBackupPlan.BackupConfig 544 5, // 4: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.BackupConfig.selected_namespaces:type_name -> google.cloud.gkebackup.logging.v1.Namespaces 545 6, // 5: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.BackupConfig.selected_applications:type_name -> google.cloud.gkebackup.logging.v1.NamespacedNames 546 7, // 6: google.cloud.gkebackup.logging.v1.LoggedBackupPlan.BackupConfig.encryption_key:type_name -> google.cloud.gkebackup.logging.v1.EncryptionKey 547 7, // [7:7] is the sub-list for method output_type 548 7, // [7:7] is the sub-list for method input_type 549 7, // [7:7] is the sub-list for extension type_name 550 7, // [7:7] is the sub-list for extension extendee 551 0, // [0:7] is the sub-list for field type_name 552} 553 554func init() { file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_init() } 555func file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_init() { 556 if File_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto != nil { 557 return 558 } 559 file_google_cloud_gkebackup_logging_v1_logged_common_proto_init() 560 if !protoimpl.UnsafeEnabled { 561 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 562 switch v := v.(*LoggedBackupPlan); i { 563 case 0: 564 return &v.state 565 case 1: 566 return &v.sizeCache 567 case 2: 568 return &v.unknownFields 569 default: 570 return nil 571 } 572 } 573 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 574 switch v := v.(*LoggedBackupPlan_RetentionPolicy); i { 575 case 0: 576 return &v.state 577 case 1: 578 return &v.sizeCache 579 case 2: 580 return &v.unknownFields 581 default: 582 return nil 583 } 584 } 585 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 586 switch v := v.(*LoggedBackupPlan_Schedule); i { 587 case 0: 588 return &v.state 589 case 1: 590 return &v.sizeCache 591 case 2: 592 return &v.unknownFields 593 default: 594 return nil 595 } 596 } 597 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 598 switch v := v.(*LoggedBackupPlan_BackupConfig); i { 599 case 0: 600 return &v.state 601 case 1: 602 return &v.sizeCache 603 case 2: 604 return &v.unknownFields 605 default: 606 return nil 607 } 608 } 609 } 610 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes[3].OneofWrappers = []interface{}{ 611 (*LoggedBackupPlan_BackupConfig_AllNamespaces)(nil), 612 (*LoggedBackupPlan_BackupConfig_SelectedNamespaces)(nil), 613 (*LoggedBackupPlan_BackupConfig_SelectedApplications)(nil), 614 } 615 type x struct{} 616 out := protoimpl.TypeBuilder{ 617 File: protoimpl.DescBuilder{ 618 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 619 RawDescriptor: file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDesc, 620 NumEnums: 0, 621 NumMessages: 5, 622 NumExtensions: 0, 623 NumServices: 0, 624 }, 625 GoTypes: file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_goTypes, 626 DependencyIndexes: file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_depIdxs, 627 MessageInfos: file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_msgTypes, 628 }.Build() 629 File_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto = out.File 630 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_rawDesc = nil 631 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_goTypes = nil 632 file_google_cloud_gkebackup_logging_v1_logged_backup_plan_proto_depIdxs = nil 633} 634