Class RetentionSettingsInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.databasecenter.v1beta.RetentionSettingsInfo
All Implemented Interfaces:
RetentionSettingsInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RetentionSettingsInfo extends com.google.protobuf.GeneratedMessage implements RetentionSettingsInfoOrBuilder
 Metadata about backup retention settings for a database resource.
 
Protobuf type google.cloud.databasecenter.v1beta.RetentionSettingsInfo
See Also:
  • Field Details

    • QUANTITY_BASED_RETENTION_FIELD_NUMBER

      public static final int QUANTITY_BASED_RETENTION_FIELD_NUMBER
      See Also:
    • DURATION_BASED_RETENTION_FIELD_NUMBER

      public static final int DURATION_BASED_RETENTION_FIELD_NUMBER
      See Also:
    • TIMESTAMP_BASED_RETENTION_TIME_FIELD_NUMBER

      public static final int TIMESTAMP_BASED_RETENTION_TIME_FIELD_NUMBER
      See Also:
    • SUB_RESOURCE_FIELD_NUMBER

      public static final int SUB_RESOURCE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getRetentionCase

      public RetentionSettingsInfo.RetentionCase getRetentionCase()
      Specified by:
      getRetentionCase in interface RetentionSettingsInfoOrBuilder
    • hasQuantityBasedRetention

      public boolean hasQuantityBasedRetention()
       Number of backups that will be retained.
       
      .google.protobuf.Int32Value quantity_based_retention = 3;
      Specified by:
      hasQuantityBasedRetention in interface RetentionSettingsInfoOrBuilder
      Returns:
      Whether the quantityBasedRetention field is set.
    • getQuantityBasedRetention

      public com.google.protobuf.Int32Value getQuantityBasedRetention()
       Number of backups that will be retained.
       
      .google.protobuf.Int32Value quantity_based_retention = 3;
      Specified by:
      getQuantityBasedRetention in interface RetentionSettingsInfoOrBuilder
      Returns:
      The quantityBasedRetention.
    • getQuantityBasedRetentionOrBuilder

      public com.google.protobuf.Int32ValueOrBuilder getQuantityBasedRetentionOrBuilder()
       Number of backups that will be retained.
       
      .google.protobuf.Int32Value quantity_based_retention = 3;
      Specified by:
      getQuantityBasedRetentionOrBuilder in interface RetentionSettingsInfoOrBuilder
    • hasDurationBasedRetention

      public boolean hasDurationBasedRetention()
       Duration based retention period i.e. 172800 seconds (2 days)
       
      .google.protobuf.Duration duration_based_retention = 5;
      Specified by:
      hasDurationBasedRetention in interface RetentionSettingsInfoOrBuilder
      Returns:
      Whether the durationBasedRetention field is set.
    • getDurationBasedRetention

      public com.google.protobuf.Duration getDurationBasedRetention()
       Duration based retention period i.e. 172800 seconds (2 days)
       
      .google.protobuf.Duration duration_based_retention = 5;
      Specified by:
      getDurationBasedRetention in interface RetentionSettingsInfoOrBuilder
      Returns:
      The durationBasedRetention.
    • getDurationBasedRetentionOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationBasedRetentionOrBuilder()
       Duration based retention period i.e. 172800 seconds (2 days)
       
      .google.protobuf.Duration duration_based_retention = 5;
      Specified by:
      getDurationBasedRetentionOrBuilder in interface RetentionSettingsInfoOrBuilder
    • hasTimestampBasedRetentionTime

      public boolean hasTimestampBasedRetentionTime()
       Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
       
      .google.protobuf.Timestamp timestamp_based_retention_time = 6;
      Specified by:
      hasTimestampBasedRetentionTime in interface RetentionSettingsInfoOrBuilder
      Returns:
      Whether the timestampBasedRetentionTime field is set.
    • getTimestampBasedRetentionTime

      public com.google.protobuf.Timestamp getTimestampBasedRetentionTime()
       Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
       
      .google.protobuf.Timestamp timestamp_based_retention_time = 6;
      Specified by:
      getTimestampBasedRetentionTime in interface RetentionSettingsInfoOrBuilder
      Returns:
      The timestampBasedRetentionTime.
    • getTimestampBasedRetentionTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampBasedRetentionTimeOrBuilder()
       Timestamp based retention period i.e. till 2024-05-01T00:00:00Z
       
      .google.protobuf.Timestamp timestamp_based_retention_time = 6;
      Specified by:
      getTimestampBasedRetentionTimeOrBuilder in interface RetentionSettingsInfoOrBuilder
    • hasSubResource

      public boolean hasSubResource()
       Optional. Sub resource details associated with the backup configuration.
       
      .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSubResource in interface RetentionSettingsInfoOrBuilder
      Returns:
      Whether the subResource field is set.
    • getSubResource

      public SubResource getSubResource()
       Optional. Sub resource details associated with the backup configuration.
       
      .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubResource in interface RetentionSettingsInfoOrBuilder
      Returns:
      The subResource.
    • getSubResourceOrBuilder

      public SubResourceOrBuilder getSubResourceOrBuilder()
       Optional. Sub resource details associated with the backup configuration.
       
      .google.cloud.databasecenter.v1beta.SubResource sub_resource = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubResourceOrBuilder in interface RetentionSettingsInfoOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RetentionSettingsInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RetentionSettingsInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RetentionSettingsInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RetentionSettingsInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RetentionSettingsInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RetentionSettingsInfo.Builder newBuilder()
    • newBuilder

      public static RetentionSettingsInfo.Builder newBuilder(RetentionSettingsInfo prototype)
    • toBuilder

      public RetentionSettingsInfo.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RetentionSettingsInfo.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RetentionSettingsInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RetentionSettingsInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<RetentionSettingsInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RetentionSettingsInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder