Package com.google.cloud.compute.v1
Interface ResourcePolicySnapshotSchedulePolicyRetentionPolicyOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ResourcePolicySnapshotSchedulePolicyRetentionPolicy,ResourcePolicySnapshotSchedulePolicyRetentionPolicy.Builder
public interface ResourcePolicySnapshotSchedulePolicyRetentionPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMaxRetentionDays()Maximum age of the snapshot that is allowed to be kept.StringgetOnSourceDiskDelete()Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.com.google.protobuf.ByteStringgetOnSourceDiskDeleteBytes()Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.booleanhasMaxRetentionDays()Maximum age of the snapshot that is allowed to be kept.booleanhasOnSourceDiskDelete()Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasMaxRetentionDays
boolean hasMaxRetentionDays()
Maximum age of the snapshot that is allowed to be kept.
optional int32 max_retention_days = 324296979;- Returns:
- Whether the maxRetentionDays field is set.
-
getMaxRetentionDays
int getMaxRetentionDays()
Maximum age of the snapshot that is allowed to be kept.
optional int32 max_retention_days = 324296979;- Returns:
- The maxRetentionDays.
-
hasOnSourceDiskDelete
boolean hasOnSourceDiskDelete()
Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Check the OnSourceDiskDelete enum for the list of possible values.
optional string on_source_disk_delete = 321955529;- Returns:
- Whether the onSourceDiskDelete field is set.
-
getOnSourceDiskDelete
String getOnSourceDiskDelete()
Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Check the OnSourceDiskDelete enum for the list of possible values.
optional string on_source_disk_delete = 321955529;- Returns:
- The onSourceDiskDelete.
-
getOnSourceDiskDeleteBytes
com.google.protobuf.ByteString getOnSourceDiskDeleteBytes()
Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Check the OnSourceDiskDelete enum for the list of possible values.
optional string on_source_disk_delete = 321955529;- Returns:
- The bytes for onSourceDiskDelete.
-
-