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

yandex.cloud.api.backup.v1.PolicyOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.backup.v1;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * 
   * Format of the backup in policy. For backup locations that can be browsed
   * with a file manager, the backup format determines the number of files and
   * their extension.
   * 
* * Protobuf enum {@code yandex.cloud.backup.v1.Format} */ public enum Format implements com.google.protobuf.ProtocolMessageEnum { /** * FORMAT_UNSPECIFIED = 0; */ FORMAT_UNSPECIFIED(0), /** *
     * A legacy backup format used in older versions. It's not recommended to use.
     * 
* * VERSION_11 = 1; */ VERSION_11(1), /** *
     * A new format recommended in most cases for fast backup and recovery.
     * 
* * VERSION_12 = 2; */ VERSION_12(2), /** *
     * Automatic version selection. Will be used version 12 unless the protection
     * plan (policy) appends backups to the ones created by earlier product
     * versions.
     * 
* * AUTO = 3; */ AUTO(3), UNRECOGNIZED(-1), ; /** * FORMAT_UNSPECIFIED = 0; */ public static final int FORMAT_UNSPECIFIED_VALUE = 0; /** *
     * A legacy backup format used in older versions. It's not recommended to use.
     * 
* * VERSION_11 = 1; */ public static final int VERSION_11_VALUE = 1; /** *
     * A new format recommended in most cases for fast backup and recovery.
     * 
* * VERSION_12 = 2; */ public static final int VERSION_12_VALUE = 2; /** *
     * Automatic version selection. Will be used version 12 unless the protection
     * plan (policy) appends backups to the ones created by earlier product
     * versions.
     * 
* * AUTO = 3; */ public static final int AUTO_VALUE = 3; 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 Format 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 Format forNumber(int value) { switch (value) { case 0: return FORMAT_UNSPECIFIED; case 1: return VERSION_11; case 2: return VERSION_12; case 3: return AUTO; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Format> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Format findValueByNumber(int number) { return Format.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.backup.v1.PolicyOuterClass.getDescriptor().getEnumTypes().get(0); } private static final Format[] VALUES = values(); public static Format 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 Format(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.backup.v1.Format) } public interface PolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.Policy) com.google.protobuf.MessageOrBuilder { /** * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The id. */ java.lang.String getId(); /** * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The name. */ java.lang.String getName(); /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** * .google.protobuf.Timestamp updated_at = 4; * @return Whether the updatedAt field is set. */ boolean hasUpdatedAt(); /** * .google.protobuf.Timestamp updated_at = 4; * @return The updatedAt. */ com.google.protobuf.Timestamp getUpdatedAt(); /** * .google.protobuf.Timestamp updated_at = 4; */ com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); /** * bool enabled = 5; * @return The enabled. */ boolean getEnabled(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; * @return Whether the settings field is set. */ boolean hasSettings(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; * @return The settings. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder(); /** * string folder_id = 7; * @return The folderId. */ java.lang.String getFolderId(); /** * string folder_id = 7; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.Policy} */ public static final class Policy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.Policy) PolicyOrBuilder { private static final long serialVersionUID = 0L; // Use Policy.newBuilder() to construct. private Policy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Policy() { id_ = ""; name_ = ""; folderId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Policy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Policy( 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: { 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 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (updatedAt_ != null) { subBuilder = updatedAt_.toBuilder(); } updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updatedAt_); updatedAt_ = subBuilder.buildPartial(); } break; } case 40: { enabled_ = input.readBool(); break; } case 50: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder subBuilder = null; if (settings_ != null) { subBuilder = settings_.toBuilder(); } settings_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(settings_); settings_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_Policy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.class, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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_; /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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; } } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** * .google.protobuf.Timestamp created_at = 3; * @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 = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int UPDATED_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp updatedAt_; /** * .google.protobuf.Timestamp updated_at = 4; * @return Whether the updatedAt field is set. */ @java.lang.Override public boolean hasUpdatedAt() { return updatedAt_ != null; } /** * .google.protobuf.Timestamp updated_at = 4; * @return The updatedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdatedAt() { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } /** * .google.protobuf.Timestamp updated_at = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { return getUpdatedAt(); } public static final int ENABLED_FIELD_NUMBER = 5; private boolean enabled_; /** * bool enabled = 5; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } public static final int SETTINGS_FIELD_NUMBER = 6; private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings settings_; /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; * @return Whether the settings field is set. */ @java.lang.Override public boolean hasSettings() { return settings_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; * @return The settings. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings() { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder() { return getSettings(); } public static final int FOLDER_ID_FIELD_NUMBER = 7; private volatile java.lang.Object folderId_; /** * string folder_id = 7; * @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 = 7; * @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; } } 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 (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (updatedAt_ != null) { output.writeMessage(4, getUpdatedAt()); } if (enabled_ != false) { output.writeBool(5, enabled_); } if (settings_ != null) { output.writeMessage(6, getSettings()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, folderId_); } 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 (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (updatedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUpdatedAt()); } if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, enabled_); } if (settings_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSettings()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, folderId_); } 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.backup.v1.PolicyOuterClass.Policy)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.Policy other = (yandex.cloud.api.backup.v1.PolicyOuterClass.Policy) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasUpdatedAt() != other.hasUpdatedAt()) return false; if (hasUpdatedAt()) { if (!getUpdatedAt() .equals(other.getUpdatedAt())) return false; } if (getEnabled() != other.getEnabled()) return false; if (hasSettings() != other.hasSettings()) return false; if (hasSettings()) { if (!getSettings() .equals(other.getSettings())) return false; } if (!getFolderId() .equals(other.getFolderId())) 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(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasUpdatedAt()) { hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; hash = (53 * hash) + getUpdatedAt().hashCode(); } hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); if (hasSettings()) { hash = (37 * hash) + SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSettings().hashCode(); } hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy 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.backup.v1.PolicyOuterClass.Policy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy 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.backup.v1.PolicyOuterClass.Policy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy 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.backup.v1.PolicyOuterClass.Policy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy 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.backup.v1.PolicyOuterClass.Policy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy 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.backup.v1.PolicyOuterClass.Policy 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.backup.v1.Policy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.Policy) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_Policy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_Policy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.class, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.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_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (updatedAtBuilder_ == null) { updatedAt_ = null; } else { updatedAt_ = null; updatedAtBuilder_ = null; } enabled_ = false; if (settingsBuilder_ == null) { settings_ = null; } else { settings_ = null; settingsBuilder_ = null; } folderId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_Policy_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.Policy getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.Policy build() { yandex.cloud.api.backup.v1.PolicyOuterClass.Policy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.Policy buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.Policy result = new yandex.cloud.api.backup.v1.PolicyOuterClass.Policy(this); result.id_ = id_; result.name_ = name_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (updatedAtBuilder_ == null) { result.updatedAt_ = updatedAt_; } else { result.updatedAt_ = updatedAtBuilder_.build(); } result.enabled_ = enabled_; if (settingsBuilder_ == null) { result.settings_ = settings_; } else { result.settings_ = settingsBuilder_.build(); } result.folderId_ = folderId_; 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.backup.v1.PolicyOuterClass.Policy) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.Policy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.Policy other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasUpdatedAt()) { mergeUpdatedAt(other.getUpdatedAt()); } if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } if (other.hasSettings()) { mergeSettings(other.getSettings()); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; 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.backup.v1.PolicyOuterClass.Policy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.Policy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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_ = ""; /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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; } } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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; } } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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; } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 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 = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** * .google.protobuf.Timestamp created_at = 3; * @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 = 3; */ 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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp created_at = 3; */ 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 = 3; */ 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 updatedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; /** * .google.protobuf.Timestamp updated_at = 4; * @return Whether the updatedAt field is set. */ public boolean hasUpdatedAt() { return updatedAtBuilder_ != null || updatedAt_ != null; } /** * .google.protobuf.Timestamp updated_at = 4; * @return The updatedAt. */ public com.google.protobuf.Timestamp getUpdatedAt() { if (updatedAtBuilder_ == null) { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } else { return updatedAtBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp updated_at = 4; */ public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updatedAt_ = value; onChanged(); } else { updatedAtBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp updated_at = 4; */ public Builder setUpdatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (updatedAtBuilder_ == null) { updatedAt_ = builderForValue.build(); onChanged(); } else { updatedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp updated_at = 4; */ public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { if (updatedAtBuilder_ == null) { if (updatedAt_ != null) { updatedAt_ = com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); } else { updatedAt_ = value; } onChanged(); } else { updatedAtBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp updated_at = 4; */ public Builder clearUpdatedAt() { if (updatedAtBuilder_ == null) { updatedAt_ = null; onChanged(); } else { updatedAt_ = null; updatedAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp updated_at = 4; */ public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { onChanged(); return getUpdatedAtFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp updated_at = 4; */ public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { if (updatedAtBuilder_ != null) { return updatedAtBuilder_.getMessageOrBuilder(); } else { return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; } } /** * .google.protobuf.Timestamp updated_at = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdatedAtFieldBuilder() { if (updatedAtBuilder_ == null) { updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdatedAt(), getParentForChildren(), isClean()); updatedAt_ = null; } return updatedAtBuilder_; } private boolean enabled_ ; /** * bool enabled = 5; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** * bool enabled = 5; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** * bool enabled = 5; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; } private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings settings_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder> settingsBuilder_; /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; * @return Whether the settings field is set. */ public boolean hasSettings() { return settingsBuilder_ != null || settings_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; * @return The settings. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings() { if (settingsBuilder_ == null) { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } else { return settingsBuilder_.getMessage(); } } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ public Builder setSettings(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings value) { if (settingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } settings_ = value; onChanged(); } else { settingsBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ public Builder setSettings( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder builderForValue) { if (settingsBuilder_ == null) { settings_ = builderForValue.build(); onChanged(); } else { settingsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ public Builder mergeSettings(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings value) { if (settingsBuilder_ == null) { if (settings_ != null) { settings_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.newBuilder(settings_).mergeFrom(value).buildPartial(); } else { settings_ = value; } onChanged(); } else { settingsBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ public Builder clearSettings() { if (settingsBuilder_ == null) { settings_ = null; onChanged(); } else { settings_ = null; settingsBuilder_ = null; } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder getSettingsBuilder() { onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } } /** * .yandex.cloud.backup.v1.PolicySettings settings = 6; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder>( getSettings(), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; } private java.lang.Object folderId_ = ""; /** * string folder_id = 7; * @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 = 7; * @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 = 7; * @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 = 7; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** * string folder_id = 7; * @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; } @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.backup.v1.Policy) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.Policy) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.Policy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.Policy(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.Policy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Policy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Policy(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.backup.v1.PolicyOuterClass.Policy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PolicySettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings) com.google.protobuf.MessageOrBuilder { /** *
     * Archive compression level.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Compression compression = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for compression. */ int getCompressionValue(); /** *
     * Archive compression level.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Compression compression = 1 [(.yandex.cloud.required) = true]; * @return The compression. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Compression getCompression(); /** *
     * Format of the Acronis backup archive.
     * 
* * .yandex.cloud.backup.v1.Format format = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** *
     * Format of the Acronis backup archive.
     * 
* * .yandex.cloud.backup.v1.Format format = 2 [(.yandex.cloud.required) = true]; * @return The format. */ yandex.cloud.api.backup.v1.PolicyOuterClass.Format getFormat(); /** *
     * If true, snapshots of multiple volumes will be taken simultaneously.
     * 
* * bool multi_volume_snapshotting_enabled = 3; * @return The multiVolumeSnapshottingEnabled. */ boolean getMultiVolumeSnapshottingEnabled(); /** *
     * If true, the file security settings will be preserved.
     * 
* * bool preserve_file_security_settings = 4; * @return The preserveFileSecuritySettings. */ boolean getPreserveFileSecuritySettings(); /** *
     * Configuration of retries on recoverable errors during the backup operations like reconnection to destination. No attempts to fix recoverable errors will be made if retry configuration is not set.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration reattempts = 5 [(.yandex.cloud.required) = true]; * @return Whether the reattempts field is set. */ boolean hasReattempts(); /** *
     * Configuration of retries on recoverable errors during the backup operations like reconnection to destination. No attempts to fix recoverable errors will be made if retry configuration is not set.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration reattempts = 5 [(.yandex.cloud.required) = true]; * @return The reattempts. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration getReattempts(); /** *
     * Configuration of retries on recoverable errors during the backup operations like reconnection to destination. No attempts to fix recoverable errors will be made if retry configuration is not set.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration reattempts = 5 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfigurationOrBuilder getReattemptsOrBuilder(); /** *
     * If true, a user interaction will be avoided when possible. Equals to false if value is not specified.
     * 
* * bool silent_mode_enabled = 6; * @return The silentModeEnabled. */ boolean getSilentModeEnabled(); /** *
     * Determines the size to split backups on. Splitting is not performed if value is not specified.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Splitting splitting = 7 [(.yandex.cloud.required) = true]; * @return Whether the splitting field is set. */ boolean hasSplitting(); /** *
     * Determines the size to split backups on. Splitting is not performed if value is not specified.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Splitting splitting = 7 [(.yandex.cloud.required) = true]; * @return The splitting. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting getSplitting(); /** *
     * Determines the size to split backups on. Splitting is not performed if value is not specified.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Splitting splitting = 7 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.SplittingOrBuilder getSplittingOrBuilder(); /** *
     * Configuration of retries on errors during the creation of the virtual machine snapshot. No attempts to fix recoverable errors will be made if retry configuration is not set.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration vm_snapshot_reattempts = 8 [(.yandex.cloud.required) = true]; * @return Whether the vmSnapshotReattempts field is set. */ boolean hasVmSnapshotReattempts(); /** *
     * Configuration of retries on errors during the creation of the virtual machine snapshot. No attempts to fix recoverable errors will be made if retry configuration is not set.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration vm_snapshot_reattempts = 8 [(.yandex.cloud.required) = true]; * @return The vmSnapshotReattempts. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration getVmSnapshotReattempts(); /** *
     * Configuration of retries on errors during the creation of the virtual machine snapshot. No attempts to fix recoverable errors will be made if retry configuration is not set.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration vm_snapshot_reattempts = 8 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfigurationOrBuilder getVmSnapshotReattemptsOrBuilder(); /** *
     * Settings for the Volume Shadow Copy Service (VSS) provider. If not set, no VSS provider is used.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings vss = 9 [(.yandex.cloud.required) = true]; * @return Whether the vss field is set. */ boolean hasVss(); /** *
     * Settings for the Volume Shadow Copy Service (VSS) provider. If not set, no VSS provider is used.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings vss = 9 [(.yandex.cloud.required) = true]; * @return The vss. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings getVss(); /** *
     * Settings for the Volume Shadow Copy Service (VSS) provider. If not set, no VSS provider is used.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings vss = 9 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettingsOrBuilder getVssOrBuilder(); /** *
     * The archive properties.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.ArchiveProperties archive = 10; * @return Whether the archive field is set. */ boolean hasArchive(); /** *
     * The archive properties.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.ArchiveProperties archive = 10; * @return The archive. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties getArchive(); /** *
     * The archive properties.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.ArchiveProperties archive = 10; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchivePropertiesOrBuilder getArchiveOrBuilder(); /** *
     * Time windows for performance limitations of backup and storage maintenance operations.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.PerformanceWindow performance_window = 11 [(.yandex.cloud.required) = true]; * @return Whether the performanceWindow field is set. */ boolean hasPerformanceWindow(); /** *
     * Time windows for performance limitations of backup and storage maintenance operations.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.PerformanceWindow performance_window = 11 [(.yandex.cloud.required) = true]; * @return The performanceWindow. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow getPerformanceWindow(); /** *
     * Time windows for performance limitations of backup and storage maintenance operations.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.PerformanceWindow performance_window = 11 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindowOrBuilder getPerformanceWindowOrBuilder(); /** *
     * Configuration of backup retention rules.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Retention retention = 12 [(.yandex.cloud.required) = true]; * @return Whether the retention field is set. */ boolean hasRetention(); /** *
     * Configuration of backup retention rules.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Retention retention = 12 [(.yandex.cloud.required) = true]; * @return The retention. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention getRetention(); /** *
     * Configuration of backup retention rules.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Retention retention = 12 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetentionOrBuilder getRetentionOrBuilder(); /** *
     * Configuration of the backup schedule.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Scheduling scheduling = 15 [(.yandex.cloud.required) = true]; * @return Whether the scheduling field is set. */ boolean hasScheduling(); /** *
     * Configuration of the backup schedule.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Scheduling scheduling = 15 [(.yandex.cloud.required) = true]; * @return The scheduling. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling getScheduling(); /** *
     * Configuration of the backup schedule.
     * 
* * .yandex.cloud.backup.v1.PolicySettings.Scheduling scheduling = 15 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.SchedulingOrBuilder getSchedulingOrBuilder(); /** *
     * A configuration of Changed Block Tracking (CBT).
     * 
* * .yandex.cloud.backup.v1.PolicySettings.ChangedBlockTracking cbt = 16 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for cbt. */ int getCbtValue(); /** *
     * A configuration of Changed Block Tracking (CBT).
     * 
* * .yandex.cloud.backup.v1.PolicySettings.ChangedBlockTracking cbt = 16 [(.yandex.cloud.required) = true]; * @return The cbt. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ChangedBlockTracking getCbt(); /** *
     * If true, determines whether a file has changed by the file size and timestamp. Otherwise, the entire file contents are compared to those stored in the backup.
     * 
* * bool fast_backup_enabled = 17; * @return The fastBackupEnabled. */ boolean getFastBackupEnabled(); /** *
     * If true, a quiesced snapshot of the virtual machine will be taken.
     * 
* * bool quiesce_snapshotting_enabled = 18; * @return The quiesceSnapshottingEnabled. */ boolean getQuiesceSnapshottingEnabled(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings} */ public static final class PolicySettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings) PolicySettingsOrBuilder { private static final long serialVersionUID = 0L; // Use PolicySettings.newBuilder() to construct. private PolicySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PolicySettings() { compression_ = 0; format_ = 0; cbt_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PolicySettings(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PolicySettings( 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 8: { int rawValue = input.readEnum(); compression_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); format_ = rawValue; break; } case 24: { multiVolumeSnapshottingEnabled_ = input.readBool(); break; } case 32: { preserveFileSecuritySettings_ = input.readBool(); break; } case 42: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.Builder subBuilder = null; if (reattempts_ != null) { subBuilder = reattempts_.toBuilder(); } reattempts_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reattempts_); reattempts_ = subBuilder.buildPartial(); } break; } case 48: { silentModeEnabled_ = input.readBool(); break; } case 58: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.Builder subBuilder = null; if (splitting_ != null) { subBuilder = splitting_.toBuilder(); } splitting_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(splitting_); splitting_ = subBuilder.buildPartial(); } break; } case 66: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.Builder subBuilder = null; if (vmSnapshotReattempts_ != null) { subBuilder = vmSnapshotReattempts_.toBuilder(); } vmSnapshotReattempts_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(vmSnapshotReattempts_); vmSnapshotReattempts_ = subBuilder.buildPartial(); } break; } case 74: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.Builder subBuilder = null; if (vss_ != null) { subBuilder = vss_.toBuilder(); } vss_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(vss_); vss_ = subBuilder.buildPartial(); } break; } case 82: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.Builder subBuilder = null; if (archive_ != null) { subBuilder = archive_.toBuilder(); } archive_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(archive_); archive_ = subBuilder.buildPartial(); } break; } case 90: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.Builder subBuilder = null; if (performanceWindow_ != null) { subBuilder = performanceWindow_.toBuilder(); } performanceWindow_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(performanceWindow_); performanceWindow_ = subBuilder.buildPartial(); } break; } case 98: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.Builder subBuilder = null; if (retention_ != null) { subBuilder = retention_.toBuilder(); } retention_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(retention_); retention_ = subBuilder.buildPartial(); } break; } case 122: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.Builder subBuilder = null; if (scheduling_ != null) { subBuilder = scheduling_.toBuilder(); } scheduling_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scheduling_); scheduling_ = subBuilder.buildPartial(); } break; } case 128: { int rawValue = input.readEnum(); cbt_ = rawValue; break; } case 136: { fastBackupEnabled_ = input.readBool(); break; } case 144: { quiesceSnapshottingEnabled_ = input.readBool(); 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder.class); } /** *
     * Compression rate of the backups.
     * 
* * Protobuf enum {@code yandex.cloud.backup.v1.PolicySettings.Compression} */ public enum Compression implements com.google.protobuf.ProtocolMessageEnum { /** * COMPRESSION_UNSPECIFIED = 0; */ COMPRESSION_UNSPECIFIED(0), /** * NORMAL = 1; */ NORMAL(1), /** * HIGH = 2; */ HIGH(2), /** * MAX = 3; */ MAX(3), /** * OFF = 4; */ OFF(4), UNRECOGNIZED(-1), ; /** * COMPRESSION_UNSPECIFIED = 0; */ public static final int COMPRESSION_UNSPECIFIED_VALUE = 0; /** * NORMAL = 1; */ public static final int NORMAL_VALUE = 1; /** * HIGH = 2; */ public static final int HIGH_VALUE = 2; /** * MAX = 3; */ public static final int MAX_VALUE = 3; /** * OFF = 4; */ public static final int OFF_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 Compression 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 Compression forNumber(int value) { switch (value) { case 0: return COMPRESSION_UNSPECIFIED; case 1: return NORMAL; case 2: return HIGH; case 3: return MAX; case 4: return OFF; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Compression> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Compression findValueByNumber(int number) { return Compression.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.backup.v1.PolicyOuterClass.PolicySettings.getDescriptor().getEnumTypes().get(0); } private static final Compression[] VALUES = values(); public static Compression 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 Compression(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.backup.v1.PolicySettings.Compression) } /** * Protobuf enum {@code yandex.cloud.backup.v1.PolicySettings.RepeatePeriod} */ public enum RepeatePeriod implements com.google.protobuf.ProtocolMessageEnum { /** * REPEATE_PERIOD_UNSPECIFIED = 0; */ REPEATE_PERIOD_UNSPECIFIED(0), /** * HOURLY = 1; */ HOURLY(1), /** * DAILY = 2; */ DAILY(2), /** * WEEKLY = 3; */ WEEKLY(3), /** * MONTHLY = 4; */ MONTHLY(4), UNRECOGNIZED(-1), ; /** * REPEATE_PERIOD_UNSPECIFIED = 0; */ public static final int REPEATE_PERIOD_UNSPECIFIED_VALUE = 0; /** * HOURLY = 1; */ public static final int HOURLY_VALUE = 1; /** * DAILY = 2; */ public static final int DAILY_VALUE = 2; /** * WEEKLY = 3; */ public static final int WEEKLY_VALUE = 3; /** * MONTHLY = 4; */ public static final int MONTHLY_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 RepeatePeriod 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 RepeatePeriod forNumber(int value) { switch (value) { case 0: return REPEATE_PERIOD_UNSPECIFIED; case 1: return HOURLY; case 2: return DAILY; case 3: return WEEKLY; case 4: return MONTHLY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< RepeatePeriod> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RepeatePeriod findValueByNumber(int number) { return RepeatePeriod.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.backup.v1.PolicyOuterClass.PolicySettings.getDescriptor().getEnumTypes().get(1); } private static final RepeatePeriod[] VALUES = values(); public static RepeatePeriod 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 RepeatePeriod(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.backup.v1.PolicySettings.RepeatePeriod) } /** * Protobuf enum {@code yandex.cloud.backup.v1.PolicySettings.Day} */ public enum Day implements com.google.protobuf.ProtocolMessageEnum { /** * DAY_UNSPECIFIED = 0; */ DAY_UNSPECIFIED(0), /** * MONDAY = 1; */ MONDAY(1), /** * TUESDAY = 2; */ TUESDAY(2), /** * WEDNESDAY = 3; */ WEDNESDAY(3), /** * THURSDAY = 4; */ THURSDAY(4), /** * FRIDAY = 5; */ FRIDAY(5), /** * SATURDAY = 6; */ SATURDAY(6), /** * SUNDAY = 7; */ SUNDAY(7), UNRECOGNIZED(-1), ; /** * DAY_UNSPECIFIED = 0; */ public static final int DAY_UNSPECIFIED_VALUE = 0; /** * MONDAY = 1; */ public static final int MONDAY_VALUE = 1; /** * TUESDAY = 2; */ public static final int TUESDAY_VALUE = 2; /** * WEDNESDAY = 3; */ public static final int WEDNESDAY_VALUE = 3; /** * THURSDAY = 4; */ public static final int THURSDAY_VALUE = 4; /** * FRIDAY = 5; */ public static final int FRIDAY_VALUE = 5; /** * SATURDAY = 6; */ public static final int SATURDAY_VALUE = 6; /** * SUNDAY = 7; */ public static final int SUNDAY_VALUE = 7; 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 Day 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 Day forNumber(int value) { switch (value) { case 0: return DAY_UNSPECIFIED; case 1: return MONDAY; case 2: return TUESDAY; case 3: return WEDNESDAY; case 4: return THURSDAY; case 5: return FRIDAY; case 6: return SATURDAY; case 7: return SUNDAY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Day> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Day findValueByNumber(int number) { return Day.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.backup.v1.PolicyOuterClass.PolicySettings.getDescriptor().getEnumTypes().get(2); } private static final Day[] VALUES = values(); public static Day 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 Day(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.backup.v1.PolicySettings.Day) } /** * Protobuf enum {@code yandex.cloud.backup.v1.PolicySettings.ChangedBlockTracking} */ public enum ChangedBlockTracking implements com.google.protobuf.ProtocolMessageEnum { /** * CHANGED_BLOCK_TRACKING_UNSPECIFIED = 0; */ CHANGED_BLOCK_TRACKING_UNSPECIFIED(0), /** * USE_IF_ENABLED = 1; */ USE_IF_ENABLED(1), /** * ENABLE_AND_USE = 2; */ ENABLE_AND_USE(2), /** * DO_NOT_USE = 3; */ DO_NOT_USE(3), UNRECOGNIZED(-1), ; /** * CHANGED_BLOCK_TRACKING_UNSPECIFIED = 0; */ public static final int CHANGED_BLOCK_TRACKING_UNSPECIFIED_VALUE = 0; /** * USE_IF_ENABLED = 1; */ public static final int USE_IF_ENABLED_VALUE = 1; /** * ENABLE_AND_USE = 2; */ public static final int ENABLE_AND_USE_VALUE = 2; /** * DO_NOT_USE = 3; */ public static final int DO_NOT_USE_VALUE = 3; 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 ChangedBlockTracking 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 ChangedBlockTracking forNumber(int value) { switch (value) { case 0: return CHANGED_BLOCK_TRACKING_UNSPECIFIED; case 1: return USE_IF_ENABLED; case 2: return ENABLE_AND_USE; case 3: return DO_NOT_USE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ChangedBlockTracking> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ChangedBlockTracking findValueByNumber(int number) { return ChangedBlockTracking.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.backup.v1.PolicyOuterClass.PolicySettings.getDescriptor().getEnumTypes().get(3); } private static final ChangedBlockTracking[] VALUES = values(); public static ChangedBlockTracking 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 ChangedBlockTracking(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.backup.v1.PolicySettings.ChangedBlockTracking) } public interface IntervalOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.Interval) com.google.protobuf.MessageOrBuilder { /** *
       * A type of the interval.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
       * A type of the interval.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @return The type. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type getType(); /** *
       * The amount of value specified in `Interval.Type`.
       * 
* * int64 count = 2 [(.yandex.cloud.value) = ">0"]; * @return The count. */ long getCount(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.Interval} */ public static final class Interval extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.Interval) IntervalOrBuilder { private static final long serialVersionUID = 0L; // Use Interval.newBuilder() to construct. private Interval(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Interval() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Interval(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Interval( 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 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 16: { count_ = 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder.class); } /** * Protobuf enum {@code yandex.cloud.backup.v1.PolicySettings.Interval.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * SECONDS = 1; */ SECONDS(1), /** * MINUTES = 2; */ MINUTES(2), /** * HOURS = 3; */ HOURS(3), /** * DAYS = 4; */ DAYS(4), /** * WEEKS = 5; */ WEEKS(5), /** * MONTHS = 6; */ MONTHS(6), UNRECOGNIZED(-1), ; /** * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** * SECONDS = 1; */ public static final int SECONDS_VALUE = 1; /** * MINUTES = 2; */ public static final int MINUTES_VALUE = 2; /** * HOURS = 3; */ public static final int HOURS_VALUE = 3; /** * DAYS = 4; */ public static final int DAYS_VALUE = 4; /** * WEEKS = 5; */ public static final int WEEKS_VALUE = 5; /** * MONTHS = 6; */ public static final int MONTHS_VALUE = 6; 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 SECONDS; case 2: return MINUTES; case 3: return HOURS; case 4: return DAYS; case 5: return WEEKS; case 6: return MONTHS; 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.backup.v1.PolicyOuterClass.PolicySettings.Interval.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.backup.v1.PolicySettings.Interval.Type) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
       * A type of the interval.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * A type of the interval.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @return The type. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type result = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type.valueOf(type_); return result == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type.UNRECOGNIZED : result; } public static final int COUNT_FIELD_NUMBER = 2; private long count_; /** *
       * The amount of value specified in `Interval.Type`.
       * 
* * int64 count = 2 [(.yandex.cloud.value) = ">0"]; * @return The count. */ @java.lang.Override public long getCount() { return count_; } 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 (type_ != yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (count_ != 0L) { output.writeInt64(2, count_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (count_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, count_); } 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.backup.v1.PolicyOuterClass.PolicySettings.Interval)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) obj; if (type_ != other.type_) return false; if (getCount() != other.getCount()) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval 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.backup.v1.PolicyOuterClass.PolicySettings.Interval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval 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.backup.v1.PolicyOuterClass.PolicySettings.Interval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval 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.backup.v1.PolicyOuterClass.PolicySettings.Interval parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval 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.backup.v1.PolicyOuterClass.PolicySettings.Interval parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval 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.backup.v1.PolicyOuterClass.PolicySettings.Interval 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.backup.v1.PolicySettings.Interval} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.Interval) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Interval_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Interval_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.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(); type_ = 0; count_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Interval_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval(this); result.type_ = type_; result.count_ = count_; 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.backup.v1.PolicyOuterClass.PolicySettings.Interval) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getCount() != 0L) { setCount(other.getCount()); } 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.backup.v1.PolicyOuterClass.PolicySettings.Interval parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** *
         * A type of the interval.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
         * A type of the interval.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @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; } /** *
         * A type of the interval.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @return The type. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type result = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type.valueOf(type_); return result == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type.UNRECOGNIZED : result; } /** *
         * A type of the interval.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
         * A type of the interval.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval.Type type = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long count_ ; /** *
         * The amount of value specified in `Interval.Type`.
         * 
* * int64 count = 2 [(.yandex.cloud.value) = ">0"]; * @return The count. */ @java.lang.Override public long getCount() { return count_; } /** *
         * The amount of value specified in `Interval.Type`.
         * 
* * int64 count = 2 [(.yandex.cloud.value) = ">0"]; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(long value) { count_ = value; onChanged(); return this; } /** *
         * The amount of value specified in `Interval.Type`.
         * 
* * int64 count = 2 [(.yandex.cloud.value) = ">0"]; * @return This builder for chaining. */ public Builder clearCount() { count_ = 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.backup.v1.PolicySettings.Interval) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.Interval) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Interval parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Interval(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.backup.v1.PolicyOuterClass.PolicySettings.Interval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RetriesConfigurationOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration) com.google.protobuf.MessageOrBuilder { /** *
       * If true, enables retry on errors.
       * 
* * bool enabled = 1; * @return The enabled. */ boolean getEnabled(); /** *
       * An interval between retry attempts.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; * @return Whether the interval field is set. */ boolean hasInterval(); /** *
       * An interval between retry attempts.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; * @return The interval. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getInterval(); /** *
       * An interval between retry attempts.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getIntervalOrBuilder(); /** *
       * Max number of retry attempts. Operation will be considered as failed 
       * when max number of retry attempts is reached.
       * 
* * int64 max_attempts = 3 [(.yandex.cloud.value) = ">0"]; * @return The maxAttempts. */ long getMaxAttempts(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration} */ public static final class RetriesConfiguration extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration) RetriesConfigurationOrBuilder { private static final long serialVersionUID = 0L; // Use RetriesConfiguration.newBuilder() to construct. private RetriesConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RetriesConfiguration() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RetriesConfiguration(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RetriesConfiguration( 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 8: { enabled_ = input.readBool(); break; } case 18: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder subBuilder = null; if (interval_ != null) { subBuilder = interval_.toBuilder(); } interval_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interval_); interval_ = subBuilder.buildPartial(); } break; } case 24: { maxAttempts_ = 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_RetriesConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_RetriesConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** *
       * If true, enables retry on errors.
       * 
* * bool enabled = 1; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } public static final int INTERVAL_FIELD_NUMBER = 2; private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval interval_; /** *
       * An interval between retry attempts.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; * @return Whether the interval field is set. */ @java.lang.Override public boolean hasInterval() { return interval_ != null; } /** *
       * An interval between retry attempts.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; * @return The interval. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getInterval() { return interval_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance() : interval_; } /** *
       * An interval between retry attempts.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getIntervalOrBuilder() { return getInterval(); } public static final int MAX_ATTEMPTS_FIELD_NUMBER = 3; private long maxAttempts_; /** *
       * Max number of retry attempts. Operation will be considered as failed 
       * when max number of retry attempts is reached.
       * 
* * int64 max_attempts = 3 [(.yandex.cloud.value) = ">0"]; * @return The maxAttempts. */ @java.lang.Override public long getMaxAttempts() { return maxAttempts_; } 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 (enabled_ != false) { output.writeBool(1, enabled_); } if (interval_ != null) { output.writeMessage(2, getInterval()); } if (maxAttempts_ != 0L) { output.writeInt64(3, maxAttempts_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enabled_); } if (interval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInterval()); } if (maxAttempts_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, maxAttempts_); } 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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration) obj; if (getEnabled() != other.getEnabled()) return false; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { if (!getInterval() .equals(other.getInterval())) return false; } if (getMaxAttempts() != other.getMaxAttempts()) 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) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); if (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); } hash = (37 * hash) + MAX_ATTEMPTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxAttempts()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration 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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration 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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration 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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration 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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration 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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration 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.backup.v1.PolicySettings.RetriesConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_RetriesConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_RetriesConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.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(); enabled_ = false; if (intervalBuilder_ == null) { interval_ = null; } else { interval_ = null; intervalBuilder_ = null; } maxAttempts_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_RetriesConfiguration_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration(this); result.enabled_ = enabled_; if (intervalBuilder_ == null) { result.interval_ = interval_; } else { result.interval_ = intervalBuilder_.build(); } result.maxAttempts_ = maxAttempts_; 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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } if (other.hasInterval()) { mergeInterval(other.getInterval()); } if (other.getMaxAttempts() != 0L) { setMaxAttempts(other.getMaxAttempts()); } 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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean enabled_ ; /** *
         * If true, enables retry on errors.
         * 
* * bool enabled = 1; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** *
         * If true, enables retry on errors.
         * 
* * bool enabled = 1; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** *
         * If true, enables retry on errors.
         * 
* * bool enabled = 1; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; } private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval interval_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder> intervalBuilder_; /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; * @return The interval. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getInterval() { if (intervalBuilder_ == null) { return interval_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ public Builder setInterval(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval value) { if (intervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interval_ = value; onChanged(); } else { intervalBuilder_.setMessage(value); } return this; } /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ public Builder setInterval( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); onChanged(); } else { intervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ public Builder mergeInterval(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval value) { if (intervalBuilder_ == null) { if (interval_ != null) { interval_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.newBuilder(interval_).mergeFrom(value).buildPartial(); } else { interval_ = value; } onChanged(); } else { intervalBuilder_.mergeFrom(value); } return this; } /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ public Builder clearInterval() { if (intervalBuilder_ == null) { interval_ = null; onChanged(); } else { interval_ = null; intervalBuilder_ = null; } return this; } /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder getIntervalBuilder() { onChanged(); return getIntervalFieldBuilder().getBuilder(); } /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { return interval_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance() : interval_; } } /** *
         * An interval between retry attempts.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval interval = 2 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder>( getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; } private long maxAttempts_ ; /** *
         * Max number of retry attempts. Operation will be considered as failed 
         * when max number of retry attempts is reached.
         * 
* * int64 max_attempts = 3 [(.yandex.cloud.value) = ">0"]; * @return The maxAttempts. */ @java.lang.Override public long getMaxAttempts() { return maxAttempts_; } /** *
         * Max number of retry attempts. Operation will be considered as failed 
         * when max number of retry attempts is reached.
         * 
* * int64 max_attempts = 3 [(.yandex.cloud.value) = ">0"]; * @param value The maxAttempts to set. * @return This builder for chaining. */ public Builder setMaxAttempts(long value) { maxAttempts_ = value; onChanged(); return this; } /** *
         * Max number of retry attempts. Operation will be considered as failed 
         * when max number of retry attempts is reached.
         * 
* * int64 max_attempts = 3 [(.yandex.cloud.value) = ">0"]; * @return This builder for chaining. */ public Builder clearMaxAttempts() { maxAttempts_ = 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.backup.v1.PolicySettings.RetriesConfiguration) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.RetriesConfiguration) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RetriesConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RetriesConfiguration(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.backup.v1.PolicyOuterClass.PolicySettings.RetriesConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplittingOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.Splitting) com.google.protobuf.MessageOrBuilder { /** *
       * The size of split backup file in bytes.
       * 
* * int64 size = 1; * @return The size. */ long getSize(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.Splitting} */ public static final class Splitting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.Splitting) SplittingOrBuilder { private static final long serialVersionUID = 0L; // Use Splitting.newBuilder() to construct. private Splitting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Splitting() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Splitting(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Splitting( 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 8: { 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Splitting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Splitting_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.Builder.class); } public static final int SIZE_FIELD_NUMBER = 1; private long size_; /** *
       * The size of split backup file in bytes.
       * 
* * int64 size = 1; * @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 (size_ != 0L) { output.writeInt64(1, size_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting) obj; 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) + 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting 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.backup.v1.PolicySettings.Splitting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.Splitting) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.SplittingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Splitting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Splitting_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.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(); size_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Splitting_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting(this); 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting.getDefaultInstance()) return this; 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.backup.v1.PolicyOuterClass.PolicySettings.Splitting parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long size_ ; /** *
         * The size of split backup file in bytes.
         * 
* * int64 size = 1; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
         * The size of split backup file in bytes.
         * 
* * int64 size = 1; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
         * The size of split backup file in bytes.
         * 
* * int64 size = 1; * @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.backup.v1.PolicySettings.Splitting) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.Splitting) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Splitting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Splitting parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Splitting(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.backup.v1.PolicyOuterClass.PolicySettings.Splitting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VolumeShadowCopyServiceSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings) com.google.protobuf.MessageOrBuilder { /** *
       * If true, the VSS will be enabled.
       * 
* * bool enabled = 1; * @return The enabled. */ boolean getEnabled(); /** *
       * A type of VSS provider to use in backup.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for provider. */ int getProviderValue(); /** *
       * A type of VSS provider to use in backup.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @return The provider. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider getProvider(); } /** *
     * Settings for Volume Shadow Copy Services which allows to notify
     * VSS-aware applications that backup is about to start. This will
     * ensure the consistent state of all data used by the applications.
     * 
* * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings} */ public static final class VolumeShadowCopyServiceSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings) VolumeShadowCopyServiceSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use VolumeShadowCopyServiceSettings.newBuilder() to construct. private VolumeShadowCopyServiceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VolumeShadowCopyServiceSettings() { provider_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VolumeShadowCopyServiceSettings(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VolumeShadowCopyServiceSettings( 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 8: { enabled_ = input.readBool(); break; } case 16: { int rawValue = input.readEnum(); provider_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_VolumeShadowCopyServiceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_VolumeShadowCopyServiceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.Builder.class); } /** * Protobuf enum {@code yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider} */ public enum VSSProvider implements com.google.protobuf.ProtocolMessageEnum { /** * VSS_PROVIDER_UNSPECIFIED = 0; */ VSS_PROVIDER_UNSPECIFIED(0), /** * NATIVE = 1; */ NATIVE(1), /** * TARGET_SYSTEM_DEFINED = 2; */ TARGET_SYSTEM_DEFINED(2), UNRECOGNIZED(-1), ; /** * VSS_PROVIDER_UNSPECIFIED = 0; */ public static final int VSS_PROVIDER_UNSPECIFIED_VALUE = 0; /** * NATIVE = 1; */ public static final int NATIVE_VALUE = 1; /** * TARGET_SYSTEM_DEFINED = 2; */ public static final int TARGET_SYSTEM_DEFINED_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 VSSProvider 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 VSSProvider forNumber(int value) { switch (value) { case 0: return VSS_PROVIDER_UNSPECIFIED; case 1: return NATIVE; case 2: return TARGET_SYSTEM_DEFINED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< VSSProvider> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public VSSProvider findValueByNumber(int number) { return VSSProvider.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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.getDescriptor().getEnumTypes().get(0); } private static final VSSProvider[] VALUES = values(); public static VSSProvider 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 VSSProvider(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider) } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** *
       * If true, the VSS will be enabled.
       * 
* * bool enabled = 1; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } public static final int PROVIDER_FIELD_NUMBER = 2; private int provider_; /** *
       * A type of VSS provider to use in backup.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for provider. */ @java.lang.Override public int getProviderValue() { return provider_; } /** *
       * A type of VSS provider to use in backup.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @return The provider. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider getProvider() { @SuppressWarnings("deprecation") yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider result = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider.valueOf(provider_); return result == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider.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 (enabled_ != false) { output.writeBool(1, enabled_); } if (provider_ != yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider.VSS_PROVIDER_UNSPECIFIED.getNumber()) { output.writeEnum(2, provider_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enabled_); } if (provider_ != yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider.VSS_PROVIDER_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, provider_); } 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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings) obj; if (getEnabled() != other.getEnabled()) return false; if (provider_ != other.provider_) 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) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); hash = (37 * hash) + PROVIDER_FIELD_NUMBER; hash = (53 * hash) + provider_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings 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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings 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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings 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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings 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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings 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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings 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; } /** *
       * Settings for Volume Shadow Copy Services which allows to notify
       * VSS-aware applications that backup is about to start. This will
       * ensure the consistent state of all data used by the applications.
       * 
* * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_VolumeShadowCopyServiceSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_VolumeShadowCopyServiceSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.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(); enabled_ = false; provider_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_VolumeShadowCopyServiceSettings_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings(this); result.enabled_ = enabled_; result.provider_ = provider_; 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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } if (other.provider_ != 0) { setProviderValue(other.getProviderValue()); } 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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean enabled_ ; /** *
         * If true, the VSS will be enabled.
         * 
* * bool enabled = 1; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** *
         * If true, the VSS will be enabled.
         * 
* * bool enabled = 1; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** *
         * If true, the VSS will be enabled.
         * 
* * bool enabled = 1; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; } private int provider_ = 0; /** *
         * A type of VSS provider to use in backup.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for provider. */ @java.lang.Override public int getProviderValue() { return provider_; } /** *
         * A type of VSS provider to use in backup.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @param value The enum numeric value on the wire for provider to set. * @return This builder for chaining. */ public Builder setProviderValue(int value) { provider_ = value; onChanged(); return this; } /** *
         * A type of VSS provider to use in backup.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @return The provider. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider getProvider() { @SuppressWarnings("deprecation") yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider result = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider.valueOf(provider_); return result == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider.UNRECOGNIZED : result; } /** *
         * A type of VSS provider to use in backup.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @param value The provider to set. * @return This builder for chaining. */ public Builder setProvider(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider value) { if (value == null) { throw new NullPointerException(); } provider_ = value.getNumber(); onChanged(); return this; } /** *
         * A type of VSS provider to use in backup.
         * 
* * .yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings.VSSProvider provider = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearProvider() { provider_ = 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.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.VolumeShadowCopyServiceSettings) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VolumeShadowCopyServiceSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VolumeShadowCopyServiceSettings(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.backup.v1.PolicyOuterClass.PolicySettings.VolumeShadowCopyServiceSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ArchivePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.ArchiveProperties) com.google.protobuf.MessageOrBuilder { /** *
       * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
       * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
       * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
       * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
       * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
       * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.ArchiveProperties} */ public static final class ArchiveProperties extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.ArchiveProperties) ArchivePropertiesOrBuilder { private static final long serialVersionUID = 0L; // Use ArchiveProperties.newBuilder() to construct. private ArchiveProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ArchiveProperties() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ArchiveProperties(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ArchiveProperties( 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(); name_ = 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_ArchiveProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_ArchiveProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
       * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
       * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
       * 
* * string name = 1; * @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; } } /** *
       * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
       * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
       * 
* * string name = 1; * @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; } } 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_); } 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_); } 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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties) obj; if (!getName() .equals(other.getName())) 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties 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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties 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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties 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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties 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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties 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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties 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.backup.v1.PolicySettings.ArchiveProperties} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.ArchiveProperties) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchivePropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_ArchiveProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_ArchiveProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.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_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_ArchiveProperties_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties(this); result.name_ = name_; 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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; 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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
         * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
         * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
         * 
* * string name = 1; * @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; } } /** *
         * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
         * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
         * 
* * string name = 1; * @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; } } /** *
         * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
         * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
         * 
* * string name = 1; * @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; } /** *
         * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
         * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
         * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
         * The name of the generated archive. The name may use the following variables: `[Machine Name]`, `[Plan ID]`, `[Plan Name]`, `[Unique ID]`, `[Virtualization Server Type]`.
         * Default value: `[Machine Name]-[Plan ID]-[Unique ID]`.
         * 
* * string name = 1; * @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; } @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.backup.v1.PolicySettings.ArchiveProperties) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.ArchiveProperties) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ArchiveProperties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ArchiveProperties(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.backup.v1.PolicyOuterClass.PolicySettings.ArchiveProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PerformanceWindowOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.PerformanceWindow) com.google.protobuf.MessageOrBuilder { /** *
       * If true, the time windows will be enabled.
       * 
* * bool enabled = 1; * @return The enabled. */ boolean getEnabled(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.PerformanceWindow} */ public static final class PerformanceWindow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.PerformanceWindow) PerformanceWindowOrBuilder { private static final long serialVersionUID = 0L; // Use PerformanceWindow.newBuilder() to construct. private PerformanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PerformanceWindow() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PerformanceWindow(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PerformanceWindow( 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 8: { enabled_ = input.readBool(); 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_PerformanceWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_PerformanceWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** *
       * If true, the time windows will be enabled.
       * 
* * bool enabled = 1; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } 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 (enabled_ != false) { output.writeBool(1, enabled_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enabled_); } 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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow) obj; if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow 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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow 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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow 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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow 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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow 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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow 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.backup.v1.PolicySettings.PerformanceWindow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.PerformanceWindow) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_PerformanceWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_PerformanceWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.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(); enabled_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_PerformanceWindow_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow(this); result.enabled_ = enabled_; 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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } 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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean enabled_ ; /** *
         * If true, the time windows will be enabled.
         * 
* * bool enabled = 1; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** *
         * If true, the time windows will be enabled.
         * 
* * bool enabled = 1; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** *
         * If true, the time windows will be enabled.
         * 
* * bool enabled = 1; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; 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.backup.v1.PolicySettings.PerformanceWindow) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.PerformanceWindow) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PerformanceWindow parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PerformanceWindow(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.backup.v1.PolicyOuterClass.PolicySettings.PerformanceWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimeOfDayOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.TimeOfDay) com.google.protobuf.MessageOrBuilder { /** * int64 hour = 1; * @return The hour. */ long getHour(); /** * int64 minute = 2; * @return The minute. */ long getMinute(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.TimeOfDay} */ public static final class TimeOfDay extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.TimeOfDay) TimeOfDayOrBuilder { private static final long serialVersionUID = 0L; // Use TimeOfDay.newBuilder() to construct. private TimeOfDay(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeOfDay() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TimeOfDay(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TimeOfDay( 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 8: { hour_ = input.readInt64(); break; } case 16: { minute_ = 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_TimeOfDay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_TimeOfDay_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder.class); } public static final int HOUR_FIELD_NUMBER = 1; private long hour_; /** * int64 hour = 1; * @return The hour. */ @java.lang.Override public long getHour() { return hour_; } public static final int MINUTE_FIELD_NUMBER = 2; private long minute_; /** * int64 minute = 2; * @return The minute. */ @java.lang.Override public long getMinute() { return minute_; } 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 (hour_ != 0L) { output.writeInt64(1, hour_); } if (minute_ != 0L) { output.writeInt64(2, minute_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (hour_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, hour_); } if (minute_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, minute_); } 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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay) obj; if (getHour() != other.getHour()) return false; if (getMinute() != other.getMinute()) 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) + HOUR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHour()); hash = (37 * hash) + MINUTE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinute()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay 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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay 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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay 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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay 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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay 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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay 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.backup.v1.PolicySettings.TimeOfDay} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.TimeOfDay) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_TimeOfDay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_TimeOfDay_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.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(); hour_ = 0L; minute_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_TimeOfDay_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay(this); result.hour_ = hour_; result.minute_ = minute_; 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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance()) return this; if (other.getHour() != 0L) { setHour(other.getHour()); } if (other.getMinute() != 0L) { setMinute(other.getMinute()); } 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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long hour_ ; /** * int64 hour = 1; * @return The hour. */ @java.lang.Override public long getHour() { return hour_; } /** * int64 hour = 1; * @param value The hour to set. * @return This builder for chaining. */ public Builder setHour(long value) { hour_ = value; onChanged(); return this; } /** * int64 hour = 1; * @return This builder for chaining. */ public Builder clearHour() { hour_ = 0L; onChanged(); return this; } private long minute_ ; /** * int64 minute = 2; * @return The minute. */ @java.lang.Override public long getMinute() { return minute_; } /** * int64 minute = 2; * @param value The minute to set. * @return This builder for chaining. */ public Builder setMinute(long value) { minute_ = value; onChanged(); return this; } /** * int64 minute = 2; * @return This builder for chaining. */ public Builder clearMinute() { minute_ = 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.backup.v1.PolicySettings.TimeOfDay) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.TimeOfDay) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TimeOfDay parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimeOfDay(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.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RetentionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.Retention) com.google.protobuf.MessageOrBuilder { /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ java.util.List getRulesList(); /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule getRules(int index); /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ int getRulesCount(); /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ java.util.List getRulesOrBuilderList(); /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRuleOrBuilder getRulesOrBuilder( int index); /** *
       * If true, retention rules will be applied after backup is finished.
       * 
* * bool after_backup = 2; * @return The afterBackup. */ boolean getAfterBackup(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.Retention} */ public static final class Retention extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.Retention) RetentionOrBuilder { private static final long serialVersionUID = 0L; // Use Retention.newBuilder() to construct. private Retention(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Retention() { rules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Retention(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Retention( 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)) { rules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rules_.add( input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.parser(), extensionRegistry)); break; } case 16: { afterBackup_ = input.readBool(); 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)) { rules_ = java.util.Collections.unmodifiableList(rules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.Builder.class); } public interface RetentionRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule) com.google.protobuf.MessageOrBuilder { /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return A list containing the backupSet. */ java.util.List getBackupSetList(); /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return The count of backupSet. */ int getBackupSetCount(); /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param index The index of the element to return. * @return The backupSet at the given index. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod getBackupSet(int index); /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return A list containing the enum numeric values on the wire for backupSet. */ java.util.List getBackupSetValueList(); /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of backupSet at the given index. */ int getBackupSetValue(int index); /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; * @return Whether the maxAge field is set. */ boolean hasMaxAge(); /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; * @return The maxAge. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getMaxAge(); /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getMaxAgeOrBuilder(); /** * int64 max_count = 3; * @return Whether the maxCount field is set. */ boolean hasMaxCount(); /** * int64 max_count = 3; * @return The maxCount. */ long getMaxCount(); public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.ConditionCase getConditionCase(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule} */ public static final class RetentionRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule) RetentionRuleOrBuilder { private static final long serialVersionUID = 0L; // Use RetentionRule.newBuilder() to construct. private RetentionRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RetentionRule() { backupSet_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RetentionRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RetentionRule( 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)) { backupSet_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } backupSet_.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)) { backupSet_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } backupSet_.add(rawValue); } input.popLimit(oldLimit); break; } case 18: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder subBuilder = null; if (conditionCase_ == 2) { subBuilder = ((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_).toBuilder(); } condition_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_); condition_ = subBuilder.buildPartial(); } conditionCase_ = 2; break; } case 24: { condition_ = input.readInt64(); conditionCase_ = 3; 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)) { backupSet_ = java.util.Collections.unmodifiableList(backupSet_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_RetentionRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_RetentionRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder.class); } private int conditionCase_ = 0; private java.lang.Object condition_; public enum ConditionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MAX_AGE(2), MAX_COUNT(3), CONDITION_NOT_SET(0); private final int value; private ConditionCase(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 ConditionCase valueOf(int value) { return forNumber(value); } public static ConditionCase forNumber(int value) { switch (value) { case 2: return MAX_AGE; case 3: return MAX_COUNT; case 0: return CONDITION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ConditionCase getConditionCase() { return ConditionCase.forNumber( conditionCase_); } public static final int BACKUP_SET_FIELD_NUMBER = 1; private java.util.List backupSet_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod> backupSet_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod>() { public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod convert(java.lang.Integer from) { @SuppressWarnings("deprecation") yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod result = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod.valueOf(from); return result == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod.UNRECOGNIZED : result; } }; /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return A list containing the backupSet. */ @java.lang.Override public java.util.List getBackupSetList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod>(backupSet_, backupSet_converter_); } /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return The count of backupSet. */ @java.lang.Override public int getBackupSetCount() { return backupSet_.size(); } /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param index The index of the element to return. * @return The backupSet at the given index. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod getBackupSet(int index) { return backupSet_converter_.convert(backupSet_.get(index)); } /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return A list containing the enum numeric values on the wire for backupSet. */ @java.lang.Override public java.util.List getBackupSetValueList() { return backupSet_; } /** *
         * A list of backup sets where rules are effective.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of backupSet at the given index. */ @java.lang.Override public int getBackupSetValue(int index) { return backupSet_.get(index); } private int backupSetMemoizedSerializedSize; public static final int MAX_AGE_FIELD_NUMBER = 2; /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; * @return Whether the maxAge field is set. */ @java.lang.Override public boolean hasMaxAge() { return conditionCase_ == 2; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; * @return The maxAge. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getMaxAge() { if (conditionCase_ == 2) { return (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_; } return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance(); } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getMaxAgeOrBuilder() { if (conditionCase_ == 2) { return (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_; } return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance(); } public static final int MAX_COUNT_FIELD_NUMBER = 3; /** * int64 max_count = 3; * @return Whether the maxCount field is set. */ @java.lang.Override public boolean hasMaxCount() { return conditionCase_ == 3; } /** * int64 max_count = 3; * @return The maxCount. */ @java.lang.Override public long getMaxCount() { if (conditionCase_ == 3) { return (java.lang.Long) condition_; } return 0L; } 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 (getBackupSetList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(backupSetMemoizedSerializedSize); } for (int i = 0; i < backupSet_.size(); i++) { output.writeEnumNoTag(backupSet_.get(i)); } if (conditionCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_); } if (conditionCase_ == 3) { output.writeInt64( 3, (long)((java.lang.Long) condition_)); } 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 < backupSet_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(backupSet_.get(i)); } size += dataSize; if (!getBackupSetList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }backupSetMemoizedSerializedSize = dataSize; } if (conditionCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_); } if (conditionCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 3, (long)((java.lang.Long) condition_)); } 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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule) obj; if (!backupSet_.equals(other.backupSet_)) return false; if (!getConditionCase().equals(other.getConditionCase())) return false; switch (conditionCase_) { case 2: if (!getMaxAge() .equals(other.getMaxAge())) return false; break; case 3: if (getMaxCount() != other.getMaxCount()) 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 (getBackupSetCount() > 0) { hash = (37 * hash) + BACKUP_SET_FIELD_NUMBER; hash = (53 * hash) + backupSet_.hashCode(); } switch (conditionCase_) { case 2: hash = (37 * hash) + MAX_AGE_FIELD_NUMBER; hash = (53 * hash) + getMaxAge().hashCode(); break; case 3: hash = (37 * hash) + MAX_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxCount()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule 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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule 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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule 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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule 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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule 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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule 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.backup.v1.PolicySettings.Retention.RetentionRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_RetentionRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_RetentionRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.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(); backupSet_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); conditionCase_ = 0; condition_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_RetentionRule_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { backupSet_ = java.util.Collections.unmodifiableList(backupSet_); bitField0_ = (bitField0_ & ~0x00000001); } result.backupSet_ = backupSet_; if (conditionCase_ == 2) { if (maxAgeBuilder_ == null) { result.condition_ = condition_; } else { result.condition_ = maxAgeBuilder_.build(); } } if (conditionCase_ == 3) { result.condition_ = condition_; } result.conditionCase_ = conditionCase_; 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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.getDefaultInstance()) return this; if (!other.backupSet_.isEmpty()) { if (backupSet_.isEmpty()) { backupSet_ = other.backupSet_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBackupSetIsMutable(); backupSet_.addAll(other.backupSet_); } onChanged(); } switch (other.getConditionCase()) { case MAX_AGE: { mergeMaxAge(other.getMaxAge()); break; } case MAX_COUNT: { setMaxCount(other.getMaxCount()); break; } case CONDITION_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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int conditionCase_ = 0; private java.lang.Object condition_; public ConditionCase getConditionCase() { return ConditionCase.forNumber( conditionCase_); } public Builder clearCondition() { conditionCase_ = 0; condition_ = null; onChanged(); return this; } private int bitField0_; private java.util.List backupSet_ = java.util.Collections.emptyList(); private void ensureBackupSetIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { backupSet_ = new java.util.ArrayList(backupSet_); bitField0_ |= 0x00000001; } } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return A list containing the backupSet. */ public java.util.List getBackupSetList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod>(backupSet_, backupSet_converter_); } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return The count of backupSet. */ public int getBackupSetCount() { return backupSet_.size(); } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param index The index of the element to return. * @return The backupSet at the given index. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod getBackupSet(int index) { return backupSet_converter_.convert(backupSet_.get(index)); } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param index The index to set the value at. * @param value The backupSet to set. * @return This builder for chaining. */ public Builder setBackupSet( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod value) { if (value == null) { throw new NullPointerException(); } ensureBackupSetIsMutable(); backupSet_.set(index, value.getNumber()); onChanged(); return this; } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param value The backupSet to add. * @return This builder for chaining. */ public Builder addBackupSet(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod value) { if (value == null) { throw new NullPointerException(); } ensureBackupSetIsMutable(); backupSet_.add(value.getNumber()); onChanged(); return this; } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param values The backupSet to add. * @return This builder for chaining. */ public Builder addAllBackupSet( java.lang.Iterable values) { ensureBackupSetIsMutable(); for (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod value : values) { backupSet_.add(value.getNumber()); } onChanged(); return this; } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return This builder for chaining. */ public Builder clearBackupSet() { backupSet_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @return A list containing the enum numeric values on the wire for backupSet. */ public java.util.List getBackupSetValueList() { return java.util.Collections.unmodifiableList(backupSet_); } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of backupSet at the given index. */ public int getBackupSetValue(int index) { return backupSet_.get(index); } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param index The index of the value to return. * @return The enum numeric value on the wire of backupSet at the given index. * @return This builder for chaining. */ public Builder setBackupSetValue( int index, int value) { ensureBackupSetIsMutable(); backupSet_.set(index, value); onChanged(); return this; } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param value The enum numeric value on the wire for backupSet to add. * @return This builder for chaining. */ public Builder addBackupSetValue(int value) { ensureBackupSetIsMutable(); backupSet_.add(value); onChanged(); return this; } /** *
           * A list of backup sets where rules are effective.
           * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod backup_set = 1; * @param values The enum numeric values on the wire for backupSet to add. * @return This builder for chaining. */ public Builder addAllBackupSetValue( java.lang.Iterable values) { ensureBackupSetIsMutable(); for (int value : values) { backupSet_.add(value); } onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder> maxAgeBuilder_; /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; * @return Whether the maxAge field is set. */ @java.lang.Override public boolean hasMaxAge() { return conditionCase_ == 2; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; * @return The maxAge. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getMaxAge() { if (maxAgeBuilder_ == null) { if (conditionCase_ == 2) { return (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_; } return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance(); } else { if (conditionCase_ == 2) { return maxAgeBuilder_.getMessage(); } return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance(); } } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ public Builder setMaxAge(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval value) { if (maxAgeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } condition_ = value; onChanged(); } else { maxAgeBuilder_.setMessage(value); } conditionCase_ = 2; return this; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ public Builder setMaxAge( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder builderForValue) { if (maxAgeBuilder_ == null) { condition_ = builderForValue.build(); onChanged(); } else { maxAgeBuilder_.setMessage(builderForValue.build()); } conditionCase_ = 2; return this; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ public Builder mergeMaxAge(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval value) { if (maxAgeBuilder_ == null) { if (conditionCase_ == 2 && condition_ != yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance()) { condition_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.newBuilder((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_) .mergeFrom(value).buildPartial(); } else { condition_ = value; } onChanged(); } else { if (conditionCase_ == 2) { maxAgeBuilder_.mergeFrom(value); } maxAgeBuilder_.setMessage(value); } conditionCase_ = 2; return this; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ public Builder clearMaxAge() { if (maxAgeBuilder_ == null) { if (conditionCase_ == 2) { conditionCase_ = 0; condition_ = null; onChanged(); } } else { if (conditionCase_ == 2) { conditionCase_ = 0; condition_ = null; } maxAgeBuilder_.clear(); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder getMaxAgeBuilder() { return getMaxAgeFieldBuilder().getBuilder(); } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getMaxAgeOrBuilder() { if ((conditionCase_ == 2) && (maxAgeBuilder_ != null)) { return maxAgeBuilder_.getMessageOrBuilder(); } else { if (conditionCase_ == 2) { return (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_; } return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance(); } } /** * .yandex.cloud.backup.v1.PolicySettings.Interval max_age = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder> getMaxAgeFieldBuilder() { if (maxAgeBuilder_ == null) { if (!(conditionCase_ == 2)) { condition_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance(); } maxAgeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder>( (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval) condition_, getParentForChildren(), isClean()); condition_ = null; } conditionCase_ = 2; onChanged();; return maxAgeBuilder_; } /** * int64 max_count = 3; * @return Whether the maxCount field is set. */ public boolean hasMaxCount() { return conditionCase_ == 3; } /** * int64 max_count = 3; * @return The maxCount. */ public long getMaxCount() { if (conditionCase_ == 3) { return (java.lang.Long) condition_; } return 0L; } /** * int64 max_count = 3; * @param value The maxCount to set. * @return This builder for chaining. */ public Builder setMaxCount(long value) { conditionCase_ = 3; condition_ = value; onChanged(); return this; } /** * int64 max_count = 3; * @return This builder for chaining. */ public Builder clearMaxCount() { if (conditionCase_ == 3) { conditionCase_ = 0; condition_ = null; 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.backup.v1.PolicySettings.Retention.RetentionRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RetentionRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RetentionRule(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.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RULES_FIELD_NUMBER = 1; private java.util.List rules_; /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ @java.lang.Override public java.util.List getRulesList() { return rules_; } /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ @java.lang.Override public java.util.List getRulesOrBuilderList() { return rules_; } /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule getRules(int index) { return rules_.get(index); } /** *
       * A list of retention rules.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRuleOrBuilder getRulesOrBuilder( int index) { return rules_.get(index); } public static final int AFTER_BACKUP_FIELD_NUMBER = 2; private boolean afterBackup_; /** *
       * If true, retention rules will be applied after backup is finished.
       * 
* * bool after_backup = 2; * @return The afterBackup. */ @java.lang.Override public boolean getAfterBackup() { return afterBackup_; } 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 < rules_.size(); i++) { output.writeMessage(1, rules_.get(i)); } if (afterBackup_ != false) { output.writeBool(2, afterBackup_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, rules_.get(i)); } if (afterBackup_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, afterBackup_); } 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.backup.v1.PolicyOuterClass.PolicySettings.Retention)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention) obj; if (!getRulesList() .equals(other.getRulesList())) return false; if (getAfterBackup() != other.getAfterBackup()) 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 (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } hash = (37 * hash) + AFTER_BACKUP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAfterBackup()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention 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.backup.v1.PolicyOuterClass.PolicySettings.Retention parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention 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.backup.v1.PolicyOuterClass.PolicySettings.Retention parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention 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.backup.v1.PolicyOuterClass.PolicySettings.Retention parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention 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.backup.v1.PolicyOuterClass.PolicySettings.Retention parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention 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.backup.v1.PolicyOuterClass.PolicySettings.Retention 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.backup.v1.PolicySettings.Retention} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.Retention) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RetentionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rulesBuilder_.clear(); } afterBackup_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Retention_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention(this); int from_bitField0_ = bitField0_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000001); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } result.afterBackup_ = afterBackup_; 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.backup.v1.PolicyOuterClass.PolicySettings.Retention) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.getDefaultInstance()) return this; if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } if (other.getAfterBackup() != false) { setAfterBackup(other.getAfterBackup()); } 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.backup.v1.PolicyOuterClass.PolicySettings.Retention parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRuleOrBuilder> rulesBuilder_; /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder setRules( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder setRules( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder addRules(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder addRules( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder addRules( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder addRules( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.getDefaultInstance()); } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.getDefaultInstance()); } /** *
         * A list of retention rules.
         * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Retention.RetentionRule rules = 1; */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRule.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention.RetentionRuleOrBuilder>( rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } private boolean afterBackup_ ; /** *
         * If true, retention rules will be applied after backup is finished.
         * 
* * bool after_backup = 2; * @return The afterBackup. */ @java.lang.Override public boolean getAfterBackup() { return afterBackup_; } /** *
         * If true, retention rules will be applied after backup is finished.
         * 
* * bool after_backup = 2; * @param value The afterBackup to set. * @return This builder for chaining. */ public Builder setAfterBackup(boolean value) { afterBackup_ = value; onChanged(); return this; } /** *
         * If true, retention rules will be applied after backup is finished.
         * 
* * bool after_backup = 2; * @return This builder for chaining. */ public Builder clearAfterBackup() { afterBackup_ = false; 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.backup.v1.PolicySettings.Retention) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.Retention) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Retention getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Retention parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Retention(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.backup.v1.PolicyOuterClass.PolicySettings.Retention getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SchedulingOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.Scheduling) com.google.protobuf.MessageOrBuilder { /** *
       * A list of schedules with backup sets that compose the whole scheme.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet backup_sets = 1 [(.yandex.cloud.size) = ">0"]; */ java.util.List getBackupSetsList(); /** *
       * A list of schedules with backup sets that compose the whole scheme.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet backup_sets = 1 [(.yandex.cloud.size) = ">0"]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet getBackupSets(int index); /** *
       * A list of schedules with backup sets that compose the whole scheme.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet backup_sets = 1 [(.yandex.cloud.size) = ">0"]; */ int getBackupSetsCount(); /** *
       * A list of schedules with backup sets that compose the whole scheme.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet backup_sets = 1 [(.yandex.cloud.size) = ">0"]; */ java.util.List getBackupSetsOrBuilderList(); /** *
       * A list of schedules with backup sets that compose the whole scheme.
       * 
* * repeated .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet backup_sets = 1 [(.yandex.cloud.size) = ">0"]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSetOrBuilder getBackupSetsOrBuilder( int index); /** *
       * If true, the backup schedule will be enabled.
       * 
* * bool enabled = 2; * @return The enabled. */ boolean getEnabled(); /** *
       * Max number of backup processes allowed to run in parallel. Unlimited if not set.
       * 
* * int64 max_parallel_backups = 3; * @return The maxParallelBackups. */ long getMaxParallelBackups(); /** *
       * Configuration of the random delay between the execution of parallel tasks.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval rand_max_delay = 4 [(.yandex.cloud.required) = true]; * @return Whether the randMaxDelay field is set. */ boolean hasRandMaxDelay(); /** *
       * Configuration of the random delay between the execution of parallel tasks.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval rand_max_delay = 4 [(.yandex.cloud.required) = true]; * @return The randMaxDelay. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getRandMaxDelay(); /** *
       * Configuration of the random delay between the execution of parallel tasks.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Interval rand_max_delay = 4 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getRandMaxDelayOrBuilder(); /** *
       * A backup scheme. Available values: `simple`, `always_full`, `always_incremental`, `weekly_incremental`, `weekly_full_daily_incremental`, `custom`, `cdp`.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Scheduling.Scheme scheme = 5 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for scheme. */ int getSchemeValue(); /** *
       * A backup scheme. Available values: `simple`, `always_full`, `always_incremental`, `weekly_incremental`, `weekly_full_daily_incremental`, `custom`, `cdp`.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Scheduling.Scheme scheme = 5 [(.yandex.cloud.required) = true]; * @return The scheme. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.Scheme getScheme(); /** *
       * A day of week to start weekly backups.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Day weekly_backup_day = 6 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for weeklyBackupDay. */ int getWeeklyBackupDayValue(); /** *
       * A day of week to start weekly backups.
       * 
* * .yandex.cloud.backup.v1.PolicySettings.Day weekly_backup_day = 6 [(.yandex.cloud.required) = true]; * @return The weeklyBackupDay. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day getWeeklyBackupDay(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.Scheduling} */ public static final class Scheduling extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.Scheduling) SchedulingOrBuilder { private static final long serialVersionUID = 0L; // Use Scheduling.newBuilder() to construct. private Scheduling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Scheduling() { backupSets_ = java.util.Collections.emptyList(); scheme_ = 0; weeklyBackupDay_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Scheduling(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Scheduling( 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)) { backupSets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } backupSets_.add( input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.parser(), extensionRegistry)); break; } case 16: { enabled_ = input.readBool(); break; } case 24: { maxParallelBackups_ = input.readInt64(); break; } case 34: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder subBuilder = null; if (randMaxDelay_ != null) { subBuilder = randMaxDelay_.toBuilder(); } randMaxDelay_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(randMaxDelay_); randMaxDelay_ = subBuilder.buildPartial(); } break; } case 40: { int rawValue = input.readEnum(); scheme_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); weeklyBackupDay_ = 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)) { backupSets_ = java.util.Collections.unmodifiableList(backupSets_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.Builder.class); } /** *
       * Scheme of backups.
       * 
* * Protobuf enum {@code yandex.cloud.backup.v1.PolicySettings.Scheduling.Scheme} */ public enum Scheme implements com.google.protobuf.ProtocolMessageEnum { /** * SCHEME_UNSPECIFIED = 0; */ SCHEME_UNSPECIFIED(0), /** * SIMPLE = 1; */ SIMPLE(1), /** * ALWAYS_FULL = 2; */ ALWAYS_FULL(2), /** * ALWAYS_INCREMENTAL = 3; */ ALWAYS_INCREMENTAL(3), /** * WEEKLY_INCREMENTAL = 4; */ WEEKLY_INCREMENTAL(4), /** * WEEKLY_FULL_DAILY_INCREMENTAL = 5; */ WEEKLY_FULL_DAILY_INCREMENTAL(5), /** *
         * Custom will require to specify schedules for full, differential
         * and incremental backups additionally.
         * 
* * CUSTOM = 6; */ CUSTOM(6), /** * CDP = 7; */ CDP(7), UNRECOGNIZED(-1), ; /** * SCHEME_UNSPECIFIED = 0; */ public static final int SCHEME_UNSPECIFIED_VALUE = 0; /** * SIMPLE = 1; */ public static final int SIMPLE_VALUE = 1; /** * ALWAYS_FULL = 2; */ public static final int ALWAYS_FULL_VALUE = 2; /** * ALWAYS_INCREMENTAL = 3; */ public static final int ALWAYS_INCREMENTAL_VALUE = 3; /** * WEEKLY_INCREMENTAL = 4; */ public static final int WEEKLY_INCREMENTAL_VALUE = 4; /** * WEEKLY_FULL_DAILY_INCREMENTAL = 5; */ public static final int WEEKLY_FULL_DAILY_INCREMENTAL_VALUE = 5; /** *
         * Custom will require to specify schedules for full, differential
         * and incremental backups additionally.
         * 
* * CUSTOM = 6; */ public static final int CUSTOM_VALUE = 6; /** * CDP = 7; */ public static final int CDP_VALUE = 7; 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 Scheme 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 Scheme forNumber(int value) { switch (value) { case 0: return SCHEME_UNSPECIFIED; case 1: return SIMPLE; case 2: return ALWAYS_FULL; case 3: return ALWAYS_INCREMENTAL; case 4: return WEEKLY_INCREMENTAL; case 5: return WEEKLY_FULL_DAILY_INCREMENTAL; case 6: return CUSTOM; case 7: return CDP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Scheme> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Scheme findValueByNumber(int number) { return Scheme.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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.getDescriptor().getEnumTypes().get(0); } private static final Scheme[] VALUES = values(); public static Scheme 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 Scheme(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.backup.v1.PolicySettings.Scheduling.Scheme) } public interface BackupSetOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.Time time = 1; * @return Whether the time field is set. */ boolean hasTime(); /** * .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.Time time = 1; * @return The time. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time getTime(); /** * .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.Time time = 1; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.TimeOrBuilder getTimeOrBuilder(); /** * .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.SinceLastExecTime since_last_exec_time = 2; * @return Whether the sinceLastExecTime field is set. */ boolean hasSinceLastExecTime(); /** * .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.SinceLastExecTime since_last_exec_time = 2; * @return The sinceLastExecTime. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.SinceLastExecTime getSinceLastExecTime(); /** * .yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.SinceLastExecTime since_last_exec_time = 2; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.SinceLastExecTimeOrBuilder getSinceLastExecTimeOrBuilder(); public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.SettingCase getSettingCase(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet} */ public static final class BackupSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet) BackupSetOrBuilder { private static final long serialVersionUID = 0L; // Use BackupSet.newBuilder() to construct. private BackupSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BackupSet() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BackupSet(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BackupSet( 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.Builder subBuilder = null; if (settingCase_ == 1) { subBuilder = ((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time) setting_).toBuilder(); } setting_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time) setting_); setting_ = subBuilder.buildPartial(); } settingCase_ = 1; break; } case 18: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.SinceLastExecTime.Builder subBuilder = null; if (settingCase_ == 2) { subBuilder = ((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.SinceLastExecTime) setting_).toBuilder(); } setting_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.SinceLastExecTime.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.SinceLastExecTime) setting_); setting_ = subBuilder.buildPartial(); } settingCase_ = 2; 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.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_BackupSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_BackupSet_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Builder.class); } public interface TimeOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.Time) com.google.protobuf.MessageOrBuilder { /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return A list containing the weekdays. */ java.util.List getWeekdaysList(); /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return The count of weekdays. */ int getWeekdaysCount(); /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The weekdays at the given index. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day getWeekdays(int index); /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return A list containing the enum numeric values on the wire for weekdays. */ java.util.List getWeekdaysValueList(); /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The enum numeric value on the wire of weekdays at the given index. */ int getWeekdaysValue(int index); /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ java.util.List getRepeatAtList(); /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getRepeatAt(int index); /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ int getRepeatAtCount(); /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ java.util.List getRepeatAtOrBuilderList(); /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getRepeatAtOrBuilder( int index); /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; * @return Whether the repeatEvery field is set. */ boolean hasRepeatEvery(); /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; * @return The repeatEvery. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getRepeatEvery(); /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getRepeatEveryOrBuilder(); /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; * @return Whether the timeFrom field is set. */ boolean hasTimeFrom(); /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; * @return The timeFrom. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getTimeFrom(); /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getTimeFromOrBuilder(); /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; * @return Whether the timeTo field is set. */ boolean hasTimeTo(); /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; * @return The timeTo. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getTimeTo(); /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getTimeToOrBuilder(); /** *
           * Monthdays are days in month.
           * Allowed values are from 1 to 31.
           * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @return A list containing the monthdays. */ java.util.List getMonthdaysList(); /** *
           * Monthdays are days in month.
           * Allowed values are from 1 to 31.
           * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @return The count of monthdays. */ int getMonthdaysCount(); /** *
           * Monthdays are days in month.
           * Allowed values are from 1 to 31.
           * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The monthdays at the given index. */ long getMonthdays(int index); /** *
           * If set to true, last day of month will activate
           * the policy.
           * 
* * bool include_last_day_of_month = 7; * @return The includeLastDayOfMonth. */ boolean getIncludeLastDayOfMonth(); /** *
           * Set of values. Allowed values form 1 to 12.
           * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @return A list containing the months. */ java.util.List getMonthsList(); /** *
           * Set of values. Allowed values form 1 to 12.
           * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @return The count of months. */ int getMonthsCount(); /** *
           * Set of values. Allowed values form 1 to 12.
           * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The months at the given index. */ long getMonths(int index); /** * .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @return The type. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod getType(); } /** * Protobuf type {@code yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.Time} */ public static final class Time extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.Time) TimeOrBuilder { private static final long serialVersionUID = 0L; // Use Time.newBuilder() to construct. private Time(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Time() { weekdays_ = java.util.Collections.emptyList(); repeatAt_ = java.util.Collections.emptyList(); monthdays_ = emptyLongList(); months_ = emptyLongList(); type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Time(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Time( 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)) { weekdays_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } weekdays_.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)) { weekdays_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } weekdays_.add(rawValue); } input.popLimit(oldLimit); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { repeatAt_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } repeatAt_.add( input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.parser(), extensionRegistry)); break; } case 26: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder subBuilder = null; if (repeatEvery_ != null) { subBuilder = repeatEvery_.toBuilder(); } repeatEvery_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(repeatEvery_); repeatEvery_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder subBuilder = null; if (timeFrom_ != null) { subBuilder = timeFrom_.toBuilder(); } timeFrom_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timeFrom_); timeFrom_ = subBuilder.buildPartial(); } break; } case 42: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder subBuilder = null; if (timeTo_ != null) { subBuilder = timeTo_.toBuilder(); } timeTo_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timeTo_); timeTo_ = subBuilder.buildPartial(); } break; } case 48: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { monthdays_ = newLongList(); mutable_bitField0_ |= 0x00000004; } monthdays_.addLong(input.readInt64()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { monthdays_ = newLongList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { monthdays_.addLong(input.readInt64()); } input.popLimit(limit); break; } case 56: { includeLastDayOfMonth_ = input.readBool(); break; } case 64: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { months_ = newLongList(); mutable_bitField0_ |= 0x00000008; } months_.addLong(input.readInt64()); break; } case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { months_ = newLongList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { months_.addLong(input.readInt64()); } input.popLimit(limit); break; } case 72: { int rawValue = input.readEnum(); type_ = 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)) { weekdays_ = java.util.Collections.unmodifiableList(weekdays_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { repeatAt_ = java.util.Collections.unmodifiableList(repeatAt_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { monthdays_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000008) != 0)) { months_.makeImmutable(); // C } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_BackupSet_Time_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_BackupSet_Time_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.Builder.class); } public static final int WEEKDAYS_FIELD_NUMBER = 1; private java.util.List weekdays_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day> weekdays_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day>() { public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day convert(java.lang.Integer from) { @SuppressWarnings("deprecation") yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day result = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day.valueOf(from); return result == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day.UNRECOGNIZED : result; } }; /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return A list containing the weekdays. */ @java.lang.Override public java.util.List getWeekdaysList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day>(weekdays_, weekdays_converter_); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return The count of weekdays. */ @java.lang.Override public int getWeekdaysCount() { return weekdays_.size(); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The weekdays at the given index. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day getWeekdays(int index) { return weekdays_converter_.convert(weekdays_.get(index)); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return A list containing the enum numeric values on the wire for weekdays. */ @java.lang.Override public java.util.List getWeekdaysValueList() { return weekdays_; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The enum numeric value on the wire of weekdays at the given index. */ @java.lang.Override public int getWeekdaysValue(int index) { return weekdays_.get(index); } private int weekdaysMemoizedSerializedSize; public static final int REPEAT_AT_FIELD_NUMBER = 2; private java.util.List repeatAt_; /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ @java.lang.Override public java.util.List getRepeatAtList() { return repeatAt_; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ @java.lang.Override public java.util.List getRepeatAtOrBuilderList() { return repeatAt_; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ @java.lang.Override public int getRepeatAtCount() { return repeatAt_.size(); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getRepeatAt(int index) { return repeatAt_.get(index); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getRepeatAtOrBuilder( int index) { return repeatAt_.get(index); } public static final int REPEAT_EVERY_FIELD_NUMBER = 3; private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval repeatEvery_; /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; * @return Whether the repeatEvery field is set. */ @java.lang.Override public boolean hasRepeatEvery() { return repeatEvery_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; * @return The repeatEvery. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getRepeatEvery() { return repeatEvery_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance() : repeatEvery_; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getRepeatEveryOrBuilder() { return getRepeatEvery(); } public static final int TIME_FROM_FIELD_NUMBER = 4; private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay timeFrom_; /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; * @return Whether the timeFrom field is set. */ @java.lang.Override public boolean hasTimeFrom() { return timeFrom_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; * @return The timeFrom. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getTimeFrom() { return timeFrom_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance() : timeFrom_; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getTimeFromOrBuilder() { return getTimeFrom(); } public static final int TIME_TO_FIELD_NUMBER = 5; private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay timeTo_; /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; * @return Whether the timeTo field is set. */ @java.lang.Override public boolean hasTimeTo() { return timeTo_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; * @return The timeTo. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getTimeTo() { return timeTo_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance() : timeTo_; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getTimeToOrBuilder() { return getTimeTo(); } public static final int MONTHDAYS_FIELD_NUMBER = 6; private com.google.protobuf.Internal.LongList monthdays_; /** *
           * Monthdays are days in month.
           * Allowed values are from 1 to 31.
           * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @return A list containing the monthdays. */ @java.lang.Override public java.util.List getMonthdaysList() { return monthdays_; } /** *
           * Monthdays are days in month.
           * Allowed values are from 1 to 31.
           * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @return The count of monthdays. */ public int getMonthdaysCount() { return monthdays_.size(); } /** *
           * Monthdays are days in month.
           * Allowed values are from 1 to 31.
           * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The monthdays at the given index. */ public long getMonthdays(int index) { return monthdays_.getLong(index); } private int monthdaysMemoizedSerializedSize = -1; public static final int INCLUDE_LAST_DAY_OF_MONTH_FIELD_NUMBER = 7; private boolean includeLastDayOfMonth_; /** *
           * If set to true, last day of month will activate
           * the policy.
           * 
* * bool include_last_day_of_month = 7; * @return The includeLastDayOfMonth. */ @java.lang.Override public boolean getIncludeLastDayOfMonth() { return includeLastDayOfMonth_; } public static final int MONTHS_FIELD_NUMBER = 8; private com.google.protobuf.Internal.LongList months_; /** *
           * Set of values. Allowed values form 1 to 12.
           * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @return A list containing the months. */ @java.lang.Override public java.util.List getMonthsList() { return months_; } /** *
           * Set of values. Allowed values form 1 to 12.
           * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @return The count of months. */ public int getMonthsCount() { return months_.size(); } /** *
           * Set of values. Allowed values form 1 to 12.
           * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The months at the given index. */ public long getMonths(int index) { return months_.getLong(index); } private int monthsMemoizedSerializedSize = -1; public static final int TYPE_FIELD_NUMBER = 9; private int type_; /** * .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @return The type. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod getType() { @SuppressWarnings("deprecation") yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod result = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod.valueOf(type_); return result == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod.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 { getSerializedSize(); if (getWeekdaysList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(weekdaysMemoizedSerializedSize); } for (int i = 0; i < weekdays_.size(); i++) { output.writeEnumNoTag(weekdays_.get(i)); } for (int i = 0; i < repeatAt_.size(); i++) { output.writeMessage(2, repeatAt_.get(i)); } if (repeatEvery_ != null) { output.writeMessage(3, getRepeatEvery()); } if (timeFrom_ != null) { output.writeMessage(4, getTimeFrom()); } if (timeTo_ != null) { output.writeMessage(5, getTimeTo()); } if (getMonthdaysList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(monthdaysMemoizedSerializedSize); } for (int i = 0; i < monthdays_.size(); i++) { output.writeInt64NoTag(monthdays_.getLong(i)); } if (includeLastDayOfMonth_ != false) { output.writeBool(7, includeLastDayOfMonth_); } if (getMonthsList().size() > 0) { output.writeUInt32NoTag(66); output.writeUInt32NoTag(monthsMemoizedSerializedSize); } for (int i = 0; i < months_.size(); i++) { output.writeInt64NoTag(months_.getLong(i)); } if (type_ != yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod.REPEATE_PERIOD_UNSPECIFIED.getNumber()) { output.writeEnum(9, type_); } 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 < weekdays_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(weekdays_.get(i)); } size += dataSize; if (!getWeekdaysList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }weekdaysMemoizedSerializedSize = dataSize; } for (int i = 0; i < repeatAt_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, repeatAt_.get(i)); } if (repeatEvery_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRepeatEvery()); } if (timeFrom_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTimeFrom()); } if (timeTo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTimeTo()); } { int dataSize = 0; for (int i = 0; i < monthdays_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(monthdays_.getLong(i)); } size += dataSize; if (!getMonthdaysList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } monthdaysMemoizedSerializedSize = dataSize; } if (includeLastDayOfMonth_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, includeLastDayOfMonth_); } { int dataSize = 0; for (int i = 0; i < months_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(months_.getLong(i)); } size += dataSize; if (!getMonthsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } monthsMemoizedSerializedSize = dataSize; } if (type_ != yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod.REPEATE_PERIOD_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, type_); } 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time other = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time) obj; if (!weekdays_.equals(other.weekdays_)) return false; if (!getRepeatAtList() .equals(other.getRepeatAtList())) return false; if (hasRepeatEvery() != other.hasRepeatEvery()) return false; if (hasRepeatEvery()) { if (!getRepeatEvery() .equals(other.getRepeatEvery())) return false; } if (hasTimeFrom() != other.hasTimeFrom()) return false; if (hasTimeFrom()) { if (!getTimeFrom() .equals(other.getTimeFrom())) return false; } if (hasTimeTo() != other.hasTimeTo()) return false; if (hasTimeTo()) { if (!getTimeTo() .equals(other.getTimeTo())) return false; } if (!getMonthdaysList() .equals(other.getMonthdaysList())) return false; if (getIncludeLastDayOfMonth() != other.getIncludeLastDayOfMonth()) return false; if (!getMonthsList() .equals(other.getMonthsList())) return false; if (type_ != other.type_) 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 (getWeekdaysCount() > 0) { hash = (37 * hash) + WEEKDAYS_FIELD_NUMBER; hash = (53 * hash) + weekdays_.hashCode(); } if (getRepeatAtCount() > 0) { hash = (37 * hash) + REPEAT_AT_FIELD_NUMBER; hash = (53 * hash) + getRepeatAtList().hashCode(); } if (hasRepeatEvery()) { hash = (37 * hash) + REPEAT_EVERY_FIELD_NUMBER; hash = (53 * hash) + getRepeatEvery().hashCode(); } if (hasTimeFrom()) { hash = (37 * hash) + TIME_FROM_FIELD_NUMBER; hash = (53 * hash) + getTimeFrom().hashCode(); } if (hasTimeTo()) { hash = (37 * hash) + TIME_TO_FIELD_NUMBER; hash = (53 * hash) + getTimeTo().hashCode(); } if (getMonthdaysCount() > 0) { hash = (37 * hash) + MONTHDAYS_FIELD_NUMBER; hash = (53 * hash) + getMonthdaysList().hashCode(); } hash = (37 * hash) + INCLUDE_LAST_DAY_OF_MONTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIncludeLastDayOfMonth()); if (getMonthsCount() > 0) { hash = (37 * hash) + MONTHS_FIELD_NUMBER; hash = (53 * hash) + getMonthsList().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time 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.backup.v1.PolicySettings.Scheduling.BackupSet.Time} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.Time) yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.TimeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_BackupSet_Time_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_BackupSet_Time_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.class, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRepeatAtFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); weekdays_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (repeatAtBuilder_ == null) { repeatAt_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { repeatAtBuilder_.clear(); } if (repeatEveryBuilder_ == null) { repeatEvery_ = null; } else { repeatEvery_ = null; repeatEveryBuilder_ = null; } if (timeFromBuilder_ == null) { timeFrom_ = null; } else { timeFrom_ = null; timeFromBuilder_ = null; } if (timeToBuilder_ == null) { timeTo_ = null; } else { timeTo_ = null; timeToBuilder_ = null; } monthdays_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); includeLastDayOfMonth_ = false; months_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.internal_static_yandex_cloud_backup_v1_PolicySettings_Scheduling_BackupSet_Time_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time build() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time buildPartial() { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time result = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { weekdays_ = java.util.Collections.unmodifiableList(weekdays_); bitField0_ = (bitField0_ & ~0x00000001); } result.weekdays_ = weekdays_; if (repeatAtBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { repeatAt_ = java.util.Collections.unmodifiableList(repeatAt_); bitField0_ = (bitField0_ & ~0x00000002); } result.repeatAt_ = repeatAt_; } else { result.repeatAt_ = repeatAtBuilder_.build(); } if (repeatEveryBuilder_ == null) { result.repeatEvery_ = repeatEvery_; } else { result.repeatEvery_ = repeatEveryBuilder_.build(); } if (timeFromBuilder_ == null) { result.timeFrom_ = timeFrom_; } else { result.timeFrom_ = timeFromBuilder_.build(); } if (timeToBuilder_ == null) { result.timeTo_ = timeTo_; } else { result.timeTo_ = timeToBuilder_.build(); } if (((bitField0_ & 0x00000004) != 0)) { monthdays_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.monthdays_ = monthdays_; result.includeLastDayOfMonth_ = includeLastDayOfMonth_; if (((bitField0_ & 0x00000008) != 0)) { months_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000008); } result.months_ = months_; result.type_ = type_; 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time other) { if (other == yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time.getDefaultInstance()) return this; if (!other.weekdays_.isEmpty()) { if (weekdays_.isEmpty()) { weekdays_ = other.weekdays_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWeekdaysIsMutable(); weekdays_.addAll(other.weekdays_); } onChanged(); } if (repeatAtBuilder_ == null) { if (!other.repeatAt_.isEmpty()) { if (repeatAt_.isEmpty()) { repeatAt_ = other.repeatAt_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRepeatAtIsMutable(); repeatAt_.addAll(other.repeatAt_); } onChanged(); } } else { if (!other.repeatAt_.isEmpty()) { if (repeatAtBuilder_.isEmpty()) { repeatAtBuilder_.dispose(); repeatAtBuilder_ = null; repeatAt_ = other.repeatAt_; bitField0_ = (bitField0_ & ~0x00000002); repeatAtBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepeatAtFieldBuilder() : null; } else { repeatAtBuilder_.addAllMessages(other.repeatAt_); } } } if (other.hasRepeatEvery()) { mergeRepeatEvery(other.getRepeatEvery()); } if (other.hasTimeFrom()) { mergeTimeFrom(other.getTimeFrom()); } if (other.hasTimeTo()) { mergeTimeTo(other.getTimeTo()); } if (!other.monthdays_.isEmpty()) { if (monthdays_.isEmpty()) { monthdays_ = other.monthdays_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMonthdaysIsMutable(); monthdays_.addAll(other.monthdays_); } onChanged(); } if (other.getIncludeLastDayOfMonth() != false) { setIncludeLastDayOfMonth(other.getIncludeLastDayOfMonth()); } if (!other.months_.isEmpty()) { if (months_.isEmpty()) { months_ = other.months_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureMonthsIsMutable(); months_.addAll(other.months_); } onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } 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.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List weekdays_ = java.util.Collections.emptyList(); private void ensureWeekdaysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { weekdays_ = new java.util.ArrayList(weekdays_); bitField0_ |= 0x00000001; } } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return A list containing the weekdays. */ public java.util.List getWeekdaysList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day>(weekdays_, weekdays_converter_); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return The count of weekdays. */ public int getWeekdaysCount() { return weekdays_.size(); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The weekdays at the given index. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day getWeekdays(int index) { return weekdays_converter_.convert(weekdays_.get(index)); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param index The index to set the value at. * @param value The weekdays to set. * @return This builder for chaining. */ public Builder setWeekdays( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day value) { if (value == null) { throw new NullPointerException(); } ensureWeekdaysIsMutable(); weekdays_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param value The weekdays to add. * @return This builder for chaining. */ public Builder addWeekdays(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day value) { if (value == null) { throw new NullPointerException(); } ensureWeekdaysIsMutable(); weekdays_.add(value.getNumber()); onChanged(); return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param values The weekdays to add. * @return This builder for chaining. */ public Builder addAllWeekdays( java.lang.Iterable values) { ensureWeekdaysIsMutable(); for (yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Day value : values) { weekdays_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return This builder for chaining. */ public Builder clearWeekdays() { weekdays_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @return A list containing the enum numeric values on the wire for weekdays. */ public java.util.List getWeekdaysValueList() { return java.util.Collections.unmodifiableList(weekdays_); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The enum numeric value on the wire of weekdays at the given index. */ public int getWeekdaysValue(int index) { return weekdays_.get(index); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The enum numeric value on the wire of weekdays at the given index. * @return This builder for chaining. */ public Builder setWeekdaysValue( int index, int value) { ensureWeekdaysIsMutable(); weekdays_.set(index, value); onChanged(); return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param value The enum numeric value on the wire for weekdays to add. * @return This builder for chaining. */ public Builder addWeekdaysValue(int value) { ensureWeekdaysIsMutable(); weekdays_.add(value); onChanged(); return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.Day weekdays = 1 [(.yandex.cloud.unique) = true]; * @param values The enum numeric values on the wire for weekdays to add. * @return This builder for chaining. */ public Builder addAllWeekdaysValue( java.lang.Iterable values) { ensureWeekdaysIsMutable(); for (int value : values) { weekdays_.add(value); } onChanged(); return this; } private java.util.List repeatAt_ = java.util.Collections.emptyList(); private void ensureRepeatAtIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { repeatAt_ = new java.util.ArrayList(repeatAt_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder> repeatAtBuilder_; /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public java.util.List getRepeatAtList() { if (repeatAtBuilder_ == null) { return java.util.Collections.unmodifiableList(repeatAt_); } else { return repeatAtBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public int getRepeatAtCount() { if (repeatAtBuilder_ == null) { return repeatAt_.size(); } else { return repeatAtBuilder_.getCount(); } } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getRepeatAt(int index) { if (repeatAtBuilder_ == null) { return repeatAt_.get(index); } else { return repeatAtBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder setRepeatAt( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay value) { if (repeatAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatAtIsMutable(); repeatAt_.set(index, value); onChanged(); } else { repeatAtBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder setRepeatAt( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder builderForValue) { if (repeatAtBuilder_ == null) { ensureRepeatAtIsMutable(); repeatAt_.set(index, builderForValue.build()); onChanged(); } else { repeatAtBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder addRepeatAt(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay value) { if (repeatAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatAtIsMutable(); repeatAt_.add(value); onChanged(); } else { repeatAtBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder addRepeatAt( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay value) { if (repeatAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRepeatAtIsMutable(); repeatAt_.add(index, value); onChanged(); } else { repeatAtBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder addRepeatAt( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder builderForValue) { if (repeatAtBuilder_ == null) { ensureRepeatAtIsMutable(); repeatAt_.add(builderForValue.build()); onChanged(); } else { repeatAtBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder addRepeatAt( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder builderForValue) { if (repeatAtBuilder_ == null) { ensureRepeatAtIsMutable(); repeatAt_.add(index, builderForValue.build()); onChanged(); } else { repeatAtBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder addAllRepeatAt( java.lang.Iterable values) { if (repeatAtBuilder_ == null) { ensureRepeatAtIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, repeatAt_); onChanged(); } else { repeatAtBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder clearRepeatAt() { if (repeatAtBuilder_ == null) { repeatAt_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { repeatAtBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public Builder removeRepeatAt(int index) { if (repeatAtBuilder_ == null) { ensureRepeatAtIsMutable(); repeatAt_.remove(index); onChanged(); } else { repeatAtBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder getRepeatAtBuilder( int index) { return getRepeatAtFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getRepeatAtOrBuilder( int index) { if (repeatAtBuilder_ == null) { return repeatAt_.get(index); } else { return repeatAtBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public java.util.List getRepeatAtOrBuilderList() { if (repeatAtBuilder_ != null) { return repeatAtBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(repeatAt_); } } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder addRepeatAtBuilder() { return getRepeatAtFieldBuilder().addBuilder( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance()); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder addRepeatAtBuilder( int index) { return getRepeatAtFieldBuilder().addBuilder( index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance()); } /** * repeated .yandex.cloud.backup.v1.PolicySettings.TimeOfDay repeat_at = 2; */ public java.util.List getRepeatAtBuilderList() { return getRepeatAtFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder> getRepeatAtFieldBuilder() { if (repeatAtBuilder_ == null) { repeatAtBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder>( repeatAt_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); repeatAt_ = null; } return repeatAtBuilder_; } private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval repeatEvery_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder> repeatEveryBuilder_; /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; * @return Whether the repeatEvery field is set. */ public boolean hasRepeatEvery() { return repeatEveryBuilder_ != null || repeatEvery_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; * @return The repeatEvery. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval getRepeatEvery() { if (repeatEveryBuilder_ == null) { return repeatEvery_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance() : repeatEvery_; } else { return repeatEveryBuilder_.getMessage(); } } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ public Builder setRepeatEvery(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval value) { if (repeatEveryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } repeatEvery_ = value; onChanged(); } else { repeatEveryBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ public Builder setRepeatEvery( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder builderForValue) { if (repeatEveryBuilder_ == null) { repeatEvery_ = builderForValue.build(); onChanged(); } else { repeatEveryBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ public Builder mergeRepeatEvery(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval value) { if (repeatEveryBuilder_ == null) { if (repeatEvery_ != null) { repeatEvery_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.newBuilder(repeatEvery_).mergeFrom(value).buildPartial(); } else { repeatEvery_ = value; } onChanged(); } else { repeatEveryBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ public Builder clearRepeatEvery() { if (repeatEveryBuilder_ == null) { repeatEvery_ = null; onChanged(); } else { repeatEvery_ = null; repeatEveryBuilder_ = null; } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder getRepeatEveryBuilder() { onChanged(); return getRepeatEveryFieldBuilder().getBuilder(); } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder getRepeatEveryOrBuilder() { if (repeatEveryBuilder_ != null) { return repeatEveryBuilder_.getMessageOrBuilder(); } else { return repeatEvery_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.getDefaultInstance() : repeatEvery_; } } /** * .yandex.cloud.backup.v1.PolicySettings.Interval repeat_every = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder> getRepeatEveryFieldBuilder() { if (repeatEveryBuilder_ == null) { repeatEveryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Interval.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.IntervalOrBuilder>( getRepeatEvery(), getParentForChildren(), isClean()); repeatEvery_ = null; } return repeatEveryBuilder_; } private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay timeFrom_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder> timeFromBuilder_; /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; * @return Whether the timeFrom field is set. */ public boolean hasTimeFrom() { return timeFromBuilder_ != null || timeFrom_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; * @return The timeFrom. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getTimeFrom() { if (timeFromBuilder_ == null) { return timeFrom_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance() : timeFrom_; } else { return timeFromBuilder_.getMessage(); } } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ public Builder setTimeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay value) { if (timeFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeFrom_ = value; onChanged(); } else { timeFromBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ public Builder setTimeFrom( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder builderForValue) { if (timeFromBuilder_ == null) { timeFrom_ = builderForValue.build(); onChanged(); } else { timeFromBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ public Builder mergeTimeFrom(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay value) { if (timeFromBuilder_ == null) { if (timeFrom_ != null) { timeFrom_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.newBuilder(timeFrom_).mergeFrom(value).buildPartial(); } else { timeFrom_ = value; } onChanged(); } else { timeFromBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ public Builder clearTimeFrom() { if (timeFromBuilder_ == null) { timeFrom_ = null; onChanged(); } else { timeFrom_ = null; timeFromBuilder_ = null; } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder getTimeFromBuilder() { onChanged(); return getTimeFromFieldBuilder().getBuilder(); } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getTimeFromOrBuilder() { if (timeFromBuilder_ != null) { return timeFromBuilder_.getMessageOrBuilder(); } else { return timeFrom_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance() : timeFrom_; } } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_from = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder> getTimeFromFieldBuilder() { if (timeFromBuilder_ == null) { timeFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder>( getTimeFrom(), getParentForChildren(), isClean()); timeFrom_ = null; } return timeFromBuilder_; } private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay timeTo_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder> timeToBuilder_; /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; * @return Whether the timeTo field is set. */ public boolean hasTimeTo() { return timeToBuilder_ != null || timeTo_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; * @return The timeTo. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay getTimeTo() { if (timeToBuilder_ == null) { return timeTo_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance() : timeTo_; } else { return timeToBuilder_.getMessage(); } } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ public Builder setTimeTo(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay value) { if (timeToBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeTo_ = value; onChanged(); } else { timeToBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ public Builder setTimeTo( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder builderForValue) { if (timeToBuilder_ == null) { timeTo_ = builderForValue.build(); onChanged(); } else { timeToBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ public Builder mergeTimeTo(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay value) { if (timeToBuilder_ == null) { if (timeTo_ != null) { timeTo_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.newBuilder(timeTo_).mergeFrom(value).buildPartial(); } else { timeTo_ = value; } onChanged(); } else { timeToBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ public Builder clearTimeTo() { if (timeToBuilder_ == null) { timeTo_ = null; onChanged(); } else { timeTo_ = null; timeToBuilder_ = null; } return this; } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder getTimeToBuilder() { onChanged(); return getTimeToFieldBuilder().getBuilder(); } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder getTimeToOrBuilder() { if (timeToBuilder_ != null) { return timeToBuilder_.getMessageOrBuilder(); } else { return timeTo_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.getDefaultInstance() : timeTo_; } } /** * .yandex.cloud.backup.v1.PolicySettings.TimeOfDay time_to = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder> getTimeToFieldBuilder() { if (timeToBuilder_ == null) { timeToBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDay.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.TimeOfDayOrBuilder>( getTimeTo(), getParentForChildren(), isClean()); timeTo_ = null; } return timeToBuilder_; } private com.google.protobuf.Internal.LongList monthdays_ = emptyLongList(); private void ensureMonthdaysIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { monthdays_ = mutableCopy(monthdays_); bitField0_ |= 0x00000004; } } /** *
             * Monthdays are days in month.
             * Allowed values are from 1 to 31.
             * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @return A list containing the monthdays. */ public java.util.List getMonthdaysList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(monthdays_) : monthdays_; } /** *
             * Monthdays are days in month.
             * Allowed values are from 1 to 31.
             * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @return The count of monthdays. */ public int getMonthdaysCount() { return monthdays_.size(); } /** *
             * Monthdays are days in month.
             * Allowed values are from 1 to 31.
             * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The monthdays at the given index. */ public long getMonthdays(int index) { return monthdays_.getLong(index); } /** *
             * Monthdays are days in month.
             * Allowed values are from 1 to 31.
             * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @param index The index to set the value at. * @param value The monthdays to set. * @return This builder for chaining. */ public Builder setMonthdays( int index, long value) { ensureMonthdaysIsMutable(); monthdays_.setLong(index, value); onChanged(); return this; } /** *
             * Monthdays are days in month.
             * Allowed values are from 1 to 31.
             * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @param value The monthdays to add. * @return This builder for chaining. */ public Builder addMonthdays(long value) { ensureMonthdaysIsMutable(); monthdays_.addLong(value); onChanged(); return this; } /** *
             * Monthdays are days in month.
             * Allowed values are from 1 to 31.
             * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @param values The monthdays to add. * @return This builder for chaining. */ public Builder addAllMonthdays( java.lang.Iterable values) { ensureMonthdaysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, monthdays_); onChanged(); return this; } /** *
             * Monthdays are days in month.
             * Allowed values are from 1 to 31.
             * 
* * repeated int64 monthdays = 6 [(.yandex.cloud.unique) = true]; * @return This builder for chaining. */ public Builder clearMonthdays() { monthdays_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private boolean includeLastDayOfMonth_ ; /** *
             * If set to true, last day of month will activate
             * the policy.
             * 
* * bool include_last_day_of_month = 7; * @return The includeLastDayOfMonth. */ @java.lang.Override public boolean getIncludeLastDayOfMonth() { return includeLastDayOfMonth_; } /** *
             * If set to true, last day of month will activate
             * the policy.
             * 
* * bool include_last_day_of_month = 7; * @param value The includeLastDayOfMonth to set. * @return This builder for chaining. */ public Builder setIncludeLastDayOfMonth(boolean value) { includeLastDayOfMonth_ = value; onChanged(); return this; } /** *
             * If set to true, last day of month will activate
             * the policy.
             * 
* * bool include_last_day_of_month = 7; * @return This builder for chaining. */ public Builder clearIncludeLastDayOfMonth() { includeLastDayOfMonth_ = false; onChanged(); return this; } private com.google.protobuf.Internal.LongList months_ = emptyLongList(); private void ensureMonthsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { months_ = mutableCopy(months_); bitField0_ |= 0x00000008; } } /** *
             * Set of values. Allowed values form 1 to 12.
             * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @return A list containing the months. */ public java.util.List getMonthsList() { return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(months_) : months_; } /** *
             * Set of values. Allowed values form 1 to 12.
             * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @return The count of months. */ public int getMonthsCount() { return months_.size(); } /** *
             * Set of values. Allowed values form 1 to 12.
             * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The months at the given index. */ public long getMonths(int index) { return months_.getLong(index); } /** *
             * Set of values. Allowed values form 1 to 12.
             * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @param index The index to set the value at. * @param value The months to set. * @return This builder for chaining. */ public Builder setMonths( int index, long value) { ensureMonthsIsMutable(); months_.setLong(index, value); onChanged(); return this; } /** *
             * Set of values. Allowed values form 1 to 12.
             * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @param value The months to add. * @return This builder for chaining. */ public Builder addMonths(long value) { ensureMonthsIsMutable(); months_.addLong(value); onChanged(); return this; } /** *
             * Set of values. Allowed values form 1 to 12.
             * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @param values The months to add. * @return This builder for chaining. */ public Builder addAllMonths( java.lang.Iterable values) { ensureMonthsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, months_); onChanged(); return this; } /** *
             * Set of values. Allowed values form 1 to 12.
             * 
* * repeated int64 months = 8 [(.yandex.cloud.unique) = true]; * @return This builder for chaining. */ public Builder clearMonths() { months_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private int type_ = 0; /** * .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @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.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @return The type. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod getType() { @SuppressWarnings("deprecation") yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod result = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod.valueOf(type_); return result == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod.UNRECOGNIZED : result; } /** * .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.RepeatePeriod value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.backup.v1.PolicySettings.RepeatePeriod type = 9 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearType() { type_ = 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.backup.v1.PolicySettings.Scheduling.BackupSet.Time) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.PolicySettings.Scheduling.BackupSet.Time) private static final yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time(); } public static yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Scheduling.BackupSet.Time getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser




© 2015 - 2025 Weber Informatics LLC | Privacy Policy