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

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

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

package yandex.cloud.api.compute.v1;

public final class SnapshotScheduleServiceOuterClass {
  private SnapshotScheduleServiceOuterClass() {}
  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 GetSnapshotScheduleRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.GetSnapshotScheduleRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the snapshot schedule to return.
     * To get a schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to return.
     * To get a schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.GetSnapshotScheduleRequest} */ public static final class GetSnapshotScheduleRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.GetSnapshotScheduleRequest) GetSnapshotScheduleRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetSnapshotScheduleRequest.newBuilder() to construct. private GetSnapshotScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetSnapshotScheduleRequest() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetSnapshotScheduleRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetSnapshotScheduleRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to return.
     * To get a schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to return.
     * To get a schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.GetSnapshotScheduleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.GetSnapshotScheduleRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to return.
       * To get a schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to return.
       * To get a schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to return.
       * To get a schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to return.
       * To get a schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to return.
       * To get a schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.GetSnapshotScheduleRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GetSnapshotScheduleRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetSnapshotScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetSnapshotScheduleRequest(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.SnapshotScheduleServiceOuterClass.GetSnapshotScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSnapshotSchedulesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotSchedulesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the folder to list snapshot schedules in.
     * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to list snapshot schedules in.
     * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than `page_size`, the service returns a [ListSnapshotSchedulesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters snapshot schedules listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
     * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
     * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `name=my-schedule`.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters snapshot schedules listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
     * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
     * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `name=my-schedule`.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); /** *
     * A sorting expression that sorts snapshot schedules listed in the response.
     * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
     * e.g. `createdAt desc`.
     * Default value: `id asc`.
     * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @return The orderBy. */ java.lang.String getOrderBy(); /** *
     * A sorting expression that sorts snapshot schedules listed in the response.
     * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
     * e.g. `createdAt desc`.
     * Default value: `id asc`.
     * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for orderBy. */ com.google.protobuf.ByteString getOrderByBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotSchedulesRequest} */ public static final class ListSnapshotSchedulesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotSchedulesRequest) ListSnapshotSchedulesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListSnapshotSchedulesRequest.newBuilder() to construct. private ListSnapshotSchedulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSnapshotSchedulesRequest() { folderId_ = ""; pageToken_ = ""; filter_ = ""; orderBy_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSnapshotSchedulesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSnapshotSchedulesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 16: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); orderBy_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest.Builder.class); } public static final int FOLDER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object folderId_; /** *
     * ID of the folder to list snapshot schedules in.
     * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 to list snapshot schedules in.
     * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than `page_size`, the service returns a [ListSnapshotSchedulesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** *
     * A filter expression that filters snapshot schedules listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
     * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
     * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `name=my-schedule`.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; } } /** *
     * A filter expression that filters snapshot schedules listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
     * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
     * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `name=my-schedule`.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** *
     * A sorting expression that sorts snapshot schedules listed in the response.
     * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
     * e.g. `createdAt desc`.
     * Default value: `id asc`.
     * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @return The orderBy. */ @java.lang.Override public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; } } /** *
     * A sorting expression that sorts snapshot schedules listed in the response.
     * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
     * e.g. `createdAt desc`.
     * Default value: `id asc`.
     * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for orderBy. */ @java.lang.Override public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orderBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } 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(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest) obj; if (!getFolderId() .equals(other.getFolderId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) return false; if (!getOrderBy() .equals(other.getOrderBy())) 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) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; hash = (53 * hash) + getOrderBy().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotSchedulesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotSchedulesRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest.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(); folderId_ = ""; pageSize_ = 0L; pageToken_ = ""; filter_ = ""; orderBy_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest(this); result.folderId_ = folderId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; result.orderBy_ = orderBy_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest.getDefaultInstance()) return this; if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder to list snapshot schedules in.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 to list snapshot schedules in.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 to list snapshot schedules in.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 to list snapshot schedules in.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder to list snapshot schedules in.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `page_size`, the service returns a [ListSnapshotSchedulesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `page_size`, the service returns a [ListSnapshotSchedulesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `page_size`, the service returns a [ListSnapshotSchedulesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "<=1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListSnapshotSchedulesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * A filter expression that filters snapshot schedules listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
       * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
       * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name=my-schedule`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A filter expression that filters snapshot schedules listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
       * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
       * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name=my-schedule`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A filter expression that filters snapshot schedules listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
       * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
       * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name=my-schedule`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @param value The filter to set. * @return This builder for chaining. */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * A filter expression that filters snapshot schedules listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
       * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
       * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name=my-schedule`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * A filter expression that filters snapshot schedules listed in the response.
       * The expression must specify:
       * 1. The field name. Currently you can use filtering only on [SnapshotSchedule.name] field.
       * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
       * 3. The value. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name=my-schedule`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @param value The bytes for filter to set. * @return This builder for chaining. */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; } private java.lang.Object orderBy_ = ""; /** *
       * A sorting expression that sorts snapshot schedules listed in the response.
       * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
       * e.g. `createdAt desc`.
       * Default value: `id asc`.
       * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A sorting expression that sorts snapshot schedules listed in the response.
       * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
       * e.g. `createdAt desc`.
       * Default value: `id asc`.
       * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for orderBy. */ public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orderBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A sorting expression that sorts snapshot schedules listed in the response.
       * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
       * e.g. `createdAt desc`.
       * Default value: `id asc`.
       * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @param value The orderBy to set. * @return This builder for chaining. */ public Builder setOrderBy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } orderBy_ = value; onChanged(); return this; } /** *
       * A sorting expression that sorts snapshot schedules listed in the response.
       * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
       * e.g. `createdAt desc`.
       * Default value: `id asc`.
       * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearOrderBy() { orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** *
       * A sorting expression that sorts snapshot schedules listed in the response.
       * The expression must specify the field name from [SnapshotSchedule] and `asc`ending or `desc`ending order,
       * e.g. `createdAt desc`.
       * Default value: `id asc`.
       * 
* * string order_by = 5 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for orderBy to set. * @return This builder for chaining. */ public Builder setOrderByBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = 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.ListSnapshotSchedulesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotSchedulesRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSnapshotSchedulesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSnapshotSchedulesRequest(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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSnapshotSchedulesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotSchedulesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ java.util.List getSnapshotSchedulesList(); /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule getSnapshotSchedules(int index); /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ int getSnapshotSchedulesCount(); /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ java.util.List getSnapshotSchedulesOrBuilderList(); /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotScheduleOrBuilder getSnapshotSchedulesOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotSchedulesResponse} */ public static final class ListSnapshotSchedulesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotSchedulesResponse) ListSnapshotSchedulesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListSnapshotSchedulesResponse.newBuilder() to construct. private ListSnapshotSchedulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSnapshotSchedulesResponse() { snapshotSchedules_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSnapshotSchedulesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSnapshotSchedulesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { snapshotSchedules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } snapshotSchedules_.add( input.readMessage(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshotSchedules_ = java.util.Collections.unmodifiableList(snapshotSchedules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse.Builder.class); } public static final int SNAPSHOT_SCHEDULES_FIELD_NUMBER = 1; private java.util.List snapshotSchedules_; /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ @java.lang.Override public java.util.List getSnapshotSchedulesList() { return snapshotSchedules_; } /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ @java.lang.Override public java.util.List getSnapshotSchedulesOrBuilderList() { return snapshotSchedules_; } /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ @java.lang.Override public int getSnapshotSchedulesCount() { return snapshotSchedules_.size(); } /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule getSnapshotSchedules(int index) { return snapshotSchedules_.get(index); } /** *
     * List of snapshot schedules in the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotScheduleOrBuilder getSnapshotSchedulesOrBuilder( int index) { return snapshotSchedules_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = 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 { for (int i = 0; i < snapshotSchedules_.size(); i++) { output.writeMessage(1, snapshotSchedules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < snapshotSchedules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, snapshotSchedules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse) obj; if (!getSnapshotSchedulesList() .equals(other.getSnapshotSchedulesList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) 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 (getSnapshotSchedulesCount() > 0) { hash = (37 * hash) + SNAPSHOT_SCHEDULES_FIELD_NUMBER; hash = (53 * hash) + getSnapshotSchedulesList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotSchedulesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotSchedulesResponse) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSnapshotSchedulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (snapshotSchedulesBuilder_ == null) { snapshotSchedules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { snapshotSchedulesBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse(this); int from_bitField0_ = bitField0_; if (snapshotSchedulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { snapshotSchedules_ = java.util.Collections.unmodifiableList(snapshotSchedules_); bitField0_ = (bitField0_ & ~0x00000001); } result.snapshotSchedules_ = snapshotSchedules_; } else { result.snapshotSchedules_ = snapshotSchedulesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse.getDefaultInstance()) return this; if (snapshotSchedulesBuilder_ == null) { if (!other.snapshotSchedules_.isEmpty()) { if (snapshotSchedules_.isEmpty()) { snapshotSchedules_ = other.snapshotSchedules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSnapshotSchedulesIsMutable(); snapshotSchedules_.addAll(other.snapshotSchedules_); } onChanged(); } } else { if (!other.snapshotSchedules_.isEmpty()) { if (snapshotSchedulesBuilder_.isEmpty()) { snapshotSchedulesBuilder_.dispose(); snapshotSchedulesBuilder_ = null; snapshotSchedules_ = other.snapshotSchedules_; bitField0_ = (bitField0_ & ~0x00000001); snapshotSchedulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSnapshotSchedulesFieldBuilder() : null; } else { snapshotSchedulesBuilder_.addAllMessages(other.snapshotSchedules_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List snapshotSchedules_ = java.util.Collections.emptyList(); private void ensureSnapshotSchedulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { snapshotSchedules_ = new java.util.ArrayList(snapshotSchedules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotScheduleOrBuilder> snapshotSchedulesBuilder_; /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public java.util.List getSnapshotSchedulesList() { if (snapshotSchedulesBuilder_ == null) { return java.util.Collections.unmodifiableList(snapshotSchedules_); } else { return snapshotSchedulesBuilder_.getMessageList(); } } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public int getSnapshotSchedulesCount() { if (snapshotSchedulesBuilder_ == null) { return snapshotSchedules_.size(); } else { return snapshotSchedulesBuilder_.getCount(); } } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule getSnapshotSchedules(int index) { if (snapshotSchedulesBuilder_ == null) { return snapshotSchedules_.get(index); } else { return snapshotSchedulesBuilder_.getMessage(index); } } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder setSnapshotSchedules( int index, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule value) { if (snapshotSchedulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotSchedulesIsMutable(); snapshotSchedules_.set(index, value); onChanged(); } else { snapshotSchedulesBuilder_.setMessage(index, value); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder setSnapshotSchedules( int index, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder builderForValue) { if (snapshotSchedulesBuilder_ == null) { ensureSnapshotSchedulesIsMutable(); snapshotSchedules_.set(index, builderForValue.build()); onChanged(); } else { snapshotSchedulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder addSnapshotSchedules(yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule value) { if (snapshotSchedulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotSchedulesIsMutable(); snapshotSchedules_.add(value); onChanged(); } else { snapshotSchedulesBuilder_.addMessage(value); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder addSnapshotSchedules( int index, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule value) { if (snapshotSchedulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotSchedulesIsMutable(); snapshotSchedules_.add(index, value); onChanged(); } else { snapshotSchedulesBuilder_.addMessage(index, value); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder addSnapshotSchedules( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder builderForValue) { if (snapshotSchedulesBuilder_ == null) { ensureSnapshotSchedulesIsMutable(); snapshotSchedules_.add(builderForValue.build()); onChanged(); } else { snapshotSchedulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder addSnapshotSchedules( int index, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder builderForValue) { if (snapshotSchedulesBuilder_ == null) { ensureSnapshotSchedulesIsMutable(); snapshotSchedules_.add(index, builderForValue.build()); onChanged(); } else { snapshotSchedulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder addAllSnapshotSchedules( java.lang.Iterable values) { if (snapshotSchedulesBuilder_ == null) { ensureSnapshotSchedulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, snapshotSchedules_); onChanged(); } else { snapshotSchedulesBuilder_.addAllMessages(values); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder clearSnapshotSchedules() { if (snapshotSchedulesBuilder_ == null) { snapshotSchedules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { snapshotSchedulesBuilder_.clear(); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public Builder removeSnapshotSchedules(int index) { if (snapshotSchedulesBuilder_ == null) { ensureSnapshotSchedulesIsMutable(); snapshotSchedules_.remove(index); onChanged(); } else { snapshotSchedulesBuilder_.remove(index); } return this; } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder getSnapshotSchedulesBuilder( int index) { return getSnapshotSchedulesFieldBuilder().getBuilder(index); } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotScheduleOrBuilder getSnapshotSchedulesOrBuilder( int index) { if (snapshotSchedulesBuilder_ == null) { return snapshotSchedules_.get(index); } else { return snapshotSchedulesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public java.util.List getSnapshotSchedulesOrBuilderList() { if (snapshotSchedulesBuilder_ != null) { return snapshotSchedulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(snapshotSchedules_); } } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder addSnapshotSchedulesBuilder() { return getSnapshotSchedulesFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.getDefaultInstance()); } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder addSnapshotSchedulesBuilder( int index) { return getSnapshotSchedulesFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.getDefaultInstance()); } /** *
       * List of snapshot schedules in the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.SnapshotSchedule snapshot_schedules = 1; */ public java.util.List getSnapshotSchedulesBuilderList() { return getSnapshotSchedulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotScheduleOrBuilder> getSnapshotSchedulesFieldBuilder() { if (snapshotSchedulesBuilder_ == null) { snapshotSchedulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSchedule.Builder, yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotScheduleOrBuilder>( snapshotSchedules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); snapshotSchedules_ = null; } return snapshotSchedulesBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotSchedulesRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotSchedulesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = 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.ListSnapshotSchedulesResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotSchedulesResponse) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSnapshotSchedulesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSnapshotSchedulesResponse(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.SnapshotScheduleServiceOuterClass.ListSnapshotSchedulesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateSnapshotScheduleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CreateSnapshotScheduleRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the folder to create a snapshot schedule in.
     * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
     * to the schedule.
     * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to create a snapshot schedule in.
     * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
     * to the schedule.
     * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Name of the snapshot schedule.
     * The name must be unique within the folder.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the snapshot schedule.
     * The name must be unique within the folder.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the snapshot schedule.
     * 
* * string description = 3; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the snapshot schedule.
     * 
* * string description = 3; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4; */ int getLabelsCount(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4; */ 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 = 4; */ java.util.Map getLabelsMap(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 5; * @return Whether the schedulePolicy field is set. */ boolean hasSchedulePolicy(); /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 5; * @return The schedulePolicy. */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy getSchedulePolicy(); /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 5; */ 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 = 6; * @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 = 6; * @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 = 6; */ 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 = 7; * @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 = 7; * @return The snapshotCount. */ long getSnapshotCount(); /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 8; * @return Whether the snapshotSpec field is set. */ boolean hasSnapshotSpec(); /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 8; * @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 = 8; */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder getSnapshotSpecOrBuilder(); /** *
     * List of IDs of the disks attached to the snapshot schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string disk_ids = 9; * @return A list containing the diskIds. */ java.util.List getDiskIdsList(); /** *
     * List of IDs of the disks attached to the snapshot schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string disk_ids = 9; * @return The count of diskIds. */ int getDiskIdsCount(); /** *
     * List of IDs of the disks attached to the snapshot schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string disk_ids = 9; * @param index The index of the element to return. * @return The diskIds at the given index. */ java.lang.String getDiskIds(int index); /** *
     * List of IDs of the disks attached to the snapshot schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string disk_ids = 9; * @param index The index of the value to return. * @return The bytes of the diskIds at the given index. */ com.google.protobuf.ByteString getDiskIdsBytes(int index); public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest.RetentionPolicyCase getRetentionPolicyCase(); } /** * Protobuf type {@code yandex.cloud.compute.v1.CreateSnapshotScheduleRequest} */ public static final class CreateSnapshotScheduleRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CreateSnapshotScheduleRequest) CreateSnapshotScheduleRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateSnapshotScheduleRequest.newBuilder() to construct. private CreateSnapshotScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateSnapshotScheduleRequest() { folderId_ = ""; name_ = ""; description_ = ""; diskIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateSnapshotScheduleRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateSnapshotScheduleRequest( 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(); folderId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { 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 42: { 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 50: { com.google.protobuf.Duration.Builder subBuilder = null; if (retentionPolicyCase_ == 6) { 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_ = 6; break; } case 56: { retentionPolicy_ = input.readInt64(); retentionPolicyCase_ = 7; break; } case 66: { 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; } case 74: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { diskIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } diskIds_.add(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 { if (((mutable_bitField0_ & 0x00000002) != 0)) { diskIds_ = diskIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest.Builder.class); } 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(6), SNAPSHOT_COUNT(7), 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 6: return RETENTION_PERIOD; case 7: 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 FOLDER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object folderId_; /** *
     * ID of the folder to create a snapshot schedule in.
     * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
     * to the schedule.
     * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1; * @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 to create a snapshot schedule in.
     * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
     * to the schedule.
     * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1; * @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 NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the snapshot schedule.
     * The name must be unique within the folder.
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the snapshot schedule.
     * The name must be unique within the folder.
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
     * Description of the snapshot schedule.
     * 
* * string description = 3; * @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 = 3; * @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 = 4; 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_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 = 4; */ @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 = 4; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Snapshot schedule labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4; */ @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 = 4; */ @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 SCHEDULE_POLICY_FIELD_NUMBER = 5; private yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy schedulePolicy_; /** *
     * Frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 5; * @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 = 5; * @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 = 5; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder getSchedulePolicyOrBuilder() { return getSchedulePolicy(); } public static final int RETENTION_PERIOD_FIELD_NUMBER = 6; /** *
     * 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 = 6; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return retentionPolicyCase_ == 6; } /** *
     * 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 = 6; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPolicyCase_ == 6) { 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 = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if (retentionPolicyCase_ == 6) { return (com.google.protobuf.Duration) retentionPolicy_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int SNAPSHOT_COUNT_FIELD_NUMBER = 7; /** *
     * 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 = 7; * @return Whether the snapshotCount field is set. */ @java.lang.Override public boolean hasSnapshotCount() { return retentionPolicyCase_ == 7; } /** *
     * 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 = 7; * @return The snapshotCount. */ @java.lang.Override public long getSnapshotCount() { if (retentionPolicyCase_ == 7) { return (java.lang.Long) retentionPolicy_; } return 0L; } public static final int SNAPSHOT_SPEC_FIELD_NUMBER = 8; private yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec snapshotSpec_; /** *
     * Attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 8; * @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 = 8; * @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 = 8; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder getSnapshotSpecOrBuilder() { return getSnapshotSpec(); } public static final int DISK_IDS_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList diskIds_; /** *
     * List of IDs of the disks attached to the snapshot schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string disk_ids = 9; * @return A list containing the diskIds. */ public com.google.protobuf.ProtocolStringList getDiskIdsList() { return diskIds_; } /** *
     * List of IDs of the disks attached to the snapshot schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string disk_ids = 9; * @return The count of diskIds. */ public int getDiskIdsCount() { return diskIds_.size(); } /** *
     * List of IDs of the disks attached to the snapshot schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string disk_ids = 9; * @param index The index of the element to return. * @return The diskIds at the given index. */ public java.lang.String getDiskIds(int index) { return diskIds_.get(index); } /** *
     * List of IDs of the disks attached to the snapshot schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string disk_ids = 9; * @param index The index of the value to return. * @return The bytes of the diskIds at the given index. */ public com.google.protobuf.ByteString getDiskIdsBytes(int index) { return diskIds_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (schedulePolicy_ != null) { output.writeMessage(5, getSchedulePolicy()); } if (retentionPolicyCase_ == 6) { output.writeMessage(6, (com.google.protobuf.Duration) retentionPolicy_); } if (retentionPolicyCase_ == 7) { output.writeInt64( 7, (long)((java.lang.Long) retentionPolicy_)); } if (snapshotSpec_ != null) { output.writeMessage(8, getSnapshotSpec()); } for (int i = 0; i < diskIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, diskIds_.getRaw(i)); } 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(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, 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(4, labels__); } if (schedulePolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSchedulePolicy()); } if (retentionPolicyCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.google.protobuf.Duration) retentionPolicy_); } if (retentionPolicyCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 7, (long)((java.lang.Long) retentionPolicy_)); } if (snapshotSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getSnapshotSpec()); } { int dataSize = 0; for (int i = 0; i < diskIds_.size(); i++) { dataSize += computeStringSizeNoTag(diskIds_.getRaw(i)); } size += dataSize; size += 1 * getDiskIdsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest) obj; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) 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 (!getDiskIdsList() .equals(other.getDiskIdsList())) return false; if (!getRetentionPolicyCase().equals(other.getRetentionPolicyCase())) return false; switch (retentionPolicyCase_) { case 6: if (!getRetentionPeriod() .equals(other.getRetentionPeriod())) return false; break; case 7: 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) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().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(); } 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(); } if (getDiskIdsCount() > 0) { hash = (37 * hash) + DISK_IDS_FIELD_NUMBER; hash = (53 * hash) + getDiskIdsList().hashCode(); } switch (retentionPolicyCase_) { case 6: hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getRetentionPeriod().hashCode(); break; case 7: 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.CreateSnapshotScheduleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CreateSnapshotScheduleRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest.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(); folderId_ = ""; name_ = ""; description_ = ""; internalGetMutableLabels().clear(); if (schedulePolicyBuilder_ == null) { schedulePolicy_ = null; } else { schedulePolicy_ = null; schedulePolicyBuilder_ = null; } if (snapshotSpecBuilder_ == null) { snapshotSpec_ = null; } else { snapshotSpec_ = null; snapshotSpecBuilder_ = null; } diskIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); retentionPolicyCase_ = 0; retentionPolicy_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest(this); int from_bitField0_ = bitField0_; result.folderId_ = folderId_; result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (schedulePolicyBuilder_ == null) { result.schedulePolicy_ = schedulePolicy_; } else { result.schedulePolicy_ = schedulePolicyBuilder_.build(); } if (retentionPolicyCase_ == 6) { if (retentionPeriodBuilder_ == null) { result.retentionPolicy_ = retentionPolicy_; } else { result.retentionPolicy_ = retentionPeriodBuilder_.build(); } } if (retentionPolicyCase_ == 7) { result.retentionPolicy_ = retentionPolicy_; } if (snapshotSpecBuilder_ == null) { result.snapshotSpec_ = snapshotSpec_; } else { result.snapshotSpec_ = snapshotSpecBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { diskIds_ = diskIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.diskIds_ = diskIds_; 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest.getDefaultInstance()) return this; if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.hasSchedulePolicy()) { mergeSchedulePolicy(other.getSchedulePolicy()); } if (other.hasSnapshotSpec()) { mergeSnapshotSpec(other.getSnapshotSpec()); } if (!other.diskIds_.isEmpty()) { if (diskIds_.isEmpty()) { diskIds_ = other.diskIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDiskIdsIsMutable(); diskIds_.addAll(other.diskIds_); } onChanged(); } 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest) 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 folderId_ = ""; /** *
       * ID of the folder to create a snapshot schedule in.
       * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
       * to the schedule.
       * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1; * @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 to create a snapshot schedule in.
       * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
       * to the schedule.
       * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1; * @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 to create a snapshot schedule in.
       * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
       * to the schedule.
       * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1; * @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 to create a snapshot schedule in.
       * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
       * to the schedule.
       * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder to create a snapshot schedule in.
       * Snapshots are created in the same folder as the schedule, even if disks from other folders are attached
       * to the schedule.
       * To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the snapshot schedule.
       * 
* * string description = 3; * @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 = 3; * @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 = 3; * @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 = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the snapshot schedule.
       * 
* * string description = 3; * @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 = 4; */ @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 = 4; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * 
* * map<string, string> labels = 4; */ @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 = 4; */ @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 = 4; */ 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 = 4; */ 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 = 4; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); 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 = 5; * @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 = 5; * @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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 6; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return retentionPolicyCase_ == 6; } /** *
       * 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 = 6; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 6) { return (com.google.protobuf.Duration) retentionPolicy_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (retentionPolicyCase_ == 6) { 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 = 6; */ 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_ = 6; 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 = 6; */ public Builder setRetentionPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (retentionPeriodBuilder_ == null) { retentionPolicy_ = builderForValue.build(); onChanged(); } else { retentionPeriodBuilder_.setMessage(builderForValue.build()); } retentionPolicyCase_ = 6; 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 = 6; */ public Builder mergeRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 6 && 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_ == 6) { retentionPeriodBuilder_.mergeFrom(value); } retentionPeriodBuilder_.setMessage(value); } retentionPolicyCase_ = 6; 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 = 6; */ public Builder clearRetentionPeriod() { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 6) { retentionPolicyCase_ = 0; retentionPolicy_ = null; onChanged(); } } else { if (retentionPolicyCase_ == 6) { 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 = 6; */ 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 = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if ((retentionPolicyCase_ == 6) && (retentionPeriodBuilder_ != null)) { return retentionPeriodBuilder_.getMessageOrBuilder(); } else { if (retentionPolicyCase_ == 6) { 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 = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRetentionPeriodFieldBuilder() { if (retentionPeriodBuilder_ == null) { if (!(retentionPolicyCase_ == 6)) { 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_ = 6; 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 = 7; * @return Whether the snapshotCount field is set. */ public boolean hasSnapshotCount() { return retentionPolicyCase_ == 7; } /** *
       * 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 = 7; * @return The snapshotCount. */ public long getSnapshotCount() { if (retentionPolicyCase_ == 7) { 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 = 7; * @param value The snapshotCount to set. * @return This builder for chaining. */ public Builder setSnapshotCount(long value) { retentionPolicyCase_ = 7; 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 = 7; * @return This builder for chaining. */ public Builder clearSnapshotCount() { if (retentionPolicyCase_ == 7) { 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 = 8; * @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 = 8; * @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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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_; } private com.google.protobuf.LazyStringList diskIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDiskIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { diskIds_ = new com.google.protobuf.LazyStringArrayList(diskIds_); bitField0_ |= 0x00000002; } } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @return A list containing the diskIds. */ public com.google.protobuf.ProtocolStringList getDiskIdsList() { return diskIds_.getUnmodifiableView(); } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @return The count of diskIds. */ public int getDiskIdsCount() { return diskIds_.size(); } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @param index The index of the element to return. * @return The diskIds at the given index. */ public java.lang.String getDiskIds(int index) { return diskIds_.get(index); } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @param index The index of the value to return. * @return The bytes of the diskIds at the given index. */ public com.google.protobuf.ByteString getDiskIdsBytes(int index) { return diskIds_.getByteString(index); } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @param index The index to set the value at. * @param value The diskIds to set. * @return This builder for chaining. */ public Builder setDiskIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDiskIdsIsMutable(); diskIds_.set(index, value); onChanged(); return this; } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @param value The diskIds to add. * @return This builder for chaining. */ public Builder addDiskIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDiskIdsIsMutable(); diskIds_.add(value); onChanged(); return this; } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @param values The diskIds to add. * @return This builder for chaining. */ public Builder addAllDiskIds( java.lang.Iterable values) { ensureDiskIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, diskIds_); onChanged(); return this; } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @return This builder for chaining. */ public Builder clearDiskIds() { diskIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * List of IDs of the disks attached to the snapshot schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string disk_ids = 9; * @param value The bytes of the diskIds to add. * @return This builder for chaining. */ public Builder addDiskIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDiskIdsIsMutable(); diskIds_.add(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.CreateSnapshotScheduleRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateSnapshotScheduleRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateSnapshotScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateSnapshotScheduleRequest(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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateSnapshotScheduleMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CreateSnapshotScheduleMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule that is being created.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule that is being created.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.CreateSnapshotScheduleMetadata} */ public static final class CreateSnapshotScheduleMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CreateSnapshotScheduleMetadata) CreateSnapshotScheduleMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use CreateSnapshotScheduleMetadata.newBuilder() to construct. private CreateSnapshotScheduleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateSnapshotScheduleMetadata() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateSnapshotScheduleMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateSnapshotScheduleMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule that is being created.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule that is being created.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.CreateSnapshotScheduleMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CreateSnapshotScheduleMetadata) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule that is being created.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule that is being created.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule that is being created.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being created.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being created.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.CreateSnapshotScheduleMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateSnapshotScheduleMetadata) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateSnapshotScheduleMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateSnapshotScheduleMetadata(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.SnapshotScheduleServiceOuterClass.CreateSnapshotScheduleMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateSnapshotScheduleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateSnapshotScheduleRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule to update.
     * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to update.
     * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); /** *
     * Field mask that specifies which attributes of the snapshot schedule should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** *
     * Field mask that specifies which attributes of the snapshot schedule should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** *
     * Field mask that specifies which attributes of the snapshot schedule should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** *
     * New name for the snapshot schedule.
     * The name must be unique within the folder.
     * 
* * string name = 3; * @return The name. */ java.lang.String getName(); /** *
     * New name for the snapshot schedule.
     * The name must be unique within the folder.
     * 
* * string name = 3; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * New description of the snapshot schedule.
     * 
* * string description = 4; * @return The description. */ java.lang.String getDescription(); /** *
     * New description of the snapshot schedule.
     * 
* * string description = 4; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ int getLabelsCount(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ java.util.Map getLabelsMap(); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Snapshot schedule labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * New frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; * @return Whether the schedulePolicy field is set. */ boolean hasSchedulePolicy(); /** *
     * New frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; * @return The schedulePolicy. */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy getSchedulePolicy(); /** *
     * New frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ 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 = 7; * @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 = 7; * @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 = 7; */ 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 = 8; * @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 = 8; * @return The snapshotCount. */ long getSnapshotCount(); /** *
     * New attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; * @return Whether the snapshotSpec field is set. */ boolean hasSnapshotSpec(); /** *
     * New attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; * @return The snapshotSpec. */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec getSnapshotSpec(); /** *
     * New attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpecOrBuilder getSnapshotSpecOrBuilder(); public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest.RetentionPolicyCase getRetentionPolicyCase(); } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotScheduleRequest} */ public static final class UpdateSnapshotScheduleRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateSnapshotScheduleRequest) UpdateSnapshotScheduleRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateSnapshotScheduleRequest.newBuilder() to construct. private UpdateSnapshotScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateSnapshotScheduleRequest() { snapshotScheduleId_ = ""; name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateSnapshotScheduleRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateSnapshotScheduleRequest( 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(); snapshotScheduleId_ = s; break; } case 18: { com.google.protobuf.FieldMask.Builder subBuilder = null; if (updateMask_ != null) { subBuilder = updateMask_.toBuilder(); } updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updateMask_); updateMask_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { 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 50: { 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 58: { com.google.protobuf.Duration.Builder subBuilder = null; if (retentionPolicyCase_ == 7) { 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_ = 7; break; } case 64: { retentionPolicy_ = input.readInt64(); retentionPolicyCase_ = 8; break; } case 74: { 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest.Builder.class); } 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(7), SNAPSHOT_COUNT(8), 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 7: return RETENTION_PERIOD; case 8: 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 SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to update.
     * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to update.
     * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** *
     * Field mask that specifies which attributes of the snapshot schedule should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ @java.lang.Override public boolean hasUpdateMask() { return updateMask_ != null; } /** *
     * Field mask that specifies which attributes of the snapshot schedule should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ @java.lang.Override public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** *
     * Field mask that specifies which attributes of the snapshot schedule should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * New name for the snapshot schedule.
     * The name must be unique within the folder.
     * 
* * string name = 3; * @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; } } /** *
     * New name for the snapshot schedule.
     * The name must be unique within the folder.
     * 
* * string name = 3; * @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 = 4; private volatile java.lang.Object description_; /** *
     * New description of the snapshot schedule.
     * 
* * string description = 4; * @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; } } /** *
     * New description of the snapshot schedule.
     * 
* * string description = 4; * @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 = 5; 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_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.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ @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.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Snapshot schedule labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ @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.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label:
     * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
     * 2. Add or remove a label in this set.
     * 3. Send the new set in this field.
     * 
* * map<string, string> labels = 5; */ @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 SCHEDULE_POLICY_FIELD_NUMBER = 6; private yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy schedulePolicy_; /** *
     * New frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; * @return Whether the schedulePolicy field is set. */ @java.lang.Override public boolean hasSchedulePolicy() { return schedulePolicy_ != null; } /** *
     * New frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; * @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_; } /** *
     * New frequency settings of the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicyOrBuilder getSchedulePolicyOrBuilder() { return getSchedulePolicy(); } public static final int RETENTION_PERIOD_FIELD_NUMBER = 7; /** *
     * 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 = 7; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return retentionPolicyCase_ == 7; } /** *
     * 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 = 7; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPolicyCase_ == 7) { 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 = 7; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if (retentionPolicyCase_ == 7) { return (com.google.protobuf.Duration) retentionPolicy_; } return com.google.protobuf.Duration.getDefaultInstance(); } public static final int SNAPSHOT_COUNT_FIELD_NUMBER = 8; /** *
     * 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 = 8; * @return Whether the snapshotCount field is set. */ @java.lang.Override public boolean hasSnapshotCount() { return retentionPolicyCase_ == 8; } /** *
     * 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 = 8; * @return The snapshotCount. */ @java.lang.Override public long getSnapshotCount() { if (retentionPolicyCase_ == 8) { return (java.lang.Long) retentionPolicy_; } return 0L; } public static final int SNAPSHOT_SPEC_FIELD_NUMBER = 9; private yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec snapshotSpec_; /** *
     * New attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; * @return Whether the snapshotSpec field is set. */ @java.lang.Override public boolean hasSnapshotSpec() { return snapshotSpec_ != null; } /** *
     * New attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; * @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_; } /** *
     * New attributes of snapshots created by the snapshot schedule.
     * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ @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(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (schedulePolicy_ != null) { output.writeMessage(6, getSchedulePolicy()); } if (retentionPolicyCase_ == 7) { output.writeMessage(7, (com.google.protobuf.Duration) retentionPolicy_); } if (retentionPolicyCase_ == 8) { output.writeInt64( 8, (long)((java.lang.Long) retentionPolicy_)); } if (snapshotSpec_ != null) { output.writeMessage(9, 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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(5, labels__); } if (schedulePolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSchedulePolicy()); } if (retentionPolicyCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.google.protobuf.Duration) retentionPolicy_); } if (retentionPolicyCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 8, (long)((java.lang.Long) retentionPolicy_)); } if (snapshotSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { if (!getUpdateMask() .equals(other.getUpdateMask())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) 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 7: if (!getRetentionPeriod() .equals(other.getRetentionPeriod())) return false; break; case 8: 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().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(); } 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 7: hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER; hash = (53 * hash) + getRetentionPeriod().hashCode(); break; case 8: 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotScheduleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateSnapshotScheduleRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest.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(); snapshotScheduleId_ = ""; if (updateMaskBuilder_ == null) { updateMask_ = null; } else { updateMask_ = null; updateMaskBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest(this); int from_bitField0_ = bitField0_; result.snapshotScheduleId_ = snapshotScheduleId_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (schedulePolicyBuilder_ == null) { result.schedulePolicy_ = schedulePolicy_; } else { result.schedulePolicy_ = schedulePolicyBuilder_.build(); } if (retentionPolicyCase_ == 7) { if (retentionPeriodBuilder_ == null) { result.retentionPolicy_ = retentionPolicy_; } else { result.retentionPolicy_ = retentionPeriodBuilder_.build(); } } if (retentionPolicyCase_ == 8) { 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; onChanged(); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest) 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 snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to update.
       * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to update.
       * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to update.
       * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to update.
       * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to update.
       * To get the snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = value; onChanged(); return this; } private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask( com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** *
       * Field mask that specifies which attributes of the snapshot schedule should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } private java.lang.Object name_ = ""; /** *
       * New name for the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 3; * @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; } } /** *
       * New name for the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 3; * @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; } } /** *
       * New name for the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 3; * @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; } /** *
       * New name for the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 3; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * New name for the snapshot schedule.
       * The name must be unique within the folder.
       * 
* * string name = 3; * @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_ = ""; /** *
       * New description of the snapshot schedule.
       * 
* * string description = 4; * @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; } } /** *
       * New description of the snapshot schedule.
       * 
* * string description = 4; * @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; } } /** *
       * New description of the snapshot schedule.
       * 
* * string description = 4; * @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; } /** *
       * New description of the snapshot schedule.
       * 
* * string description = 4; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * New description of the snapshot schedule.
       * 
* * string description = 4; * @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.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label:
       * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
       * 2. Add or remove a label in this set.
       * 3. Send the new set in this field.
       * 
* * map<string, string> labels = 5; */ @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.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label:
       * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
       * 2. Add or remove a label in this set.
       * 3. Send the new set in this field.
       * 
* * map<string, string> labels = 5; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Snapshot schedule labels as `key:value` pairs.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label:
       * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
       * 2. Add or remove a label in this set.
       * 3. Send the new set in this field.
       * 
* * map<string, string> labels = 5; */ @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.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label:
       * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
       * 2. Add or remove a label in this set.
       * 3. Send the new set in this field.
       * 
* * map<string, string> labels = 5; */ @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.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label:
       * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
       * 2. Add or remove a label in this set.
       * 3. Send the new set in this field.
       * 
* * map<string, string> labels = 5; */ 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.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label:
       * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
       * 2. Add or remove a label in this set.
       * 3. Send the new set in this field.
       * 
* * map<string, string> labels = 5; */ 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.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label:
       * 1. Get the current set of labels with a [SnapshotScheduleService.Get] request.
       * 2. Add or remove a label in this set.
       * 3. Send the new set in this field.
       * 
* * map<string, string> labels = 5; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); 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_; /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; * @return Whether the schedulePolicy field is set. */ public boolean hasSchedulePolicy() { return schedulePolicyBuilder_ != null || schedulePolicy_ != null; } /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; * @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(); } } /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ 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; } /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ 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; } /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ 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; } /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ public Builder clearSchedulePolicy() { if (schedulePolicyBuilder_ == null) { schedulePolicy_ = null; onChanged(); } else { schedulePolicy_ = null; schedulePolicyBuilder_ = null; } return this; } /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SchedulePolicy.Builder getSchedulePolicyBuilder() { onChanged(); return getSchedulePolicyFieldBuilder().getBuilder(); } /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ 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_; } } /** *
       * New frequency settings of the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SchedulePolicy schedule_policy = 6; */ 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 = 7; * @return Whether the retentionPeriod field is set. */ @java.lang.Override public boolean hasRetentionPeriod() { return retentionPolicyCase_ == 7; } /** *
       * 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 = 7; * @return The retentionPeriod. */ @java.lang.Override public com.google.protobuf.Duration getRetentionPeriod() { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 7) { return (com.google.protobuf.Duration) retentionPolicy_; } return com.google.protobuf.Duration.getDefaultInstance(); } else { if (retentionPolicyCase_ == 7) { 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 = 7; */ 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_ = 7; 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 = 7; */ public Builder setRetentionPeriod( com.google.protobuf.Duration.Builder builderForValue) { if (retentionPeriodBuilder_ == null) { retentionPolicy_ = builderForValue.build(); onChanged(); } else { retentionPeriodBuilder_.setMessage(builderForValue.build()); } retentionPolicyCase_ = 7; 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 = 7; */ public Builder mergeRetentionPeriod(com.google.protobuf.Duration value) { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 7 && 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_ == 7) { retentionPeriodBuilder_.mergeFrom(value); } retentionPeriodBuilder_.setMessage(value); } retentionPolicyCase_ = 7; 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 = 7; */ public Builder clearRetentionPeriod() { if (retentionPeriodBuilder_ == null) { if (retentionPolicyCase_ == 7) { retentionPolicyCase_ = 0; retentionPolicy_ = null; onChanged(); } } else { if (retentionPolicyCase_ == 7) { 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 = 7; */ 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 = 7; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() { if ((retentionPolicyCase_ == 7) && (retentionPeriodBuilder_ != null)) { return retentionPeriodBuilder_.getMessageOrBuilder(); } else { if (retentionPolicyCase_ == 7) { 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 = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRetentionPeriodFieldBuilder() { if (retentionPeriodBuilder_ == null) { if (!(retentionPolicyCase_ == 7)) { 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_ = 7; 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 = 8; * @return Whether the snapshotCount field is set. */ public boolean hasSnapshotCount() { return retentionPolicyCase_ == 8; } /** *
       * 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 = 8; * @return The snapshotCount. */ public long getSnapshotCount() { if (retentionPolicyCase_ == 8) { 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 = 8; * @param value The snapshotCount to set. * @return This builder for chaining. */ public Builder setSnapshotCount(long value) { retentionPolicyCase_ = 8; 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 = 8; * @return This builder for chaining. */ public Builder clearSnapshotCount() { if (retentionPolicyCase_ == 8) { 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_; /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; * @return Whether the snapshotSpec field is set. */ public boolean hasSnapshotSpec() { return snapshotSpecBuilder_ != null || snapshotSpec_ != null; } /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; * @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(); } } /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ 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; } /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ 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; } /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ 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; } /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ public Builder clearSnapshotSpec() { if (snapshotSpecBuilder_ == null) { snapshotSpec_ = null; onChanged(); } else { snapshotSpec_ = null; snapshotSpecBuilder_ = null; } return this; } /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ public yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.SnapshotSpec.Builder getSnapshotSpecBuilder() { onChanged(); return getSnapshotSpecFieldBuilder().getBuilder(); } /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ 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_; } } /** *
       * New attributes of snapshots created by the snapshot schedule.
       * 
* * .yandex.cloud.compute.v1.SnapshotSpec snapshot_spec = 9; */ 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.UpdateSnapshotScheduleRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateSnapshotScheduleRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateSnapshotScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateSnapshotScheduleRequest(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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateSnapshotScheduleMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateSnapshotScheduleMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule that is being updated.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule that is being updated.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotScheduleMetadata} */ public static final class UpdateSnapshotScheduleMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateSnapshotScheduleMetadata) UpdateSnapshotScheduleMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateSnapshotScheduleMetadata.newBuilder() to construct. private UpdateSnapshotScheduleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateSnapshotScheduleMetadata() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateSnapshotScheduleMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateSnapshotScheduleMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule that is being updated.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule that is being updated.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotScheduleMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateSnapshotScheduleMetadata) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.UpdateSnapshotScheduleMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateSnapshotScheduleMetadata) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateSnapshotScheduleMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateSnapshotScheduleMetadata(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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteSnapshotScheduleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DeleteSnapshotScheduleRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule to delete.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to delete.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.DeleteSnapshotScheduleRequest} */ public static final class DeleteSnapshotScheduleRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DeleteSnapshotScheduleRequest) DeleteSnapshotScheduleRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteSnapshotScheduleRequest.newBuilder() to construct. private DeleteSnapshotScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteSnapshotScheduleRequest() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteSnapshotScheduleRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteSnapshotScheduleRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to delete.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to delete.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.DeleteSnapshotScheduleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DeleteSnapshotScheduleRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to delete.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to delete.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to delete.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to delete.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to delete.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.DeleteSnapshotScheduleRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteSnapshotScheduleRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteSnapshotScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteSnapshotScheduleRequest(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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteSnapshotScheduleMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DeleteSnapshotScheduleMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule that is being deleted.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule that is being deleted.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.DeleteSnapshotScheduleMetadata} */ public static final class DeleteSnapshotScheduleMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DeleteSnapshotScheduleMetadata) DeleteSnapshotScheduleMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteSnapshotScheduleMetadata.newBuilder() to construct. private DeleteSnapshotScheduleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteSnapshotScheduleMetadata() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteSnapshotScheduleMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteSnapshotScheduleMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule that is being deleted.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule that is being deleted.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.DeleteSnapshotScheduleMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DeleteSnapshotScheduleMetadata) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule that is being deleted.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule that is being deleted.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule that is being deleted.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being deleted.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being deleted.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.DeleteSnapshotScheduleMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteSnapshotScheduleMetadata) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteSnapshotScheduleMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteSnapshotScheduleMetadata(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.SnapshotScheduleServiceOuterClass.DeleteSnapshotScheduleMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DisableSnapshotScheduleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DisableSnapshotScheduleRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule to disable.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to disable.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.DisableSnapshotScheduleRequest} */ public static final class DisableSnapshotScheduleRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DisableSnapshotScheduleRequest) DisableSnapshotScheduleRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DisableSnapshotScheduleRequest.newBuilder() to construct. private DisableSnapshotScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DisableSnapshotScheduleRequest() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisableSnapshotScheduleRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DisableSnapshotScheduleRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to disable.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to disable.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.DisableSnapshotScheduleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DisableSnapshotScheduleRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to disable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to disable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to disable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to disable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to disable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.DisableSnapshotScheduleRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DisableSnapshotScheduleRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DisableSnapshotScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DisableSnapshotScheduleRequest(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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DisableSnapshotScheduleMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DisableSnapshotScheduleMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule that is being disabled.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule that is being disabled.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.DisableSnapshotScheduleMetadata} */ public static final class DisableSnapshotScheduleMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DisableSnapshotScheduleMetadata) DisableSnapshotScheduleMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DisableSnapshotScheduleMetadata.newBuilder() to construct. private DisableSnapshotScheduleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DisableSnapshotScheduleMetadata() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DisableSnapshotScheduleMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DisableSnapshotScheduleMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule that is being disabled.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule that is being disabled.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.DisableSnapshotScheduleMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DisableSnapshotScheduleMetadata) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule that is being disabled.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule that is being disabled.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule that is being disabled.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being disabled.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being disabled.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.DisableSnapshotScheduleMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DisableSnapshotScheduleMetadata) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DisableSnapshotScheduleMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DisableSnapshotScheduleMetadata(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.SnapshotScheduleServiceOuterClass.DisableSnapshotScheduleMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnableSnapshotScheduleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.EnableSnapshotScheduleRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule to enable.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to enable.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.EnableSnapshotScheduleRequest} */ public static final class EnableSnapshotScheduleRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.EnableSnapshotScheduleRequest) EnableSnapshotScheduleRequestOrBuilder { private static final long serialVersionUID = 0L; // Use EnableSnapshotScheduleRequest.newBuilder() to construct. private EnableSnapshotScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnableSnapshotScheduleRequest() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnableSnapshotScheduleRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnableSnapshotScheduleRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to enable.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to enable.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.EnableSnapshotScheduleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.EnableSnapshotScheduleRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to enable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to enable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to enable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to enable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to enable.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.EnableSnapshotScheduleRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.EnableSnapshotScheduleRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnableSnapshotScheduleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnableSnapshotScheduleRequest(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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnableSnapshotScheduleMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.EnableSnapshotScheduleMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule that is being enabled.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule that is being enabled.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.EnableSnapshotScheduleMetadata} */ public static final class EnableSnapshotScheduleMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.EnableSnapshotScheduleMetadata) EnableSnapshotScheduleMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use EnableSnapshotScheduleMetadata.newBuilder() to construct. private EnableSnapshotScheduleMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnableSnapshotScheduleMetadata() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnableSnapshotScheduleMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnableSnapshotScheduleMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule that is being enabled.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule that is being enabled.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.EnableSnapshotScheduleMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.EnableSnapshotScheduleMetadata) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule that is being enabled.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule that is being enabled.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule that is being enabled.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being enabled.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being enabled.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.EnableSnapshotScheduleMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.EnableSnapshotScheduleMetadata) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnableSnapshotScheduleMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnableSnapshotScheduleMetadata(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.SnapshotScheduleServiceOuterClass.EnableSnapshotScheduleMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSnapshotScheduleOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotScheduleOperationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule to list operations for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to list operations for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleOperationsRequest} */ public static final class ListSnapshotScheduleOperationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotScheduleOperationsRequest) ListSnapshotScheduleOperationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListSnapshotScheduleOperationsRequest.newBuilder() to construct. private ListSnapshotScheduleOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSnapshotScheduleOperationsRequest() { snapshotScheduleId_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSnapshotScheduleOperationsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSnapshotScheduleOperationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = s; break; } case 16: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to list operations for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to list operations for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleOperationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotScheduleOperationsRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest.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(); snapshotScheduleId_ = ""; pageSize_ = 0L; pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest(this); result.snapshotScheduleId_ = snapshotScheduleId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to list operations for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to list operations for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to list operations for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to list operations for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to list operations for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = 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.ListSnapshotScheduleOperationsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotScheduleOperationsRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSnapshotScheduleOperationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSnapshotScheduleOperationsRequest(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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSnapshotScheduleOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotScheduleOperationsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsList(); /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index); /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ int getOperationsCount(); /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsOrBuilderList(); /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleOperationsResponse} */ public static final class ListSnapshotScheduleOperationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotScheduleOperationsResponse) ListSnapshotScheduleOperationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListSnapshotScheduleOperationsResponse.newBuilder() to construct. private ListSnapshotScheduleOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSnapshotScheduleOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSnapshotScheduleOperationsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSnapshotScheduleOperationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } operations_.add( input.readMessage(yandex.cloud.api.operation.OperationOuterClass.Operation.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse.Builder.class); } public static final int OPERATIONS_FIELD_NUMBER = 1; private java.util.List operations_; /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsList() { return operations_; } /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsOrBuilderList() { return operations_; } /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public int getOperationsCount() { return operations_.size(); } /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { return operations_.get(index); } /** *
     * List of operations for the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = 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 { for (int i = 0; i < operations_.size(); i++) { output.writeMessage(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < operations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse) obj; if (!getOperationsList() .equals(other.getOperationsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) 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 (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleOperationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotScheduleOperationsResponse) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { operationsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse(this); int from_bitField0_ = bitField0_; if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); bitField0_ = (bitField0_ & ~0x00000001); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse.getDefaultInstance()) return this; if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); } onChanged(); } } else { if (!other.operations_.isEmpty()) { if (operationsBuilder_.isEmpty()) { operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); operationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_; /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsList() { if (operationsBuilder_ == null) { return java.util.Collections.unmodifiableList(operations_); } else { return operationsBuilder_.getMessageList(); } } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public int getOperationsCount() { if (operationsBuilder_ == null) { return operations_.size(); } else { return operationsBuilder_.getCount(); } } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessage(index); } } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder setOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.set(index, value); onChanged(); } else { operationsBuilder_.setMessage(index, value); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder setOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.set(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations(yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(value); onChanged(); } else { operationsBuilder_.addMessage(value); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(index, value); onChanged(); } else { operationsBuilder_.addMessage(index, value); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addAllOperations( java.lang.Iterable values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder clearOperations() { if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { operationsBuilder_.clear(); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder removeOperations(int index) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.remove(index); onChanged(); } else { operationsBuilder_.remove(index); } return this; } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(operations_); } } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder() { return getOperationsFieldBuilder().addBuilder( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()); } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder( int index) { return getOperationsFieldBuilder().addBuilder( index, yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()); } /** *
       * List of operations for the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>( operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = 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.ListSnapshotScheduleOperationsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotScheduleOperationsResponse) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSnapshotScheduleOperationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSnapshotScheduleOperationsResponse(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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSnapshotScheduleSnapshotsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule to list created snapshots for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to list created snapshots for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsRequest} */ public static final class ListSnapshotScheduleSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsRequest) ListSnapshotScheduleSnapshotsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListSnapshotScheduleSnapshotsRequest.newBuilder() to construct. private ListSnapshotScheduleSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSnapshotScheduleSnapshotsRequest() { snapshotScheduleId_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSnapshotScheduleSnapshotsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSnapshotScheduleSnapshotsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = s; break; } case 16: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to list created snapshots for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to list created snapshots for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest.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(); snapshotScheduleId_ = ""; pageSize_ = 0L; pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest(this); result.snapshotScheduleId_ = snapshotScheduleId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to list created snapshots for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to list created snapshots for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to list created snapshots for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to list created snapshots for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to list created snapshots for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = 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.ListSnapshotScheduleSnapshotsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSnapshotScheduleSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSnapshotScheduleSnapshotsRequest(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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSnapshotScheduleSnapshotsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ java.util.List getSnapshotsList(); /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot getSnapshots(int index); /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ int getSnapshotsCount(); /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ java.util.List getSnapshotsOrBuilderList(); /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder getSnapshotsOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsResponse} */ public static final class ListSnapshotScheduleSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsResponse) ListSnapshotScheduleSnapshotsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListSnapshotScheduleSnapshotsResponse.newBuilder() to construct. private ListSnapshotScheduleSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSnapshotScheduleSnapshotsResponse() { snapshots_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSnapshotScheduleSnapshotsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSnapshotScheduleSnapshotsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } snapshots_.add( input.readMessage(yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse.Builder.class); } public static final int SNAPSHOTS_FIELD_NUMBER = 1; private java.util.List snapshots_; /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ @java.lang.Override public java.util.List getSnapshotsList() { return snapshots_; } /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ @java.lang.Override public java.util.List getSnapshotsOrBuilderList() { return snapshots_; } /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ @java.lang.Override public int getSnapshotsCount() { return snapshots_.size(); } /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot getSnapshots(int index) { return snapshots_.get(index); } /** *
     * List of snapshots created by the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder getSnapshotsOrBuilder( int index) { return snapshots_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = 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 { for (int i = 0; i < snapshots_.size(); i++) { output.writeMessage(1, snapshots_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < snapshots_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, snapshots_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse) obj; if (!getSnapshotsList() .equals(other.getSnapshotsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) 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 (getSnapshotsCount() > 0) { hash = (37 * hash) + SNAPSHOTS_FIELD_NUMBER; hash = (53 * hash) + getSnapshotsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsResponse) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSnapshotsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (snapshotsBuilder_ == null) { snapshots_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { snapshotsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse(this); int from_bitField0_ = bitField0_; if (snapshotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); bitField0_ = (bitField0_ & ~0x00000001); } result.snapshots_ = snapshots_; } else { result.snapshots_ = snapshotsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse.getDefaultInstance()) return this; if (snapshotsBuilder_ == null) { if (!other.snapshots_.isEmpty()) { if (snapshots_.isEmpty()) { snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSnapshotsIsMutable(); snapshots_.addAll(other.snapshots_); } onChanged(); } } else { if (!other.snapshots_.isEmpty()) { if (snapshotsBuilder_.isEmpty()) { snapshotsBuilder_.dispose(); snapshotsBuilder_ = null; snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); snapshotsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSnapshotsFieldBuilder() : null; } else { snapshotsBuilder_.addAllMessages(other.snapshots_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List snapshots_ = java.util.Collections.emptyList(); private void ensureSnapshotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { snapshots_ = new java.util.ArrayList(snapshots_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot, yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder, yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder> snapshotsBuilder_; /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public java.util.List getSnapshotsList() { if (snapshotsBuilder_ == null) { return java.util.Collections.unmodifiableList(snapshots_); } else { return snapshotsBuilder_.getMessageList(); } } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public int getSnapshotsCount() { if (snapshotsBuilder_ == null) { return snapshots_.size(); } else { return snapshotsBuilder_.getCount(); } } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot getSnapshots(int index) { if (snapshotsBuilder_ == null) { return snapshots_.get(index); } else { return snapshotsBuilder_.getMessage(index); } } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder setSnapshots( int index, yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); } else { snapshotsBuilder_.setMessage(index, value); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder setSnapshots( int index, yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.set(index, builderForValue.build()); onChanged(); } else { snapshotsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder addSnapshots(yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); } else { snapshotsBuilder_.addMessage(value); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder addSnapshots( int index, yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSnapshotsIsMutable(); snapshots_.add(index, value); onChanged(); } else { snapshotsBuilder_.addMessage(index, value); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder addSnapshots( yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(builderForValue.build()); onChanged(); } else { snapshotsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder addSnapshots( int index, yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(index, builderForValue.build()); onChanged(); } else { snapshotsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder addAllSnapshots( java.lang.Iterable values) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, snapshots_); onChanged(); } else { snapshotsBuilder_.addAllMessages(values); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder clearSnapshots() { if (snapshotsBuilder_ == null) { snapshots_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { snapshotsBuilder_.clear(); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public Builder removeSnapshots(int index) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.remove(index); onChanged(); } else { snapshotsBuilder_.remove(index); } return this; } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder getSnapshotsBuilder( int index) { return getSnapshotsFieldBuilder().getBuilder(index); } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder getSnapshotsOrBuilder( int index) { if (snapshotsBuilder_ == null) { return snapshots_.get(index); } else { return snapshotsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public java.util.List getSnapshotsOrBuilderList() { if (snapshotsBuilder_ != null) { return snapshotsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(snapshots_); } } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder addSnapshotsBuilder() { return getSnapshotsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.getDefaultInstance()); } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder addSnapshotsBuilder( int index) { return getSnapshotsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.getDefaultInstance()); } /** *
       * List of snapshots created by the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1; */ public java.util.List getSnapshotsBuilderList() { return getSnapshotsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot, yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder, yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder> getSnapshotsFieldBuilder() { if (snapshotsBuilder_ == null) { snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot, yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot.Builder, yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder>( snapshots_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); snapshots_ = null; } return snapshotsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleSnapshotsRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleSnapshotsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = 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.ListSnapshotScheduleSnapshotsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotScheduleSnapshotsResponse) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSnapshotScheduleSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSnapshotScheduleSnapshotsResponse(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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSnapshotScheduleDisksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotScheduleDisksRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule to list attached disks for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to list attached disks for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size], the service returns a [ListSnapshotScheduleDisksResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleDisksRequest} */ public static final class ListSnapshotScheduleDisksRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotScheduleDisksRequest) ListSnapshotScheduleDisksRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListSnapshotScheduleDisksRequest.newBuilder() to construct. private ListSnapshotScheduleDisksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSnapshotScheduleDisksRequest() { snapshotScheduleId_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSnapshotScheduleDisksRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSnapshotScheduleDisksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = s; break; } case 16: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to list attached disks for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to list attached disks for.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size], the service returns a [ListSnapshotScheduleDisksResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleDisksRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotScheduleDisksRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest.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(); snapshotScheduleId_ = ""; pageSize_ = 0L; pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest(this); result.snapshotScheduleId_ = snapshotScheduleId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to list attached disks for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to list attached disks for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to list attached disks for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to list attached disks for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to list attached disks for.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleDisksResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleDisksResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than [page_size], the service returns a [ListSnapshotScheduleDisksResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set [page_token] to the
       * [ListSnapshotScheduleDisksResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = 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.ListSnapshotScheduleDisksRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotScheduleDisksRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSnapshotScheduleDisksRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSnapshotScheduleDisksRequest(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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListSnapshotScheduleDisksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotScheduleDisksResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ java.util.List getDisksList(); /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ yandex.cloud.api.compute.v1.DiskOuterClass.Disk getDisks(int index); /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ int getDisksCount(); /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ java.util.List getDisksOrBuilderList(); /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ yandex.cloud.api.compute.v1.DiskOuterClass.DiskOrBuilder getDisksOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleDisksResponse} */ public static final class ListSnapshotScheduleDisksResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotScheduleDisksResponse) ListSnapshotScheduleDisksResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListSnapshotScheduleDisksResponse.newBuilder() to construct. private ListSnapshotScheduleDisksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSnapshotScheduleDisksResponse() { disks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListSnapshotScheduleDisksResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSnapshotScheduleDisksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { disks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } disks_.add( input.readMessage(yandex.cloud.api.compute.v1.DiskOuterClass.Disk.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { disks_ = java.util.Collections.unmodifiableList(disks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse.Builder.class); } public static final int DISKS_FIELD_NUMBER = 1; private java.util.List disks_; /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ @java.lang.Override public java.util.List getDisksList() { return disks_; } /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ @java.lang.Override public java.util.List getDisksOrBuilderList() { return disks_; } /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ @java.lang.Override public int getDisksCount() { return disks_.size(); } /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.DiskOuterClass.Disk getDisks(int index) { return disks_.get(index); } /** *
     * List of disks attached to the specified snapshot schedule.
     * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.DiskOuterClass.DiskOrBuilder getDisksOrBuilder( int index) { return disks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
     * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = 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 { for (int i = 0; i < disks_.size(); i++) { output.writeMessage(1, disks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < disks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, disks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse) obj; if (!getDisksList() .equals(other.getDisksList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) 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 (getDisksCount() > 0) { hash = (37 * hash) + DISKS_FIELD_NUMBER; hash = (53 * hash) + getDisksList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotScheduleDisksResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotScheduleDisksResponse) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDisksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (disksBuilder_ == null) { disks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { disksBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse(this); int from_bitField0_ = bitField0_; if (disksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { disks_ = java.util.Collections.unmodifiableList(disks_); bitField0_ = (bitField0_ & ~0x00000001); } result.disks_ = disks_; } else { result.disks_ = disksBuilder_.build(); } result.nextPageToken_ = nextPageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse.getDefaultInstance()) return this; if (disksBuilder_ == null) { if (!other.disks_.isEmpty()) { if (disks_.isEmpty()) { disks_ = other.disks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDisksIsMutable(); disks_.addAll(other.disks_); } onChanged(); } } else { if (!other.disks_.isEmpty()) { if (disksBuilder_.isEmpty()) { disksBuilder_.dispose(); disksBuilder_ = null; disks_ = other.disks_; bitField0_ = (bitField0_ & ~0x00000001); disksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDisksFieldBuilder() : null; } else { disksBuilder_.addAllMessages(other.disks_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; 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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List disks_ = java.util.Collections.emptyList(); private void ensureDisksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { disks_ = new java.util.ArrayList(disks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.DiskOuterClass.Disk, yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder, yandex.cloud.api.compute.v1.DiskOuterClass.DiskOrBuilder> disksBuilder_; /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public java.util.List getDisksList() { if (disksBuilder_ == null) { return java.util.Collections.unmodifiableList(disks_); } else { return disksBuilder_.getMessageList(); } } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public int getDisksCount() { if (disksBuilder_ == null) { return disks_.size(); } else { return disksBuilder_.getCount(); } } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public yandex.cloud.api.compute.v1.DiskOuterClass.Disk getDisks(int index) { if (disksBuilder_ == null) { return disks_.get(index); } else { return disksBuilder_.getMessage(index); } } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder setDisks( int index, yandex.cloud.api.compute.v1.DiskOuterClass.Disk value) { if (disksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisksIsMutable(); disks_.set(index, value); onChanged(); } else { disksBuilder_.setMessage(index, value); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder setDisks( int index, yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder builderForValue) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.set(index, builderForValue.build()); onChanged(); } else { disksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder addDisks(yandex.cloud.api.compute.v1.DiskOuterClass.Disk value) { if (disksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisksIsMutable(); disks_.add(value); onChanged(); } else { disksBuilder_.addMessage(value); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder addDisks( int index, yandex.cloud.api.compute.v1.DiskOuterClass.Disk value) { if (disksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisksIsMutable(); disks_.add(index, value); onChanged(); } else { disksBuilder_.addMessage(index, value); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder addDisks( yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder builderForValue) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.add(builderForValue.build()); onChanged(); } else { disksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder addDisks( int index, yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder builderForValue) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.add(index, builderForValue.build()); onChanged(); } else { disksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder addAllDisks( java.lang.Iterable values) { if (disksBuilder_ == null) { ensureDisksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, disks_); onChanged(); } else { disksBuilder_.addAllMessages(values); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder clearDisks() { if (disksBuilder_ == null) { disks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { disksBuilder_.clear(); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public Builder removeDisks(int index) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.remove(index); onChanged(); } else { disksBuilder_.remove(index); } return this; } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder getDisksBuilder( int index) { return getDisksFieldBuilder().getBuilder(index); } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public yandex.cloud.api.compute.v1.DiskOuterClass.DiskOrBuilder getDisksOrBuilder( int index) { if (disksBuilder_ == null) { return disks_.get(index); } else { return disksBuilder_.getMessageOrBuilder(index); } } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public java.util.List getDisksOrBuilderList() { if (disksBuilder_ != null) { return disksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(disks_); } } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder addDisksBuilder() { return getDisksFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.DiskOuterClass.Disk.getDefaultInstance()); } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder addDisksBuilder( int index) { return getDisksFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.DiskOuterClass.Disk.getDefaultInstance()); } /** *
       * List of disks attached to the specified snapshot schedule.
       * 
* * repeated .yandex.cloud.compute.v1.Disk disks = 1; */ public java.util.List getDisksBuilderList() { return getDisksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.DiskOuterClass.Disk, yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder, yandex.cloud.api.compute.v1.DiskOuterClass.DiskOrBuilder> getDisksFieldBuilder() { if (disksBuilder_ == null) { disksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.DiskOuterClass.Disk, yandex.cloud.api.compute.v1.DiskOuterClass.Disk.Builder, yandex.cloud.api.compute.v1.DiskOuterClass.DiskOrBuilder>( disks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); disks_ = null; } return disksBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListSnapshotScheduleDisksRequest.page_size], use `next_page_token` as the value
       * for the [ListSnapshotScheduleDisksRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = 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.ListSnapshotScheduleDisksResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotScheduleDisksResponse) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSnapshotScheduleDisksResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSnapshotScheduleDisksResponse(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.SnapshotScheduleServiceOuterClass.ListSnapshotScheduleDisksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateSnapshotScheduleDisksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule to update.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule to update.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); /** *
     * List of IDs of the disks to detach from the specified schedule.
     * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
     * 
* * repeated string remove = 2; * @return A list containing the remove. */ java.util.List getRemoveList(); /** *
     * List of IDs of the disks to detach from the specified schedule.
     * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
     * 
* * repeated string remove = 2; * @return The count of remove. */ int getRemoveCount(); /** *
     * List of IDs of the disks to detach from the specified schedule.
     * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
     * 
* * repeated string remove = 2; * @param index The index of the element to return. * @return The remove at the given index. */ java.lang.String getRemove(int index); /** *
     * List of IDs of the disks to detach from the specified schedule.
     * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
     * 
* * repeated string remove = 2; * @param index The index of the value to return. * @return The bytes of the remove at the given index. */ com.google.protobuf.ByteString getRemoveBytes(int index); /** *
     * List of IDs of the disks to attach to the specified schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string add = 3; * @return A list containing the add. */ java.util.List getAddList(); /** *
     * List of IDs of the disks to attach to the specified schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string add = 3; * @return The count of add. */ int getAddCount(); /** *
     * List of IDs of the disks to attach to the specified schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string add = 3; * @param index The index of the element to return. * @return The add at the given index. */ java.lang.String getAdd(int index); /** *
     * List of IDs of the disks to attach to the specified schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string add = 3; * @param index The index of the value to return. * @return The bytes of the add at the given index. */ com.google.protobuf.ByteString getAddBytes(int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksRequest} */ public static final class UpdateSnapshotScheduleDisksRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksRequest) UpdateSnapshotScheduleDisksRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateSnapshotScheduleDisksRequest.newBuilder() to construct. private UpdateSnapshotScheduleDisksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateSnapshotScheduleDisksRequest() { snapshotScheduleId_ = ""; remove_ = com.google.protobuf.LazyStringArrayList.EMPTY; add_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateSnapshotScheduleDisksRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateSnapshotScheduleDisksRequest( 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(); snapshotScheduleId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { remove_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } remove_.add(s); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { add_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } add_.add(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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { remove_ = remove_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { add_ = add_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule to update.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule to update.
     * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REMOVE_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList remove_; /** *
     * List of IDs of the disks to detach from the specified schedule.
     * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
     * 
* * repeated string remove = 2; * @return A list containing the remove. */ public com.google.protobuf.ProtocolStringList getRemoveList() { return remove_; } /** *
     * List of IDs of the disks to detach from the specified schedule.
     * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
     * 
* * repeated string remove = 2; * @return The count of remove. */ public int getRemoveCount() { return remove_.size(); } /** *
     * List of IDs of the disks to detach from the specified schedule.
     * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
     * 
* * repeated string remove = 2; * @param index The index of the element to return. * @return The remove at the given index. */ public java.lang.String getRemove(int index) { return remove_.get(index); } /** *
     * List of IDs of the disks to detach from the specified schedule.
     * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
     * 
* * repeated string remove = 2; * @param index The index of the value to return. * @return The bytes of the remove at the given index. */ public com.google.protobuf.ByteString getRemoveBytes(int index) { return remove_.getByteString(index); } public static final int ADD_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList add_; /** *
     * List of IDs of the disks to attach to the specified schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string add = 3; * @return A list containing the add. */ public com.google.protobuf.ProtocolStringList getAddList() { return add_; } /** *
     * List of IDs of the disks to attach to the specified schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string add = 3; * @return The count of add. */ public int getAddCount() { return add_.size(); } /** *
     * List of IDs of the disks to attach to the specified schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string add = 3; * @param index The index of the element to return. * @return The add at the given index. */ public java.lang.String getAdd(int index) { return add_.get(index); } /** *
     * List of IDs of the disks to attach to the specified schedule.
     * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
     * 
* * repeated string add = 3; * @param index The index of the value to return. * @return The bytes of the add at the given index. */ public com.google.protobuf.ByteString getAddBytes(int index) { return add_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } for (int i = 0; i < remove_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, remove_.getRaw(i)); } for (int i = 0; i < add_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, add_.getRaw(i)); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } { int dataSize = 0; for (int i = 0; i < remove_.size(); i++) { dataSize += computeStringSizeNoTag(remove_.getRaw(i)); } size += dataSize; size += 1 * getRemoveList().size(); } { int dataSize = 0; for (int i = 0; i < add_.size(); i++) { dataSize += computeStringSizeNoTag(add_.getRaw(i)); } size += dataSize; size += 1 * getAddList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) return false; if (!getRemoveList() .equals(other.getRemoveList())) return false; if (!getAddList() .equals(other.getAddList())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); if (getRemoveCount() > 0) { hash = (37 * hash) + REMOVE_FIELD_NUMBER; hash = (53 * hash) + getRemoveList().hashCode(); } if (getAddCount() > 0) { hash = (37 * hash) + ADD_FIELD_NUMBER; hash = (53 * hash) + getAddList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksRequest) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest.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(); snapshotScheduleId_ = ""; remove_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); add_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest(this); int from_bitField0_ = bitField0_; result.snapshotScheduleId_ = snapshotScheduleId_; if (((bitField0_ & 0x00000001) != 0)) { remove_ = remove_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.remove_ = remove_; if (((bitField0_ & 0x00000002) != 0)) { add_ = add_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.add_ = add_; 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; onChanged(); } if (!other.remove_.isEmpty()) { if (remove_.isEmpty()) { remove_ = other.remove_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRemoveIsMutable(); remove_.addAll(other.remove_); } onChanged(); } if (!other.add_.isEmpty()) { if (add_.isEmpty()) { add_ = other.add_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAddIsMutable(); add_.addAll(other.add_); } 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule to update.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule to update.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule to update.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule to update.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule to update.
       * To get a snapshot schedule ID, make a [SnapshotScheduleService.List] request.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList remove_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRemoveIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { remove_ = new com.google.protobuf.LazyStringArrayList(remove_); bitField0_ |= 0x00000001; } } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @return A list containing the remove. */ public com.google.protobuf.ProtocolStringList getRemoveList() { return remove_.getUnmodifiableView(); } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @return The count of remove. */ public int getRemoveCount() { return remove_.size(); } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @param index The index of the element to return. * @return The remove at the given index. */ public java.lang.String getRemove(int index) { return remove_.get(index); } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @param index The index of the value to return. * @return The bytes of the remove at the given index. */ public com.google.protobuf.ByteString getRemoveBytes(int index) { return remove_.getByteString(index); } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @param index The index to set the value at. * @param value The remove to set. * @return This builder for chaining. */ public Builder setRemove( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemoveIsMutable(); remove_.set(index, value); onChanged(); return this; } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @param value The remove to add. * @return This builder for chaining. */ public Builder addRemove( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemoveIsMutable(); remove_.add(value); onChanged(); return this; } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @param values The remove to add. * @return This builder for chaining. */ public Builder addAllRemove( java.lang.Iterable values) { ensureRemoveIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, remove_); onChanged(); return this; } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @return This builder for chaining. */ public Builder clearRemove() { remove_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * List of IDs of the disks to detach from the specified schedule.
       * To get an ID of a disk attached to the schedule, make a [SnapshotScheduleService.ListDisks] request.
       * 
* * repeated string remove = 2; * @param value The bytes of the remove to add. * @return This builder for chaining. */ public Builder addRemoveBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRemoveIsMutable(); remove_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList add_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAddIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { add_ = new com.google.protobuf.LazyStringArrayList(add_); bitField0_ |= 0x00000002; } } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @return A list containing the add. */ public com.google.protobuf.ProtocolStringList getAddList() { return add_.getUnmodifiableView(); } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @return The count of add. */ public int getAddCount() { return add_.size(); } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @param index The index of the element to return. * @return The add at the given index. */ public java.lang.String getAdd(int index) { return add_.get(index); } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @param index The index of the value to return. * @return The bytes of the add at the given index. */ public com.google.protobuf.ByteString getAddBytes(int index) { return add_.getByteString(index); } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @param index The index to set the value at. * @param value The add to set. * @return This builder for chaining. */ public Builder setAdd( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddIsMutable(); add_.set(index, value); onChanged(); return this; } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @param value The add to add. * @return This builder for chaining. */ public Builder addAdd( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAddIsMutable(); add_.add(value); onChanged(); return this; } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @param values The add to add. * @return This builder for chaining. */ public Builder addAllAdd( java.lang.Iterable values) { ensureAddIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, add_); onChanged(); return this; } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @return This builder for chaining. */ public Builder clearAdd() { add_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * List of IDs of the disks to attach to the specified schedule.
       * To get a disk ID, make a [yandex.cloud.compute.v1.DiskService.List] request.
       * 
* * repeated string add = 3; * @param value The bytes of the add to add. * @return This builder for chaining. */ public Builder addAddBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAddIsMutable(); add_.add(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.UpdateSnapshotScheduleDisksRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksRequest) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateSnapshotScheduleDisksRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateSnapshotScheduleDisksRequest(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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateSnapshotScheduleDisksMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the snapshot schedule that is being updated.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ java.lang.String getSnapshotScheduleId(); /** *
     * ID of the snapshot schedule that is being updated.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ com.google.protobuf.ByteString getSnapshotScheduleIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksMetadata} */ public static final class UpdateSnapshotScheduleDisksMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksMetadata) UpdateSnapshotScheduleDisksMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateSnapshotScheduleDisksMetadata.newBuilder() to construct. private UpdateSnapshotScheduleDisksMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateSnapshotScheduleDisksMetadata() { snapshotScheduleId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateSnapshotScheduleDisksMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateSnapshotScheduleDisksMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); snapshotScheduleId_ = 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.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata.Builder.class); } public static final int SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object snapshotScheduleId_; /** *
     * ID of the snapshot schedule that is being updated.
     * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ @java.lang.Override public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; 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(); snapshotScheduleId_ = s; return s; } } /** *
     * ID of the snapshot schedule that is being updated.
     * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotScheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotScheduleId_); } 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(snapshotScheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotScheduleId_); } 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata other = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata) obj; if (!getSnapshotScheduleId() .equals(other.getSnapshotScheduleId())) 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) + SNAPSHOT_SCHEDULE_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotScheduleId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksMetadata) yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata.class, yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata.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(); snapshotScheduleId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata build() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata buildPartial() { yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata result = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata(this); result.snapshotScheduleId_ = snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata other) { if (other == yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata.getDefaultInstance()) return this; if (!other.getSnapshotScheduleId().isEmpty()) { snapshotScheduleId_ = other.snapshotScheduleId_; 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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object snapshotScheduleId_ = ""; /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @return The snapshotScheduleId. */ public java.lang.String getSnapshotScheduleId() { java.lang.Object ref = snapshotScheduleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); snapshotScheduleId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @return The bytes for snapshotScheduleId. */ public com.google.protobuf.ByteString getSnapshotScheduleIdBytes() { java.lang.Object ref = snapshotScheduleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); snapshotScheduleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @param value The snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } snapshotScheduleId_ = value; onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @return This builder for chaining. */ public Builder clearSnapshotScheduleId() { snapshotScheduleId_ = getDefaultInstance().getSnapshotScheduleId(); onChanged(); return this; } /** *
       * ID of the snapshot schedule that is being updated.
       * 
* * string snapshot_schedule_id = 1; * @param value The bytes for snapshotScheduleId to set. * @return This builder for chaining. */ public Builder setSnapshotScheduleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); snapshotScheduleId_ = 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.UpdateSnapshotScheduleDisksMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateSnapshotScheduleDisksMetadata) private static final yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata(); } public static yandex.cloud.api.compute.v1.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateSnapshotScheduleDisksMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateSnapshotScheduleDisksMetadata(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.SnapshotScheduleServiceOuterClass.UpdateSnapshotScheduleDisksMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n7yandex/cloud/compute/v1/snapshot_sched" + "ule_service.proto\022\027yandex.cloud.compute." + "v1\032\034google/api/annotations.proto\032 google" + "/protobuf/field_mask.proto\032\036google/proto" + "buf/duration.proto\032 yandex/cloud/api/ope" + "ration.proto\032\"yandex/cloud/compute/v1/di" + "sk.proto\032&yandex/cloud/compute/v1/snapsh" + "ot.proto\032/yandex/cloud/compute/v1/snapsh" + "ot_schedule.proto\032&yandex/cloud/operatio" + "n/operation.proto\032\035yandex/cloud/validati" + "on.proto\":\n\032GetSnapshotScheduleRequest\022\034" + "\n\024snapshot_schedule_id\030\001 \001(\t\"\266\001\n\034ListSna" + "pshotSchedulesRequest\022\037\n\tfolder_id\030\001 \001(\t" + "B\014\350\3071\001\212\3101\004<=50\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006<" + "=1000\022\035\n\npage_token\030\003 \001(\tB\t\212\3101\005<=100\022\032\n\006" + "filter\030\004 \001(\tB\n\212\3101\006<=1000\022\033\n\010order_by\030\005 \001" + "(\tB\t\212\3101\005<=100\"\177\n\035ListSnapshotSchedulesRe" + "sponse\022E\n\022snapshot_schedules\030\001 \003(\0132).yan" + "dex.cloud.compute.v1.SnapshotSchedule\022\027\n" + "\017next_page_token\030\002 \001(\t\"\317\003\n\035CreateSnapsho" + "tScheduleRequest\022\021\n\tfolder_id\030\001 \001(\t\022\014\n\004n" + "ame\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022R\n\006labels" + "\030\004 \003(\0132B.yandex.cloud.compute.v1.CreateS" + "napshotScheduleRequest.LabelsEntry\022@\n\017sc" + "hedule_policy\030\005 \001(\0132\'.yandex.cloud.compu" + "te.v1.SchedulePolicy\0225\n\020retention_period" + "\030\006 \001(\0132\031.google.protobuf.DurationH\000\022\030\n\016s" + "napshot_count\030\007 \001(\003H\000\022<\n\rsnapshot_spec\030\010" + " \001(\0132%.yandex.cloud.compute.v1.SnapshotS" + "pec\022\020\n\010disk_ids\030\t \003(\t\032-\n\013LabelsEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\022\n\020retentio" + "n_policy\">\n\036CreateSnapshotScheduleMetada" + "ta\022\034\n\024snapshot_schedule_id\030\001 \001(\t\"\371\003\n\035Upd" + "ateSnapshotScheduleRequest\022\034\n\024snapshot_s" + "chedule_id\030\001 \001(\t\022/\n\013update_mask\030\002 \001(\0132\032." + "google.protobuf.FieldMask\022\014\n\004name\030\003 \001(\t\022" + "\023\n\013description\030\004 \001(\t\022R\n\006labels\030\005 \003(\0132B.y" + "andex.cloud.compute.v1.UpdateSnapshotSch" + "eduleRequest.LabelsEntry\022@\n\017schedule_pol" + "icy\030\006 \001(\0132\'.yandex.cloud.compute.v1.Sche" + "dulePolicy\0225\n\020retention_period\030\007 \001(\0132\031.g" + "oogle.protobuf.DurationH\000\022\030\n\016snapshot_co" + "unt\030\010 \001(\003H\000\022<\n\rsnapshot_spec\030\t \001(\0132%.yan" + "dex.cloud.compute.v1.SnapshotSpec\032-\n\013Lab" + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + "B\022\n\020retention_policy\">\n\036UpdateSnapshotSc" + "heduleMetadata\022\034\n\024snapshot_schedule_id\030\001" + " \001(\t\"=\n\035DeleteSnapshotScheduleRequest\022\034\n" + "\024snapshot_schedule_id\030\001 \001(\t\">\n\036DeleteSna" + "pshotScheduleMetadata\022\034\n\024snapshot_schedu" + "le_id\030\001 \001(\t\">\n\036DisableSnapshotScheduleRe" + "quest\022\034\n\024snapshot_schedule_id\030\001 \001(\t\"?\n\037D" + "isableSnapshotScheduleMetadata\022\034\n\024snapsh" + "ot_schedule_id\030\001 \001(\t\"=\n\035EnableSnapshotSc" + "heduleRequest\022\034\n\024snapshot_schedule_id\030\001 " + "\001(\t\">\n\036EnableSnapshotScheduleMetadata\022\034\n" + "\024snapshot_schedule_id\030\001 \001(\t\"l\n%ListSnaps" + "hotScheduleOperationsRequest\022\034\n\024snapshot" + "_schedule_id\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\003\022\022\n" + "\npage_token\030\003 \001(\t\"x\n&ListSnapshotSchedul" + "eOperationsResponse\0225\n\noperations\030\001 \003(\0132" + "!.yandex.cloud.operation.Operation\022\027\n\017ne" + "xt_page_token\030\002 \001(\t\"k\n$ListSnapshotSched" + "uleSnapshotsRequest\022\034\n\024snapshot_schedule" + "_id\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\003\022\022\n\npage_tok" + "en\030\003 \001(\t\"v\n%ListSnapshotScheduleSnapshot" + "sResponse\0224\n\tsnapshots\030\001 \003(\0132!.yandex.cl" + "oud.compute.v1.Snapshot\022\027\n\017next_page_tok" + "en\030\002 \001(\t\"g\n ListSnapshotScheduleDisksReq" + "uest\022\034\n\024snapshot_schedule_id\030\001 \001(\t\022\021\n\tpa" + "ge_size\030\002 \001(\003\022\022\n\npage_token\030\003 \001(\t\"j\n!Lis" + "tSnapshotScheduleDisksResponse\022,\n\005disks\030" + "\001 \003(\0132\035.yandex.cloud.compute.v1.Disk\022\027\n\017" + "next_page_token\030\002 \001(\t\"_\n\"UpdateSnapshotS" + "cheduleDisksRequest\022\034\n\024snapshot_schedule" + "_id\030\001 \001(\t\022\016\n\006remove\030\002 \003(\t\022\013\n\003add\030\003 \003(\t\"C" + "\n#UpdateSnapshotScheduleDisksMetadata\022\034\n" + "\024snapshot_schedule_id\030\001 \001(\t2\244\022\n\027Snapshot" + "ScheduleService\022\243\001\n\003Get\0223.yandex.cloud.c" + "ompute.v1.GetSnapshotScheduleRequest\032).y" + "andex.cloud.compute.v1.SnapshotSchedule\"" + "<\202\323\344\223\0026\0224/compute/v1/snapshotSchedules/{" + "snapshot_schedule_id}\022\234\001\n\004List\0225.yandex." + "cloud.compute.v1.ListSnapshotSchedulesRe" + "quest\0326.yandex.cloud.compute.v1.ListSnap" + "shotSchedulesResponse\"%\202\323\344\223\002\037\022\035/compute/" + "v1/snapshotSchedules\022\303\001\n\006Create\0226.yandex" + ".cloud.compute.v1.CreateSnapshotSchedule" + "Request\032!.yandex.cloud.operation.Operati" + "on\"^\202\323\344\223\002\"\"\035/compute/v1/snapshotSchedule" + "s:\001*\262\322*2\n\036CreateSnapshotScheduleMetadata" + "\022\020SnapshotSchedule\022\332\001\n\006Update\0226.yandex.c" + "loud.compute.v1.UpdateSnapshotScheduleRe" + "quest\032!.yandex.cloud.operation.Operation" + "\"u\202\323\344\223\002924/compute/v1/snapshotSchedules/" + "{snapshot_schedule_id}:\001*\262\322*2\n\036UpdateSna" + "pshotScheduleMetadata\022\020SnapshotSchedule\022" + "\334\001\n\006Delete\0226.yandex.cloud.compute.v1.Del" + "eteSnapshotScheduleRequest\032!.yandex.clou" + "d.operation.Operation\"w\202\323\344\223\0026*4/compute/" + "v1/snapshotSchedules/{snapshot_schedule_" + "id}\262\322*7\n\036DeleteSnapshotScheduleMetadata\022" + "\025google.protobuf.Empty\022\366\001\n\013UpdateDisks\022;" + ".yandex.cloud.compute.v1.UpdateSnapshotS" + "cheduleDisksRequest\032!.yandex.cloud.opera" + "tion.Operation\"\206\001\202\323\344\223\002E2@/compute/v1/sna" + "pshotSchedules/{snapshot_schedule_id}:up" + "dateDisks:\001*\262\322*7\n#UpdateSnapshotSchedule" + "DisksMetadata\022\020SnapshotSchedule\022\345\001\n\007Disa" + "ble\0227.yandex.cloud.compute.v1.DisableSna" + "pshotScheduleRequest\032!.yandex.cloud.oper" + "ation.Operation\"~\202\323\344\223\002A\".yandex." + "cloud.compute.v1.ListSnapshotScheduleOpe" + "rationsRequest\032?.yandex.cloud.compute.v1" + ".ListSnapshotScheduleOperationsResponse\"" + "G\202\323\344\223\002A\022?/compute/v1/snapshotSchedules/{" + "snapshot_schedule_id}/operations\022\326\001\n\rLis" + "tSnapshots\022=.yandex.cloud.compute.v1.Lis" + "tSnapshotScheduleSnapshotsRequest\032>.yand" + "ex.cloud.compute.v1.ListSnapshotSchedule" + "SnapshotsResponse\"F\202\323\344\223\002@\022>/compute/v1/s" + "napshotSchedules/{snapshot_schedule_id}/" + "snapshots\022\306\001\n\tListDisks\0229.yandex.cloud.c" + "ompute.v1.ListSnapshotScheduleDisksReque" + "st\032:.yandex.cloud.compute.v1.ListSnapsho" + "tScheduleDisksResponse\"B\202\323\344\223\002<\022:/compute" + "/v1/snapshotSchedules/{snapshot_schedule" + "_id}/disksBb\n\033yandex.cloud.api.compute.v" + "1ZCgithub.com/yandex-cloud/go-genproto/y" + "andex/cloud/compute/v1;computeb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), yandex.cloud.api.OperationOuterClass.getDescriptor(), yandex.cloud.api.compute.v1.DiskOuterClass.getDescriptor(), yandex.cloud.api.compute.v1.SnapshotOuterClass.getDescriptor(), yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.getDescriptor(), yandex.cloud.api.operation.OperationOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_GetSnapshotScheduleRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesRequest_descriptor, new java.lang.String[] { "FolderId", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListSnapshotSchedulesResponse_descriptor, new java.lang.String[] { "SnapshotSchedules", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_descriptor, new java.lang.String[] { "FolderId", "Name", "Description", "Labels", "SchedulePolicy", "RetentionPeriod", "SnapshotCount", "SnapshotSpec", "DiskIds", "RetentionPolicy", }); internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_CreateSnapshotScheduleMetadata_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", "UpdateMask", "Name", "Description", "Labels", "SchedulePolicy", "RetentionPeriod", "SnapshotCount", "SnapshotSpec", "RetentionPolicy", }); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleMetadata_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DeleteSnapshotScheduleMetadata_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DisableSnapshotScheduleMetadata_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_EnableSnapshotScheduleMetadata_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", "PageSize", "PageToken", }); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleOperationsResponse_descriptor, new java.lang.String[] { "Operations", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", "PageSize", "PageToken", }); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleSnapshotsResponse_descriptor, new java.lang.String[] { "Snapshots", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", "PageSize", "PageToken", }); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListSnapshotScheduleDisksResponse_descriptor, new java.lang.String[] { "Disks", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksRequest_descriptor, new java.lang.String[] { "SnapshotScheduleId", "Remove", "Add", }); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateSnapshotScheduleDisksMetadata_descriptor, new java.lang.String[] { "SnapshotScheduleId", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); registry.add(yandex.cloud.api.OperationOuterClass.operation); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); yandex.cloud.api.OperationOuterClass.getDescriptor(); yandex.cloud.api.compute.v1.DiskOuterClass.getDescriptor(); yandex.cloud.api.compute.v1.SnapshotOuterClass.getDescriptor(); yandex.cloud.api.compute.v1.SnapshotScheduleOuterClass.getDescriptor(); yandex.cloud.api.operation.OperationOuterClass.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy