1// Copyright 2023 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 15syntax = "proto3"; 16 17package google.cloud.metastore.logging.v1; 18 19import "google/api/field_behavior.proto"; 20import "google/protobuf/timestamp.proto"; 21 22option go_package = "cloud.google.com/go/metastore/logging/apiv1/loggingpb;loggingpb"; 23option java_multiple_files = true; 24option java_outer_classname = "ScheduledBackupsLogProto"; 25option java_package = "google.cloud.metastore.logging.v1"; 26 27// Cloud Logging log schema for scheduled backup events. 28message ScheduledBackupLogEntry { 29 // The current state of the backup. 30 enum State { 31 // The state of the backup is unknown. 32 STATE_UNSPECIFIED = 0; 33 34 // The backup is in progress. 35 IN_PROGRESS = 1; 36 37 // The backup completed. 38 SUCCEEDED = 2; 39 40 // The backup failed. 41 FAILED = 3; 42 } 43 44 // The ID of the backup. 45 string backup_id = 1; 46 47 // The relative resource name of a Metastore service in the form of 48 // `projects/{project_id}/locations/{location_id}/services/{service_id}` 49 string service = 2; 50 51 // Timestamp when the backup was started. 52 google.protobuf.Timestamp start_time = 3; 53 54 // Timestamp when the backup was completed. 55 google.protobuf.Timestamp end_time = 4; 56 57 // Output only. The current state of the backup. 58 State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; 59 60 // Size of the backup data in bytes. 61 int64 backup_size_bytes = 6; 62 63 // A Cloud Storage URI of a folder, in the format 64 // `gs://<bucket_name>/<path_inside_bucket>`. 65 string backup_location = 7; 66 67 // Message that provides (optional) details about the backup. 68 string message = 8; 69} 70