/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/netapp/v1/backup_policy.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.netapp.v1;
public interface BackupPolicyOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.BackupPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Identifier. The resource name of the backup policy.
* Format:
* `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
*
* Identifier. The resource name of the backup policy.
* Format:
* `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
*
*
* string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* Number of daily backups to keep. Note that the minimum daily backup limit
* is 2.
*
*
* optional int32 daily_backup_limit = 2;
*
* @return Whether the dailyBackupLimit field is set.
*/
boolean hasDailyBackupLimit();
/**
*
*
*
* Number of daily backups to keep. Note that the minimum daily backup limit
* is 2.
*
*
* optional int32 daily_backup_limit = 2;
*
* @return The dailyBackupLimit.
*/
int getDailyBackupLimit();
/**
*
*
*
* Number of weekly backups to keep. Note that the sum of daily, weekly and
* monthly backups should be greater than 1.
*
*
* optional int32 weekly_backup_limit = 3;
*
* @return Whether the weeklyBackupLimit field is set.
*/
boolean hasWeeklyBackupLimit();
/**
*
*
*
* Number of weekly backups to keep. Note that the sum of daily, weekly and
* monthly backups should be greater than 1.
*
*
* optional int32 weekly_backup_limit = 3;
*
* @return The weeklyBackupLimit.
*/
int getWeeklyBackupLimit();
/**
*
*
*
* Number of monthly backups to keep. Note that the sum of daily, weekly and
* monthly backups should be greater than 1.
*
*
* optional int32 monthly_backup_limit = 4;
*
* @return Whether the monthlyBackupLimit field is set.
*/
boolean hasMonthlyBackupLimit();
/**
*
*
*
* Number of monthly backups to keep. Note that the sum of daily, weekly and
* monthly backups should be greater than 1.
*
*
* optional int32 monthly_backup_limit = 4;
*
* @return The monthlyBackupLimit.
*/
int getMonthlyBackupLimit();
/**
*
*
*
* Description of the backup policy.
*
*
* optional string description = 5;
*
* @return Whether the description field is set.
*/
boolean hasDescription();
/**
*
*
*
* Description of the backup policy.
*
*
* optional string description = 5;
*
* @return The description.
*/
java.lang.String getDescription();
/**
*
*
*
* Description of the backup policy.
*
*
* optional string description = 5;
*
* @return The bytes for description.
*/
com.google.protobuf.ByteString getDescriptionBytes();
/**
*
*
*
* If enabled, make backups automatically according to the schedules.
* This will be applied to all volumes that have this policy attached and
* enforced on volume level. If not specified, default is true.
*
*
* optional bool enabled = 6;
*
* @return Whether the enabled field is set.
*/
boolean hasEnabled();
/**
*
*
*
* If enabled, make backups automatically according to the schedules.
* This will be applied to all volumes that have this policy attached and
* enforced on volume level. If not specified, default is true.
*
*
* optional bool enabled = 6;
*
* @return The enabled.
*/
boolean getEnabled();
/**
*
*
*
* Output only. The total number of volumes assigned by this backup policy.
*
*
* optional int32 assigned_volume_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the assignedVolumeCount field is set.
*/
boolean hasAssignedVolumeCount();
/**
*
*
*
* Output only. The total number of volumes assigned by this backup policy.
*
*
* optional int32 assigned_volume_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The assignedVolumeCount.
*/
int getAssignedVolumeCount();
/**
*
*
*
* Output only. The time when the backup policy was created.
*
*
* .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
boolean hasCreateTime();
/**
*
*
*
* Output only. The time when the backup policy was created.
*
*
* .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
com.google.protobuf.Timestamp getCreateTime();
/**
*
*
*
* Output only. The time when the backup policy was created.
*
*
* .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
int getLabelsCount();
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
boolean containsLabels(java.lang.String key);
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Deprecated
java.util.Map getLabels();
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
java.util.Map getLabelsMap();
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
/* nullable */
java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
*
*
* Resource labels to represent user provided metadata.
*
*
* map<string, string> labels = 9;
*/
java.lang.String getLabelsOrThrow(java.lang.String key);
/**
*
*
*
* Output only. The backup policy state.
*
*
*
* .google.cloud.netapp.v1.BackupPolicy.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
*
*
* Output only. The backup policy state.
*
*
*
* .google.cloud.netapp.v1.BackupPolicy.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
com.google.cloud.netapp.v1.BackupPolicy.State getState();
}