Class ContinuousBackupInfo

  • All Implemented Interfaces:
    ContinuousBackupInfoOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ContinuousBackupInfo
    extends com.google.protobuf.GeneratedMessageV3
    implements ContinuousBackupInfoOrBuilder
     ContinuousBackupInfo describes the continuous backup properties of a
     cluster.
     
    Protobuf type google.cloud.alloydb.v1beta.ContinuousBackupInfo
    See Also:
    Serialized Form
    • Field Detail

      • ENCRYPTION_INFO_FIELD_NUMBER

        public static final int ENCRYPTION_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ENABLED_TIME_FIELD_NUMBER

        public static final int ENABLED_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EARLIEST_RESTORABLE_TIME_FIELD_NUMBER

        public static final int EARLIEST_RESTORABLE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasEncryptionInfo

        public boolean hasEncryptionInfo()
         Output only. The encryption information for the WALs and backups required
         for ContinuousBackup.
         
        .google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEncryptionInfo in interface ContinuousBackupInfoOrBuilder
        Returns:
        Whether the encryptionInfo field is set.
      • getEncryptionInfo

        public EncryptionInfo getEncryptionInfo()
         Output only. The encryption information for the WALs and backups required
         for ContinuousBackup.
         
        .google.cloud.alloydb.v1beta.EncryptionInfo encryption_info = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionInfo in interface ContinuousBackupInfoOrBuilder
        Returns:
        The encryptionInfo.
      • hasEnabledTime

        public boolean hasEnabledTime()
         Output only. When ContinuousBackup was most recently enabled. Set to null
         if ContinuousBackup is not enabled.
         
        .google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEnabledTime in interface ContinuousBackupInfoOrBuilder
        Returns:
        Whether the enabledTime field is set.
      • getEnabledTime

        public com.google.protobuf.Timestamp getEnabledTime()
         Output only. When ContinuousBackup was most recently enabled. Set to null
         if ContinuousBackup is not enabled.
         
        .google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEnabledTime in interface ContinuousBackupInfoOrBuilder
        Returns:
        The enabledTime.
      • getEnabledTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEnabledTimeOrBuilder()
         Output only. When ContinuousBackup was most recently enabled. Set to null
         if ContinuousBackup is not enabled.
         
        .google.protobuf.Timestamp enabled_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEnabledTimeOrBuilder in interface ContinuousBackupInfoOrBuilder
      • getScheduleList

        public List<com.google.type.DayOfWeek> getScheduleList()
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getScheduleList in interface ContinuousBackupInfoOrBuilder
        Returns:
        A list containing the schedule.
      • getScheduleCount

        public int getScheduleCount()
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getScheduleCount in interface ContinuousBackupInfoOrBuilder
        Returns:
        The count of schedule.
      • getSchedule

        public com.google.type.DayOfWeek getSchedule​(int index)
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSchedule in interface ContinuousBackupInfoOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The schedule at the given index.
      • getScheduleValueList

        public List<Integer> getScheduleValueList()
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getScheduleValueList in interface ContinuousBackupInfoOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for schedule.
      • getScheduleValue

        public int getScheduleValue​(int index)
         Output only. Days of the week on which a continuous backup is taken. Output
         only field. Ignored if passed into the request.
         
        repeated .google.type.DayOfWeek schedule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getScheduleValue in interface ContinuousBackupInfoOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of schedule at the given index.
      • hasEarliestRestorableTime

        public boolean hasEarliestRestorableTime()
         Output only. The earliest restorable time that can be restored to. Output
         only field.
         
        .google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEarliestRestorableTime in interface ContinuousBackupInfoOrBuilder
        Returns:
        Whether the earliestRestorableTime field is set.
      • getEarliestRestorableTime

        public com.google.protobuf.Timestamp getEarliestRestorableTime()
         Output only. The earliest restorable time that can be restored to. Output
         only field.
         
        .google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEarliestRestorableTime in interface ContinuousBackupInfoOrBuilder
        Returns:
        The earliestRestorableTime.
      • getEarliestRestorableTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEarliestRestorableTimeOrBuilder()
         Output only. The earliest restorable time that can be restored to. Output
         only field.
         
        .google.protobuf.Timestamp earliest_restorable_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEarliestRestorableTimeOrBuilder in interface ContinuousBackupInfoOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 ContinuousBackupInfo parseFrom​(ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        protected ContinuousBackupInfo.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ContinuousBackupInfo> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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