yandex.cloud.api.compute.v1.SnapshotServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/compute/v1/snapshot_service.proto
package yandex.cloud.api.compute.v1;
public final class SnapshotServiceOuterClass {
private SnapshotServiceOuterClass() {}
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 GetSnapshotRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.GetSnapshotRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
java.lang.String getSnapshotId();
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
com.google.protobuf.ByteString
getSnapshotIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.GetSnapshotRequest}
*/
public static final class GetSnapshotRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.GetSnapshotRequest)
GetSnapshotRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetSnapshotRequest.newBuilder() to construct.
private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetSnapshotRequest() {
snapshotId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetSnapshotRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetSnapshotRequest(
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();
snapshotId_ = 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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest.Builder.class);
}
public static final int SNAPSHOT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object snapshotId_;
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
@java.lang.Override
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
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();
snapshotId_ = s;
return s;
}
}
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = 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(snapshotId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotId_);
}
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(snapshotId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotId_);
}
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.SnapshotServiceOuterClass.GetSnapshotRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest) obj;
if (!getSnapshotId()
.equals(other.getSnapshotId())) 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_ID_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest 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.SnapshotServiceOuterClass.GetSnapshotRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest 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.SnapshotServiceOuterClass.GetSnapshotRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest 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.SnapshotServiceOuterClass.GetSnapshotRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest 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.SnapshotServiceOuterClass.GetSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest 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.SnapshotServiceOuterClass.GetSnapshotRequest 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.SnapshotServiceOuterClass.GetSnapshotRequest 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.SnapshotServiceOuterClass.GetSnapshotRequest 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.GetSnapshotRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.GetSnapshotRequest)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest.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();
snapshotId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest(this);
result.snapshotId_ = snapshotId_;
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.SnapshotServiceOuterClass.GetSnapshotRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest.getDefaultInstance()) return this;
if (!other.getSnapshotId().isEmpty()) {
snapshotId_ = other.snapshotId_;
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.SnapshotServiceOuterClass.GetSnapshotRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object snapshotId_ = "";
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
snapshotId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
snapshotId_ = value;
onChanged();
return this;
}
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearSnapshotId() {
snapshotId_ = getDefaultInstance().getSnapshotId();
onChanged();
return this;
}
/**
*
* ID of the Snapshot resource to return.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
snapshotId_ = 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.GetSnapshotRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GetSnapshotRequest)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.GetSnapshotRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetSnapshotRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetSnapshotRequest(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.SnapshotServiceOuterClass.GetSnapshotRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListSnapshotsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to list snapshots in.
* To get the folder ID, use 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 snapshots in.
* To get the folder ID, use 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 [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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 resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* A filter expression that filters resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return The orderBy.
*/
java.lang.String getOrderBy();
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* 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.ListSnapshotsRequest}
*/
public static final class ListSnapshotsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotsRequest)
ListSnapshotsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListSnapshotsRequest.newBuilder() to construct.
private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListSnapshotsRequest() {
folderId_ = "";
pageToken_ = "";
filter_ = "";
orderBy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListSnapshotsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListSnapshotsRequest(
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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list snapshots in.
* To get the folder ID, use 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 snapshots in.
* To get the folder ID, use 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 [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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 resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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 resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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_;
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* 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;
}
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* 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.SnapshotServiceOuterClass.ListSnapshotsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest) 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.SnapshotServiceOuterClass.ListSnapshotsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest 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.SnapshotServiceOuterClass.ListSnapshotsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest 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.SnapshotServiceOuterClass.ListSnapshotsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest 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.SnapshotServiceOuterClass.ListSnapshotsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest 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.SnapshotServiceOuterClass.ListSnapshotsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest 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.SnapshotServiceOuterClass.ListSnapshotsRequest 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.SnapshotServiceOuterClass.ListSnapshotsRequest 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.SnapshotServiceOuterClass.ListSnapshotsRequest 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.ListSnapshotsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotsRequest)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest.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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest(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.SnapshotServiceOuterClass.ListSnapshotsRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest.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.SnapshotServiceOuterClass.ListSnapshotsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list snapshots in.
* To get the folder ID, use 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 snapshots in.
* To get the folder ID, use 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 snapshots in.
* To get the folder ID, use 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 snapshots in.
* To get the folder ID, use 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 snapshots in.
* To get the folder ID, use 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 [ListSnapshotsResponse.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 [ListSnapshotsResponse.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 [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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
* [ListSnapshotsResponse.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 resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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 resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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 resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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 resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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 resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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_ = "";
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* 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;
}
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* 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;
}
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* 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;
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearOrderBy() {
orderBy_ = getDefaultInstance().getOrderBy();
onChanged();
return this;
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* 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.ListSnapshotsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotsRequest)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListSnapshotsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListSnapshotsRequest(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.SnapshotServiceOuterClass.ListSnapshotsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListSnapshotsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of snapshots.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
java.util.List
getSnapshotsList();
/**
*
* List of snapshots.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot getSnapshots(int index);
/**
*
* List of snapshots.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
int getSnapshotsCount();
/**
*
* List of snapshots.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
java.util.List extends yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder>
getSnapshotsOrBuilderList();
/**
*
* List of snapshots.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder getSnapshotsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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.ListSnapshotsResponse}
*/
public static final class ListSnapshotsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotsResponse)
ListSnapshotsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListSnapshotsResponse.newBuilder() to construct.
private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListSnapshotsResponse() {
snapshots_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListSnapshotsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListSnapshotsResponse(
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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse.Builder.class);
}
public static final int SNAPSHOTS_FIELD_NUMBER = 1;
private java.util.List snapshots_;
/**
*
* List of snapshots.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
@java.lang.Override
public java.util.List getSnapshotsList() {
return snapshots_;
}
/**
*
* List of snapshots.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder>
getSnapshotsOrBuilderList() {
return snapshots_;
}
/**
*
* List of snapshots.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
@java.lang.Override
public int getSnapshotsCount() {
return snapshots_.size();
}
/**
*
* List of snapshots.
*
*
* 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.
*
*
* 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_;
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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.SnapshotServiceOuterClass.ListSnapshotsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse) 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.SnapshotServiceOuterClass.ListSnapshotsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse 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.SnapshotServiceOuterClass.ListSnapshotsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse 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.SnapshotServiceOuterClass.ListSnapshotsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse 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.SnapshotServiceOuterClass.ListSnapshotsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse 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.SnapshotServiceOuterClass.ListSnapshotsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse 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.SnapshotServiceOuterClass.ListSnapshotsResponse 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.SnapshotServiceOuterClass.ListSnapshotsResponse 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.SnapshotServiceOuterClass.ListSnapshotsResponse 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.ListSnapshotsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotsResponse)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse.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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse(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.SnapshotServiceOuterClass.ListSnapshotsResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse.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.SnapshotServiceOuterClass.ListSnapshotsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse) 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.
*
*
* 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.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
public int getSnapshotsCount() {
if (snapshotsBuilder_ == null) {
return snapshots_.size();
} else {
return snapshotsBuilder_.getCount();
}
}
/**
*
* List of snapshots.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
public Builder addAllSnapshots(
java.lang.Iterable extends yandex.cloud.api.compute.v1.SnapshotOuterClass.Snapshot> values) {
if (snapshotsBuilder_ == null) {
ensureSnapshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, snapshots_);
onChanged();
} else {
snapshotsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of snapshots.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* repeated .yandex.cloud.compute.v1.Snapshot snapshots = 1;
*/
public java.util.List extends yandex.cloud.api.compute.v1.SnapshotOuterClass.SnapshotOrBuilder>
getSnapshotsOrBuilderList() {
if (snapshotsBuilder_ != null) {
return snapshotsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(snapshots_);
}
}
/**
*
* List of snapshots.
*
*
* 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.
*
*
* 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.
*
*
* 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_ = "";
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListSnapshotsRequest.page_token] query parameter
* in the next list request. Each subsequent list request 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.ListSnapshotsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotsResponse)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListSnapshotsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListSnapshotsResponse(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.SnapshotServiceOuterClass.ListSnapshotsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateSnapshotRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CreateSnapshotRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create a snapshot in.
* To get the folder ID use 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 create a snapshot in.
* To get the folder ID use 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();
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The diskId.
*/
java.lang.String getDiskId();
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for diskId.
*/
com.google.protobuf.ByteString
getDiskIdBytes();
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.CreateSnapshotRequest}
*/
public static final class CreateSnapshotRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CreateSnapshotRequest)
CreateSnapshotRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSnapshotRequest.newBuilder() to construct.
private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSnapshotRequest() {
folderId_ = "";
diskId_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSnapshotRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateSnapshotRequest(
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();
diskId_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to create a snapshot in.
* To get the folder ID use 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 create a snapshot in.
* To get the folder ID use 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 DISK_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object diskId_;
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The diskId.
*/
@java.lang.Override
public java.lang.String getDiskId() {
java.lang.Object ref = diskId_;
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();
diskId_ = s;
return s;
}
}
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for diskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDiskIdBytes() {
java.lang.Object ref = diskId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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_;
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 6;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_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();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskId_);
}
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,
6);
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(diskId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskId_);
}
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(6, labels__);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getDiskId()
.equals(other.getDiskId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + DISK_ID_FIELD_NUMBER;
hash = (53 * hash) + getDiskId().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest 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.SnapshotServiceOuterClass.CreateSnapshotRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest 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.SnapshotServiceOuterClass.CreateSnapshotRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest 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.SnapshotServiceOuterClass.CreateSnapshotRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest 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.SnapshotServiceOuterClass.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest 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.SnapshotServiceOuterClass.CreateSnapshotRequest 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.SnapshotServiceOuterClass.CreateSnapshotRequest 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.SnapshotServiceOuterClass.CreateSnapshotRequest 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.CreateSnapshotRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CreateSnapshotRequest)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest.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_ = "";
diskId_ = "";
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest(this);
int from_bitField0_ = bitField0_;
result.folderId_ = folderId_;
result.diskId_ = diskId_;
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getDiskId().isEmpty()) {
diskId_ = other.diskId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to create a snapshot in.
* To get the folder ID use 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 create a snapshot in.
* To get the folder ID use 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 create a snapshot in.
* To get the folder ID use 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 create a snapshot in.
* To get the folder ID use 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 create a snapshot in.
* To get the folder ID use 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 java.lang.Object diskId_ = "";
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The diskId.
*/
public java.lang.String getDiskId() {
java.lang.Object ref = diskId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
diskId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for diskId.
*/
public com.google.protobuf.ByteString
getDiskIdBytes() {
java.lang.Object ref = diskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The diskId to set.
* @return This builder for chaining.
*/
public Builder setDiskId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
diskId_ = value;
onChanged();
return this;
}
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearDiskId() {
diskId_ = getDefaultInstance().getDiskId();
onChanged();
return this;
}
/**
*
* ID of the disk to create the snapshot from.
* To get the disk ID use a [yandex.cloud.compute.v1.DiskService.List] request.
*
*
* string disk_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for diskId to set.
* @return This builder for chaining.
*/
public Builder setDiskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
diskId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private 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();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
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();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
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;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 6 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.CreateSnapshotRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateSnapshotRequest)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSnapshotRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateSnapshotRequest(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.SnapshotServiceOuterClass.CreateSnapshotRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateSnapshotMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CreateSnapshotMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
java.lang.String getSnapshotId();
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
com.google.protobuf.ByteString
getSnapshotIdBytes();
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @return The diskId.
*/
java.lang.String getDiskId();
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @return The bytes for diskId.
*/
com.google.protobuf.ByteString
getDiskIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.CreateSnapshotMetadata}
*/
public static final class CreateSnapshotMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CreateSnapshotMetadata)
CreateSnapshotMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSnapshotMetadata.newBuilder() to construct.
private CreateSnapshotMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSnapshotMetadata() {
snapshotId_ = "";
diskId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSnapshotMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateSnapshotMetadata(
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();
snapshotId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
diskId_ = 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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata.Builder.class);
}
public static final int SNAPSHOT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object snapshotId_;
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
@java.lang.Override
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
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();
snapshotId_ = s;
return s;
}
}
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISK_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object diskId_;
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @return The diskId.
*/
@java.lang.Override
public java.lang.String getDiskId() {
java.lang.Object ref = diskId_;
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();
diskId_ = s;
return s;
}
}
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @return The bytes for diskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDiskIdBytes() {
java.lang.Object ref = diskId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskId_ = 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(snapshotId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskId_);
}
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(snapshotId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskId_);
}
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.SnapshotServiceOuterClass.CreateSnapshotMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata) obj;
if (!getSnapshotId()
.equals(other.getSnapshotId())) return false;
if (!getDiskId()
.equals(other.getDiskId())) 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_ID_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotId().hashCode();
hash = (37 * hash) + DISK_ID_FIELD_NUMBER;
hash = (53 * hash) + getDiskId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata 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.SnapshotServiceOuterClass.CreateSnapshotMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata 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.SnapshotServiceOuterClass.CreateSnapshotMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata 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.SnapshotServiceOuterClass.CreateSnapshotMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata 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.SnapshotServiceOuterClass.CreateSnapshotMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata 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.SnapshotServiceOuterClass.CreateSnapshotMetadata 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.SnapshotServiceOuterClass.CreateSnapshotMetadata 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.SnapshotServiceOuterClass.CreateSnapshotMetadata 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.CreateSnapshotMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CreateSnapshotMetadata)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata.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();
snapshotId_ = "";
diskId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata(this);
result.snapshotId_ = snapshotId_;
result.diskId_ = diskId_;
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.SnapshotServiceOuterClass.CreateSnapshotMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata.getDefaultInstance()) return this;
if (!other.getSnapshotId().isEmpty()) {
snapshotId_ = other.snapshotId_;
onChanged();
}
if (!other.getDiskId().isEmpty()) {
diskId_ = other.diskId_;
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.SnapshotServiceOuterClass.CreateSnapshotMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object snapshotId_ = "";
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
snapshotId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @param value The snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
snapshotId_ = value;
onChanged();
return this;
}
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @return This builder for chaining.
*/
public Builder clearSnapshotId() {
snapshotId_ = getDefaultInstance().getSnapshotId();
onChanged();
return this;
}
/**
*
* ID of the snapshot that is being created.
*
*
* string snapshot_id = 1;
* @param value The bytes for snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
snapshotId_ = value;
onChanged();
return this;
}
private java.lang.Object diskId_ = "";
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @return The diskId.
*/
public java.lang.String getDiskId() {
java.lang.Object ref = diskId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
diskId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @return The bytes for diskId.
*/
public com.google.protobuf.ByteString
getDiskIdBytes() {
java.lang.Object ref = diskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @param value The diskId to set.
* @return This builder for chaining.
*/
public Builder setDiskId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
diskId_ = value;
onChanged();
return this;
}
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @return This builder for chaining.
*/
public Builder clearDiskId() {
diskId_ = getDefaultInstance().getDiskId();
onChanged();
return this;
}
/**
*
* ID of the source disk used to create this snapshot.
*
*
* string disk_id = 2;
* @param value The bytes for diskId to set.
* @return This builder for chaining.
*/
public Builder setDiskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
diskId_ = 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.CreateSnapshotMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateSnapshotMetadata)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.CreateSnapshotMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSnapshotMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateSnapshotMetadata(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.SnapshotServiceOuterClass.CreateSnapshotMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateSnapshotRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateSnapshotRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
java.lang.String getSnapshotId();
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
com.google.protobuf.ByteString
getSnapshotIdBytes();
/**
*
* Field mask that specifies which fields of the Snapshot resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
*
* Field mask that specifies which fields of the Snapshot resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
*
* Field mask that specifies which fields of the Snapshot resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotRequest}
*/
public static final class UpdateSnapshotRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateSnapshotRequest)
UpdateSnapshotRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateSnapshotRequest.newBuilder() to construct.
private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateSnapshotRequest() {
snapshotId_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateSnapshotRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateSnapshotRequest(
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();
snapshotId_ = 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;
}
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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest.Builder.class);
}
public static final int SNAPSHOT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object snapshotId_;
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
@java.lang.Override
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
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();
snapshotId_ = s;
return s;
}
}
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = 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 fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to 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_;
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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_;
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int 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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_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();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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;
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotId_);
}
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);
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(snapshotId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotId_);
}
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__);
}
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.SnapshotServiceOuterClass.UpdateSnapshotRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest) obj;
if (!getSnapshotId()
.equals(other.getSnapshotId())) 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 (!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_ID_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotId().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest 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.SnapshotServiceOuterClass.UpdateSnapshotRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest 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.SnapshotServiceOuterClass.UpdateSnapshotRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest 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.SnapshotServiceOuterClass.UpdateSnapshotRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest 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.SnapshotServiceOuterClass.UpdateSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest 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.SnapshotServiceOuterClass.UpdateSnapshotRequest 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.SnapshotServiceOuterClass.UpdateSnapshotRequest 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.SnapshotServiceOuterClass.UpdateSnapshotRequest 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.UpdateSnapshotRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateSnapshotRequest)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest.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();
snapshotId_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest(this);
int from_bitField0_ = bitField0_;
result.snapshotId_ = snapshotId_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest.getDefaultInstance()) return this;
if (!other.getSnapshotId().isEmpty()) {
snapshotId_ = other.snapshotId_;
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());
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.SnapshotServiceOuterClass.UpdateSnapshotRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object snapshotId_ = "";
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
snapshotId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
snapshotId_ = value;
onChanged();
return this;
}
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearSnapshotId() {
snapshotId_ = getDefaultInstance().getSnapshotId();
onChanged();
return this;
}
/**
*
* ID of the Snapshot resource to update.
* To get the snapshot ID use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
snapshotId_ = 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 fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Field mask that specifies which fields of the Snapshot resource are going to 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 fields of the Snapshot resource are going to 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_ = "";
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the snapshot.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @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.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the snapshot.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private 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();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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;
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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;
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
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();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
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;
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.UpdateSnapshotRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateSnapshotRequest)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateSnapshotRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateSnapshotRequest(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.SnapshotServiceOuterClass.UpdateSnapshotRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateSnapshotMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateSnapshotMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
java.lang.String getSnapshotId();
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
com.google.protobuf.ByteString
getSnapshotIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.UpdateSnapshotMetadata}
*/
public static final class UpdateSnapshotMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateSnapshotMetadata)
UpdateSnapshotMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateSnapshotMetadata.newBuilder() to construct.
private UpdateSnapshotMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateSnapshotMetadata() {
snapshotId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateSnapshotMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateSnapshotMetadata(
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();
snapshotId_ = 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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata.Builder.class);
}
public static final int SNAPSHOT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object snapshotId_;
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
@java.lang.Override
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
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();
snapshotId_ = s;
return s;
}
}
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = 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(snapshotId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotId_);
}
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(snapshotId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotId_);
}
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.SnapshotServiceOuterClass.UpdateSnapshotMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata) obj;
if (!getSnapshotId()
.equals(other.getSnapshotId())) 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_ID_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata 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.SnapshotServiceOuterClass.UpdateSnapshotMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata 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.SnapshotServiceOuterClass.UpdateSnapshotMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata 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.SnapshotServiceOuterClass.UpdateSnapshotMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata 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.SnapshotServiceOuterClass.UpdateSnapshotMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata 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.SnapshotServiceOuterClass.UpdateSnapshotMetadata 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.SnapshotServiceOuterClass.UpdateSnapshotMetadata 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.SnapshotServiceOuterClass.UpdateSnapshotMetadata 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.UpdateSnapshotMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateSnapshotMetadata)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata.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();
snapshotId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata(this);
result.snapshotId_ = snapshotId_;
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.SnapshotServiceOuterClass.UpdateSnapshotMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata.getDefaultInstance()) return this;
if (!other.getSnapshotId().isEmpty()) {
snapshotId_ = other.snapshotId_;
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.SnapshotServiceOuterClass.UpdateSnapshotMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object snapshotId_ = "";
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
snapshotId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @param value The snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
snapshotId_ = value;
onChanged();
return this;
}
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @return This builder for chaining.
*/
public Builder clearSnapshotId() {
snapshotId_ = getDefaultInstance().getSnapshotId();
onChanged();
return this;
}
/**
*
* ID of the Snapshot resource that is being updated.
*
*
* string snapshot_id = 1;
* @param value The bytes for snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
snapshotId_ = 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.UpdateSnapshotMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateSnapshotMetadata)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.UpdateSnapshotMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateSnapshotMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateSnapshotMetadata(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.SnapshotServiceOuterClass.UpdateSnapshotMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSnapshotRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DeleteSnapshotRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
java.lang.String getSnapshotId();
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
com.google.protobuf.ByteString
getSnapshotIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.DeleteSnapshotRequest}
*/
public static final class DeleteSnapshotRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DeleteSnapshotRequest)
DeleteSnapshotRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteSnapshotRequest.newBuilder() to construct.
private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteSnapshotRequest() {
snapshotId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteSnapshotRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteSnapshotRequest(
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();
snapshotId_ = 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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest.Builder.class);
}
public static final int SNAPSHOT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object snapshotId_;
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
@java.lang.Override
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
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();
snapshotId_ = s;
return s;
}
}
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = 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(snapshotId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotId_);
}
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(snapshotId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotId_);
}
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.SnapshotServiceOuterClass.DeleteSnapshotRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest) obj;
if (!getSnapshotId()
.equals(other.getSnapshotId())) 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_ID_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest 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.SnapshotServiceOuterClass.DeleteSnapshotRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest 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.SnapshotServiceOuterClass.DeleteSnapshotRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest 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.SnapshotServiceOuterClass.DeleteSnapshotRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest 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.SnapshotServiceOuterClass.DeleteSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest 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.SnapshotServiceOuterClass.DeleteSnapshotRequest 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.SnapshotServiceOuterClass.DeleteSnapshotRequest 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.SnapshotServiceOuterClass.DeleteSnapshotRequest 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.DeleteSnapshotRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DeleteSnapshotRequest)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest.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();
snapshotId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest(this);
result.snapshotId_ = snapshotId_;
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.SnapshotServiceOuterClass.DeleteSnapshotRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest.getDefaultInstance()) return this;
if (!other.getSnapshotId().isEmpty()) {
snapshotId_ = other.snapshotId_;
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.SnapshotServiceOuterClass.DeleteSnapshotRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object snapshotId_ = "";
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
snapshotId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
snapshotId_ = value;
onChanged();
return this;
}
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearSnapshotId() {
snapshotId_ = getDefaultInstance().getSnapshotId();
onChanged();
return this;
}
/**
*
* ID of the snapshot to delete.
* To get the snapshot ID, use a [SnapshotService.List] request.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
snapshotId_ = 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.DeleteSnapshotRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteSnapshotRequest)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSnapshotRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteSnapshotRequest(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.SnapshotServiceOuterClass.DeleteSnapshotRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSnapshotMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DeleteSnapshotMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
java.lang.String getSnapshotId();
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
com.google.protobuf.ByteString
getSnapshotIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.DeleteSnapshotMetadata}
*/
public static final class DeleteSnapshotMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DeleteSnapshotMetadata)
DeleteSnapshotMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteSnapshotMetadata.newBuilder() to construct.
private DeleteSnapshotMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteSnapshotMetadata() {
snapshotId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteSnapshotMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteSnapshotMetadata(
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();
snapshotId_ = 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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata.Builder.class);
}
public static final int SNAPSHOT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object snapshotId_;
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
@java.lang.Override
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
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();
snapshotId_ = s;
return s;
}
}
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = 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(snapshotId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotId_);
}
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(snapshotId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotId_);
}
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.SnapshotServiceOuterClass.DeleteSnapshotMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata) obj;
if (!getSnapshotId()
.equals(other.getSnapshotId())) 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_ID_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata 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.SnapshotServiceOuterClass.DeleteSnapshotMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata 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.SnapshotServiceOuterClass.DeleteSnapshotMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata 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.SnapshotServiceOuterClass.DeleteSnapshotMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata 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.SnapshotServiceOuterClass.DeleteSnapshotMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata 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.SnapshotServiceOuterClass.DeleteSnapshotMetadata 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.SnapshotServiceOuterClass.DeleteSnapshotMetadata 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.SnapshotServiceOuterClass.DeleteSnapshotMetadata 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.DeleteSnapshotMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DeleteSnapshotMetadata)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata.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();
snapshotId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata(this);
result.snapshotId_ = snapshotId_;
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.SnapshotServiceOuterClass.DeleteSnapshotMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata.getDefaultInstance()) return this;
if (!other.getSnapshotId().isEmpty()) {
snapshotId_ = other.snapshotId_;
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.SnapshotServiceOuterClass.DeleteSnapshotMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object snapshotId_ = "";
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @return The snapshotId.
*/
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
snapshotId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @return The bytes for snapshotId.
*/
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @param value The snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
snapshotId_ = value;
onChanged();
return this;
}
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @return This builder for chaining.
*/
public Builder clearSnapshotId() {
snapshotId_ = getDefaultInstance().getSnapshotId();
onChanged();
return this;
}
/**
*
* ID of the snapshot that is being deleted.
*
*
* string snapshot_id = 1;
* @param value The bytes for snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
snapshotId_ = 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.DeleteSnapshotMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteSnapshotMetadata)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.DeleteSnapshotMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSnapshotMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteSnapshotMetadata(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.SnapshotServiceOuterClass.DeleteSnapshotMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListSnapshotOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
java.lang.String getSnapshotId();
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
com.google.protobuf.ByteString
getSnapshotIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size], the service returns a [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.ListSnapshotOperationsRequest}
*/
public static final class ListSnapshotOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotOperationsRequest)
ListSnapshotOperationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListSnapshotOperationsRequest.newBuilder() to construct.
private ListSnapshotOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListSnapshotOperationsRequest() {
snapshotId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListSnapshotOperationsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListSnapshotOperationsRequest(
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();
snapshotId_ = 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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest.Builder.class);
}
public static final int SNAPSHOT_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object snapshotId_;
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
@java.lang.Override
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
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();
snapshotId_ = s;
return s;
}
}
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = 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 [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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;
}
}
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(snapshotId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshotId_);
}
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(snapshotId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshotId_);
}
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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest) obj;
if (!getSnapshotId()
.equals(other.getSnapshotId())) 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_ID_FIELD_NUMBER;
hash = (53 * hash) + getSnapshotId().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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest 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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest 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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest 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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest 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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest 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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest 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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest 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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest 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.ListSnapshotOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotOperationsRequest)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest.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();
snapshotId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest(this);
result.snapshotId_ = snapshotId_;
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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest.getDefaultInstance()) return this;
if (!other.getSnapshotId().isEmpty()) {
snapshotId_ = other.snapshotId_;
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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object snapshotId_ = "";
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The snapshotId.
*/
public java.lang.String getSnapshotId() {
java.lang.Object ref = snapshotId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
snapshotId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for snapshotId.
*/
public com.google.protobuf.ByteString
getSnapshotIdBytes() {
java.lang.Object ref = snapshotId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snapshotId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
snapshotId_ = value;
onChanged();
return this;
}
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearSnapshotId() {
snapshotId_ = getDefaultInstance().getSnapshotId();
onChanged();
return this;
}
/**
*
* ID of the Snapshot resource to list operations for.
*
*
* string snapshot_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for snapshotId to set.
* @return This builder for chaining.
*/
public Builder setSnapshotIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
snapshotId_ = 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 [ListSnapshotOperationsResponse.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 [ListSnapshotOperationsResponse.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 [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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
* [ListSnapshotOperationsResponse.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;
}
@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.ListSnapshotOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotOperationsRequest)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListSnapshotOperationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListSnapshotOperationsRequest(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.SnapshotServiceOuterClass.ListSnapshotOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListSnapshotOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListSnapshotOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of operations for the specified snapshot.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List
getOperationsList();
/**
*
* List of operations for the specified snapshot.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index);
/**
*
* List of operations for the specified snapshot.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
int getOperationsCount();
/**
*
* List of operations for the specified snapshot.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList();
/**
*
* List of operations for the specified snapshot.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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.ListSnapshotOperationsResponse}
*/
public static final class ListSnapshotOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListSnapshotOperationsResponse)
ListSnapshotOperationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListSnapshotOperationsResponse.newBuilder() to construct.
private ListSnapshotOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListSnapshotOperationsResponse() {
operations_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListSnapshotOperationsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListSnapshotOperationsResponse(
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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* List of operations for the specified snapshot.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List getOperationsList() {
return operations_;
}
/**
*
* List of operations for the specified snapshot.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
return operations_;
}
/**
*
* List of operations for the specified snapshot.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public int getOperationsCount() {
return operations_.size();
}
/**
*
* List of operations for the specified snapshot.
*
*
* 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.
*
*
* 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_;
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse other = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse) 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse 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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse 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.ListSnapshotOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListSnapshotOperationsResponse)
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse.class, yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse.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.SnapshotServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse build() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse buildPartial() {
yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse result = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse(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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse other) {
if (other == yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse.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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse) 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addAllOperations(
java.lang.Iterable extends yandex.cloud.api.operation.OperationOuterClass.Operation> 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
if (operationsBuilder_ != null) {
return operationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(operations_);
}
}
/**
*
* List of operations for the specified snapshot.
*
*
* 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.
*
*
* 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.
*
*
* 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_ = "";
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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;
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListSnapshotOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListSnapshotOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request 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.ListSnapshotOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListSnapshotOperationsResponse)
private static final yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse();
}
public static yandex.cloud.api.compute.v1.SnapshotServiceOuterClass.ListSnapshotOperationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListSnapshotOperationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListSnapshotOperationsResponse(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.SnapshotServiceOuterClass.ListSnapshotOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n.yandex/cloud/compute/v1/snapshot_servi" +
"ce.proto\022\027yandex.cloud.compute.v1\032\034googl" +
"e/api/annotations.proto\032 google/protobuf" +
"/field_mask.proto\032 yandex/cloud/api/oper" +
"ation.proto\032&yandex/cloud/compute/v1/sna" +
"pshot.proto\032&yandex/cloud/operation/oper" +
"ation.proto\032\035yandex/cloud/validation.pro" +
"to\"7\n\022GetSnapshotRequest\022!\n\013snapshot_id\030" +
"\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"\256\001\n\024ListSnapshotsReq" +
"uest\022\037\n\tfolder_id\030\001 \001(\tB\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_tok" +
"en\030\003 \001(\tB\t\212\3101\005<=100\022\032\n\006filter\030\004 \001(\tB\n\212\3101" +
"\006<=1000\022\033\n\010order_by\030\005 \001(\tB\t\212\3101\005<=100\"f\n\025" +
"ListSnapshotsResponse\0224\n\tsnapshots\030\001 \003(\013" +
"2!.yandex.cloud.compute.v1.Snapshot\022\027\n\017n" +
"ext_page_token\030\002 \001(\t\"\360\002\n\025CreateSnapshotR" +
"equest\022\037\n\tfolder_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022" +
"\035\n\007disk_id\030\002 \001(\tB\014\350\3071\001\212\3101\004<=50\0222\n\004name\030\003" +
" \001(\tB$\362\3071 |[a-z]([-a-z0-9]{0,61}[a-z0-9]" +
")?\022\036\n\013description\030\004 \001(\tB\t\212\3101\005<=256\022\223\001\n\006l" +
"abels\030\006 \003(\0132:.yandex.cloud.compute.v1.Cr" +
"eateSnapshotRequest.LabelsEntryBG\202\3101\004<=6" +
"4\212\3101\004<=63\362\3071\017[-_./\\@0-9a-z]*\262\3101\006\032\0041-63\262\310" +
"1\026\022\024[a-z][-_./\\@0-9a-z]*\032-\n\013LabelsEntry\022" +
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\026Creat" +
"eSnapshotMetadata\022\023\n\013snapshot_id\030\001 \001(\t\022\017" +
"\n\007disk_id\030\002 \001(\t\"\204\003\n\025UpdateSnapshotReques" +
"t\022!\n\013snapshot_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022/\n\013" +
"update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" +
"dMask\0222\n\004name\030\003 \001(\tB$\362\3071 |[a-z]([-a-z0-9" +
"]{0,61}[a-z0-9])?\022\036\n\013description\030\004 \001(\tB\t" +
"\212\3101\005<=256\022\223\001\n\006labels\030\005 \003(\0132:.yandex.clou" +
"d.compute.v1.UpdateSnapshotRequest.Label" +
"sEntryBG\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_./\\@0-9a-" +
"z]*\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0-9a-z]*\032" +
"-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" +
"(\t:\0028\001\"-\n\026UpdateSnapshotMetadata\022\023\n\013snap" +
"shot_id\030\001 \001(\t\":\n\025DeleteSnapshotRequest\022!" +
"\n\013snapshot_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"-\n\026Del" +
"eteSnapshotMetadata\022\023\n\013snapshot_id\030\001 \001(\t" +
"\"\200\001\n\035ListSnapshotOperationsRequest\022!\n\013sn" +
"apshot_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022\035\n\tpage_si" +
"ze\030\002 \001(\003B\n\372\3071\006<=1000\022\035\n\npage_token\030\003 \001(\t" +
"B\t\212\3101\005<=100\"p\n\036ListSnapshotOperationsRes" +
"ponse\0225\n\noperations\030\001 \003(\0132!.yandex.cloud" +
".operation.Operation\022\027\n\017next_page_token\030" +
"\002 \001(\t2\361\007\n\017SnapshotService\022\202\001\n\003Get\022+.yand" +
"ex.cloud.compute.v1.GetSnapshotRequest\032!" +
".yandex.cloud.compute.v1.Snapshot\"+\202\323\344\223\002" +
"%\022#/compute/v1/snapshots/{snapshot_id}\022\204" +
"\001\n\004List\022-.yandex.cloud.compute.v1.ListSn" +
"apshotsRequest\032..yandex.cloud.compute.v1" +
".ListSnapshotsResponse\"\035\202\323\344\223\002\027\022\025/compute" +
"/v1/snapshots\022\243\001\n\006Create\022..yandex.cloud." +
"compute.v1.CreateSnapshotRequest\032!.yande" +
"x.cloud.operation.Operation\"F\202\323\344\223\002\032\"\025/co" +
"mpute/v1/snapshots:\001*\262\322*\"\n\026CreateSnapsho" +
"tMetadata\022\010Snapshot\022\261\001\n\006Update\022..yandex." +
"cloud.compute.v1.UpdateSnapshotRequest\032!" +
".yandex.cloud.operation.Operation\"T\202\323\344\223\002" +
"(2#/compute/v1/snapshots/{snapshot_id}:\001" +
"*\262\322*\"\n\026UpdateSnapshotMetadata\022\010Snapshot\022" +
"\273\001\n\006Delete\022..yandex.cloud.compute.v1.Del" +
"eteSnapshotRequest\032!.yandex.cloud.operat" +
"ion.Operation\"^\202\323\344\223\002%*#/compute/v1/snaps" +
"hots/{snapshot_id}\262\322*/\n\026DeleteSnapshotMe" +
"tadata\022\025google.protobuf.Empty\022\271\001\n\016ListOp" +
"erations\0226.yandex.cloud.compute.v1.ListS" +
"napshotOperationsRequest\0327.yandex.cloud." +
"compute.v1.ListSnapshotOperationsRespons" +
"e\"6\202\323\344\223\0020\022./compute/v1/snapshots/{snapsh" +
"ot_id}/operationsBb\n\033yandex.cloud.api.co" +
"mpute.v1ZCgithub.com/yandex-cloud/go-gen" +
"proto/yandex/cloud/compute/v1;computeb\006p" +
"roto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
yandex.cloud.api.OperationOuterClass.getDescriptor(),
yandex.cloud.api.compute.v1.SnapshotOuterClass.getDescriptor(),
yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_GetSnapshotRequest_descriptor,
new java.lang.String[] { "SnapshotId", });
internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListSnapshotsRequest_descriptor,
new java.lang.String[] { "FolderId", "PageSize", "PageToken", "Filter", "OrderBy", });
internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListSnapshotsResponse_descriptor,
new java.lang.String[] { "Snapshots", "NextPageToken", });
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_descriptor,
new java.lang.String[] { "FolderId", "DiskId", "Name", "Description", "Labels", });
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_LabelsEntry_descriptor =
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_CreateSnapshotRequest_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_CreateSnapshotMetadata_descriptor,
new java.lang.String[] { "SnapshotId", "DiskId", });
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_descriptor,
new java.lang.String[] { "SnapshotId", "UpdateMask", "Name", "Description", "Labels", });
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_LabelsEntry_descriptor =
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_UpdateSnapshotRequest_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_UpdateSnapshotMetadata_descriptor,
new java.lang.String[] { "SnapshotId", });
internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_DeleteSnapshotRequest_descriptor,
new java.lang.String[] { "SnapshotId", });
internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_DeleteSnapshotMetadata_descriptor,
new java.lang.String[] { "SnapshotId", });
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsRequest_descriptor,
new java.lang.String[] { "SnapshotId", "PageSize", "PageToken", });
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListSnapshotOperationsResponse_descriptor,
new java.lang.String[] { "Operations", "NextPageToken", });
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.mapKey);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.size);
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();
yandex.cloud.api.OperationOuterClass.getDescriptor();
yandex.cloud.api.compute.v1.SnapshotOuterClass.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