All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.ydb.v1.BackupOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/ydb/v1/backup.proto

package yandex.cloud.api.ydb.v1;

public final class BackupOuterClass {
  private BackupOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface BackupScheduleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.BackupSchedule)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1;
     * @return Whether the dailyBackupSchedule field is set.
     */
    boolean hasDailyBackupSchedule();
    /**
     * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1;
     * @return The dailyBackupSchedule.
     */
    yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule getDailyBackupSchedule();
    /**
     * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1;
     */
    yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupScheduleOrBuilder getDailyBackupScheduleOrBuilder();

    /**
     * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2;
     * @return Whether the weeklyBackupSchedule field is set.
     */
    boolean hasWeeklyBackupSchedule();
    /**
     * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2;
     * @return The weeklyBackupSchedule.
     */
    yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule getWeeklyBackupSchedule();
    /**
     * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2;
     */
    yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupScheduleOrBuilder getWeeklyBackupScheduleOrBuilder();

    /**
     * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4;
     * @return Whether the recurringBackupSchedule field is set.
     */
    boolean hasRecurringBackupSchedule();
    /**
     * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4;
     * @return The recurringBackupSchedule.
     */
    yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule getRecurringBackupSchedule();
    /**
     * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4;
     */
    yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupScheduleOrBuilder getRecurringBackupScheduleOrBuilder();

    /**
     * 
     * output only field: when next backup will be executed
     * using provided schedule.
     * 
* * .google.protobuf.Timestamp next_execute_time = 3; * @return Whether the nextExecuteTime field is set. */ boolean hasNextExecuteTime(); /** *
     * output only field: when next backup will be executed
     * using provided schedule.
     * 
* * .google.protobuf.Timestamp next_execute_time = 3; * @return The nextExecuteTime. */ com.google.protobuf.Timestamp getNextExecuteTime(); /** *
     * output only field: when next backup will be executed
     * using provided schedule.
     * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ com.google.protobuf.TimestampOrBuilder getNextExecuteTimeOrBuilder(); public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.PolicyCase getPolicyCase(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.BackupSchedule} */ public static final class BackupSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.BackupSchedule) BackupScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use BackupSchedule.newBuilder() to construct. private BackupSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BackupSchedule() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BackupSchedule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BackupSchedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.Builder subBuilder = null; if (policyCase_ == 1) { subBuilder = ((yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_).toBuilder(); } policy_ = input.readMessage(yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_); policy_ = subBuilder.buildPartial(); } policyCase_ = 1; break; } case 18: { yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.Builder subBuilder = null; if (policyCase_ == 2) { subBuilder = ((yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_).toBuilder(); } policy_ = input.readMessage(yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_); policy_ = subBuilder.buildPartial(); } policyCase_ = 2; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (nextExecuteTime_ != null) { subBuilder = nextExecuteTime_.toBuilder(); } nextExecuteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nextExecuteTime_); nextExecuteTime_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.Builder subBuilder = null; if (policyCase_ == 4) { subBuilder = ((yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_).toBuilder(); } policy_ = input.readMessage(yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_); policy_ = subBuilder.buildPartial(); } policyCase_ = 4; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.Builder.class); } private int policyCase_ = 0; private java.lang.Object policy_; public enum PolicyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DAILY_BACKUP_SCHEDULE(1), WEEKLY_BACKUP_SCHEDULE(2), RECURRING_BACKUP_SCHEDULE(4), POLICY_NOT_SET(0); private final int value; private PolicyCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PolicyCase valueOf(int value) { return forNumber(value); } public static PolicyCase forNumber(int value) { switch (value) { case 1: return DAILY_BACKUP_SCHEDULE; case 2: return WEEKLY_BACKUP_SCHEDULE; case 4: return RECURRING_BACKUP_SCHEDULE; case 0: return POLICY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PolicyCase getPolicyCase() { return PolicyCase.forNumber( policyCase_); } public static final int DAILY_BACKUP_SCHEDULE_FIELD_NUMBER = 1; /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; * @return Whether the dailyBackupSchedule field is set. */ @java.lang.Override public boolean hasDailyBackupSchedule() { return policyCase_ == 1; } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; * @return The dailyBackupSchedule. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule getDailyBackupSchedule() { if (policyCase_ == 1) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance(); } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupScheduleOrBuilder getDailyBackupScheduleOrBuilder() { if (policyCase_ == 1) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance(); } public static final int WEEKLY_BACKUP_SCHEDULE_FIELD_NUMBER = 2; /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; * @return Whether the weeklyBackupSchedule field is set. */ @java.lang.Override public boolean hasWeeklyBackupSchedule() { return policyCase_ == 2; } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; * @return The weeklyBackupSchedule. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule getWeeklyBackupSchedule() { if (policyCase_ == 2) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance(); } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupScheduleOrBuilder getWeeklyBackupScheduleOrBuilder() { if (policyCase_ == 2) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance(); } public static final int RECURRING_BACKUP_SCHEDULE_FIELD_NUMBER = 4; /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; * @return Whether the recurringBackupSchedule field is set. */ @java.lang.Override public boolean hasRecurringBackupSchedule() { return policyCase_ == 4; } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; * @return The recurringBackupSchedule. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule getRecurringBackupSchedule() { if (policyCase_ == 4) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance(); } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupScheduleOrBuilder getRecurringBackupScheduleOrBuilder() { if (policyCase_ == 4) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance(); } public static final int NEXT_EXECUTE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp nextExecuteTime_; /** *
     * output only field: when next backup will be executed
     * using provided schedule.
     * 
* * .google.protobuf.Timestamp next_execute_time = 3; * @return Whether the nextExecuteTime field is set. */ @java.lang.Override public boolean hasNextExecuteTime() { return nextExecuteTime_ != null; } /** *
     * output only field: when next backup will be executed
     * using provided schedule.
     * 
* * .google.protobuf.Timestamp next_execute_time = 3; * @return The nextExecuteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getNextExecuteTime() { return nextExecuteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextExecuteTime_; } /** *
     * output only field: when next backup will be executed
     * using provided schedule.
     * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getNextExecuteTimeOrBuilder() { return getNextExecuteTime(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (policyCase_ == 1) { output.writeMessage(1, (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_); } if (policyCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_); } if (nextExecuteTime_ != null) { output.writeMessage(3, getNextExecuteTime()); } if (policyCase_ == 4) { output.writeMessage(4, (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (policyCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_); } if (policyCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_); } if (nextExecuteTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getNextExecuteTime()); } if (policyCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule other = (yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule) obj; if (hasNextExecuteTime() != other.hasNextExecuteTime()) return false; if (hasNextExecuteTime()) { if (!getNextExecuteTime() .equals(other.getNextExecuteTime())) return false; } if (!getPolicyCase().equals(other.getPolicyCase())) return false; switch (policyCase_) { case 1: if (!getDailyBackupSchedule() .equals(other.getDailyBackupSchedule())) return false; break; case 2: if (!getWeeklyBackupSchedule() .equals(other.getWeeklyBackupSchedule())) return false; break; case 4: if (!getRecurringBackupSchedule() .equals(other.getRecurringBackupSchedule())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNextExecuteTime()) { hash = (37 * hash) + NEXT_EXECUTE_TIME_FIELD_NUMBER; hash = (53 * hash) + getNextExecuteTime().hashCode(); } switch (policyCase_) { case 1: hash = (37 * hash) + DAILY_BACKUP_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getDailyBackupSchedule().hashCode(); break; case 2: hash = (37 * hash) + WEEKLY_BACKUP_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getWeeklyBackupSchedule().hashCode(); break; case 4: hash = (37 * hash) + RECURRING_BACKUP_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getRecurringBackupSchedule().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ydb.v1.BackupSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.BackupSchedule) yandex.cloud.api.ydb.v1.BackupOuterClass.BackupScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (nextExecuteTimeBuilder_ == null) { nextExecuteTime_ = null; } else { nextExecuteTime_ = null; nextExecuteTimeBuilder_ = null; } policyCase_ = 0; policy_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSchedule_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule build() { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule buildPartial() { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule result = new yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule(this); if (policyCase_ == 1) { if (dailyBackupScheduleBuilder_ == null) { result.policy_ = policy_; } else { result.policy_ = dailyBackupScheduleBuilder_.build(); } } if (policyCase_ == 2) { if (weeklyBackupScheduleBuilder_ == null) { result.policy_ = policy_; } else { result.policy_ = weeklyBackupScheduleBuilder_.build(); } } if (policyCase_ == 4) { if (recurringBackupScheduleBuilder_ == null) { result.policy_ = policy_; } else { result.policy_ = recurringBackupScheduleBuilder_.build(); } } if (nextExecuteTimeBuilder_ == null) { result.nextExecuteTime_ = nextExecuteTime_; } else { result.nextExecuteTime_ = nextExecuteTimeBuilder_.build(); } result.policyCase_ = policyCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule) { return mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule other) { if (other == yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.getDefaultInstance()) return this; if (other.hasNextExecuteTime()) { mergeNextExecuteTime(other.getNextExecuteTime()); } switch (other.getPolicyCase()) { case DAILY_BACKUP_SCHEDULE: { mergeDailyBackupSchedule(other.getDailyBackupSchedule()); break; } case WEEKLY_BACKUP_SCHEDULE: { mergeWeeklyBackupSchedule(other.getWeeklyBackupSchedule()); break; } case RECURRING_BACKUP_SCHEDULE: { mergeRecurringBackupSchedule(other.getRecurringBackupSchedule()); break; } case POLICY_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int policyCase_ = 0; private java.lang.Object policy_; public PolicyCase getPolicyCase() { return PolicyCase.forNumber( policyCase_); } public Builder clearPolicy() { policyCase_ = 0; policy_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupScheduleOrBuilder> dailyBackupScheduleBuilder_; /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; * @return Whether the dailyBackupSchedule field is set. */ @java.lang.Override public boolean hasDailyBackupSchedule() { return policyCase_ == 1; } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; * @return The dailyBackupSchedule. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule getDailyBackupSchedule() { if (dailyBackupScheduleBuilder_ == null) { if (policyCase_ == 1) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance(); } else { if (policyCase_ == 1) { return dailyBackupScheduleBuilder_.getMessage(); } return yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance(); } } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; */ public Builder setDailyBackupSchedule(yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule value) { if (dailyBackupScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { dailyBackupScheduleBuilder_.setMessage(value); } policyCase_ = 1; return this; } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; */ public Builder setDailyBackupSchedule( yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.Builder builderForValue) { if (dailyBackupScheduleBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { dailyBackupScheduleBuilder_.setMessage(builderForValue.build()); } policyCase_ = 1; return this; } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; */ public Builder mergeDailyBackupSchedule(yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule value) { if (dailyBackupScheduleBuilder_ == null) { if (policyCase_ == 1 && policy_ != yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance()) { policy_ = yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.newBuilder((yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 1) { dailyBackupScheduleBuilder_.mergeFrom(value); } dailyBackupScheduleBuilder_.setMessage(value); } policyCase_ = 1; return this; } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; */ public Builder clearDailyBackupSchedule() { if (dailyBackupScheduleBuilder_ == null) { if (policyCase_ == 1) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 1) { policyCase_ = 0; policy_ = null; } dailyBackupScheduleBuilder_.clear(); } return this; } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.Builder getDailyBackupScheduleBuilder() { return getDailyBackupScheduleFieldBuilder().getBuilder(); } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupScheduleOrBuilder getDailyBackupScheduleOrBuilder() { if ((policyCase_ == 1) && (dailyBackupScheduleBuilder_ != null)) { return dailyBackupScheduleBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 1) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance(); } } /** * .yandex.cloud.ydb.v1.DailyBackupSchedule daily_backup_schedule = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupScheduleOrBuilder> getDailyBackupScheduleFieldBuilder() { if (dailyBackupScheduleBuilder_ == null) { if (!(policyCase_ == 1)) { policy_ = yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance(); } dailyBackupScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupScheduleOrBuilder>( (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 1; onChanged();; return dailyBackupScheduleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupScheduleOrBuilder> weeklyBackupScheduleBuilder_; /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; * @return Whether the weeklyBackupSchedule field is set. */ @java.lang.Override public boolean hasWeeklyBackupSchedule() { return policyCase_ == 2; } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; * @return The weeklyBackupSchedule. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule getWeeklyBackupSchedule() { if (weeklyBackupScheduleBuilder_ == null) { if (policyCase_ == 2) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance(); } else { if (policyCase_ == 2) { return weeklyBackupScheduleBuilder_.getMessage(); } return yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance(); } } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; */ public Builder setWeeklyBackupSchedule(yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule value) { if (weeklyBackupScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { weeklyBackupScheduleBuilder_.setMessage(value); } policyCase_ = 2; return this; } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; */ public Builder setWeeklyBackupSchedule( yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.Builder builderForValue) { if (weeklyBackupScheduleBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { weeklyBackupScheduleBuilder_.setMessage(builderForValue.build()); } policyCase_ = 2; return this; } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; */ public Builder mergeWeeklyBackupSchedule(yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule value) { if (weeklyBackupScheduleBuilder_ == null) { if (policyCase_ == 2 && policy_ != yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance()) { policy_ = yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.newBuilder((yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 2) { weeklyBackupScheduleBuilder_.mergeFrom(value); } weeklyBackupScheduleBuilder_.setMessage(value); } policyCase_ = 2; return this; } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; */ public Builder clearWeeklyBackupSchedule() { if (weeklyBackupScheduleBuilder_ == null) { if (policyCase_ == 2) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 2) { policyCase_ = 0; policy_ = null; } weeklyBackupScheduleBuilder_.clear(); } return this; } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.Builder getWeeklyBackupScheduleBuilder() { return getWeeklyBackupScheduleFieldBuilder().getBuilder(); } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupScheduleOrBuilder getWeeklyBackupScheduleOrBuilder() { if ((policyCase_ == 2) && (weeklyBackupScheduleBuilder_ != null)) { return weeklyBackupScheduleBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 2) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance(); } } /** * .yandex.cloud.ydb.v1.WeeklyBackupSchedule weekly_backup_schedule = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupScheduleOrBuilder> getWeeklyBackupScheduleFieldBuilder() { if (weeklyBackupScheduleBuilder_ == null) { if (!(policyCase_ == 2)) { policy_ = yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance(); } weeklyBackupScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupScheduleOrBuilder>( (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 2; onChanged();; return weeklyBackupScheduleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupScheduleOrBuilder> recurringBackupScheduleBuilder_; /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; * @return Whether the recurringBackupSchedule field is set. */ @java.lang.Override public boolean hasRecurringBackupSchedule() { return policyCase_ == 4; } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; * @return The recurringBackupSchedule. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule getRecurringBackupSchedule() { if (recurringBackupScheduleBuilder_ == null) { if (policyCase_ == 4) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance(); } else { if (policyCase_ == 4) { return recurringBackupScheduleBuilder_.getMessage(); } return yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance(); } } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; */ public Builder setRecurringBackupSchedule(yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule value) { if (recurringBackupScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { recurringBackupScheduleBuilder_.setMessage(value); } policyCase_ = 4; return this; } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; */ public Builder setRecurringBackupSchedule( yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.Builder builderForValue) { if (recurringBackupScheduleBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { recurringBackupScheduleBuilder_.setMessage(builderForValue.build()); } policyCase_ = 4; return this; } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; */ public Builder mergeRecurringBackupSchedule(yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule value) { if (recurringBackupScheduleBuilder_ == null) { if (policyCase_ == 4 && policy_ != yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance()) { policy_ = yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.newBuilder((yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_) .mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { if (policyCase_ == 4) { recurringBackupScheduleBuilder_.mergeFrom(value); } recurringBackupScheduleBuilder_.setMessage(value); } policyCase_ = 4; return this; } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; */ public Builder clearRecurringBackupSchedule() { if (recurringBackupScheduleBuilder_ == null) { if (policyCase_ == 4) { policyCase_ = 0; policy_ = null; onChanged(); } } else { if (policyCase_ == 4) { policyCase_ = 0; policy_ = null; } recurringBackupScheduleBuilder_.clear(); } return this; } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.Builder getRecurringBackupScheduleBuilder() { return getRecurringBackupScheduleFieldBuilder().getBuilder(); } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupScheduleOrBuilder getRecurringBackupScheduleOrBuilder() { if ((policyCase_ == 4) && (recurringBackupScheduleBuilder_ != null)) { return recurringBackupScheduleBuilder_.getMessageOrBuilder(); } else { if (policyCase_ == 4) { return (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_; } return yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance(); } } /** * .yandex.cloud.ydb.v1.RecurringBackupSchedule recurring_backup_schedule = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupScheduleOrBuilder> getRecurringBackupScheduleFieldBuilder() { if (recurringBackupScheduleBuilder_ == null) { if (!(policyCase_ == 4)) { policy_ = yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance(); } recurringBackupScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupScheduleOrBuilder>( (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) policy_, getParentForChildren(), isClean()); policy_ = null; } policyCase_ = 4; onChanged();; return recurringBackupScheduleBuilder_; } private com.google.protobuf.Timestamp nextExecuteTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> nextExecuteTimeBuilder_; /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; * @return Whether the nextExecuteTime field is set. */ public boolean hasNextExecuteTime() { return nextExecuteTimeBuilder_ != null || nextExecuteTime_ != null; } /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; * @return The nextExecuteTime. */ public com.google.protobuf.Timestamp getNextExecuteTime() { if (nextExecuteTimeBuilder_ == null) { return nextExecuteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextExecuteTime_; } else { return nextExecuteTimeBuilder_.getMessage(); } } /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ public Builder setNextExecuteTime(com.google.protobuf.Timestamp value) { if (nextExecuteTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nextExecuteTime_ = value; onChanged(); } else { nextExecuteTimeBuilder_.setMessage(value); } return this; } /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ public Builder setNextExecuteTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (nextExecuteTimeBuilder_ == null) { nextExecuteTime_ = builderForValue.build(); onChanged(); } else { nextExecuteTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ public Builder mergeNextExecuteTime(com.google.protobuf.Timestamp value) { if (nextExecuteTimeBuilder_ == null) { if (nextExecuteTime_ != null) { nextExecuteTime_ = com.google.protobuf.Timestamp.newBuilder(nextExecuteTime_).mergeFrom(value).buildPartial(); } else { nextExecuteTime_ = value; } onChanged(); } else { nextExecuteTimeBuilder_.mergeFrom(value); } return this; } /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ public Builder clearNextExecuteTime() { if (nextExecuteTimeBuilder_ == null) { nextExecuteTime_ = null; onChanged(); } else { nextExecuteTime_ = null; nextExecuteTimeBuilder_ = null; } return this; } /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ public com.google.protobuf.Timestamp.Builder getNextExecuteTimeBuilder() { onChanged(); return getNextExecuteTimeFieldBuilder().getBuilder(); } /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ public com.google.protobuf.TimestampOrBuilder getNextExecuteTimeOrBuilder() { if (nextExecuteTimeBuilder_ != null) { return nextExecuteTimeBuilder_.getMessageOrBuilder(); } else { return nextExecuteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextExecuteTime_; } } /** *
       * output only field: when next backup will be executed
       * using provided schedule.
       * 
* * .google.protobuf.Timestamp next_execute_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getNextExecuteTimeFieldBuilder() { if (nextExecuteTimeBuilder_ == null) { nextExecuteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getNextExecuteTime(), getParentForChildren(), isClean()); nextExecuteTime_ = null; } return nextExecuteTimeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.BackupSchedule) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.BackupSchedule) private static final yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule(); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BackupSchedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BackupSchedule(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RecurringBackupScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.RecurringBackupSchedule) com.google.protobuf.MessageOrBuilder { /** *
     * Timestamp of the first recurrence.
     * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** *
     * Timestamp of the first recurrence.
     * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** *
     * Timestamp of the first recurrence.
     * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** *
     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
     * this backup reccurs.
     * The FREQ values of MINUTELY, and SECONDLY are not supported.
     * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @return The recurrence. */ java.lang.String getRecurrence(); /** *
     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
     * this backup reccurs.
     * The FREQ values of MINUTELY, and SECONDLY are not supported.
     * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @return The bytes for recurrence. */ com.google.protobuf.ByteString getRecurrenceBytes(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.RecurringBackupSchedule} */ public static final class RecurringBackupSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.RecurringBackupSchedule) RecurringBackupScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use RecurringBackupSchedule.newBuilder() to construct. private RecurringBackupSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RecurringBackupSchedule() { recurrence_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RecurringBackupSchedule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecurringBackupSchedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (startTime_ != null) { subBuilder = startTime_.toBuilder(); } startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startTime_); startTime_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); recurrence_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** *
     * Timestamp of the first recurrence.
     * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return startTime_ != null; } /** *
     * Timestamp of the first recurrence.
     * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** *
     * Timestamp of the first recurrence.
     * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); } public static final int RECURRENCE_FIELD_NUMBER = 2; private volatile java.lang.Object recurrence_; /** *
     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
     * this backup reccurs.
     * The FREQ values of MINUTELY, and SECONDLY are not supported.
     * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @return The recurrence. */ @java.lang.Override public java.lang.String getRecurrence() { java.lang.Object ref = recurrence_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recurrence_ = s; return s; } } /** *
     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
     * this backup reccurs.
     * The FREQ values of MINUTELY, and SECONDLY are not supported.
     * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @return The bytes for recurrence. */ @java.lang.Override public com.google.protobuf.ByteString getRecurrenceBytes() { java.lang.Object ref = recurrence_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); recurrence_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStartTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recurrence_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule other = (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime() .equals(other.getStartTime())) return false; } if (!getRecurrence() .equals(other.getRecurrence())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } hash = (37 * hash) + RECURRENCE_FIELD_NUMBER; hash = (53 * hash) + getRecurrence().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ydb.v1.RecurringBackupSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.RecurringBackupSchedule) yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (startTimeBuilder_ == null) { startTime_ = null; } else { startTime_ = null; startTimeBuilder_ = null; } recurrence_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule build() { yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule buildPartial() { yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule result = new yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } result.recurrence_ = recurrence_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) { return mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule other) { if (other == yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule.getDefaultInstance()) return this; if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (!other.getRecurrence().isEmpty()) { recurrence_ = other.recurrence_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; onChanged(); } else { startTimeBuilder_.setMessage(value); } return this; } /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ public Builder setStartTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } onChanged(); } else { startTimeBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTime_ = null; startTimeBuilder_ = null; } return this; } /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** *
       * Timestamp of the first recurrence.
       * 
* * .google.protobuf.Timestamp start_time = 1 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private java.lang.Object recurrence_ = ""; /** *
       * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       * this backup reccurs.
       * The FREQ values of MINUTELY, and SECONDLY are not supported.
       * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @return The recurrence. */ public java.lang.String getRecurrence() { java.lang.Object ref = recurrence_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recurrence_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       * this backup reccurs.
       * The FREQ values of MINUTELY, and SECONDLY are not supported.
       * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @return The bytes for recurrence. */ public com.google.protobuf.ByteString getRecurrenceBytes() { java.lang.Object ref = recurrence_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); recurrence_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       * this backup reccurs.
       * The FREQ values of MINUTELY, and SECONDLY are not supported.
       * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @param value The recurrence to set. * @return This builder for chaining. */ public Builder setRecurrence( java.lang.String value) { if (value == null) { throw new NullPointerException(); } recurrence_ = value; onChanged(); return this; } /** *
       * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       * this backup reccurs.
       * The FREQ values of MINUTELY, and SECONDLY are not supported.
       * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearRecurrence() { recurrence_ = getDefaultInstance().getRecurrence(); onChanged(); return this; } /** *
       * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
       * this backup reccurs.
       * The FREQ values of MINUTELY, and SECONDLY are not supported.
       * 
* * string recurrence = 2 [(.yandex.cloud.required) = true]; * @param value The bytes for recurrence to set. * @return This builder for chaining. */ public Builder setRecurrenceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recurrence_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.RecurringBackupSchedule) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.RecurringBackupSchedule) private static final yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule(); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RecurringBackupSchedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecurringBackupSchedule(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.RecurringBackupSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DaysOfWeekBackupScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule) com.google.protobuf.MessageOrBuilder { /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return A list containing the days. */ java.util.List getDaysList(); /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return The count of days. */ int getDaysCount(); /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param index The index of the element to return. * @return The days at the given index. */ com.google.type.DayOfWeek getDays(int index); /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return A list containing the enum numeric values on the wire for days. */ java.util.List getDaysValueList(); /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param index The index of the value to return. * @return The enum numeric value on the wire of days at the given index. */ int getDaysValue(int index); /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; * @return Whether the executeTime field is set. */ boolean hasExecuteTime(); /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; * @return The executeTime. */ com.google.type.TimeOfDay getExecuteTime(); /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ com.google.type.TimeOfDayOrBuilder getExecuteTimeOrBuilder(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule} */ public static final class DaysOfWeekBackupSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule) DaysOfWeekBackupScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use DaysOfWeekBackupSchedule.newBuilder() to construct. private DaysOfWeekBackupSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DaysOfWeekBackupSchedule() { days_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DaysOfWeekBackupSchedule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DaysOfWeekBackupSchedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { days_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } days_.add(rawValue); break; } case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { days_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } days_.add(rawValue); } input.popLimit(oldLimit); break; } case 18: { com.google.type.TimeOfDay.Builder subBuilder = null; if (executeTime_ != null) { subBuilder = executeTime_.toBuilder(); } executeTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executeTime_); executeTime_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { days_ = java.util.Collections.unmodifiableList(days_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder.class); } public static final int DAYS_FIELD_NUMBER = 1; private java.util.List days_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.type.DayOfWeek> days_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.type.DayOfWeek>() { public com.google.type.DayOfWeek convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.google.type.DayOfWeek result = com.google.type.DayOfWeek.valueOf(from); return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; } }; /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return A list containing the days. */ @java.lang.Override public java.util.List getDaysList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.type.DayOfWeek>(days_, days_converter_); } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return The count of days. */ @java.lang.Override public int getDaysCount() { return days_.size(); } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param index The index of the element to return. * @return The days at the given index. */ @java.lang.Override public com.google.type.DayOfWeek getDays(int index) { return days_converter_.convert(days_.get(index)); } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return A list containing the enum numeric values on the wire for days. */ @java.lang.Override public java.util.List getDaysValueList() { return days_; } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param index The index of the value to return. * @return The enum numeric value on the wire of days at the given index. */ @java.lang.Override public int getDaysValue(int index) { return days_.get(index); } private int daysMemoizedSerializedSize; public static final int EXECUTE_TIME_FIELD_NUMBER = 2; private com.google.type.TimeOfDay executeTime_; /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; * @return Whether the executeTime field is set. */ @java.lang.Override public boolean hasExecuteTime() { return executeTime_ != null; } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; * @return The executeTime. */ @java.lang.Override public com.google.type.TimeOfDay getExecuteTime() { return executeTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : executeTime_; } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ @java.lang.Override public com.google.type.TimeOfDayOrBuilder getExecuteTimeOrBuilder() { return getExecuteTime(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getDaysList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(daysMemoizedSerializedSize); } for (int i = 0; i < days_.size(); i++) { output.writeEnumNoTag(days_.get(i)); } if (executeTime_ != null) { output.writeMessage(2, getExecuteTime()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < days_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(days_.get(i)); } size += dataSize; if (!getDaysList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }daysMemoizedSerializedSize = dataSize; } if (executeTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExecuteTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule other = (yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule) obj; if (!days_.equals(other.days_)) return false; if (hasExecuteTime() != other.hasExecuteTime()) return false; if (hasExecuteTime()) { if (!getExecuteTime() .equals(other.getExecuteTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDaysCount() > 0) { hash = (37 * hash) + DAYS_FIELD_NUMBER; hash = (53 * hash) + days_.hashCode(); } if (hasExecuteTime()) { hash = (37 * hash) + EXECUTE_TIME_FIELD_NUMBER; hash = (53 * hash) + getExecuteTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule) yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (executeTimeBuilder_ == null) { executeTime_ = null; } else { executeTime_ = null; executeTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule build() { yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule buildPartial() { yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule result = new yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { days_ = java.util.Collections.unmodifiableList(days_); bitField0_ = (bitField0_ & ~0x00000001); } result.days_ = days_; if (executeTimeBuilder_ == null) { result.executeTime_ = executeTime_; } else { result.executeTime_ = executeTimeBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule) { return mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule other) { if (other == yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.getDefaultInstance()) return this; if (!other.days_.isEmpty()) { if (days_.isEmpty()) { days_ = other.days_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDaysIsMutable(); days_.addAll(other.days_); } onChanged(); } if (other.hasExecuteTime()) { mergeExecuteTime(other.getExecuteTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List days_ = java.util.Collections.emptyList(); private void ensureDaysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { days_ = new java.util.ArrayList(days_); bitField0_ |= 0x00000001; } } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return A list containing the days. */ public java.util.List getDaysList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.type.DayOfWeek>(days_, days_converter_); } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return The count of days. */ public int getDaysCount() { return days_.size(); } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param index The index of the element to return. * @return The days at the given index. */ public com.google.type.DayOfWeek getDays(int index) { return days_converter_.convert(days_.get(index)); } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param index The index to set the value at. * @param value The days to set. * @return This builder for chaining. */ public Builder setDays( int index, com.google.type.DayOfWeek value) { if (value == null) { throw new NullPointerException(); } ensureDaysIsMutable(); days_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param value The days to add. * @return This builder for chaining. */ public Builder addDays(com.google.type.DayOfWeek value) { if (value == null) { throw new NullPointerException(); } ensureDaysIsMutable(); days_.add(value.getNumber()); onChanged(); return this; } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param values The days to add. * @return This builder for chaining. */ public Builder addAllDays( java.lang.Iterable values) { ensureDaysIsMutable(); for (com.google.type.DayOfWeek value : values) { days_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return This builder for chaining. */ public Builder clearDays() { days_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @return A list containing the enum numeric values on the wire for days. */ public java.util.List getDaysValueList() { return java.util.Collections.unmodifiableList(days_); } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param index The index of the value to return. * @return The enum numeric value on the wire of days at the given index. */ public int getDaysValue(int index) { return days_.get(index); } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param index The index of the value to return. * @return The enum numeric value on the wire of days at the given index. * @return This builder for chaining. */ public Builder setDaysValue( int index, int value) { ensureDaysIsMutable(); days_.set(index, value); onChanged(); return this; } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param value The enum numeric value on the wire for days to add. * @return This builder for chaining. */ public Builder addDaysValue(int value) { ensureDaysIsMutable(); days_.add(value); onChanged(); return this; } /** * repeated .google.type.DayOfWeek days = 1 [(.yandex.cloud.size) = "1-7"]; * @param values The enum numeric values on the wire for days to add. * @return This builder for chaining. */ public Builder addAllDaysValue( java.lang.Iterable values) { ensureDaysIsMutable(); for (int value : values) { days_.add(value); } onChanged(); return this; } private com.google.type.TimeOfDay executeTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> executeTimeBuilder_; /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; * @return Whether the executeTime field is set. */ public boolean hasExecuteTime() { return executeTimeBuilder_ != null || executeTime_ != null; } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; * @return The executeTime. */ public com.google.type.TimeOfDay getExecuteTime() { if (executeTimeBuilder_ == null) { return executeTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : executeTime_; } else { return executeTimeBuilder_.getMessage(); } } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ public Builder setExecuteTime(com.google.type.TimeOfDay value) { if (executeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executeTime_ = value; onChanged(); } else { executeTimeBuilder_.setMessage(value); } return this; } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ public Builder setExecuteTime( com.google.type.TimeOfDay.Builder builderForValue) { if (executeTimeBuilder_ == null) { executeTime_ = builderForValue.build(); onChanged(); } else { executeTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ public Builder mergeExecuteTime(com.google.type.TimeOfDay value) { if (executeTimeBuilder_ == null) { if (executeTime_ != null) { executeTime_ = com.google.type.TimeOfDay.newBuilder(executeTime_).mergeFrom(value).buildPartial(); } else { executeTime_ = value; } onChanged(); } else { executeTimeBuilder_.mergeFrom(value); } return this; } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ public Builder clearExecuteTime() { if (executeTimeBuilder_ == null) { executeTime_ = null; onChanged(); } else { executeTime_ = null; executeTimeBuilder_ = null; } return this; } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ public com.google.type.TimeOfDay.Builder getExecuteTimeBuilder() { onChanged(); return getExecuteTimeFieldBuilder().getBuilder(); } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ public com.google.type.TimeOfDayOrBuilder getExecuteTimeOrBuilder() { if (executeTimeBuilder_ != null) { return executeTimeBuilder_.getMessageOrBuilder(); } else { return executeTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : executeTime_; } } /** * .google.type.TimeOfDay execute_time = 2 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> getExecuteTimeFieldBuilder() { if (executeTimeBuilder_ == null) { executeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>( getExecuteTime(), getParentForChildren(), isClean()); executeTime_ = null; } return executeTimeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule) private static final yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule(); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DaysOfWeekBackupSchedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DaysOfWeekBackupSchedule(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WeeklyBackupScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.WeeklyBackupSchedule) com.google.protobuf.MessageOrBuilder { /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ java.util.List getDaysOfWeekList(); /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule getDaysOfWeek(int index); /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ int getDaysOfWeekCount(); /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ java.util.List getDaysOfWeekOrBuilderList(); /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupScheduleOrBuilder getDaysOfWeekOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.ydb.v1.WeeklyBackupSchedule} */ public static final class WeeklyBackupSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.WeeklyBackupSchedule) WeeklyBackupScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use WeeklyBackupSchedule.newBuilder() to construct. private WeeklyBackupSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WeeklyBackupSchedule() { daysOfWeek_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WeeklyBackupSchedule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WeeklyBackupSchedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { daysOfWeek_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } daysOfWeek_.add( input.readMessage(yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { daysOfWeek_ = java.util.Collections.unmodifiableList(daysOfWeek_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.Builder.class); } public static final int DAYS_OF_WEEK_FIELD_NUMBER = 1; private java.util.List daysOfWeek_; /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ @java.lang.Override public java.util.List getDaysOfWeekList() { return daysOfWeek_; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ @java.lang.Override public java.util.List getDaysOfWeekOrBuilderList() { return daysOfWeek_; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ @java.lang.Override public int getDaysOfWeekCount() { return daysOfWeek_.size(); } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule getDaysOfWeek(int index) { return daysOfWeek_.get(index); } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupScheduleOrBuilder getDaysOfWeekOrBuilder( int index) { return daysOfWeek_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < daysOfWeek_.size(); i++) { output.writeMessage(1, daysOfWeek_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < daysOfWeek_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, daysOfWeek_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule other = (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) obj; if (!getDaysOfWeekList() .equals(other.getDaysOfWeekList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDaysOfWeekCount() > 0) { hash = (37 * hash) + DAYS_OF_WEEK_FIELD_NUMBER; hash = (53 * hash) + getDaysOfWeekList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ydb.v1.WeeklyBackupSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.WeeklyBackupSchedule) yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDaysOfWeekFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (daysOfWeekBuilder_ == null) { daysOfWeek_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { daysOfWeekBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule build() { yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule buildPartial() { yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule result = new yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule(this); int from_bitField0_ = bitField0_; if (daysOfWeekBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { daysOfWeek_ = java.util.Collections.unmodifiableList(daysOfWeek_); bitField0_ = (bitField0_ & ~0x00000001); } result.daysOfWeek_ = daysOfWeek_; } else { result.daysOfWeek_ = daysOfWeekBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) { return mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule other) { if (other == yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule.getDefaultInstance()) return this; if (daysOfWeekBuilder_ == null) { if (!other.daysOfWeek_.isEmpty()) { if (daysOfWeek_.isEmpty()) { daysOfWeek_ = other.daysOfWeek_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDaysOfWeekIsMutable(); daysOfWeek_.addAll(other.daysOfWeek_); } onChanged(); } } else { if (!other.daysOfWeek_.isEmpty()) { if (daysOfWeekBuilder_.isEmpty()) { daysOfWeekBuilder_.dispose(); daysOfWeekBuilder_ = null; daysOfWeek_ = other.daysOfWeek_; bitField0_ = (bitField0_ & ~0x00000001); daysOfWeekBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDaysOfWeekFieldBuilder() : null; } else { daysOfWeekBuilder_.addAllMessages(other.daysOfWeek_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List daysOfWeek_ = java.util.Collections.emptyList(); private void ensureDaysOfWeekIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { daysOfWeek_ = new java.util.ArrayList(daysOfWeek_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupScheduleOrBuilder> daysOfWeekBuilder_; /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public java.util.List getDaysOfWeekList() { if (daysOfWeekBuilder_ == null) { return java.util.Collections.unmodifiableList(daysOfWeek_); } else { return daysOfWeekBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public int getDaysOfWeekCount() { if (daysOfWeekBuilder_ == null) { return daysOfWeek_.size(); } else { return daysOfWeekBuilder_.getCount(); } } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule getDaysOfWeek(int index) { if (daysOfWeekBuilder_ == null) { return daysOfWeek_.get(index); } else { return daysOfWeekBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder setDaysOfWeek( int index, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule value) { if (daysOfWeekBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDaysOfWeekIsMutable(); daysOfWeek_.set(index, value); onChanged(); } else { daysOfWeekBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder setDaysOfWeek( int index, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder builderForValue) { if (daysOfWeekBuilder_ == null) { ensureDaysOfWeekIsMutable(); daysOfWeek_.set(index, builderForValue.build()); onChanged(); } else { daysOfWeekBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder addDaysOfWeek(yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule value) { if (daysOfWeekBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDaysOfWeekIsMutable(); daysOfWeek_.add(value); onChanged(); } else { daysOfWeekBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder addDaysOfWeek( int index, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule value) { if (daysOfWeekBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDaysOfWeekIsMutable(); daysOfWeek_.add(index, value); onChanged(); } else { daysOfWeekBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder addDaysOfWeek( yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder builderForValue) { if (daysOfWeekBuilder_ == null) { ensureDaysOfWeekIsMutable(); daysOfWeek_.add(builderForValue.build()); onChanged(); } else { daysOfWeekBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder addDaysOfWeek( int index, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder builderForValue) { if (daysOfWeekBuilder_ == null) { ensureDaysOfWeekIsMutable(); daysOfWeek_.add(index, builderForValue.build()); onChanged(); } else { daysOfWeekBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder addAllDaysOfWeek( java.lang.Iterable values) { if (daysOfWeekBuilder_ == null) { ensureDaysOfWeekIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, daysOfWeek_); onChanged(); } else { daysOfWeekBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder clearDaysOfWeek() { if (daysOfWeekBuilder_ == null) { daysOfWeek_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { daysOfWeekBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public Builder removeDaysOfWeek(int index) { if (daysOfWeekBuilder_ == null) { ensureDaysOfWeekIsMutable(); daysOfWeek_.remove(index); onChanged(); } else { daysOfWeekBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder getDaysOfWeekBuilder( int index) { return getDaysOfWeekFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupScheduleOrBuilder getDaysOfWeekOrBuilder( int index) { if (daysOfWeekBuilder_ == null) { return daysOfWeek_.get(index); } else { return daysOfWeekBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public java.util.List getDaysOfWeekOrBuilderList() { if (daysOfWeekBuilder_ != null) { return daysOfWeekBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(daysOfWeek_); } } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder addDaysOfWeekBuilder() { return getDaysOfWeekFieldBuilder().addBuilder( yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.getDefaultInstance()); } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder addDaysOfWeekBuilder( int index) { return getDaysOfWeekFieldBuilder().addBuilder( index, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.getDefaultInstance()); } /** * repeated .yandex.cloud.ydb.v1.DaysOfWeekBackupSchedule days_of_week = 1 [(.yandex.cloud.size) = "1-7"]; */ public java.util.List getDaysOfWeekBuilderList() { return getDaysOfWeekFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupScheduleOrBuilder> getDaysOfWeekFieldBuilder() { if (daysOfWeekBuilder_ == null) { daysOfWeekBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.DaysOfWeekBackupScheduleOrBuilder>( daysOfWeek_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); daysOfWeek_ = null; } return daysOfWeekBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.WeeklyBackupSchedule) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.WeeklyBackupSchedule) private static final yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule(); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WeeklyBackupSchedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WeeklyBackupSchedule(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.WeeklyBackupSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DailyBackupScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.DailyBackupSchedule) com.google.protobuf.MessageOrBuilder { /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; * @return Whether the executeTime field is set. */ boolean hasExecuteTime(); /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; * @return The executeTime. */ com.google.type.TimeOfDay getExecuteTime(); /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ com.google.type.TimeOfDayOrBuilder getExecuteTimeOrBuilder(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.DailyBackupSchedule} */ public static final class DailyBackupSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.DailyBackupSchedule) DailyBackupScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use DailyBackupSchedule.newBuilder() to construct. private DailyBackupSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DailyBackupSchedule() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DailyBackupSchedule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DailyBackupSchedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.type.TimeOfDay.Builder subBuilder = null; if (executeTime_ != null) { subBuilder = executeTime_.toBuilder(); } executeTime_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executeTime_); executeTime_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.Builder.class); } public static final int EXECUTE_TIME_FIELD_NUMBER = 1; private com.google.type.TimeOfDay executeTime_; /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; * @return Whether the executeTime field is set. */ @java.lang.Override public boolean hasExecuteTime() { return executeTime_ != null; } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; * @return The executeTime. */ @java.lang.Override public com.google.type.TimeOfDay getExecuteTime() { return executeTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : executeTime_; } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ @java.lang.Override public com.google.type.TimeOfDayOrBuilder getExecuteTimeOrBuilder() { return getExecuteTime(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (executeTime_ != null) { output.writeMessage(1, getExecuteTime()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (executeTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getExecuteTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule other = (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) obj; if (hasExecuteTime() != other.hasExecuteTime()) return false; if (hasExecuteTime()) { if (!getExecuteTime() .equals(other.getExecuteTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasExecuteTime()) { hash = (37 * hash) + EXECUTE_TIME_FIELD_NUMBER; hash = (53 * hash) + getExecuteTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ydb.v1.DailyBackupSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.DailyBackupSchedule) yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.class, yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (executeTimeBuilder_ == null) { executeTime_ = null; } else { executeTime_ = null; executeTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule build() { yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule buildPartial() { yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule result = new yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule(this); if (executeTimeBuilder_ == null) { result.executeTime_ = executeTime_; } else { result.executeTime_ = executeTimeBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) { return mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule other) { if (other == yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule.getDefaultInstance()) return this; if (other.hasExecuteTime()) { mergeExecuteTime(other.getExecuteTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.type.TimeOfDay executeTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> executeTimeBuilder_; /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; * @return Whether the executeTime field is set. */ public boolean hasExecuteTime() { return executeTimeBuilder_ != null || executeTime_ != null; } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; * @return The executeTime. */ public com.google.type.TimeOfDay getExecuteTime() { if (executeTimeBuilder_ == null) { return executeTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : executeTime_; } else { return executeTimeBuilder_.getMessage(); } } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ public Builder setExecuteTime(com.google.type.TimeOfDay value) { if (executeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executeTime_ = value; onChanged(); } else { executeTimeBuilder_.setMessage(value); } return this; } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ public Builder setExecuteTime( com.google.type.TimeOfDay.Builder builderForValue) { if (executeTimeBuilder_ == null) { executeTime_ = builderForValue.build(); onChanged(); } else { executeTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ public Builder mergeExecuteTime(com.google.type.TimeOfDay value) { if (executeTimeBuilder_ == null) { if (executeTime_ != null) { executeTime_ = com.google.type.TimeOfDay.newBuilder(executeTime_).mergeFrom(value).buildPartial(); } else { executeTime_ = value; } onChanged(); } else { executeTimeBuilder_.mergeFrom(value); } return this; } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ public Builder clearExecuteTime() { if (executeTimeBuilder_ == null) { executeTime_ = null; onChanged(); } else { executeTime_ = null; executeTimeBuilder_ = null; } return this; } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ public com.google.type.TimeOfDay.Builder getExecuteTimeBuilder() { onChanged(); return getExecuteTimeFieldBuilder().getBuilder(); } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ public com.google.type.TimeOfDayOrBuilder getExecuteTimeOrBuilder() { if (executeTimeBuilder_ != null) { return executeTimeBuilder_.getMessageOrBuilder(); } else { return executeTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : executeTime_; } } /** * .google.type.TimeOfDay execute_time = 1 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> getExecuteTimeFieldBuilder() { if (executeTimeBuilder_ == null) { executeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>( getExecuteTime(), getParentForChildren(), isClean()); executeTime_ = null; } return executeTimeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.DailyBackupSchedule) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.DailyBackupSchedule) private static final yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule(); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DailyBackupSchedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DailyBackupSchedule(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.DailyBackupSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BackupSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.BackupSettings) com.google.protobuf.MessageOrBuilder { /** *
     * name of backup settings
     * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @return The name. */ java.lang.String getName(); /** *
     * name of backup settings
     * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * human readable description.
     * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * human readable description.
     * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * provide schedule. if empty, backup will be disabled.
     * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; * @return Whether the backupSchedule field is set. */ boolean hasBackupSchedule(); /** *
     * provide schedule. if empty, backup will be disabled.
     * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; * @return The backupSchedule. */ yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule getBackupSchedule(); /** *
     * provide schedule. if empty, backup will be disabled.
     * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ yandex.cloud.api.ydb.v1.BackupOuterClass.BackupScheduleOrBuilder getBackupScheduleOrBuilder(); /** *
     * provide time to live of backup.
     * 
* * .google.protobuf.Duration backup_time_to_live = 4; * @return Whether the backupTimeToLive field is set. */ boolean hasBackupTimeToLive(); /** *
     * provide time to live of backup.
     * 
* * .google.protobuf.Duration backup_time_to_live = 4; * @return The backupTimeToLive. */ com.google.protobuf.Duration getBackupTimeToLive(); /** *
     * provide time to live of backup.
     * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ com.google.protobuf.DurationOrBuilder getBackupTimeToLiveOrBuilder(); /** *
     * provide a list of source paths. Each path can be directory, table or even database itself.
     * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
     * By default, backup will be created for full database.
     * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @return A list containing the sourcePaths. */ java.util.List getSourcePathsList(); /** *
     * provide a list of source paths. Each path can be directory, table or even database itself.
     * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
     * By default, backup will be created for full database.
     * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @return The count of sourcePaths. */ int getSourcePathsCount(); /** *
     * provide a list of source paths. Each path can be directory, table or even database itself.
     * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
     * By default, backup will be created for full database.
     * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the element to return. * @return The sourcePaths at the given index. */ java.lang.String getSourcePaths(int index); /** *
     * provide a list of source paths. Each path can be directory, table or even database itself.
     * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
     * By default, backup will be created for full database.
     * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the value to return. * @return The bytes of the sourcePaths at the given index. */ com.google.protobuf.ByteString getSourcePathsBytes(int index); /** *
     * provide a list of paths to exclude from backup.
     * Each path is a directory, table, or database.
     * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
     * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @return A list containing the sourcePathsToExclude. */ java.util.List getSourcePathsToExcludeList(); /** *
     * provide a list of paths to exclude from backup.
     * Each path is a directory, table, or database.
     * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
     * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @return The count of sourcePathsToExclude. */ int getSourcePathsToExcludeCount(); /** *
     * provide a list of paths to exclude from backup.
     * Each path is a directory, table, or database.
     * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
     * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the element to return. * @return The sourcePathsToExclude at the given index. */ java.lang.String getSourcePathsToExclude(int index); /** *
     * provide a list of paths to exclude from backup.
     * Each path is a directory, table, or database.
     * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
     * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the value to return. * @return The bytes of the sourcePathsToExclude at the given index. */ com.google.protobuf.ByteString getSourcePathsToExcludeBytes(int index); /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @return The type. */ yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type getType(); /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @return The enum numeric value on the wire for storageClass. */ int getStorageClassValue(); /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @return The storageClass. */ yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass getStorageClass(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.BackupSettings} */ public static final class BackupSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.BackupSettings) BackupSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use BackupSettings.newBuilder() to construct. private BackupSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BackupSettings() { name_ = ""; description_ = ""; sourcePaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; sourcePathsToExclude_ = com.google.protobuf.LazyStringArrayList.EMPTY; type_ = 0; storageClass_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BackupSettings(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BackupSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.Builder subBuilder = null; if (backupSchedule_ != null) { subBuilder = backupSchedule_.toBuilder(); } backupSchedule_ = input.readMessage(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(backupSchedule_); backupSchedule_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Duration.Builder subBuilder = null; if (backupTimeToLive_ != null) { subBuilder = backupTimeToLive_.toBuilder(); } backupTimeToLive_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(backupTimeToLive_); backupTimeToLive_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { sourcePaths_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } sourcePaths_.add(s); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { sourcePathsToExclude_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } sourcePathsToExclude_.add(s); break; } case 56: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 64: { int rawValue = input.readEnum(); storageClass_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sourcePaths_ = sourcePaths_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { sourcePathsToExclude_ = sourcePathsToExclude_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.class, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder.class); } /** * Protobuf enum {@code yandex.cloud.ydb.v1.BackupSettings.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * SYSTEM = 1; */ SYSTEM(1), /** * USER = 2; */ USER(2), UNRECOGNIZED(-1), ; /** * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** * SYSTEM = 1; */ public static final int SYSTEM_VALUE = 1; /** * USER = 2; */ public static final int USER_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; case 1: return SYSTEM; case 2: return USER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.ydb.v1.BackupSettings.Type) } /** * Protobuf enum {@code yandex.cloud.ydb.v1.BackupSettings.StorageClass} */ public enum StorageClass implements com.google.protobuf.ProtocolMessageEnum { /** * STORAGE_CLASS_UNSPECIFIED = 0; */ STORAGE_CLASS_UNSPECIFIED(0), /** * STANDARD = 1; */ STANDARD(1), /** * REDUCED_REDUNDANCY = 2; */ REDUCED_REDUNDANCY(2), /** * STANDARD_IA = 3; */ STANDARD_IA(3), /** * ONEZONE_IA = 4; */ ONEZONE_IA(4), /** * INTELLIGENT_TIERING = 5; */ INTELLIGENT_TIERING(5), /** * GLACIER = 6; */ GLACIER(6), /** * DEEP_ARCHIVE = 7; */ DEEP_ARCHIVE(7), /** * OUTPOSTS = 8; */ OUTPOSTS(8), UNRECOGNIZED(-1), ; /** * STORAGE_CLASS_UNSPECIFIED = 0; */ public static final int STORAGE_CLASS_UNSPECIFIED_VALUE = 0; /** * STANDARD = 1; */ public static final int STANDARD_VALUE = 1; /** * REDUCED_REDUNDANCY = 2; */ public static final int REDUCED_REDUNDANCY_VALUE = 2; /** * STANDARD_IA = 3; */ public static final int STANDARD_IA_VALUE = 3; /** * ONEZONE_IA = 4; */ public static final int ONEZONE_IA_VALUE = 4; /** * INTELLIGENT_TIERING = 5; */ public static final int INTELLIGENT_TIERING_VALUE = 5; /** * GLACIER = 6; */ public static final int GLACIER_VALUE = 6; /** * DEEP_ARCHIVE = 7; */ public static final int DEEP_ARCHIVE_VALUE = 7; /** * OUTPOSTS = 8; */ public static final int OUTPOSTS_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static StorageClass valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static StorageClass forNumber(int value) { switch (value) { case 0: return STORAGE_CLASS_UNSPECIFIED; case 1: return STANDARD; case 2: return REDUCED_REDUNDANCY; case 3: return STANDARD_IA; case 4: return ONEZONE_IA; case 5: return INTELLIGENT_TIERING; case 6: return GLACIER; case 7: return DEEP_ARCHIVE; case 8: return OUTPOSTS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StorageClass> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StorageClass findValueByNumber(int number) { return StorageClass.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDescriptor().getEnumTypes().get(1); } private static final StorageClass[] VALUES = values(); public static StorageClass valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private StorageClass(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.ydb.v1.BackupSettings.StorageClass) } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name of backup settings
     * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name of backup settings
     * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * human readable description.
     * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * human readable description.
     * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BACKUP_SCHEDULE_FIELD_NUMBER = 3; private yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule backupSchedule_; /** *
     * provide schedule. if empty, backup will be disabled.
     * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; * @return Whether the backupSchedule field is set. */ @java.lang.Override public boolean hasBackupSchedule() { return backupSchedule_ != null; } /** *
     * provide schedule. if empty, backup will be disabled.
     * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; * @return The backupSchedule. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule getBackupSchedule() { return backupSchedule_ == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.getDefaultInstance() : backupSchedule_; } /** *
     * provide schedule. if empty, backup will be disabled.
     * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupScheduleOrBuilder getBackupScheduleOrBuilder() { return getBackupSchedule(); } public static final int BACKUP_TIME_TO_LIVE_FIELD_NUMBER = 4; private com.google.protobuf.Duration backupTimeToLive_; /** *
     * provide time to live of backup.
     * 
* * .google.protobuf.Duration backup_time_to_live = 4; * @return Whether the backupTimeToLive field is set. */ @java.lang.Override public boolean hasBackupTimeToLive() { return backupTimeToLive_ != null; } /** *
     * provide time to live of backup.
     * 
* * .google.protobuf.Duration backup_time_to_live = 4; * @return The backupTimeToLive. */ @java.lang.Override public com.google.protobuf.Duration getBackupTimeToLive() { return backupTimeToLive_ == null ? com.google.protobuf.Duration.getDefaultInstance() : backupTimeToLive_; } /** *
     * provide time to live of backup.
     * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBackupTimeToLiveOrBuilder() { return getBackupTimeToLive(); } public static final int SOURCE_PATHS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList sourcePaths_; /** *
     * provide a list of source paths. Each path can be directory, table or even database itself.
     * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
     * By default, backup will be created for full database.
     * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @return A list containing the sourcePaths. */ public com.google.protobuf.ProtocolStringList getSourcePathsList() { return sourcePaths_; } /** *
     * provide a list of source paths. Each path can be directory, table or even database itself.
     * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
     * By default, backup will be created for full database.
     * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @return The count of sourcePaths. */ public int getSourcePathsCount() { return sourcePaths_.size(); } /** *
     * provide a list of source paths. Each path can be directory, table or even database itself.
     * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
     * By default, backup will be created for full database.
     * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the element to return. * @return The sourcePaths at the given index. */ public java.lang.String getSourcePaths(int index) { return sourcePaths_.get(index); } /** *
     * provide a list of source paths. Each path can be directory, table or even database itself.
     * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
     * By default, backup will be created for full database.
     * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the value to return. * @return The bytes of the sourcePaths at the given index. */ public com.google.protobuf.ByteString getSourcePathsBytes(int index) { return sourcePaths_.getByteString(index); } public static final int SOURCE_PATHS_TO_EXCLUDE_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList sourcePathsToExclude_; /** *
     * provide a list of paths to exclude from backup.
     * Each path is a directory, table, or database.
     * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
     * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @return A list containing the sourcePathsToExclude. */ public com.google.protobuf.ProtocolStringList getSourcePathsToExcludeList() { return sourcePathsToExclude_; } /** *
     * provide a list of paths to exclude from backup.
     * Each path is a directory, table, or database.
     * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
     * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @return The count of sourcePathsToExclude. */ public int getSourcePathsToExcludeCount() { return sourcePathsToExclude_.size(); } /** *
     * provide a list of paths to exclude from backup.
     * Each path is a directory, table, or database.
     * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
     * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the element to return. * @return The sourcePathsToExclude at the given index. */ public java.lang.String getSourcePathsToExclude(int index) { return sourcePathsToExclude_.get(index); } /** *
     * provide a list of paths to exclude from backup.
     * Each path is a directory, table, or database.
     * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
     * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the value to return. * @return The bytes of the sourcePathsToExclude at the given index. */ public com.google.protobuf.ByteString getSourcePathsToExcludeBytes(int index) { return sourcePathsToExclude_.getByteString(index); } public static final int TYPE_FIELD_NUMBER = 7; private int type_; /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @return The type. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type result = yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type.valueOf(type_); return result == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type.UNRECOGNIZED : result; } public static final int STORAGE_CLASS_FIELD_NUMBER = 8; private int storageClass_; /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @return The enum numeric value on the wire for storageClass. */ @java.lang.Override public int getStorageClassValue() { return storageClass_; } /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @return The storageClass. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass getStorageClass() { @SuppressWarnings("deprecation") yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass result = yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass.valueOf(storageClass_); return result == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (backupSchedule_ != null) { output.writeMessage(3, getBackupSchedule()); } if (backupTimeToLive_ != null) { output.writeMessage(4, getBackupTimeToLive()); } for (int i = 0; i < sourcePaths_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourcePaths_.getRaw(i)); } for (int i = 0; i < sourcePathsToExclude_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sourcePathsToExclude_.getRaw(i)); } if (type_ != yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(7, type_); } if (storageClass_ != yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass.STORAGE_CLASS_UNSPECIFIED.getNumber()) { output.writeEnum(8, storageClass_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (backupSchedule_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getBackupSchedule()); } if (backupTimeToLive_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBackupTimeToLive()); } { int dataSize = 0; for (int i = 0; i < sourcePaths_.size(); i++) { dataSize += computeStringSizeNoTag(sourcePaths_.getRaw(i)); } size += dataSize; size += 1 * getSourcePathsList().size(); } { int dataSize = 0; for (int i = 0; i < sourcePathsToExclude_.size(); i++) { dataSize += computeStringSizeNoTag(sourcePathsToExclude_.getRaw(i)); } size += dataSize; size += 1 * getSourcePathsToExcludeList().size(); } if (type_ != yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, type_); } if (storageClass_ != yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass.STORAGE_CLASS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, storageClass_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings other = (yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (hasBackupSchedule() != other.hasBackupSchedule()) return false; if (hasBackupSchedule()) { if (!getBackupSchedule() .equals(other.getBackupSchedule())) return false; } if (hasBackupTimeToLive() != other.hasBackupTimeToLive()) return false; if (hasBackupTimeToLive()) { if (!getBackupTimeToLive() .equals(other.getBackupTimeToLive())) return false; } if (!getSourcePathsList() .equals(other.getSourcePathsList())) return false; if (!getSourcePathsToExcludeList() .equals(other.getSourcePathsToExcludeList())) return false; if (type_ != other.type_) return false; if (storageClass_ != other.storageClass_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasBackupSchedule()) { hash = (37 * hash) + BACKUP_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getBackupSchedule().hashCode(); } if (hasBackupTimeToLive()) { hash = (37 * hash) + BACKUP_TIME_TO_LIVE_FIELD_NUMBER; hash = (53 * hash) + getBackupTimeToLive().hashCode(); } if (getSourcePathsCount() > 0) { hash = (37 * hash) + SOURCE_PATHS_FIELD_NUMBER; hash = (53 * hash) + getSourcePathsList().hashCode(); } if (getSourcePathsToExcludeCount() > 0) { hash = (37 * hash) + SOURCE_PATHS_TO_EXCLUDE_FIELD_NUMBER; hash = (53 * hash) + getSourcePathsToExcludeList().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + STORAGE_CLASS_FIELD_NUMBER; hash = (53 * hash) + storageClass_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ydb.v1.BackupSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.BackupSettings) yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.class, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; description_ = ""; if (backupScheduleBuilder_ == null) { backupSchedule_ = null; } else { backupSchedule_ = null; backupScheduleBuilder_ = null; } if (backupTimeToLiveBuilder_ == null) { backupTimeToLive_ = null; } else { backupTimeToLive_ = null; backupTimeToLiveBuilder_ = null; } sourcePaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); sourcePathsToExclude_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; storageClass_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupSettings_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings build() { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings buildPartial() { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings result = new yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; if (backupScheduleBuilder_ == null) { result.backupSchedule_ = backupSchedule_; } else { result.backupSchedule_ = backupScheduleBuilder_.build(); } if (backupTimeToLiveBuilder_ == null) { result.backupTimeToLive_ = backupTimeToLive_; } else { result.backupTimeToLive_ = backupTimeToLiveBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { sourcePaths_ = sourcePaths_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.sourcePaths_ = sourcePaths_; if (((bitField0_ & 0x00000002) != 0)) { sourcePathsToExclude_ = sourcePathsToExclude_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.sourcePathsToExclude_ = sourcePathsToExclude_; result.type_ = type_; result.storageClass_ = storageClass_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings) { return mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings other) { if (other == yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasBackupSchedule()) { mergeBackupSchedule(other.getBackupSchedule()); } if (other.hasBackupTimeToLive()) { mergeBackupTimeToLive(other.getBackupTimeToLive()); } if (!other.sourcePaths_.isEmpty()) { if (sourcePaths_.isEmpty()) { sourcePaths_ = other.sourcePaths_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSourcePathsIsMutable(); sourcePaths_.addAll(other.sourcePaths_); } onChanged(); } if (!other.sourcePathsToExclude_.isEmpty()) { if (sourcePathsToExclude_.isEmpty()) { sourcePathsToExclude_ = other.sourcePathsToExclude_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSourcePathsToExcludeIsMutable(); sourcePathsToExclude_.addAll(other.sourcePathsToExclude_); } onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.storageClass_ != 0) { setStorageClassValue(other.getStorageClassValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * name of backup settings
       * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name of backup settings
       * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name of backup settings
       * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name of backup settings
       * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name of backup settings
       * 
* * string name = 1 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * human readable description.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * human readable description.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * human readable description.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * human readable description.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * human readable description.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule backupSchedule_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupScheduleOrBuilder> backupScheduleBuilder_; /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; * @return Whether the backupSchedule field is set. */ public boolean hasBackupSchedule() { return backupScheduleBuilder_ != null || backupSchedule_ != null; } /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; * @return The backupSchedule. */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule getBackupSchedule() { if (backupScheduleBuilder_ == null) { return backupSchedule_ == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.getDefaultInstance() : backupSchedule_; } else { return backupScheduleBuilder_.getMessage(); } } /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ public Builder setBackupSchedule(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule value) { if (backupScheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backupSchedule_ = value; onChanged(); } else { backupScheduleBuilder_.setMessage(value); } return this; } /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ public Builder setBackupSchedule( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.Builder builderForValue) { if (backupScheduleBuilder_ == null) { backupSchedule_ = builderForValue.build(); onChanged(); } else { backupScheduleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ public Builder mergeBackupSchedule(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule value) { if (backupScheduleBuilder_ == null) { if (backupSchedule_ != null) { backupSchedule_ = yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.newBuilder(backupSchedule_).mergeFrom(value).buildPartial(); } else { backupSchedule_ = value; } onChanged(); } else { backupScheduleBuilder_.mergeFrom(value); } return this; } /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ public Builder clearBackupSchedule() { if (backupScheduleBuilder_ == null) { backupSchedule_ = null; onChanged(); } else { backupSchedule_ = null; backupScheduleBuilder_ = null; } return this; } /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.Builder getBackupScheduleBuilder() { onChanged(); return getBackupScheduleFieldBuilder().getBuilder(); } /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupScheduleOrBuilder getBackupScheduleOrBuilder() { if (backupScheduleBuilder_ != null) { return backupScheduleBuilder_.getMessageOrBuilder(); } else { return backupSchedule_ == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.getDefaultInstance() : backupSchedule_; } } /** *
       * provide schedule. if empty, backup will be disabled.
       * 
* * .yandex.cloud.ydb.v1.BackupSchedule backup_schedule = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupScheduleOrBuilder> getBackupScheduleFieldBuilder() { if (backupScheduleBuilder_ == null) { backupScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSchedule.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupScheduleOrBuilder>( getBackupSchedule(), getParentForChildren(), isClean()); backupSchedule_ = null; } return backupScheduleBuilder_; } private com.google.protobuf.Duration backupTimeToLive_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> backupTimeToLiveBuilder_; /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; * @return Whether the backupTimeToLive field is set. */ public boolean hasBackupTimeToLive() { return backupTimeToLiveBuilder_ != null || backupTimeToLive_ != null; } /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; * @return The backupTimeToLive. */ public com.google.protobuf.Duration getBackupTimeToLive() { if (backupTimeToLiveBuilder_ == null) { return backupTimeToLive_ == null ? com.google.protobuf.Duration.getDefaultInstance() : backupTimeToLive_; } else { return backupTimeToLiveBuilder_.getMessage(); } } /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ public Builder setBackupTimeToLive(com.google.protobuf.Duration value) { if (backupTimeToLiveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backupTimeToLive_ = value; onChanged(); } else { backupTimeToLiveBuilder_.setMessage(value); } return this; } /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ public Builder setBackupTimeToLive( com.google.protobuf.Duration.Builder builderForValue) { if (backupTimeToLiveBuilder_ == null) { backupTimeToLive_ = builderForValue.build(); onChanged(); } else { backupTimeToLiveBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ public Builder mergeBackupTimeToLive(com.google.protobuf.Duration value) { if (backupTimeToLiveBuilder_ == null) { if (backupTimeToLive_ != null) { backupTimeToLive_ = com.google.protobuf.Duration.newBuilder(backupTimeToLive_).mergeFrom(value).buildPartial(); } else { backupTimeToLive_ = value; } onChanged(); } else { backupTimeToLiveBuilder_.mergeFrom(value); } return this; } /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ public Builder clearBackupTimeToLive() { if (backupTimeToLiveBuilder_ == null) { backupTimeToLive_ = null; onChanged(); } else { backupTimeToLive_ = null; backupTimeToLiveBuilder_ = null; } return this; } /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ public com.google.protobuf.Duration.Builder getBackupTimeToLiveBuilder() { onChanged(); return getBackupTimeToLiveFieldBuilder().getBuilder(); } /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ public com.google.protobuf.DurationOrBuilder getBackupTimeToLiveOrBuilder() { if (backupTimeToLiveBuilder_ != null) { return backupTimeToLiveBuilder_.getMessageOrBuilder(); } else { return backupTimeToLive_ == null ? com.google.protobuf.Duration.getDefaultInstance() : backupTimeToLive_; } } /** *
       * provide time to live of backup.
       * 
* * .google.protobuf.Duration backup_time_to_live = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getBackupTimeToLiveFieldBuilder() { if (backupTimeToLiveBuilder_ == null) { backupTimeToLiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getBackupTimeToLive(), getParentForChildren(), isClean()); backupTimeToLive_ = null; } return backupTimeToLiveBuilder_; } private com.google.protobuf.LazyStringList sourcePaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSourcePathsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sourcePaths_ = new com.google.protobuf.LazyStringArrayList(sourcePaths_); bitField0_ |= 0x00000001; } } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @return A list containing the sourcePaths. */ public com.google.protobuf.ProtocolStringList getSourcePathsList() { return sourcePaths_.getUnmodifiableView(); } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @return The count of sourcePaths. */ public int getSourcePathsCount() { return sourcePaths_.size(); } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the element to return. * @return The sourcePaths at the given index. */ public java.lang.String getSourcePaths(int index) { return sourcePaths_.get(index); } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the value to return. * @return The bytes of the sourcePaths at the given index. */ public com.google.protobuf.ByteString getSourcePathsBytes(int index) { return sourcePaths_.getByteString(index); } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param index The index to set the value at. * @param value The sourcePaths to set. * @return This builder for chaining. */ public Builder setSourcePaths( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSourcePathsIsMutable(); sourcePaths_.set(index, value); onChanged(); return this; } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param value The sourcePaths to add. * @return This builder for chaining. */ public Builder addSourcePaths( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSourcePathsIsMutable(); sourcePaths_.add(value); onChanged(); return this; } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param values The sourcePaths to add. * @return This builder for chaining. */ public Builder addAllSourcePaths( java.lang.Iterable values) { ensureSourcePathsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sourcePaths_); onChanged(); return this; } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @return This builder for chaining. */ public Builder clearSourcePaths() { sourcePaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * provide a list of source paths. Each path can be directory, table or even database itself.
       * Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
       * By default, backup will be created for full database.
       * 
* * repeated string source_paths = 5 [(.yandex.cloud.size) = "<=256"]; * @param value The bytes of the sourcePaths to add. * @return This builder for chaining. */ public Builder addSourcePathsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSourcePathsIsMutable(); sourcePaths_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList sourcePathsToExclude_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSourcePathsToExcludeIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { sourcePathsToExclude_ = new com.google.protobuf.LazyStringArrayList(sourcePathsToExclude_); bitField0_ |= 0x00000002; } } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @return A list containing the sourcePathsToExclude. */ public com.google.protobuf.ProtocolStringList getSourcePathsToExcludeList() { return sourcePathsToExclude_.getUnmodifiableView(); } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @return The count of sourcePathsToExclude. */ public int getSourcePathsToExcludeCount() { return sourcePathsToExclude_.size(); } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the element to return. * @return The sourcePathsToExclude at the given index. */ public java.lang.String getSourcePathsToExclude(int index) { return sourcePathsToExclude_.get(index); } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param index The index of the value to return. * @return The bytes of the sourcePathsToExclude at the given index. */ public com.google.protobuf.ByteString getSourcePathsToExcludeBytes(int index) { return sourcePathsToExclude_.getByteString(index); } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param index The index to set the value at. * @param value The sourcePathsToExclude to set. * @return This builder for chaining. */ public Builder setSourcePathsToExclude( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSourcePathsToExcludeIsMutable(); sourcePathsToExclude_.set(index, value); onChanged(); return this; } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param value The sourcePathsToExclude to add. * @return This builder for chaining. */ public Builder addSourcePathsToExclude( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSourcePathsToExcludeIsMutable(); sourcePathsToExclude_.add(value); onChanged(); return this; } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param values The sourcePathsToExclude to add. * @return This builder for chaining. */ public Builder addAllSourcePathsToExclude( java.lang.Iterable values) { ensureSourcePathsToExcludeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sourcePathsToExclude_); onChanged(); return this; } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @return This builder for chaining. */ public Builder clearSourcePathsToExclude() { sourcePathsToExclude_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * provide a list of paths to exclude from backup.
       * Each path is a directory, table, or database.
       * Each directory (or database) will be traversed recursively and all childs of directory will be excluded.
       * 
* * repeated string source_paths_to_exclude = 6 [(.yandex.cloud.size) = "<=256"]; * @param value The bytes of the sourcePathsToExclude to add. * @return This builder for chaining. */ public Builder addSourcePathsToExcludeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSourcePathsToExcludeIsMutable(); sourcePathsToExclude_.add(value); onChanged(); return this; } private int type_ = 0; /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @return The type. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type result = yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type.valueOf(type_); return result == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type.UNRECOGNIZED : result; } /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.ydb.v1.BackupSettings.Type type = 7; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int storageClass_ = 0; /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @return The enum numeric value on the wire for storageClass. */ @java.lang.Override public int getStorageClassValue() { return storageClass_; } /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @param value The enum numeric value on the wire for storageClass to set. * @return This builder for chaining. */ public Builder setStorageClassValue(int value) { storageClass_ = value; onChanged(); return this; } /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @return The storageClass. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass getStorageClass() { @SuppressWarnings("deprecation") yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass result = yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass.valueOf(storageClass_); return result == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass.UNRECOGNIZED : result; } /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @param value The storageClass to set. * @return This builder for chaining. */ public Builder setStorageClass(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.StorageClass value) { if (value == null) { throw new NullPointerException(); } storageClass_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.ydb.v1.BackupSettings.StorageClass storage_class = 8; * @return This builder for chaining. */ public Builder clearStorageClass() { storageClass_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.BackupSettings) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.BackupSettings) private static final yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings(); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BackupSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BackupSettings(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BackupConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.BackupConfig) com.google.protobuf.MessageOrBuilder { /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ java.util.List getBackupSettingsList(); /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getBackupSettings(int index); /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ int getBackupSettingsCount(); /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ java.util.List getBackupSettingsOrBuilderList(); /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder getBackupSettingsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.ydb.v1.BackupConfig} */ public static final class BackupConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.BackupConfig) BackupConfigOrBuilder { private static final long serialVersionUID = 0L; // Use BackupConfig.newBuilder() to construct. private BackupConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BackupConfig() { backupSettings_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BackupConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BackupConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { backupSettings_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } backupSettings_.add( input.readMessage(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { backupSettings_ = java.util.Collections.unmodifiableList(backupSettings_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig.class, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig.Builder.class); } public static final int BACKUP_SETTINGS_FIELD_NUMBER = 1; private java.util.List backupSettings_; /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ @java.lang.Override public java.util.List getBackupSettingsList() { return backupSettings_; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ @java.lang.Override public java.util.List getBackupSettingsOrBuilderList() { return backupSettings_; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ @java.lang.Override public int getBackupSettingsCount() { return backupSettings_.size(); } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getBackupSettings(int index) { return backupSettings_.get(index); } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder getBackupSettingsOrBuilder( int index) { return backupSettings_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < backupSettings_.size(); i++) { output.writeMessage(1, backupSettings_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < backupSettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, backupSettings_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig other = (yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig) obj; if (!getBackupSettingsList() .equals(other.getBackupSettingsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getBackupSettingsCount() > 0) { hash = (37 * hash) + BACKUP_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getBackupSettingsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ydb.v1.BackupConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.BackupConfig) yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig.class, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBackupSettingsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (backupSettingsBuilder_ == null) { backupSettings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { backupSettingsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_BackupConfig_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig build() { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig buildPartial() { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig result = new yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig(this); int from_bitField0_ = bitField0_; if (backupSettingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { backupSettings_ = java.util.Collections.unmodifiableList(backupSettings_); bitField0_ = (bitField0_ & ~0x00000001); } result.backupSettings_ = backupSettings_; } else { result.backupSettings_ = backupSettingsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig) { return mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig other) { if (other == yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig.getDefaultInstance()) return this; if (backupSettingsBuilder_ == null) { if (!other.backupSettings_.isEmpty()) { if (backupSettings_.isEmpty()) { backupSettings_ = other.backupSettings_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBackupSettingsIsMutable(); backupSettings_.addAll(other.backupSettings_); } onChanged(); } } else { if (!other.backupSettings_.isEmpty()) { if (backupSettingsBuilder_.isEmpty()) { backupSettingsBuilder_.dispose(); backupSettingsBuilder_ = null; backupSettings_ = other.backupSettings_; bitField0_ = (bitField0_ & ~0x00000001); backupSettingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBackupSettingsFieldBuilder() : null; } else { backupSettingsBuilder_.addAllMessages(other.backupSettings_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List backupSettings_ = java.util.Collections.emptyList(); private void ensureBackupSettingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { backupSettings_ = new java.util.ArrayList(backupSettings_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder> backupSettingsBuilder_; /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public java.util.List getBackupSettingsList() { if (backupSettingsBuilder_ == null) { return java.util.Collections.unmodifiableList(backupSettings_); } else { return backupSettingsBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public int getBackupSettingsCount() { if (backupSettingsBuilder_ == null) { return backupSettings_.size(); } else { return backupSettingsBuilder_.getCount(); } } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getBackupSettings(int index) { if (backupSettingsBuilder_ == null) { return backupSettings_.get(index); } else { return backupSettingsBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder setBackupSettings( int index, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings value) { if (backupSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBackupSettingsIsMutable(); backupSettings_.set(index, value); onChanged(); } else { backupSettingsBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder setBackupSettings( int index, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder builderForValue) { if (backupSettingsBuilder_ == null) { ensureBackupSettingsIsMutable(); backupSettings_.set(index, builderForValue.build()); onChanged(); } else { backupSettingsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder addBackupSettings(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings value) { if (backupSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBackupSettingsIsMutable(); backupSettings_.add(value); onChanged(); } else { backupSettingsBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder addBackupSettings( int index, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings value) { if (backupSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBackupSettingsIsMutable(); backupSettings_.add(index, value); onChanged(); } else { backupSettingsBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder addBackupSettings( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder builderForValue) { if (backupSettingsBuilder_ == null) { ensureBackupSettingsIsMutable(); backupSettings_.add(builderForValue.build()); onChanged(); } else { backupSettingsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder addBackupSettings( int index, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder builderForValue) { if (backupSettingsBuilder_ == null) { ensureBackupSettingsIsMutable(); backupSettings_.add(index, builderForValue.build()); onChanged(); } else { backupSettingsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder addAllBackupSettings( java.lang.Iterable values) { if (backupSettingsBuilder_ == null) { ensureBackupSettingsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, backupSettings_); onChanged(); } else { backupSettingsBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder clearBackupSettings() { if (backupSettingsBuilder_ == null) { backupSettings_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { backupSettingsBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public Builder removeBackupSettings(int index) { if (backupSettingsBuilder_ == null) { ensureBackupSettingsIsMutable(); backupSettings_.remove(index); onChanged(); } else { backupSettingsBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder getBackupSettingsBuilder( int index) { return getBackupSettingsFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder getBackupSettingsOrBuilder( int index) { if (backupSettingsBuilder_ == null) { return backupSettings_.get(index); } else { return backupSettingsBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public java.util.List getBackupSettingsOrBuilderList() { if (backupSettingsBuilder_ != null) { return backupSettingsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(backupSettings_); } } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder addBackupSettingsBuilder() { return getBackupSettingsFieldBuilder().addBuilder( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDefaultInstance()); } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder addBackupSettingsBuilder( int index) { return getBackupSettingsFieldBuilder().addBuilder( index, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDefaultInstance()); } /** * repeated .yandex.cloud.ydb.v1.BackupSettings backup_settings = 1; */ public java.util.List getBackupSettingsBuilderList() { return getBackupSettingsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder> getBackupSettingsFieldBuilder() { if (backupSettingsBuilder_ == null) { backupSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder>( backupSettings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); backupSettings_ = null; } return backupSettingsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.BackupConfig) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.BackupConfig) private static final yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig(); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BackupConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BackupConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BackupOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.ydb.v1.Backup) com.google.protobuf.MessageOrBuilder { /** * string id = 1; * @return The id. */ java.lang.String getId(); /** * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * human readable backup name.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * human readable backup name.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string folder_id = 3; * @return The folderId. */ java.lang.String getFolderId(); /** * string folder_id = 3; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** * string database_id = 4; * @return The databaseId. */ java.lang.String getDatabaseId(); /** * string database_id = 4; * @return The bytes for databaseId. */ com.google.protobuf.ByteString getDatabaseIdBytes(); /** *
     * description of backup.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * description of backup.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** * .google.protobuf.Timestamp created_at = 6; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * indicates when backup started.
     * 
* * .google.protobuf.Timestamp started_at = 7; * @return Whether the startedAt field is set. */ boolean hasStartedAt(); /** *
     * indicates when backup started.
     * 
* * .google.protobuf.Timestamp started_at = 7; * @return The startedAt. */ com.google.protobuf.Timestamp getStartedAt(); /** *
     * indicates when backup started.
     * 
* * .google.protobuf.Timestamp started_at = 7; */ com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); /** *
     * indicates when backup completed.
     * 
* * .google.protobuf.Timestamp completed_at = 8; * @return Whether the completedAt field is set. */ boolean hasCompletedAt(); /** *
     * indicates when backup completed.
     * 
* * .google.protobuf.Timestamp completed_at = 8; * @return The completedAt. */ com.google.protobuf.Timestamp getCompletedAt(); /** *
     * indicates when backup completed.
     * 
* * .google.protobuf.Timestamp completed_at = 8; */ com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder(); /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @return The status. */ yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status getStatus(); /** *
     * settings used to make backup.
     * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; * @return Whether the backupSettings field is set. */ boolean hasBackupSettings(); /** *
     * settings used to make backup.
     * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; * @return The backupSettings. */ yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getBackupSettings(); /** *
     * settings used to make backup.
     * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder getBackupSettingsOrBuilder(); /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @return The type. */ yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type getType(); /** *
     * size of backup in bytes.
     * 
* * int64 size = 12; * @return The size. */ long getSize(); } /** * Protobuf type {@code yandex.cloud.ydb.v1.Backup} */ public static final class Backup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.ydb.v1.Backup) BackupOrBuilder { private static final long serialVersionUID = 0L; // Use Backup.newBuilder() to construct. private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Backup() { id_ = ""; name_ = ""; folderId_ = ""; databaseId_ = ""; description_ = ""; status_ = 0; type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Backup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Backup( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); databaseId_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (startedAt_ != null) { subBuilder = startedAt_.toBuilder(); } startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startedAt_); startedAt_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (completedAt_ != null) { subBuilder = completedAt_.toBuilder(); } completedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(completedAt_); completedAt_ = subBuilder.buildPartial(); } break; } case 72: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 82: { yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder subBuilder = null; if (backupSettings_ != null) { subBuilder = backupSettings_.toBuilder(); } backupSettings_ = input.readMessage(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(backupSettings_); backupSettings_ = subBuilder.buildPartial(); } break; } case 88: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 96: { size_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_Backup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.class, yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Builder.class); } /** *
     * id of backup
     * 
* * Protobuf enum {@code yandex.cloud.ydb.v1.Backup.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** * CREATING = 1; */ CREATING(1), /** * READY = 2; */ READY(2), /** * ERROR = 3; */ ERROR(3), /** * CANCELLED = 4; */ CANCELLED(4), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** * READY = 2; */ public static final int READY_VALUE = 2; /** * ERROR = 3; */ public static final int ERROR_VALUE = 3; /** * CANCELLED = 4; */ public static final int CANCELLED_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return CREATING; case 2: return READY; case 3: return ERROR; case 4: return CANCELLED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.ydb.v1.Backup.Status) } /** * Protobuf enum {@code yandex.cloud.ydb.v1.Backup.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** *
       * indicates that backup started by the system.
       * 
* * SYSTEM = 1; */ SYSTEM(1), /** * USER = 2; */ USER(2), UNRECOGNIZED(-1), ; /** * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** *
       * indicates that backup started by the system.
       * 
* * SYSTEM = 1; */ public static final int SYSTEM_VALUE = 1; /** * USER = 2; */ public static final int USER_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; case 1: return SYSTEM; case 2: return USER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.getDescriptor().getEnumTypes().get(1); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.ydb.v1.Backup.Type) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * human readable backup name.
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * human readable backup name.
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 3; private volatile java.lang.Object folderId_; /** * string folder_id = 3; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** * string folder_id = 3; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATABASE_ID_FIELD_NUMBER = 4; private volatile java.lang.Object databaseId_; /** * string database_id = 4; * @return The databaseId. */ @java.lang.Override public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } } /** * string database_id = 4; * @return The bytes for databaseId. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** *
     * description of backup.
     * 
* * string description = 5; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * description of backup.
     * 
* * string description = 5; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createdAt_; /** * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** * .google.protobuf.Timestamp created_at = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int STARTED_AT_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp startedAt_; /** *
     * indicates when backup started.
     * 
* * .google.protobuf.Timestamp started_at = 7; * @return Whether the startedAt field is set. */ @java.lang.Override public boolean hasStartedAt() { return startedAt_ != null; } /** *
     * indicates when backup started.
     * 
* * .google.protobuf.Timestamp started_at = 7; * @return The startedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getStartedAt() { return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; } /** *
     * indicates when backup started.
     * 
* * .google.protobuf.Timestamp started_at = 7; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { return getStartedAt(); } public static final int COMPLETED_AT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp completedAt_; /** *
     * indicates when backup completed.
     * 
* * .google.protobuf.Timestamp completed_at = 8; * @return Whether the completedAt field is set. */ @java.lang.Override public boolean hasCompletedAt() { return completedAt_ != null; } /** *
     * indicates when backup completed.
     * 
* * .google.protobuf.Timestamp completed_at = 8; * @return The completedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCompletedAt() { return completedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_; } /** *
     * indicates when backup completed.
     * 
* * .google.protobuf.Timestamp completed_at = 8; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder() { return getCompletedAt(); } public static final int STATUS_FIELD_NUMBER = 9; private int status_; /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @return The status. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status result = yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status.valueOf(status_); return result == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status.UNRECOGNIZED : result; } public static final int BACKUP_SETTINGS_FIELD_NUMBER = 10; private yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings backupSettings_; /** *
     * settings used to make backup.
     * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; * @return Whether the backupSettings field is set. */ @java.lang.Override public boolean hasBackupSettings() { return backupSettings_ != null; } /** *
     * settings used to make backup.
     * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; * @return The backupSettings. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getBackupSettings() { return backupSettings_ == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDefaultInstance() : backupSettings_; } /** *
     * settings used to make backup.
     * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder getBackupSettingsOrBuilder() { return getBackupSettings(); } public static final int TYPE_FIELD_NUMBER = 11; private int type_; /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @return The type. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type result = yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type.valueOf(type_); return result == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type.UNRECOGNIZED : result; } public static final int SIZE_FIELD_NUMBER = 12; private long size_; /** *
     * size of backup in bytes.
     * 
* * int64 size = 12; * @return The size. */ @java.lang.Override public long getSize() { return size_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, databaseId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } if (createdAt_ != null) { output.writeMessage(6, getCreatedAt()); } if (startedAt_ != null) { output.writeMessage(7, getStartedAt()); } if (completedAt_ != null) { output.writeMessage(8, getCompletedAt()); } if (status_ != yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(9, status_); } if (backupSettings_ != null) { output.writeMessage(10, getBackupSettings()); } if (type_ != yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(11, type_); } if (size_ != 0L) { output.writeInt64(12, size_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCreatedAt()); } if (startedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getStartedAt()); } if (completedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCompletedAt()); } if (status_ != yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, status_); } if (backupSettings_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getBackupSettings()); } if (type_ != yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, type_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, size_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.Backup)) { return super.equals(obj); } yandex.cloud.api.ydb.v1.BackupOuterClass.Backup other = (yandex.cloud.api.ydb.v1.BackupOuterClass.Backup) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getDatabaseId() .equals(other.getDatabaseId())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasStartedAt() != other.hasStartedAt()) return false; if (hasStartedAt()) { if (!getStartedAt() .equals(other.getStartedAt())) return false; } if (hasCompletedAt() != other.hasCompletedAt()) return false; if (hasCompletedAt()) { if (!getCompletedAt() .equals(other.getCompletedAt())) return false; } if (status_ != other.status_) return false; if (hasBackupSettings() != other.hasBackupSettings()) return false; if (hasBackupSettings()) { if (!getBackupSettings() .equals(other.getBackupSettings())) return false; } if (type_ != other.type_) return false; if (getSize() != other.getSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; hash = (53 * hash) + getDatabaseId().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasStartedAt()) { hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; hash = (53 * hash) + getStartedAt().hashCode(); } if (hasCompletedAt()) { hash = (37 * hash) + COMPLETED_AT_FIELD_NUMBER; hash = (53 * hash) + getCompletedAt().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasBackupSettings()) { hash = (37 * hash) + BACKUP_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getBackupSettings().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.ydb.v1.BackupOuterClass.Backup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.ydb.v1.Backup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.ydb.v1.Backup) yandex.cloud.api.ydb.v1.BackupOuterClass.BackupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_Backup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_Backup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.class, yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Builder.class); } // Construct using yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; folderId_ = ""; databaseId_ = ""; description_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (startedAtBuilder_ == null) { startedAt_ = null; } else { startedAt_ = null; startedAtBuilder_ = null; } if (completedAtBuilder_ == null) { completedAt_ = null; } else { completedAt_ = null; completedAtBuilder_ = null; } status_ = 0; if (backupSettingsBuilder_ == null) { backupSettings_ = null; } else { backupSettings_ = null; backupSettingsBuilder_ = null; } type_ = 0; size_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.internal_static_yandex_cloud_ydb_v1_Backup_descriptor; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup getDefaultInstanceForType() { return yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup build() { yandex.cloud.api.ydb.v1.BackupOuterClass.Backup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup buildPartial() { yandex.cloud.api.ydb.v1.BackupOuterClass.Backup result = new yandex.cloud.api.ydb.v1.BackupOuterClass.Backup(this); result.id_ = id_; result.name_ = name_; result.folderId_ = folderId_; result.databaseId_ = databaseId_; result.description_ = description_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (startedAtBuilder_ == null) { result.startedAt_ = startedAt_; } else { result.startedAt_ = startedAtBuilder_.build(); } if (completedAtBuilder_ == null) { result.completedAt_ = completedAt_; } else { result.completedAt_ = completedAtBuilder_.build(); } result.status_ = status_; if (backupSettingsBuilder_ == null) { result.backupSettings_ = backupSettings_; } else { result.backupSettings_ = backupSettingsBuilder_.build(); } result.type_ = type_; result.size_ = size_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.ydb.v1.BackupOuterClass.Backup) { return mergeFrom((yandex.cloud.api.ydb.v1.BackupOuterClass.Backup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.ydb.v1.BackupOuterClass.Backup other) { if (other == yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getDatabaseId().isEmpty()) { databaseId_ = other.databaseId_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasStartedAt()) { mergeStartedAt(other.getStartedAt()); } if (other.hasCompletedAt()) { mergeCompletedAt(other.getCompletedAt()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasBackupSettings()) { mergeBackupSettings(other.getBackupSettings()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getSize() != 0L) { setSize(other.getSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.ydb.v1.BackupOuterClass.Backup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.ydb.v1.BackupOuterClass.Backup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * human readable backup name.
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * human readable backup name.
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * human readable backup name.
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * human readable backup name.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * human readable backup name.
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** * string folder_id = 3; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string folder_id = 3; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string folder_id = 3; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** * string folder_id = 3; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** * string folder_id = 3; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private java.lang.Object databaseId_ = ""; /** * string database_id = 4; * @return The databaseId. */ public java.lang.String getDatabaseId() { java.lang.Object ref = databaseId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string database_id = 4; * @return The bytes for databaseId. */ public com.google.protobuf.ByteString getDatabaseIdBytes() { java.lang.Object ref = databaseId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string database_id = 4; * @param value The databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } databaseId_ = value; onChanged(); return this; } /** * string database_id = 4; * @return This builder for chaining. */ public Builder clearDatabaseId() { databaseId_ = getDefaultInstance().getDatabaseId(); onChanged(); return this; } /** * string database_id = 4; * @param value The bytes for databaseId to set. * @return This builder for chaining. */ public Builder setDatabaseIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseId_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * description of backup.
       * 
* * string description = 5; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * description of backup.
       * 
* * string description = 5; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * description of backup.
       * 
* * string description = 5; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * description of backup.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * description of backup.
       * 
* * string description = 5; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp created_at = 6; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp created_at = 6; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp created_at = 6; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp created_at = 6; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp created_at = 6; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp created_at = 6; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** * .google.protobuf.Timestamp created_at = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp startedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; * @return Whether the startedAt field is set. */ public boolean hasStartedAt() { return startedAtBuilder_ != null || startedAt_ != null; } /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; * @return The startedAt. */ public com.google.protobuf.Timestamp getStartedAt() { if (startedAtBuilder_ == null) { return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; } else { return startedAtBuilder_.getMessage(); } } /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; */ public Builder setStartedAt(com.google.protobuf.Timestamp value) { if (startedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startedAt_ = value; onChanged(); } else { startedAtBuilder_.setMessage(value); } return this; } /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; */ public Builder setStartedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (startedAtBuilder_ == null) { startedAt_ = builderForValue.build(); onChanged(); } else { startedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; */ public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { if (startedAtBuilder_ == null) { if (startedAt_ != null) { startedAt_ = com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); } else { startedAt_ = value; } onChanged(); } else { startedAtBuilder_.mergeFrom(value); } return this; } /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; */ public Builder clearStartedAt() { if (startedAtBuilder_ == null) { startedAt_ = null; onChanged(); } else { startedAt_ = null; startedAtBuilder_ = null; } return this; } /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; */ public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { onChanged(); return getStartedAtFieldBuilder().getBuilder(); } /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; */ public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { if (startedAtBuilder_ != null) { return startedAtBuilder_.getMessageOrBuilder(); } else { return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; } } /** *
       * indicates when backup started.
       * 
* * .google.protobuf.Timestamp started_at = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartedAtFieldBuilder() { if (startedAtBuilder_ == null) { startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartedAt(), getParentForChildren(), isClean()); startedAt_ = null; } return startedAtBuilder_; } private com.google.protobuf.Timestamp completedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> completedAtBuilder_; /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; * @return Whether the completedAt field is set. */ public boolean hasCompletedAt() { return completedAtBuilder_ != null || completedAt_ != null; } /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; * @return The completedAt. */ public com.google.protobuf.Timestamp getCompletedAt() { if (completedAtBuilder_ == null) { return completedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_; } else { return completedAtBuilder_.getMessage(); } } /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; */ public Builder setCompletedAt(com.google.protobuf.Timestamp value) { if (completedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } completedAt_ = value; onChanged(); } else { completedAtBuilder_.setMessage(value); } return this; } /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; */ public Builder setCompletedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (completedAtBuilder_ == null) { completedAt_ = builderForValue.build(); onChanged(); } else { completedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; */ public Builder mergeCompletedAt(com.google.protobuf.Timestamp value) { if (completedAtBuilder_ == null) { if (completedAt_ != null) { completedAt_ = com.google.protobuf.Timestamp.newBuilder(completedAt_).mergeFrom(value).buildPartial(); } else { completedAt_ = value; } onChanged(); } else { completedAtBuilder_.mergeFrom(value); } return this; } /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; */ public Builder clearCompletedAt() { if (completedAtBuilder_ == null) { completedAt_ = null; onChanged(); } else { completedAt_ = null; completedAtBuilder_ = null; } return this; } /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; */ public com.google.protobuf.Timestamp.Builder getCompletedAtBuilder() { onChanged(); return getCompletedAtFieldBuilder().getBuilder(); } /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; */ public com.google.protobuf.TimestampOrBuilder getCompletedAtOrBuilder() { if (completedAtBuilder_ != null) { return completedAtBuilder_.getMessageOrBuilder(); } else { return completedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : completedAt_; } } /** *
       * indicates when backup completed.
       * 
* * .google.protobuf.Timestamp completed_at = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCompletedAtFieldBuilder() { if (completedAtBuilder_ == null) { completedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCompletedAt(), getParentForChildren(), isClean()); completedAt_ = null; } return completedAtBuilder_; } private int status_ = 0; /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @return The status. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status result = yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status.valueOf(status_); return result == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status.UNRECOGNIZED : result; } /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.ydb.v1.Backup.Status status = 9; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings backupSettings_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder> backupSettingsBuilder_; /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; * @return Whether the backupSettings field is set. */ public boolean hasBackupSettings() { return backupSettingsBuilder_ != null || backupSettings_ != null; } /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; * @return The backupSettings. */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings getBackupSettings() { if (backupSettingsBuilder_ == null) { return backupSettings_ == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDefaultInstance() : backupSettings_; } else { return backupSettingsBuilder_.getMessage(); } } /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ public Builder setBackupSettings(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings value) { if (backupSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backupSettings_ = value; onChanged(); } else { backupSettingsBuilder_.setMessage(value); } return this; } /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ public Builder setBackupSettings( yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder builderForValue) { if (backupSettingsBuilder_ == null) { backupSettings_ = builderForValue.build(); onChanged(); } else { backupSettingsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ public Builder mergeBackupSettings(yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings value) { if (backupSettingsBuilder_ == null) { if (backupSettings_ != null) { backupSettings_ = yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.newBuilder(backupSettings_).mergeFrom(value).buildPartial(); } else { backupSettings_ = value; } onChanged(); } else { backupSettingsBuilder_.mergeFrom(value); } return this; } /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ public Builder clearBackupSettings() { if (backupSettingsBuilder_ == null) { backupSettings_ = null; onChanged(); } else { backupSettings_ = null; backupSettingsBuilder_ = null; } return this; } /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder getBackupSettingsBuilder() { onChanged(); return getBackupSettingsFieldBuilder().getBuilder(); } /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ public yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder getBackupSettingsOrBuilder() { if (backupSettingsBuilder_ != null) { return backupSettingsBuilder_.getMessageOrBuilder(); } else { return backupSettings_ == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.getDefaultInstance() : backupSettings_; } } /** *
       * settings used to make backup.
       * 
* * .yandex.cloud.ydb.v1.BackupSettings backup_settings = 10; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder> getBackupSettingsFieldBuilder() { if (backupSettingsBuilder_ == null) { backupSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettings.Builder, yandex.cloud.api.ydb.v1.BackupOuterClass.BackupSettingsOrBuilder>( getBackupSettings(), getParentForChildren(), isClean()); backupSettings_ = null; } return backupSettingsBuilder_; } private int type_ = 0; /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @return The type. */ @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type result = yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type.valueOf(type_); return result == null ? yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type.UNRECOGNIZED : result; } /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.ydb.v1.BackupOuterClass.Backup.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.ydb.v1.Backup.Type type = 11; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long size_ ; /** *
       * size of backup in bytes.
       * 
* * int64 size = 12; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
       * size of backup in bytes.
       * 
* * int64 size = 12; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
       * size of backup in bytes.
       * 
* * int64 size = 12; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.ydb.v1.Backup) } // @@protoc_insertion_point(class_scope:yandex.cloud.ydb.v1.Backup) private static final yandex.cloud.api.ydb.v1.BackupOuterClass.Backup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.ydb.v1.BackupOuterClass.Backup(); } public static yandex.cloud.api.ydb.v1.BackupOuterClass.Backup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Backup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Backup(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.ydb.v1.BackupOuterClass.Backup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_BackupSchedule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_BackupSchedule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_BackupSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_BackupSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_BackupConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_BackupConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_ydb_v1_Backup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_ydb_v1_Backup_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n yandex/cloud/ydb/v1/backup.proto\022\023yand" + "ex.cloud.ydb.v1\032\037google/protobuf/timesta" + "mp.proto\032\036google/protobuf/duration.proto" + "\032\033google/type/timeofday.proto\032\033google/ty" + "pe/dayofweek.proto\032\035yandex/cloud/validat" + "ion.proto\"\302\002\n\016BackupSchedule\022I\n\025daily_ba" + "ckup_schedule\030\001 \001(\0132(.yandex.cloud.ydb.v" + "1.DailyBackupScheduleH\000\022K\n\026weekly_backup" + "_schedule\030\002 \001(\0132).yandex.cloud.ydb.v1.We" + "eklyBackupScheduleH\000\022Q\n\031recurring_backup" + "_schedule\030\004 \001(\0132,.yandex.cloud.ydb.v1.Re" + "curringBackupScheduleH\000\0225\n\021next_execute_" + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\016" + "\n\006policy\022\004\300\3011\001\"i\n\027RecurringBackupSchedul" + "e\0224\n\nstart_time\030\001 \001(\0132\032.google.protobuf." + "TimestampB\004\350\3071\001\022\030\n\nrecurrence\030\002 \001(\tB\004\350\3071" + "\001\"}\n\030DaysOfWeekBackupSchedule\022-\n\004days\030\001 " + "\003(\0162\026.google.type.DayOfWeekB\007\202\3101\0031-7\0222\n\014" + "execute_time\030\002 \001(\0132\026.google.type.TimeOfD" + "ayB\004\350\3071\001\"d\n\024WeeklyBackupSchedule\022L\n\014days" + "_of_week\030\001 \003(\0132-.yandex.cloud.ydb.v1.Day" + "sOfWeekBackupScheduleB\007\202\3101\0031-7\"I\n\023DailyB" + "ackupSchedule\0222\n\014execute_time\030\001 \001(\0132\026.go" + "ogle.type.TimeOfDayB\004\350\3071\001\"\376\004\n\016BackupSett" + "ings\022\027\n\004name\030\001 \001(\tB\t\212\3101\005<=256\022\036\n\013descrip" + "tion\030\002 \001(\tB\t\212\3101\005<=256\022<\n\017backup_schedule" + "\030\003 \001(\0132#.yandex.cloud.ydb.v1.BackupSched" + "ule\0226\n\023backup_time_to_live\030\004 \001(\0132\031.googl" + "e.protobuf.Duration\022\037\n\014source_paths\030\005 \003(" + "\tB\t\202\3101\005<=256\022*\n\027source_paths_to_exclude\030" + "\006 \003(\tB\t\202\3101\005<=256\0226\n\004type\030\007 \001(\0162(.yandex." + "cloud.ydb.v1.BackupSettings.Type\022G\n\rstor" + "age_class\030\010 \001(\01620.yandex.cloud.ydb.v1.Ba" + "ckupSettings.StorageClass\"2\n\004Type\022\024\n\020TYP" + "E_UNSPECIFIED\020\000\022\n\n\006SYSTEM\020\001\022\010\n\004USER\020\002\"\272\001" + "\n\014StorageClass\022\035\n\031STORAGE_CLASS_UNSPECIF" + "IED\020\000\022\014\n\010STANDARD\020\001\022\026\n\022REDUCED_REDUNDANC" + "Y\020\002\022\017\n\013STANDARD_IA\020\003\022\016\n\nONEZONE_IA\020\004\022\027\n\023" + "INTELLIGENT_TIERING\020\005\022\013\n\007GLACIER\020\006\022\020\n\014DE" + "EP_ARCHIVE\020\007\022\014\n\010OUTPOSTS\020\010\"L\n\014BackupConf" + "ig\022<\n\017backup_settings\030\001 \003(\0132#.yandex.clo" + "ud.ydb.v1.BackupSettings\"\252\004\n\006Backup\022\n\n\002i" + "d\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\021\n\tfolder_id\030\003 \001(\t" + "\022\023\n\013database_id\030\004 \001(\t\022\023\n\013description\030\005 \001" + "(\t\022.\n\ncreated_at\030\006 \001(\0132\032.google.protobuf" + ".Timestamp\022.\n\nstarted_at\030\007 \001(\0132\032.google." + "protobuf.Timestamp\0220\n\014completed_at\030\010 \001(\013" + "2\032.google.protobuf.Timestamp\0222\n\006status\030\t" + " \001(\0162\".yandex.cloud.ydb.v1.Backup.Status" + "\022<\n\017backup_settings\030\n \001(\0132#.yandex.cloud" + ".ydb.v1.BackupSettings\022.\n\004type\030\013 \001(\0162 .y" + "andex.cloud.ydb.v1.Backup.Type\022\014\n\004size\030\014" + " \001(\003\"S\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\014" + "\n\010CREATING\020\001\022\t\n\005READY\020\002\022\t\n\005ERROR\020\003\022\r\n\tCA" + "NCELLED\020\004\"2\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022" + "\n\n\006SYSTEM\020\001\022\010\n\004USER\020\002BV\n\027yandex.cloud.ap" + "i.ydb.v1Z;github.com/yandex-cloud/go-gen" + "proto/yandex/cloud/ydb/v1;ydbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.type.TimeOfDayProto.getDescriptor(), com.google.type.DayOfWeekProto.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_ydb_v1_BackupSchedule_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_ydb_v1_BackupSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_BackupSchedule_descriptor, new java.lang.String[] { "DailyBackupSchedule", "WeeklyBackupSchedule", "RecurringBackupSchedule", "NextExecuteTime", "Policy", }); internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_RecurringBackupSchedule_descriptor, new java.lang.String[] { "StartTime", "Recurrence", }); internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_DaysOfWeekBackupSchedule_descriptor, new java.lang.String[] { "Days", "ExecuteTime", }); internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_WeeklyBackupSchedule_descriptor, new java.lang.String[] { "DaysOfWeek", }); internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_DailyBackupSchedule_descriptor, new java.lang.String[] { "ExecuteTime", }); internal_static_yandex_cloud_ydb_v1_BackupSettings_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_ydb_v1_BackupSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_BackupSettings_descriptor, new java.lang.String[] { "Name", "Description", "BackupSchedule", "BackupTimeToLive", "SourcePaths", "SourcePathsToExclude", "Type", "StorageClass", }); internal_static_yandex_cloud_ydb_v1_BackupConfig_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_ydb_v1_BackupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_BackupConfig_descriptor, new java.lang.String[] { "BackupSettings", }); internal_static_yandex_cloud_ydb_v1_Backup_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_ydb_v1_Backup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_ydb_v1_Backup_descriptor, new java.lang.String[] { "Id", "Name", "FolderId", "DatabaseId", "Description", "CreatedAt", "StartedAt", "CompletedAt", "Status", "BackupSettings", "Type", "Size", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.exactlyOne); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.size); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.type.TimeOfDayProto.getDescriptor(); com.google.type.DayOfWeekProto.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy