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

yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.compute.v1;

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

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

    /**
     * 
     * ID of the snapshot schedule.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the snapshot schedule.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the snapshot schedule belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the snapshot schedule belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the snapshot schedule.
     * The name is unique within the folder.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the snapshot schedule.
     * The name is unique within the folder.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the snapshot schedule.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the snapshot schedule.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Status of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @return The status. */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status getStatus(); /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; * @return Whether the schedulePolicy field is set. */ boolean hasSchedulePolicy(); /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; * @return The schedulePolicy. */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy getSchedulePolicy(); /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder getSchedulePolicyOrBuilder(); /** *
     * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
     * automatically deleted.
     * 
* * .google.protobuf.Duration retention_period = 9; * @return Whether the retentionPeriod field is set. */ boolean hasRetentionPeriod(); /** *
     * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
     * automatically deleted.
     * 
* * .google.protobuf.Duration retention_period = 9; * @return The retentionPeriod. */ com.google.protobuf.Duration getRetentionPeriod(); /** *
     * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
     * automatically deleted.
     * 
* * .google.protobuf.Duration retention_period = 9; */ com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder(); /** *
     * Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this
     * number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted
     * after the sixth one is created, the second is deleted after the seventh one is created, and so on.
     * 
* * int64 snapshot_count = 10; * @return Whether the snapshotCount field is set. */ boolean hasSnapshotCount(); /** *
     * Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this
     * number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted
     * after the sixth one is created, the second is deleted after the seventh one is created, and so on.
     * 
* * int64 snapshot_count = 10; * @return The snapshotCount. */ long getSnapshotCount(); /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; * @return Whether the snapshotSpec field is set. */ boolean hasSnapshotSpec(); /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; * @return The snapshotSpec. */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec getSnapshotSpec(); /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder getSnapshotSpecOrBuilder(); public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.RetentionPolicyCase getRetentionPolicyCase(); } /** *
   * A snapshot schedule. For details about the concept, see [documentation](/docs/compute/concepts/snapshot-schedule).
   * 
* * Protobuf type {@code yandex.cloud.compute.v1.SnapshotSchedule} */ public static final class SnapshotSchedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.SnapshotSchedule) SnapshotScheduleOrBuilder { private static final long serialVersionUID = 0L; // Use SnapshotSchedule.newBuilder() to construct. private SnapshotSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapshotSchedule() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SnapshotSchedule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotSchedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = 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: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 56: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 66: { yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder subBuilder = null; if (schedulePolicy_ != null) { subBuilder = schedulePolicy_.toBuilder(); } schedulePolicy_ = input.readMessage(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schedulePolicy_); schedulePolicy_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Duration.Builder subBuilder = null; if (retentionPolicyCase_ == 9) { subBuilder = ((com.google.protobuf.Duration) retentionPolicy_).toBuilder(); } retentionPolicy_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.protobuf.Duration) retentionPolicy_); retentionPolicy_ = subBuilder.buildPartial(); } retentionPolicyCase_ = 9; break; } case 80: { retentionPolicy_ = input.readInt64(); retentionPolicyCase_ = 10; break; } case 90: { yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder subBuilder = null; if (snapshotSpec_ != null) { subBuilder = snapshotSpec_.toBuilder(); } snapshotSpec_ = input.readMessage(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(snapshotSpec_); snapshotSpec_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSchedule_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.class, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.SnapshotSchedule.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * The snapshot schedule is being created.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * The snapshot schedule is on: new disk snapshots will be created, old ones deleted
       * (if [SnapshotSchedule.retention_policy] is specified).
       * 
* * ACTIVE = 2; */ ACTIVE(2), /** *
       * The schedule is interrupted, snapshots won't be created or deleted.
       * 
* * INACTIVE = 3; */ INACTIVE(3), /** *
       * The schedule is being deleted.
       * 
* * DELETING = 4; */ DELETING(4), /** *
       * Changes are being made to snapshot schedule settings or a list of attached disks.
       * 
* * UPDATING = 5; */ UPDATING(5), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * The snapshot schedule is being created.
       * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** *
       * The snapshot schedule is on: new disk snapshots will be created, old ones deleted
       * (if [SnapshotSchedule.retention_policy] is specified).
       * 
* * ACTIVE = 2; */ public static final int ACTIVE_VALUE = 2; /** *
       * The schedule is interrupted, snapshots won't be created or deleted.
       * 
* * INACTIVE = 3; */ public static final int INACTIVE_VALUE = 3; /** *
       * The schedule is being deleted.
       * 
* * DELETING = 4; */ public static final int DELETING_VALUE = 4; /** *
       * Changes are being made to snapshot schedule settings or a list of attached disks.
       * 
* * UPDATING = 5; */ public static final int UPDATING_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return CREATING; case 2: return ACTIVE; case 3: return INACTIVE; case 4: return DELETING; case 5: return UPDATING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.SnapshotSchedule.Status) } private int retentionPolicyCase_ = 0; private java.lang.Object retentionPolicy_; public enum RetentionPolicyCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RETENTION_PERIOD(9), SNAPSHOT_COUNT(10), RETENTIONPOLICY_NOT_SET(0); private final int value; private RetentionPolicyCase(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 RetentionPolicyCase valueOf(int value) { return forNumber(value); } public static RetentionPolicyCase forNumber(int value) { switch (value) { case 9: return RETENTION_PERIOD; case 10: return SNAPSHOT_COUNT; case 0: return RETENTIONPOLICY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RetentionPolicyCase getRetentionPolicyCase() { return RetentionPolicyCase.forNumber( retentionPolicyCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the snapshot schedule.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** *
     * ID of the snapshot schedule.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the snapshot schedule belongs to.
     * 
* * string folder_id = 2; * @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; } } /** *
     * ID of the folder that the snapshot schedule belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .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_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the snapshot schedule.
     * The name is unique within the folder.
     * 
* * string name = 4; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the snapshot schedule.
     * The name is unique within the folder.
     * 
* * string name = 4; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** *
     * Description of the snapshot schedule.
     * 
* * string description = 5; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the snapshot schedule.
     * 
* * string description = 5; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSchedule_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int STATUS_FIELD_NUMBER = 7; private int status_; /** *
     * Status of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @return The status. */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status result = yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status.valueOf(status_); return result == null ? yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status.UNRECOGNIZED : result; } public static final int SCHEDULE_POLICY_FIELD_NUMBER = 8; private yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy schedulePolicy_; /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; * @return Whether the schedulePolicy field is set. */ @java.lang.Override public boolean hasSchedulePolicy() { return schedulePolicy_ != null; } /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; * @return The schedulePolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy getSchedulePolicy() { return schedulePolicy_ == null ? yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.getDefaultInstance() : schedulePolicy_; } /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder getSchedulePolicyOrBuilder() { return getSchedulePolicy(); } public static final int RETENTION_PERIOD_FIELD_NUMBER = 9; /** *
     * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
     * automatically deleted.
     * 
* * .google.protobuf.Duration retention_period = 9; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return retentionPolicyCase_ == 9; } /** *
     * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
     * automatically deleted.
     * 
* * .google.protobuf.Duration retention_period = 9; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPolicyCase_ == 9) { return (com.google.protobuf.Duration) retentionPolicy_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** *
     * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
     * automatically deleted.
     * 
* * .google.protobuf.Duration retention_period = 9; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if (retentionPolicyCase_ == 9) { return (com.google.protobuf.Duration) retentionPolicy_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int SNAPSHOT_COUNT_FIELD_NUMBER = 10; /** *
     * Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this
     * number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted
     * after the sixth one is created, the second is deleted after the seventh one is created, and so on.
     * 
* * int64 snapshot_count = 10; * @return Whether the snapshotCount field is set. */ @java.lang.Override public boolean hasSnapshotCount() { return retentionPolicyCase_ == 10; } /** *
     * Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this
     * number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted
     * after the sixth one is created, the second is deleted after the seventh one is created, and so on.
     * 
* * int64 snapshot_count = 10; * @return The snapshotCount. */ @java.lang.Override public long getSnapshotCount() { if (retentionPolicyCase_ == 10) { return (java.lang.Long) retentionPolicy_; } return 0L; } public static final int SNAPSHOT_SPEC_FIELD_NUMBER = 11; private yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec snapshotSpec_; /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; * @return Whether the snapshotSpec field is set. */ @java.lang.Override public boolean hasSnapshotSpec() { return snapshotSpec_ != null; } /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; * @return The snapshotSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec getSnapshotSpec() { return snapshotSpec_ == null ? yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.getDefaultInstance() : snapshotSpec_; } /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder getSnapshotSpecOrBuilder() { return getSnapshotSpec(); } 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(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (status_ != yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(7, status_); } if (schedulePolicy_ != null) { output.writeMessage(8, getSchedulePolicy()); } if (retentionPolicyCase_ == 9) { output.writeMessage(9, (com.google.protobuf.Duration) retentionPolicy_); } if (retentionPolicyCase_ == 10) { output.writeInt64( 10, (long)((java.lang.Long) retentionPolicy_)); } if (snapshotSpec_ != null) { output.writeMessage(11, getSnapshotSpec()); } 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(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, labels__); } if (status_ != yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, status_); } if (schedulePolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getSchedulePolicy()); } if (retentionPolicyCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.google.protobuf.Duration) retentionPolicy_); } if (retentionPolicyCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 10, (long)((java.lang.Long) retentionPolicy_)); } if (snapshotSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getSnapshotSpec()); } 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule other = (yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (status_ != other.status_) return false; if (hasSchedulePolicy() != other.hasSchedulePolicy()) return false; if (hasSchedulePolicy()) { if (!getSchedulePolicy() .equals(other.getSchedulePolicy())) return false; } if (hasSnapshotSpec() != other.hasSnapshotSpec()) return false; if (hasSnapshotSpec()) { if (!getSnapshotSpec() .equals(other.getSnapshotSpec())) return false; } if (!getRetentionPolicyCase().equals(other.getRetentionPolicyCase())) return false; switch (retentionPolicyCase_) { case 9: if (!getRetentionPeriod() .equals(other.getRetentionPeriod())) return false; break; case 10: if (getSnapshotCount() != other.getSnapshotCount()) 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(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasSchedulePolicy()) { hash = (37 * hash) + SCHEDULE_POLICY_FIELD_NUMBER; hash = (53 * hash) + getSchedulePolicy().hashCode(); } if (hasSnapshotSpec()) { hash = (37 * hash) + SNAPSHOT_SPEC_FIELD_NUMBER; hash = (53 * hash) + getSnapshotSpec().hashCode(); } switch (retentionPolicyCase_) { case 9: hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getRetentionPeriod().hashCode(); break; case 10: hash = (37 * hash) + SNAPSHOT_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSnapshotCount()); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule 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; } /** *
     * A snapshot schedule. For details about the concept, see [documentation](/docs/compute/concepts/snapshot-schedule).
     * 
* * Protobuf type {@code yandex.cloud.compute.v1.SnapshotSchedule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.SnapshotSchedule) yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSchedule_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSchedule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.class, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.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_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); status_ = 0; if (schedulePolicyBuilder_ == null) { schedulePolicy_ = null; } else { schedulePolicy_ = null; schedulePolicyBuilder_ = null; } if (snapshotSpecBuilder_ == null) { snapshotSpec_ = null; } else { snapshotSpec_ = null; snapshotSpecBuilder_ = null; } retentionPolicyCase_ = 0; retentionPolicy_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSchedule_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule build() { yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule result = new yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.status_ = status_; if (schedulePolicyBuilder_ == null) { result.schedulePolicy_ = schedulePolicy_; } else { result.schedulePolicy_ = schedulePolicyBuilder_.build(); } if (retentionPolicyCase_ == 9) { if (retentionPeriodBuilder_ == null) { result.retentionPolicy_ = retentionPolicy_; } else { result.retentionPolicy_ = retentionPeriodBuilder_.build(); } } if (retentionPolicyCase_ == 10) { result.retentionPolicy_ = retentionPolicy_; } if (snapshotSpecBuilder_ == null) { result.snapshotSpec_ = snapshotSpec_; } else { result.snapshotSpec_ = snapshotSpecBuilder_.build(); } result.retentionPolicyCase_ = retentionPolicyCase_; 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasSchedulePolicy()) { mergeSchedulePolicy(other.getSchedulePolicy()); } if (other.hasSnapshotSpec()) { mergeSnapshotSpec(other.getSnapshotSpec()); } switch (other.getRetentionPolicyCase()) { case RETENTION_PERIOD: { mergeRetentionPeriod(other.getRetentionPeriod()); break; } case SNAPSHOT_COUNT: { setSnapshotCount(other.getSnapshotCount()); break; } case RETENTIONPOLICY_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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int retentionPolicyCase_ = 0; private java.lang.Object retentionPolicy_; public RetentionPolicyCase getRetentionPolicyCase() { return RetentionPolicyCase.forNumber( retentionPolicyCase_); } public Builder clearRetentionPolicy() { retentionPolicyCase_ = 0; retentionPolicy_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the snapshot schedule.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the snapshot schedule belongs to.
       * 
* * string folder_id = 2; * @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; } } /** *
       * ID of the folder that the snapshot schedule belongs to.
       * 
* * string folder_id = 2; * @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; } } /** *
       * ID of the folder that the snapshot schedule belongs to.
       * 
* * string folder_id = 2; * @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; } /** *
       * ID of the folder that the snapshot schedule belongs to.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the snapshot schedule belongs to.
       * 
* * string folder_id = 2; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .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(); } } /** *
       * Creation timestamp.
       * 
* * .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; } /** *
       * Creation timestamp.
       * 
* * .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; } /** *
       * Creation timestamp.
       * 
* * .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; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .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_; } } /** *
       * Creation timestamp.
       * 
* * .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 java.lang.Object name_ = ""; /** *
       * Name of the snapshot schedule.
       * The name is unique within the folder.
       * 
* * string name = 4; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the snapshot schedule.
       * The name is unique within the folder.
       * 
* * string name = 4; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the snapshot schedule.
       * The name is unique within the folder.
       * 
* * string name = 4; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the snapshot schedule.
       * The name is unique within the folder.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the snapshot schedule.
       * The name is unique within the folder.
       * 
* * string name = 4; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the snapshot schedule.
       * 
* * string description = 5; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the snapshot schedule.
       * 
* * string description = 5; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the snapshot schedule.
       * 
* * string description = 5; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the snapshot schedule.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the snapshot schedule.
       * 
* * string description = 5; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private int status_ = 0; /** *
       * Status of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @return The status. */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status result = yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status.valueOf(status_); return result == null ? yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status.UNRECOGNIZED : result; } /** *
       * Status of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSchedule.Status status = 7; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy schedulePolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder> schedulePolicyBuilder_; /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; * @return Whether the schedulePolicy field is set. */ public boolean hasSchedulePolicy() { return schedulePolicyBuilder_ != null || schedulePolicy_ != null; } /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; * @return The schedulePolicy. */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy getSchedulePolicy() { if (schedulePolicyBuilder_ == null) { return schedulePolicy_ == null ? yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.getDefaultInstance() : schedulePolicy_; } else { return schedulePolicyBuilder_.getMessage(); } } /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ public Builder setSchedulePolicy(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy value) { if (schedulePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schedulePolicy_ = value; onChanged(); } else { schedulePolicyBuilder_.setMessage(value); } return this; } /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ public Builder setSchedulePolicy( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder builderForValue) { if (schedulePolicyBuilder_ == null) { schedulePolicy_ = builderForValue.build(); onChanged(); } else { schedulePolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ public Builder mergeSchedulePolicy(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy value) { if (schedulePolicyBuilder_ == null) { if (schedulePolicy_ != null) { schedulePolicy_ = yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.newBuilder(schedulePolicy_).mergeFrom(value).buildPartial(); } else { schedulePolicy_ = value; } onChanged(); } else { schedulePolicyBuilder_.mergeFrom(value); } return this; } /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ public Builder clearSchedulePolicy() { if (schedulePolicyBuilder_ == null) { schedulePolicy_ = null; onChanged(); } else { schedulePolicy_ = null; schedulePolicyBuilder_ = null; } return this; } /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder getSchedulePolicyBuilder() { onChanged(); return getSchedulePolicyFieldBuilder().getBuilder(); } /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder getSchedulePolicyOrBuilder() { if (schedulePolicyBuilder_ != null) { return schedulePolicyBuilder_.getMessageOrBuilder(); } else { return schedulePolicy_ == null ? yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.getDefaultInstance() : schedulePolicy_; } } /** *
       * Frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 8; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder> getSchedulePolicyFieldBuilder() { if (schedulePolicyBuilder_ == null) { schedulePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder>( getSchedulePolicy(), getParentForChildren(), isClean()); schedulePolicy_ = null; } return schedulePolicyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionPeriodBuilder_; /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return retentionPolicyCase_ == 9; } /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 9) { return (com.google.protobuf.Duration) retentionPolicy_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (retentionPolicyCase_ == 9) { return retentionPeriodBuilder_.getMessage(); } return com.google.protobuf.Duration.getDefaultInstance(); } } /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public Builder setRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retentionPolicy_ = value; onChanged(); } else { retentionPeriodBuilder_.setMessage(value); } retentionPolicyCase_ = 9; return this; } /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public Builder setRetentionPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (retentionPeriodBuilder_ == null) { retentionPolicy_ = builderForValue.build(); onChanged(); } else { retentionPeriodBuilder_.setMessage(builderForValue.build()); } retentionPolicyCase_ = 9; return this; } /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public Builder mergeRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 9 && retentionPolicy_ != com.google.protobuf.Duration.getDefaultInstance()) { retentionPolicy_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) retentionPolicy_) .mergeFrom(value).buildPartial(); } else { retentionPolicy_ = value; } onChanged(); } else { if (retentionPolicyCase_ == 9) { retentionPeriodBuilder_.mergeFrom(value); } retentionPeriodBuilder_.setMessage(value); } retentionPolicyCase_ = 9; return this; } /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public Builder clearRetentionPeriod() { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 9) { retentionPolicyCase_ = 0; retentionPolicy_ = null; onChanged(); } } else { if (retentionPolicyCase_ == 9) { retentionPolicyCase_ = 0; retentionPolicy_ = null; } retentionPeriodBuilder_.clear(); } return this; } /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; */ public com.google.protobuf.Duration.Builder getRetentionPeriodBuilder() { return getRetentionPeriodFieldBuilder().getBuilder(); } /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if ((retentionPolicyCase_ == 9) && (retentionPeriodBuilder_ != null)) { return retentionPeriodBuilder_.getMessageOrBuilder(); } else { if (retentionPolicyCase_ == 9) { return (com.google.protobuf.Duration) retentionPolicy_; } return com.google.protobuf.Duration.getDefaultInstance(); } } /** *
       * Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is
       * automatically deleted.
       * 
* * .google.protobuf.Duration retention_period = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRetentionPeriodFieldBuilder() { if (retentionPeriodBuilder_ == null) { if (!(retentionPolicyCase_ == 9)) { retentionPolicy_ = com.google.protobuf.Duration.getDefaultInstance(); } retentionPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( (com.google.protobuf.Duration) retentionPolicy_, getParentForChildren(), isClean()); retentionPolicy_ = null; } retentionPolicyCase_ = 9; onChanged();; return retentionPeriodBuilder_; } /** *
       * Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this
       * number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted
       * after the sixth one is created, the second is deleted after the seventh one is created, and so on.
       * 
* * int64 snapshot_count = 10; * @return Whether the snapshotCount field is set. */ public boolean hasSnapshotCount() { return retentionPolicyCase_ == 10; } /** *
       * Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this
       * number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted
       * after the sixth one is created, the second is deleted after the seventh one is created, and so on.
       * 
* * int64 snapshot_count = 10; * @return The snapshotCount. */ public long getSnapshotCount() { if (retentionPolicyCase_ == 10) { return (java.lang.Long) retentionPolicy_; } return 0L; } /** *
       * Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this
       * number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted
       * after the sixth one is created, the second is deleted after the seventh one is created, and so on.
       * 
* * int64 snapshot_count = 10; * @param value The snapshotCount to set. * @return This builder for chaining. */ public Builder setSnapshotCount(long value) { retentionPolicyCase_ = 10; retentionPolicy_ = value; onChanged(); return this; } /** *
       * Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this
       * number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted
       * after the sixth one is created, the second is deleted after the seventh one is created, and so on.
       * 
* * int64 snapshot_count = 10; * @return This builder for chaining. */ public Builder clearSnapshotCount() { if (retentionPolicyCase_ == 10) { retentionPolicyCase_ = 0; retentionPolicy_ = null; onChanged(); } return this; } private yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec snapshotSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder> snapshotSpecBuilder_; /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; * @return Whether the snapshotSpec field is set. */ public boolean hasSnapshotSpec() { return snapshotSpecBuilder_ != null || snapshotSpec_ != null; } /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; * @return The snapshotSpec. */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec getSnapshotSpec() { if (snapshotSpecBuilder_ == null) { return snapshotSpec_ == null ? yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.getDefaultInstance() : snapshotSpec_; } else { return snapshotSpecBuilder_.getMessage(); } } /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ public Builder setSnapshotSpec(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec value) { if (snapshotSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snapshotSpec_ = value; onChanged(); } else { snapshotSpecBuilder_.setMessage(value); } return this; } /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ public Builder setSnapshotSpec( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder builderForValue) { if (snapshotSpecBuilder_ == null) { snapshotSpec_ = builderForValue.build(); onChanged(); } else { snapshotSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ public Builder mergeSnapshotSpec(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec value) { if (snapshotSpecBuilder_ == null) { if (snapshotSpec_ != null) { snapshotSpec_ = yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.newBuilder(snapshotSpec_).mergeFrom(value).buildPartial(); } else { snapshotSpec_ = value; } onChanged(); } else { snapshotSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ public Builder clearSnapshotSpec() { if (snapshotSpecBuilder_ == null) { snapshotSpec_ = null; onChanged(); } else { snapshotSpec_ = null; snapshotSpecBuilder_ = null; } return this; } /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder getSnapshotSpecBuilder() { onChanged(); return getSnapshotSpecFieldBuilder().getBuilder(); } /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder getSnapshotSpecOrBuilder() { if (snapshotSpecBuilder_ != null) { return snapshotSpecBuilder_.getMessageOrBuilder(); } else { return snapshotSpec_ == null ? yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.getDefaultInstance() : snapshotSpec_; } } /** *
       * Attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 11; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder> getSnapshotSpecFieldBuilder() { if (snapshotSpecBuilder_ == null) { snapshotSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder>( getSnapshotSpec(), getParentForChildren(), isClean()); snapshotSpec_ = null; } return snapshotSpecBuilder_; } @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.compute.v1.SnapshotSchedule) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.SnapshotSchedule) private static final yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SnapshotSchedule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapshotSchedule(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.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SchedulePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.SchedulePolicy) com.google.protobuf.MessageOrBuilder { /** *
     * Timestamp for creating the first snapshot.
     * 
* * .google.protobuf.Timestamp start_at = 1; * @return Whether the startAt field is set. */ boolean hasStartAt(); /** *
     * Timestamp for creating the first snapshot.
     * 
* * .google.protobuf.Timestamp start_at = 1; * @return The startAt. */ com.google.protobuf.Timestamp getStartAt(); /** *
     * Timestamp for creating the first snapshot.
     * 
* * .google.protobuf.Timestamp start_at = 1; */ com.google.protobuf.TimestampOrBuilder getStartAtOrBuilder(); /** *
     * Cron expression for the snapshot schedule (UTC+0).
     * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
     * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
     * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
     * 
* * string expression = 2; * @return The expression. */ java.lang.String getExpression(); /** *
     * Cron expression for the snapshot schedule (UTC+0).
     * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
     * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
     * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
     * 
* * string expression = 2; * @return The bytes for expression. */ com.google.protobuf.ByteString getExpressionBytes(); } /** *
   * A resource for frequency settings of a snapshot schedule.
   * 
* * Protobuf type {@code yandex.cloud.compute.v1.SchedulePolicy} */ public static final class SchedulePolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.SchedulePolicy) SchedulePolicyOrBuilder { private static final long serialVersionUID = 0L; // Use SchedulePolicy.newBuilder() to construct. private SchedulePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SchedulePolicy() { expression_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SchedulePolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SchedulePolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (startAt_ != null) { subBuilder = startAt_.toBuilder(); } startAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startAt_); startAt_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); expression_ = 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.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SchedulePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SchedulePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.class, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder.class); } public static final int START_AT_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startAt_; /** *
     * Timestamp for creating the first snapshot.
     * 
* * .google.protobuf.Timestamp start_at = 1; * @return Whether the startAt field is set. */ @java.lang.Override public boolean hasStartAt() { return startAt_ != null; } /** *
     * Timestamp for creating the first snapshot.
     * 
* * .google.protobuf.Timestamp start_at = 1; * @return The startAt. */ @java.lang.Override public com.google.protobuf.Timestamp getStartAt() { return startAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startAt_; } /** *
     * Timestamp for creating the first snapshot.
     * 
* * .google.protobuf.Timestamp start_at = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartAtOrBuilder() { return getStartAt(); } public static final int EXPRESSION_FIELD_NUMBER = 2; private volatile java.lang.Object expression_; /** *
     * Cron expression for the snapshot schedule (UTC+0).
     * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
     * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
     * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
     * 
* * string expression = 2; * @return The expression. */ @java.lang.Override public java.lang.String getExpression() { java.lang.Object ref = expression_; 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(); expression_ = s; return s; } } /** *
     * Cron expression for the snapshot schedule (UTC+0).
     * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
     * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
     * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
     * 
* * string expression = 2; * @return The bytes for expression. */ @java.lang.Override public com.google.protobuf.ByteString getExpressionBytes() { java.lang.Object ref = expression_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); expression_ = 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 (startAt_ != null) { output.writeMessage(1, getStartAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, expression_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStartAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expression_); } 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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy other = (yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy) obj; if (hasStartAt() != other.hasStartAt()) return false; if (hasStartAt()) { if (!getStartAt() .equals(other.getStartAt())) return false; } if (!getExpression() .equals(other.getExpression())) 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 (hasStartAt()) { hash = (37 * hash) + START_AT_FIELD_NUMBER; hash = (53 * hash) + getStartAt().hashCode(); } hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpression().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy 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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy 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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy 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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy 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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy 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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy 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; } /** *
     * A resource for frequency settings of a snapshot schedule.
     * 
* * Protobuf type {@code yandex.cloud.compute.v1.SchedulePolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.SchedulePolicy) yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SchedulePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SchedulePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.class, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (startAtBuilder_ == null) { startAt_ = null; } else { startAt_ = null; startAtBuilder_ = null; } expression_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SchedulePolicy_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy build() { yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy result = new yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy(this); if (startAtBuilder_ == null) { result.startAt_ = startAt_; } else { result.startAt_ = startAtBuilder_.build(); } result.expression_ = expression_; 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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.getDefaultInstance()) return this; if (other.hasStartAt()) { mergeStartAt(other.getStartAt()); } if (!other.getExpression().isEmpty()) { expression_ = other.expression_; 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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp startAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startAtBuilder_; /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; * @return Whether the startAt field is set. */ public boolean hasStartAt() { return startAtBuilder_ != null || startAt_ != null; } /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; * @return The startAt. */ public com.google.protobuf.Timestamp getStartAt() { if (startAtBuilder_ == null) { return startAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startAt_; } else { return startAtBuilder_.getMessage(); } } /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; */ public Builder setStartAt(com.google.protobuf.Timestamp value) { if (startAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startAt_ = value; onChanged(); } else { startAtBuilder_.setMessage(value); } return this; } /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; */ public Builder setStartAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (startAtBuilder_ == null) { startAt_ = builderForValue.build(); onChanged(); } else { startAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; */ public Builder mergeStartAt(com.google.protobuf.Timestamp value) { if (startAtBuilder_ == null) { if (startAt_ != null) { startAt_ = com.google.protobuf.Timestamp.newBuilder(startAt_).mergeFrom(value).buildPartial(); } else { startAt_ = value; } onChanged(); } else { startAtBuilder_.mergeFrom(value); } return this; } /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; */ public Builder clearStartAt() { if (startAtBuilder_ == null) { startAt_ = null; onChanged(); } else { startAt_ = null; startAtBuilder_ = null; } return this; } /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; */ public com.google.protobuf.Timestamp.Builder getStartAtBuilder() { onChanged(); return getStartAtFieldBuilder().getBuilder(); } /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; */ public com.google.protobuf.TimestampOrBuilder getStartAtOrBuilder() { if (startAtBuilder_ != null) { return startAtBuilder_.getMessageOrBuilder(); } else { return startAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startAt_; } } /** *
       * Timestamp for creating the first snapshot.
       * 
* * .google.protobuf.Timestamp start_at = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartAtFieldBuilder() { if (startAtBuilder_ == null) { startAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartAt(), getParentForChildren(), isClean()); startAt_ = null; } return startAtBuilder_; } private java.lang.Object expression_ = ""; /** *
       * Cron expression for the snapshot schedule (UTC+0).
       * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
       * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
       * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
       * 
* * string expression = 2; * @return The expression. */ public java.lang.String getExpression() { java.lang.Object ref = expression_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); expression_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Cron expression for the snapshot schedule (UTC+0).
       * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
       * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
       * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
       * 
* * string expression = 2; * @return The bytes for expression. */ public com.google.protobuf.ByteString getExpressionBytes() { java.lang.Object ref = expression_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); expression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Cron expression for the snapshot schedule (UTC+0).
       * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
       * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
       * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
       * 
* * string expression = 2; * @param value The expression to set. * @return This builder for chaining. */ public Builder setExpression( java.lang.String value) { if (value == null) { throw new NullPointerException(); } expression_ = value; onChanged(); return this; } /** *
       * Cron expression for the snapshot schedule (UTC+0).
       * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
       * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
       * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
       * 
* * string expression = 2; * @return This builder for chaining. */ public Builder clearExpression() { expression_ = getDefaultInstance().getExpression(); onChanged(); return this; } /** *
       * Cron expression for the snapshot schedule (UTC+0).
       * The expression must consist of five fields (`Minutes Hours Day-of-month Month Day-of-week`) or be one of
       * nonstandard predefined expressions (e.g. `@hourly`). For details about the format,
       * see [documentation](/docs/compute/concepts/snapshot-schedule#cron)
       * 
* * string expression = 2; * @param value The bytes for expression to set. * @return This builder for chaining. */ public Builder setExpressionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); expression_ = 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.compute.v1.SchedulePolicy) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.SchedulePolicy) private static final yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SchedulePolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SchedulePolicy(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.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapshotSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.SnapshotSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Description of the created snapshot.
     * 
* * string description = 1; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the created snapshot.
     * 
* * string description = 1; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ int getLabelsCount(); /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ java.util.Map getLabelsMap(); /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** *
   * A resource for attributes of snapshots created by the snapshot schedule.
   * 
* * Protobuf type {@code yandex.cloud.compute.v1.SnapshotSpec} */ public static final class SnapshotSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.SnapshotSpec) SnapshotSpecOrBuilder { private static final long serialVersionUID = 0L; // Use SnapshotSpec.newBuilder() to construct. private SnapshotSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapshotSpec() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SnapshotSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); 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.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.class, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** *
     * Description of the created snapshot.
     * 
* * string description = 1; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the created snapshot.
     * 
* * string description = 1; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 2; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSpec_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Snapshot labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); 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(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, labels__); } 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec other = (yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec) obj; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) 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) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec 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; } /** *
     * A resource for attributes of snapshots created by the snapshot schedule.
     * 
* * Protobuf type {@code yandex.cloud.compute.v1.SnapshotSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.SnapshotSpec) yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.class, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.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(); description_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.internal_static_yandex_cloud_compute_v1_SnapshotSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec build() { yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec result = new yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec(this); int from_bitField0_ = bitField0_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); 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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object description_ = ""; /** *
       * Description of the created snapshot.
       * 
* * string description = 1; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the created snapshot.
       * 
* * string description = 1; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the created snapshot.
       * 
* * string description = 1; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the created snapshot.
       * 
* * string description = 1; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the created snapshot.
       * 
* * string description = 1; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Snapshot labels as `key:value` pairs.
       * 
* * map<string, string> labels = 2; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Snapshot labels as `key:value` pairs.
       * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Snapshot labels as `key:value` pairs.
       * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Snapshot labels as `key:value` pairs.
       * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Snapshot labels as `key:value` pairs.
       * 
* * map<string, string> labels = 2; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Snapshot labels as `key:value` pairs.
       * 
* * map<string, string> labels = 2; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Snapshot labels as `key:value` pairs.
       * 
* * map<string, string> labels = 2; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); 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.compute.v1.SnapshotSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.SnapshotSpec) private static final yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SnapshotSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapshotSpec(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.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_SnapshotSchedule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_SnapshotSchedule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_SnapshotSchedule_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_SnapshotSchedule_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_SchedulePolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_SchedulePolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_SnapshotSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_SnapshotSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_SnapshotSpec_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_SnapshotSpec_LabelsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n/yandex/cloud/compute/v1/snapshot_sched" + "ule.proto\022\027yandex.cloud.compute.v1\032\036goog" + "le/protobuf/duration.proto\032\037google/proto" + "buf/timestamp.proto\"\207\005\n\020SnapshotSchedule" + "\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002 \001(\t\022.\n\ncreat" + "ed_at\030\003 \001(\0132\032.google.protobuf.Timestamp\022" + "\014\n\004name\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022E\n\006la" + "bels\030\006 \003(\01325.yandex.cloud.compute.v1.Sna" + "pshotSchedule.LabelsEntry\022@\n\006status\030\007 \001(" + "\01620.yandex.cloud.compute.v1.SnapshotSche" + "dule.Status\022@\n\017schedule_policy\030\010 \001(\0132\'.y" + "andex.cloud.compute.v1.SchedulePolicy\0225\n" + "\020retention_period\030\t \001(\0132\031.google.protobu" + "f.DurationH\000\022\030\n\016snapshot_count\030\n \001(\003H\000\022<" + "\n\rsnapshot_spec\030\013 \001(\0132%.yandex.cloud.com" + "pute.v1.SnapshotSpec\032-\n\013LabelsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"d\n\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006A" + "CTIVE\020\002\022\014\n\010INACTIVE\020\003\022\014\n\010DELETING\020\004\022\014\n\010U" + "PDATING\020\005B\022\n\020retention_policy\"R\n\016Schedul" + "ePolicy\022,\n\010start_at\030\001 \001(\0132\032.google.proto" + "buf.Timestamp\022\022\n\nexpression\030\002 \001(\t\"\225\001\n\014Sn" + "apshotSpec\022\023\n\013description\030\001 \001(\t\022A\n\006label" + "s\030\002 \003(\01321.yandex.cloud.compute.v1.Snapsh" + "otSpec.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bb\n\033yandex.clou" + "d.api.compute.v1ZCgithub.com/yandex-clou" + "d/go-genproto/yandex/cloud/compute/v1;co" + "mputeb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_compute_v1_SnapshotSchedule_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_compute_v1_SnapshotSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_SnapshotSchedule_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Status", "SchedulePolicy", "RetentionPeriod", "SnapshotCount", "SnapshotSpec", "RetentionPolicy", }); internal_static_yandex_cloud_compute_v1_SnapshotSchedule_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_SnapshotSchedule_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_SnapshotSchedule_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_SnapshotSchedule_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_SchedulePolicy_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_compute_v1_SchedulePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_SchedulePolicy_descriptor, new java.lang.String[] { "StartAt", "Expression", }); internal_static_yandex_cloud_compute_v1_SnapshotSpec_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_compute_v1_SnapshotSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_SnapshotSpec_descriptor, new java.lang.String[] { "Description", "Labels", }); internal_static_yandex_cloud_compute_v1_SnapshotSpec_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_SnapshotSpec_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_SnapshotSpec_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_SnapshotSpec_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy