Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
yandex.cloud.api.compute.v1.InstanceServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/compute/v1/instance_service.proto
package yandex.cloud.api.compute.v1;
public final class InstanceServiceOuterClass {
private InstanceServiceOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code yandex.cloud.compute.v1.InstanceView}
*/
public enum InstanceView
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Doesn't include the metadata of the instance in the server response.
*
*
* BASIC = 0;
*/
BASIC(0),
/**
*
* Returns the metadata of the instance in the server response.
*
*
* FULL = 1;
*/
FULL(1),
UNRECOGNIZED(-1),
;
/**
*
* Doesn't include the metadata of the instance in the server response.
*
*
* BASIC = 0;
*/
public static final int BASIC_VALUE = 0;
/**
*
* Returns the metadata of the instance in the server response.
*
*
* FULL = 1;
*/
public static final int FULL_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static InstanceView valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static InstanceView forNumber(int value) {
switch (value) {
case 0: return BASIC;
case 1: return FULL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
InstanceView> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public InstanceView findValueByNumber(int number) {
return InstanceView.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final InstanceView[] VALUES = values();
public static InstanceView valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private InstanceView(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.InstanceView)
}
public interface GetInstanceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.GetInstanceRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @return The enum numeric value on the wire for view.
*/
int getViewValue();
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @return The view.
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView getView();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.GetInstanceRequest}
*/
public static final class GetInstanceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.GetInstanceRequest)
GetInstanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetInstanceRequest.newBuilder() to construct.
private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetInstanceRequest() {
instanceId_ = "";
view_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetInstanceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetInstanceRequest(
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();
instanceId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
view_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIEW_FIELD_NUMBER = 2;
private int view_;
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override public int getViewValue() {
return view_;
}
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @return The view.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView getView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView result = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView.valueOf(view_);
return result == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
if (view_ != yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView.BASIC.getNumber()) {
output.writeEnum(2, view_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
if (view_ != yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView.BASIC.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, view_);
}
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.InstanceServiceOuterClass.GetInstanceRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) return false;
if (view_ != other.view_) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (37 * hash) + VIEW_FIELD_NUMBER;
hash = (53 * hash) + view_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest 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.InstanceServiceOuterClass.GetInstanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest 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.InstanceServiceOuterClass.GetInstanceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest 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.InstanceServiceOuterClass.GetInstanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest 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.InstanceServiceOuterClass.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest 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.InstanceServiceOuterClass.GetInstanceRequest 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.InstanceServiceOuterClass.GetInstanceRequest 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.InstanceServiceOuterClass.GetInstanceRequest 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.GetInstanceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.GetInstanceRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest.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();
instanceId_ = "";
view_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest(this);
result.instanceId_ = instanceId_;
result.view_ = view_;
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.InstanceServiceOuterClass.GetInstanceRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
onChanged();
}
if (other.view_ != 0) {
setViewValue(other.getViewValue());
}
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.InstanceServiceOuterClass.GetInstanceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the Instance resource to return.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = value;
onChanged();
return this;
}
private int view_ = 0;
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override public int getViewValue() {
return view_;
}
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @param value The enum numeric value on the wire for view to set.
* @return This builder for chaining.
*/
public Builder setViewValue(int value) {
view_ = value;
onChanged();
return this;
}
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @return The view.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView getView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView result = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView.valueOf(view_);
return result == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView.UNRECOGNIZED : result;
}
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @param value The view to set.
* @return This builder for chaining.
*/
public Builder setView(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.InstanceView value) {
if (value == null) {
throw new NullPointerException();
}
view_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Defines which information about the Instance resource should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.InstanceView view = 2;
* @return This builder for chaining.
*/
public Builder clearView() {
view_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.GetInstanceRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GetInstanceRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetInstanceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetInstanceRequest(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.InstanceServiceOuterClass.GetInstanceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListInstancesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListInstancesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Folder to list instances 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 instances 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 [ListInstancesResponse.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 [ListInstancesResponse.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 [ListInstancesResponse.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.ListInstancesRequest}
*/
public static final class ListInstancesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListInstancesRequest)
ListInstancesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInstancesRequest.newBuilder() to construct.
private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListInstancesRequest() {
folderId_ = "";
pageToken_ = "";
filter_ = "";
orderBy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListInstancesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListInstancesRequest(
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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the Folder to list instances 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 instances 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 [ListInstancesResponse.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 [ListInstancesResponse.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 [ListInstancesResponse.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.InstanceServiceOuterClass.ListInstancesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest) 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.InstanceServiceOuterClass.ListInstancesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest 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.InstanceServiceOuterClass.ListInstancesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest 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.InstanceServiceOuterClass.ListInstancesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest 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.InstanceServiceOuterClass.ListInstancesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest 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.InstanceServiceOuterClass.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest 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.InstanceServiceOuterClass.ListInstancesRequest 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.InstanceServiceOuterClass.ListInstancesRequest 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.InstanceServiceOuterClass.ListInstancesRequest 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.ListInstancesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListInstancesRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest.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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest(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.InstanceServiceOuterClass.ListInstancesRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest.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.InstanceServiceOuterClass.ListInstancesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the Folder to list instances 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 instances 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 instances 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 instances 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 instances 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 [ListInstancesResponse.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 [ListInstancesResponse.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 [ListInstancesResponse.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 [ListInstancesResponse.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 [ListInstancesResponse.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 [ListInstancesResponse.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 [ListInstancesResponse.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 [ListInstancesResponse.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.ListInstancesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListInstancesRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListInstancesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListInstancesRequest(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.InstanceServiceOuterClass.ListInstancesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListInstancesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListInstancesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
java.util.List
getInstancesList();
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getInstances(int index);
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
int getInstancesCount();
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>
getInstancesOrBuilderList();
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder getInstancesOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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 [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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.ListInstancesResponse}
*/
public static final class ListInstancesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListInstancesResponse)
ListInstancesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInstancesResponse.newBuilder() to construct.
private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListInstancesResponse() {
instances_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListInstancesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListInstancesResponse(
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)) {
instances_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
instances_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.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)) {
instances_ = java.util.Collections.unmodifiableList(instances_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse.Builder.class);
}
public static final int INSTANCES_FIELD_NUMBER = 1;
private java.util.List instances_;
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public java.util.List getInstancesList() {
return instances_;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>
getInstancesOrBuilderList() {
return instances_;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public int getInstancesCount() {
return instances_.size();
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getInstances(int index) {
return instances_.get(index);
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder getInstancesOrBuilder(
int index) {
return instances_.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 [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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 [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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 < instances_.size(); i++) {
output.writeMessage(1, instances_.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 < instances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, instances_.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.InstanceServiceOuterClass.ListInstancesResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse) obj;
if (!getInstancesList()
.equals(other.getInstancesList())) 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 (getInstancesCount() > 0) {
hash = (37 * hash) + INSTANCES_FIELD_NUMBER;
hash = (53 * hash) + getInstancesList().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.InstanceServiceOuterClass.ListInstancesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse 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.InstanceServiceOuterClass.ListInstancesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse 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.InstanceServiceOuterClass.ListInstancesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse 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.InstanceServiceOuterClass.ListInstancesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse 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.InstanceServiceOuterClass.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse 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.InstanceServiceOuterClass.ListInstancesResponse 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.InstanceServiceOuterClass.ListInstancesResponse 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.InstanceServiceOuterClass.ListInstancesResponse 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.ListInstancesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListInstancesResponse)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInstancesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (instancesBuilder_ == null) {
instances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
instancesBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstancesResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse(this);
int from_bitField0_ = bitField0_;
if (instancesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
instances_ = java.util.Collections.unmodifiableList(instances_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instances_ = instances_;
} else {
result.instances_ = instancesBuilder_.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.InstanceServiceOuterClass.ListInstancesResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse.getDefaultInstance()) return this;
if (instancesBuilder_ == null) {
if (!other.instances_.isEmpty()) {
if (instances_.isEmpty()) {
instances_ = other.instances_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstancesIsMutable();
instances_.addAll(other.instances_);
}
onChanged();
}
} else {
if (!other.instances_.isEmpty()) {
if (instancesBuilder_.isEmpty()) {
instancesBuilder_.dispose();
instancesBuilder_ = null;
instances_ = other.instances_;
bitField0_ = (bitField0_ & ~0x00000001);
instancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInstancesFieldBuilder() : null;
} else {
instancesBuilder_.addAllMessages(other.instances_);
}
}
}
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.InstanceServiceOuterClass.ListInstancesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List instances_ =
java.util.Collections.emptyList();
private void ensureInstancesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
instances_ = new java.util.ArrayList(instances_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder> instancesBuilder_;
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public java.util.List getInstancesList() {
if (instancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(instances_);
} else {
return instancesBuilder_.getMessageList();
}
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public int getInstancesCount() {
if (instancesBuilder_ == null) {
return instances_.size();
} else {
return instancesBuilder_.getCount();
}
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getInstances(int index) {
if (instancesBuilder_ == null) {
return instances_.get(index);
} else {
return instancesBuilder_.getMessage(index);
}
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder setInstances(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.set(index, value);
onChanged();
} else {
instancesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder setInstances(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.set(index, builderForValue.build());
onChanged();
} else {
instancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addInstances(yandex.cloud.api.compute.v1.InstanceOuterClass.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.add(value);
onChanged();
} else {
instancesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addInstances(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.add(index, value);
onChanged();
} else {
instancesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addInstances(
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(builderForValue.build());
onChanged();
} else {
instancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addInstances(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(index, builderForValue.build());
onChanged();
} else {
instancesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addAllInstances(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.Instance> values) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instances_);
onChanged();
} else {
instancesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder clearInstances() {
if (instancesBuilder_ == null) {
instances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
instancesBuilder_.clear();
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder removeInstances(int index) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.remove(index);
onChanged();
} else {
instancesBuilder_.remove(index);
}
return this;
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder getInstancesBuilder(
int index) {
return getInstancesFieldBuilder().getBuilder(index);
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder getInstancesOrBuilder(
int index) {
if (instancesBuilder_ == null) {
return instances_.get(index); } else {
return instancesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>
getInstancesOrBuilderList() {
if (instancesBuilder_ != null) {
return instancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instances_);
}
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder addInstancesBuilder() {
return getInstancesFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.getDefaultInstance());
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder addInstancesBuilder(
int index) {
return getInstancesFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.getDefaultInstance());
}
/**
*
* List of Instance resources.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public java.util.List
getInstancesBuilderList() {
return getInstancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>
getInstancesFieldBuilder() {
if (instancesBuilder_ == null) {
instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>(
instances_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
instances_ = null;
}
return instancesBuilder_;
}
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 [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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 [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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 [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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 [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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 [ListInstancesRequest.page_size], use
* the [next_page_token] as the value
* for the [ListInstancesRequest.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.ListInstancesResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListInstancesResponse)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstancesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListInstancesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListInstancesResponse(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.InstanceServiceOuterClass.ListInstancesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateInstanceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CreateInstanceRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create an instance 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 an instance 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();
/**
*
* Name of the instance.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the instance.
*
*
* string name = 2 [(.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 instance.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the instance.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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);
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The zoneId.
*/
java.lang.String getZoneId();
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for zoneId.
*/
com.google.protobuf.ByteString
getZoneIdBytes();
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @return The platformId.
*/
java.lang.String getPlatformId();
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @return The bytes for platformId.
*/
com.google.protobuf.ByteString
getPlatformIdBytes();
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
* @return Whether the resourcesSpec field is set.
*/
boolean hasResourcesSpec();
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
* @return The resourcesSpec.
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec getResourcesSpec();
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder();
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
int getMetadataCount();
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
* @return Whether the metadataOptions field is set.
*/
boolean hasMetadataOptions();
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
* @return The metadataOptions.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions();
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder();
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
* @return Whether the bootDiskSpec field is set.
*/
boolean hasBootDiskSpec();
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
* @return The bootDiskSpec.
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getBootDiskSpec();
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getBootDiskSpecOrBuilder();
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
java.util.List
getSecondaryDiskSpecsList();
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getSecondaryDiskSpecs(int index);
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
int getSecondaryDiskSpecsCount();
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>
getSecondaryDiskSpecsOrBuilderList();
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getSecondaryDiskSpecsOrBuilder(
int index);
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
java.util.List
getLocalDiskSpecsList();
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec getLocalDiskSpecs(int index);
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
int getLocalDiskSpecsCount();
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder>
getLocalDiskSpecsOrBuilderList();
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder getLocalDiskSpecsOrBuilder(
int index);
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
java.util.List
getFilesystemSpecsList();
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec getFilesystemSpecs(int index);
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
int getFilesystemSpecsCount();
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder>
getFilesystemSpecsOrBuilderList();
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder getFilesystemSpecsOrBuilder(
int index);
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
java.util.List
getNetworkInterfaceSpecsList();
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec getNetworkInterfaceSpecs(int index);
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
int getNetworkInterfaceSpecsCount();
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder>
getNetworkInterfaceSpecsOrBuilderList();
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder getNetworkInterfaceSpecsOrBuilder(
int index);
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The hostname.
*/
java.lang.String getHostname();
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for hostname.
*/
com.google.protobuf.ByteString
getHostnameBytes();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
* @return Whether the schedulingPolicy field is set.
*/
boolean hasSchedulingPolicy();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
* @return The schedulingPolicy.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder();
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
* @return Whether the networkSettings field is set.
*/
boolean hasNetworkSettings();
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
* @return The networkSettings.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings();
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder();
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
* @return Whether the gpuSettings field is set.
*/
boolean hasGpuSettings();
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
* @return The gpuSettings.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings getGpuSettings();
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder getGpuSettingsOrBuilder();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
* @return Whether the placementPolicy field is set.
*/
boolean hasPlacementPolicy();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
* @return The placementPolicy.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.CreateInstanceRequest}
*/
public static final class CreateInstanceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CreateInstanceRequest)
CreateInstanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateInstanceRequest.newBuilder() to construct.
private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateInstanceRequest() {
folderId_ = "";
name_ = "";
description_ = "";
zoneId_ = "";
platformId_ = "";
secondaryDiskSpecs_ = java.util.Collections.emptyList();
localDiskSpecs_ = java.util.Collections.emptyList();
filesystemSpecs_ = java.util.Collections.emptyList();
networkInterfaceSpecs_ = java.util.Collections.emptyList();
hostname_ = "";
serviceAccountId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateInstanceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateInstanceRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
zoneId_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
platformId_ = s;
break;
}
case 58: {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder subBuilder = null;
if (resourcesSpec_ != null) {
subBuilder = resourcesSpec_.toBuilder();
}
resourcesSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resourcesSpec_);
resourcesSpec_ = subBuilder.buildPartial();
}
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
metadata__ = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(
metadata__.getKey(), metadata__.getValue());
break;
}
case 74: {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder subBuilder = null;
if (bootDiskSpec_ != null) {
subBuilder = bootDiskSpec_.toBuilder();
}
bootDiskSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bootDiskSpec_);
bootDiskSpec_ = subBuilder.buildPartial();
}
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
secondaryDiskSpecs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
secondaryDiskSpecs_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.parser(), extensionRegistry));
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
networkInterfaceSpecs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
networkInterfaceSpecs_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.parser(), extensionRegistry));
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
hostname_ = s;
break;
}
case 106: {
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder subBuilder = null;
if (schedulingPolicy_ != null) {
subBuilder = schedulingPolicy_.toBuilder();
}
schedulingPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schedulingPolicy_);
schedulingPolicy_ = subBuilder.buildPartial();
}
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = s;
break;
}
case 122: {
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder subBuilder = null;
if (networkSettings_ != null) {
subBuilder = networkSettings_.toBuilder();
}
networkSettings_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(networkSettings_);
networkSettings_ = subBuilder.buildPartial();
}
break;
}
case 130: {
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder subBuilder = null;
if (placementPolicy_ != null) {
subBuilder = placementPolicy_.toBuilder();
}
placementPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(placementPolicy_);
placementPolicy_ = subBuilder.buildPartial();
}
break;
}
case 138: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
filesystemSpecs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
filesystemSpecs_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.parser(), extensionRegistry));
break;
}
case 146: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
localDiskSpecs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
localDiskSpecs_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.parser(), extensionRegistry));
break;
}
case 154: {
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder subBuilder = null;
if (metadataOptions_ != null) {
subBuilder = metadataOptions_.toBuilder();
}
metadataOptions_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadataOptions_);
metadataOptions_ = subBuilder.buildPartial();
}
break;
}
case 162: {
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder subBuilder = null;
if (gpuSettings_ != null) {
subBuilder = gpuSettings_.toBuilder();
}
gpuSettings_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(gpuSettings_);
gpuSettings_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) != 0)) {
secondaryDiskSpecs_ = java.util.Collections.unmodifiableList(secondaryDiskSpecs_);
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
networkInterfaceSpecs_ = java.util.Collections.unmodifiableList(networkInterfaceSpecs_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
filesystemSpecs_ = java.util.Collections.unmodifiableList(filesystemSpecs_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
localDiskSpecs_ = java.util.Collections.unmodifiableList(localDiskSpecs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
case 8:
return internalGetMetadata();
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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to create an instance 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 an instance 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 NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the instance.
*
*
* string name = 2 [(.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 instance.
*
*
* string name = 2 [(.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 = 3;
private volatile java.lang.Object description_;
/**
*
* Description of the instance.
*
*
* string description = 3 [(.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 instance.
*
*
* string description = 3 [(.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 = 4;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 static final int ZONE_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object zoneId_;
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The zoneId.
*/
@java.lang.Override
public java.lang.String getZoneId() {
java.lang.Object ref = zoneId_;
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();
zoneId_ = s;
return s;
}
}
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for zoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLATFORM_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object platformId_;
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @return The platformId.
*/
@java.lang.Override
public java.lang.String getPlatformId() {
java.lang.Object ref = platformId_;
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();
platformId_ = s;
return s;
}
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @return The bytes for platformId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlatformIdBytes() {
java.lang.Object ref = platformId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platformId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCES_SPEC_FIELD_NUMBER = 7;
private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec resourcesSpec_;
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
* @return Whether the resourcesSpec field is set.
*/
@java.lang.Override
public boolean hasResourcesSpec() {
return resourcesSpec_ != null;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
* @return The resourcesSpec.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec getResourcesSpec() {
return resourcesSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder() {
return getResourcesSpec();
}
public static final int METADATA_FIELD_NUMBER = 8;
private static final class MetadataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_MetadataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int METADATA_OPTIONS_FIELD_NUMBER = 19;
private yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions metadataOptions_;
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
* @return Whether the metadataOptions field is set.
*/
@java.lang.Override
public boolean hasMetadataOptions() {
return metadataOptions_ != null;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
* @return The metadataOptions.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions() {
return metadataOptions_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder() {
return getMetadataOptions();
}
public static final int BOOT_DISK_SPEC_FIELD_NUMBER = 9;
private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec bootDiskSpec_;
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
* @return Whether the bootDiskSpec field is set.
*/
@java.lang.Override
public boolean hasBootDiskSpec() {
return bootDiskSpec_ != null;
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
* @return The bootDiskSpec.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getBootDiskSpec() {
return bootDiskSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance() : bootDiskSpec_;
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getBootDiskSpecOrBuilder() {
return getBootDiskSpec();
}
public static final int SECONDARY_DISK_SPECS_FIELD_NUMBER = 10;
private java.util.List secondaryDiskSpecs_;
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
@java.lang.Override
public java.util.List getSecondaryDiskSpecsList() {
return secondaryDiskSpecs_;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>
getSecondaryDiskSpecsOrBuilderList() {
return secondaryDiskSpecs_;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
@java.lang.Override
public int getSecondaryDiskSpecsCount() {
return secondaryDiskSpecs_.size();
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getSecondaryDiskSpecs(int index) {
return secondaryDiskSpecs_.get(index);
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getSecondaryDiskSpecsOrBuilder(
int index) {
return secondaryDiskSpecs_.get(index);
}
public static final int LOCAL_DISK_SPECS_FIELD_NUMBER = 18;
private java.util.List localDiskSpecs_;
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
@java.lang.Override
public java.util.List getLocalDiskSpecsList() {
return localDiskSpecs_;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder>
getLocalDiskSpecsOrBuilderList() {
return localDiskSpecs_;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
@java.lang.Override
public int getLocalDiskSpecsCount() {
return localDiskSpecs_.size();
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec getLocalDiskSpecs(int index) {
return localDiskSpecs_.get(index);
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder getLocalDiskSpecsOrBuilder(
int index) {
return localDiskSpecs_.get(index);
}
public static final int FILESYSTEM_SPECS_FIELD_NUMBER = 17;
private java.util.List filesystemSpecs_;
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
@java.lang.Override
public java.util.List getFilesystemSpecsList() {
return filesystemSpecs_;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder>
getFilesystemSpecsOrBuilderList() {
return filesystemSpecs_;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
@java.lang.Override
public int getFilesystemSpecsCount() {
return filesystemSpecs_.size();
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec getFilesystemSpecs(int index) {
return filesystemSpecs_.get(index);
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder getFilesystemSpecsOrBuilder(
int index) {
return filesystemSpecs_.get(index);
}
public static final int NETWORK_INTERFACE_SPECS_FIELD_NUMBER = 11;
private java.util.List networkInterfaceSpecs_;
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
@java.lang.Override
public java.util.List getNetworkInterfaceSpecsList() {
return networkInterfaceSpecs_;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder>
getNetworkInterfaceSpecsOrBuilderList() {
return networkInterfaceSpecs_;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
@java.lang.Override
public int getNetworkInterfaceSpecsCount() {
return networkInterfaceSpecs_.size();
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec getNetworkInterfaceSpecs(int index) {
return networkInterfaceSpecs_.get(index);
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder getNetworkInterfaceSpecsOrBuilder(
int index) {
return networkInterfaceSpecs_.get(index);
}
public static final int HOSTNAME_FIELD_NUMBER = 12;
private volatile java.lang.Object hostname_;
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The hostname.
*/
@java.lang.Override
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
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();
hostname_ = s;
return s;
}
}
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for hostname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEDULING_POLICY_FIELD_NUMBER = 13;
private yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy schedulingPolicy_;
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
* @return Whether the schedulingPolicy field is set.
*/
@java.lang.Override
public boolean hasSchedulingPolicy() {
return schedulingPolicy_ != null;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
* @return The schedulingPolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy() {
return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder() {
return getSchedulingPolicy();
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 14;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
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();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NETWORK_SETTINGS_FIELD_NUMBER = 15;
private yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings networkSettings_;
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
* @return Whether the networkSettings field is set.
*/
@java.lang.Override
public boolean hasNetworkSettings() {
return networkSettings_ != null;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
* @return The networkSettings.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings() {
return networkSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() {
return getNetworkSettings();
}
public static final int GPU_SETTINGS_FIELD_NUMBER = 20;
private yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings gpuSettings_;
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
* @return Whether the gpuSettings field is set.
*/
@java.lang.Override
public boolean hasGpuSettings() {
return gpuSettings_ != null;
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
* @return The gpuSettings.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings getGpuSettings() {
return gpuSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.getDefaultInstance() : gpuSettings_;
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder getGpuSettingsOrBuilder() {
return getGpuSettings();
}
public static final int PLACEMENT_POLICY_FIELD_NUMBER = 16;
private yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy placementPolicy_;
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
* @return Whether the placementPolicy field is set.
*/
@java.lang.Override
public boolean hasPlacementPolicy() {
return placementPolicy_ != null;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
* @return The placementPolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy() {
return placementPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() {
return getPlacementPolicy();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, zoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, platformId_);
}
if (resourcesSpec_ != null) {
output.writeMessage(7, getResourcesSpec());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
8);
if (bootDiskSpec_ != null) {
output.writeMessage(9, getBootDiskSpec());
}
for (int i = 0; i < secondaryDiskSpecs_.size(); i++) {
output.writeMessage(10, secondaryDiskSpecs_.get(i));
}
for (int i = 0; i < networkInterfaceSpecs_.size(); i++) {
output.writeMessage(11, networkInterfaceSpecs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, hostname_);
}
if (schedulingPolicy_ != null) {
output.writeMessage(13, getSchedulingPolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, serviceAccountId_);
}
if (networkSettings_ != null) {
output.writeMessage(15, getNetworkSettings());
}
if (placementPolicy_ != null) {
output.writeMessage(16, getPlacementPolicy());
}
for (int i = 0; i < filesystemSpecs_.size(); i++) {
output.writeMessage(17, filesystemSpecs_.get(i));
}
for (int i = 0; i < localDiskSpecs_.size(); i++) {
output.writeMessage(18, localDiskSpecs_.get(i));
}
if (metadataOptions_ != null) {
output.writeMessage(19, getMetadataOptions());
}
if (gpuSettings_ != null) {
output.writeMessage(20, getGpuSettings());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, zoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, platformId_);
}
if (resourcesSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getResourcesSpec());
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, metadata__);
}
if (bootDiskSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getBootDiskSpec());
}
for (int i = 0; i < secondaryDiskSpecs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, secondaryDiskSpecs_.get(i));
}
for (int i = 0; i < networkInterfaceSpecs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, networkInterfaceSpecs_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, hostname_);
}
if (schedulingPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getSchedulingPolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, serviceAccountId_);
}
if (networkSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getNetworkSettings());
}
if (placementPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getPlacementPolicy());
}
for (int i = 0; i < filesystemSpecs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, filesystemSpecs_.get(i));
}
for (int i = 0; i < localDiskSpecs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, localDiskSpecs_.get(i));
}
if (metadataOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getMetadataOptions());
}
if (gpuSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getGpuSettings());
}
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.InstanceServiceOuterClass.CreateInstanceRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!getZoneId()
.equals(other.getZoneId())) return false;
if (!getPlatformId()
.equals(other.getPlatformId())) return false;
if (hasResourcesSpec() != other.hasResourcesSpec()) return false;
if (hasResourcesSpec()) {
if (!getResourcesSpec()
.equals(other.getResourcesSpec())) return false;
}
if (!internalGetMetadata().equals(
other.internalGetMetadata())) return false;
if (hasMetadataOptions() != other.hasMetadataOptions()) return false;
if (hasMetadataOptions()) {
if (!getMetadataOptions()
.equals(other.getMetadataOptions())) return false;
}
if (hasBootDiskSpec() != other.hasBootDiskSpec()) return false;
if (hasBootDiskSpec()) {
if (!getBootDiskSpec()
.equals(other.getBootDiskSpec())) return false;
}
if (!getSecondaryDiskSpecsList()
.equals(other.getSecondaryDiskSpecsList())) return false;
if (!getLocalDiskSpecsList()
.equals(other.getLocalDiskSpecsList())) return false;
if (!getFilesystemSpecsList()
.equals(other.getFilesystemSpecsList())) return false;
if (!getNetworkInterfaceSpecsList()
.equals(other.getNetworkInterfaceSpecsList())) return false;
if (!getHostname()
.equals(other.getHostname())) return false;
if (hasSchedulingPolicy() != other.hasSchedulingPolicy()) return false;
if (hasSchedulingPolicy()) {
if (!getSchedulingPolicy()
.equals(other.getSchedulingPolicy())) return false;
}
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (hasNetworkSettings() != other.hasNetworkSettings()) return false;
if (hasNetworkSettings()) {
if (!getNetworkSettings()
.equals(other.getNetworkSettings())) return false;
}
if (hasGpuSettings() != other.hasGpuSettings()) return false;
if (hasGpuSettings()) {
if (!getGpuSettings()
.equals(other.getGpuSettings())) return false;
}
if (hasPlacementPolicy() != other.hasPlacementPolicy()) return false;
if (hasPlacementPolicy()) {
if (!getPlacementPolicy()
.equals(other.getPlacementPolicy())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getZoneId().hashCode();
hash = (37 * hash) + PLATFORM_ID_FIELD_NUMBER;
hash = (53 * hash) + getPlatformId().hashCode();
if (hasResourcesSpec()) {
hash = (37 * hash) + RESOURCES_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getResourcesSpec().hashCode();
}
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
if (hasMetadataOptions()) {
hash = (37 * hash) + METADATA_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getMetadataOptions().hashCode();
}
if (hasBootDiskSpec()) {
hash = (37 * hash) + BOOT_DISK_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getBootDiskSpec().hashCode();
}
if (getSecondaryDiskSpecsCount() > 0) {
hash = (37 * hash) + SECONDARY_DISK_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getSecondaryDiskSpecsList().hashCode();
}
if (getLocalDiskSpecsCount() > 0) {
hash = (37 * hash) + LOCAL_DISK_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getLocalDiskSpecsList().hashCode();
}
if (getFilesystemSpecsCount() > 0) {
hash = (37 * hash) + FILESYSTEM_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getFilesystemSpecsList().hashCode();
}
if (getNetworkInterfaceSpecsCount() > 0) {
hash = (37 * hash) + NETWORK_INTERFACE_SPECS_FIELD_NUMBER;
hash = (53 * hash) + getNetworkInterfaceSpecsList().hashCode();
}
hash = (37 * hash) + HOSTNAME_FIELD_NUMBER;
hash = (53 * hash) + getHostname().hashCode();
if (hasSchedulingPolicy()) {
hash = (37 * hash) + SCHEDULING_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getSchedulingPolicy().hashCode();
}
hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
if (hasNetworkSettings()) {
hash = (37 * hash) + NETWORK_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getNetworkSettings().hashCode();
}
if (hasGpuSettings()) {
hash = (37 * hash) + GPU_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getGpuSettings().hashCode();
}
if (hasPlacementPolicy()) {
hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPlacementPolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest 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.InstanceServiceOuterClass.CreateInstanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest 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.InstanceServiceOuterClass.CreateInstanceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest 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.InstanceServiceOuterClass.CreateInstanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest 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.InstanceServiceOuterClass.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest 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.InstanceServiceOuterClass.CreateInstanceRequest 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.InstanceServiceOuterClass.CreateInstanceRequest 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.InstanceServiceOuterClass.CreateInstanceRequest 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.CreateInstanceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CreateInstanceRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
case 8:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
case 8:
return internalGetMutableMetadata();
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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecondaryDiskSpecsFieldBuilder();
getLocalDiskSpecsFieldBuilder();
getFilesystemSpecsFieldBuilder();
getNetworkInterfaceSpecsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
folderId_ = "";
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
zoneId_ = "";
platformId_ = "";
if (resourcesSpecBuilder_ == null) {
resourcesSpec_ = null;
} else {
resourcesSpec_ = null;
resourcesSpecBuilder_ = null;
}
internalGetMutableMetadata().clear();
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = null;
} else {
metadataOptions_ = null;
metadataOptionsBuilder_ = null;
}
if (bootDiskSpecBuilder_ == null) {
bootDiskSpec_ = null;
} else {
bootDiskSpec_ = null;
bootDiskSpecBuilder_ = null;
}
if (secondaryDiskSpecsBuilder_ == null) {
secondaryDiskSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
secondaryDiskSpecsBuilder_.clear();
}
if (localDiskSpecsBuilder_ == null) {
localDiskSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
localDiskSpecsBuilder_.clear();
}
if (filesystemSpecsBuilder_ == null) {
filesystemSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
filesystemSpecsBuilder_.clear();
}
if (networkInterfaceSpecsBuilder_ == null) {
networkInterfaceSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
networkInterfaceSpecsBuilder_.clear();
}
hostname_ = "";
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = null;
} else {
schedulingPolicy_ = null;
schedulingPolicyBuilder_ = null;
}
serviceAccountId_ = "";
if (networkSettingsBuilder_ == null) {
networkSettings_ = null;
} else {
networkSettings_ = null;
networkSettingsBuilder_ = null;
}
if (gpuSettingsBuilder_ == null) {
gpuSettings_ = null;
} else {
gpuSettings_ = null;
gpuSettingsBuilder_ = null;
}
if (placementPolicyBuilder_ == null) {
placementPolicy_ = null;
} else {
placementPolicy_ = null;
placementPolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest(this);
int from_bitField0_ = bitField0_;
result.folderId_ = folderId_;
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.zoneId_ = zoneId_;
result.platformId_ = platformId_;
if (resourcesSpecBuilder_ == null) {
result.resourcesSpec_ = resourcesSpec_;
} else {
result.resourcesSpec_ = resourcesSpecBuilder_.build();
}
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
if (metadataOptionsBuilder_ == null) {
result.metadataOptions_ = metadataOptions_;
} else {
result.metadataOptions_ = metadataOptionsBuilder_.build();
}
if (bootDiskSpecBuilder_ == null) {
result.bootDiskSpec_ = bootDiskSpec_;
} else {
result.bootDiskSpec_ = bootDiskSpecBuilder_.build();
}
if (secondaryDiskSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
secondaryDiskSpecs_ = java.util.Collections.unmodifiableList(secondaryDiskSpecs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.secondaryDiskSpecs_ = secondaryDiskSpecs_;
} else {
result.secondaryDiskSpecs_ = secondaryDiskSpecsBuilder_.build();
}
if (localDiskSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
localDiskSpecs_ = java.util.Collections.unmodifiableList(localDiskSpecs_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.localDiskSpecs_ = localDiskSpecs_;
} else {
result.localDiskSpecs_ = localDiskSpecsBuilder_.build();
}
if (filesystemSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
filesystemSpecs_ = java.util.Collections.unmodifiableList(filesystemSpecs_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.filesystemSpecs_ = filesystemSpecs_;
} else {
result.filesystemSpecs_ = filesystemSpecsBuilder_.build();
}
if (networkInterfaceSpecsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
networkInterfaceSpecs_ = java.util.Collections.unmodifiableList(networkInterfaceSpecs_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.networkInterfaceSpecs_ = networkInterfaceSpecs_;
} else {
result.networkInterfaceSpecs_ = networkInterfaceSpecsBuilder_.build();
}
result.hostname_ = hostname_;
if (schedulingPolicyBuilder_ == null) {
result.schedulingPolicy_ = schedulingPolicy_;
} else {
result.schedulingPolicy_ = schedulingPolicyBuilder_.build();
}
result.serviceAccountId_ = serviceAccountId_;
if (networkSettingsBuilder_ == null) {
result.networkSettings_ = networkSettings_;
} else {
result.networkSettings_ = networkSettingsBuilder_.build();
}
if (gpuSettingsBuilder_ == null) {
result.gpuSettings_ = gpuSettings_;
} else {
result.gpuSettings_ = gpuSettingsBuilder_.build();
}
if (placementPolicyBuilder_ == null) {
result.placementPolicy_ = placementPolicy_;
} else {
result.placementPolicy_ = placementPolicyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (!other.getZoneId().isEmpty()) {
zoneId_ = other.zoneId_;
onChanged();
}
if (!other.getPlatformId().isEmpty()) {
platformId_ = other.platformId_;
onChanged();
}
if (other.hasResourcesSpec()) {
mergeResourcesSpec(other.getResourcesSpec());
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
if (other.hasMetadataOptions()) {
mergeMetadataOptions(other.getMetadataOptions());
}
if (other.hasBootDiskSpec()) {
mergeBootDiskSpec(other.getBootDiskSpec());
}
if (secondaryDiskSpecsBuilder_ == null) {
if (!other.secondaryDiskSpecs_.isEmpty()) {
if (secondaryDiskSpecs_.isEmpty()) {
secondaryDiskSpecs_ = other.secondaryDiskSpecs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSecondaryDiskSpecsIsMutable();
secondaryDiskSpecs_.addAll(other.secondaryDiskSpecs_);
}
onChanged();
}
} else {
if (!other.secondaryDiskSpecs_.isEmpty()) {
if (secondaryDiskSpecsBuilder_.isEmpty()) {
secondaryDiskSpecsBuilder_.dispose();
secondaryDiskSpecsBuilder_ = null;
secondaryDiskSpecs_ = other.secondaryDiskSpecs_;
bitField0_ = (bitField0_ & ~0x00000004);
secondaryDiskSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSecondaryDiskSpecsFieldBuilder() : null;
} else {
secondaryDiskSpecsBuilder_.addAllMessages(other.secondaryDiskSpecs_);
}
}
}
if (localDiskSpecsBuilder_ == null) {
if (!other.localDiskSpecs_.isEmpty()) {
if (localDiskSpecs_.isEmpty()) {
localDiskSpecs_ = other.localDiskSpecs_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureLocalDiskSpecsIsMutable();
localDiskSpecs_.addAll(other.localDiskSpecs_);
}
onChanged();
}
} else {
if (!other.localDiskSpecs_.isEmpty()) {
if (localDiskSpecsBuilder_.isEmpty()) {
localDiskSpecsBuilder_.dispose();
localDiskSpecsBuilder_ = null;
localDiskSpecs_ = other.localDiskSpecs_;
bitField0_ = (bitField0_ & ~0x00000008);
localDiskSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLocalDiskSpecsFieldBuilder() : null;
} else {
localDiskSpecsBuilder_.addAllMessages(other.localDiskSpecs_);
}
}
}
if (filesystemSpecsBuilder_ == null) {
if (!other.filesystemSpecs_.isEmpty()) {
if (filesystemSpecs_.isEmpty()) {
filesystemSpecs_ = other.filesystemSpecs_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureFilesystemSpecsIsMutable();
filesystemSpecs_.addAll(other.filesystemSpecs_);
}
onChanged();
}
} else {
if (!other.filesystemSpecs_.isEmpty()) {
if (filesystemSpecsBuilder_.isEmpty()) {
filesystemSpecsBuilder_.dispose();
filesystemSpecsBuilder_ = null;
filesystemSpecs_ = other.filesystemSpecs_;
bitField0_ = (bitField0_ & ~0x00000010);
filesystemSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFilesystemSpecsFieldBuilder() : null;
} else {
filesystemSpecsBuilder_.addAllMessages(other.filesystemSpecs_);
}
}
}
if (networkInterfaceSpecsBuilder_ == null) {
if (!other.networkInterfaceSpecs_.isEmpty()) {
if (networkInterfaceSpecs_.isEmpty()) {
networkInterfaceSpecs_ = other.networkInterfaceSpecs_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureNetworkInterfaceSpecsIsMutable();
networkInterfaceSpecs_.addAll(other.networkInterfaceSpecs_);
}
onChanged();
}
} else {
if (!other.networkInterfaceSpecs_.isEmpty()) {
if (networkInterfaceSpecsBuilder_.isEmpty()) {
networkInterfaceSpecsBuilder_.dispose();
networkInterfaceSpecsBuilder_ = null;
networkInterfaceSpecs_ = other.networkInterfaceSpecs_;
bitField0_ = (bitField0_ & ~0x00000020);
networkInterfaceSpecsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNetworkInterfaceSpecsFieldBuilder() : null;
} else {
networkInterfaceSpecsBuilder_.addAllMessages(other.networkInterfaceSpecs_);
}
}
}
if (!other.getHostname().isEmpty()) {
hostname_ = other.hostname_;
onChanged();
}
if (other.hasSchedulingPolicy()) {
mergeSchedulingPolicy(other.getSchedulingPolicy());
}
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (other.hasNetworkSettings()) {
mergeNetworkSettings(other.getNetworkSettings());
}
if (other.hasGpuSettings()) {
mergeGpuSettings(other.getGpuSettings());
}
if (other.hasPlacementPolicy()) {
mergePlacementPolicy(other.getPlacementPolicy());
}
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.InstanceServiceOuterClass.CreateInstanceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest) 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 an instance 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 an instance 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 an instance 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 an instance 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 an instance 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 name_ = "";
/**
*
* Name of the instance.
*
*
* string name = 2 [(.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 instance.
*
*
* string name = 2 [(.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 instance.
*
*
* string name = 2 [(.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 instance.
*
*
* string name = 2 [(.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 instance.
*
*
* string name = 2 [(.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 instance.
*
*
* string description = 3 [(.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 instance.
*
*
* string description = 3 [(.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 instance.
*
*
* string description = 3 [(.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 instance.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the instance.
*
*
* string description = 3 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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 = 4 [(.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;
}
private java.lang.Object zoneId_ = "";
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The zoneId.
*/
public java.lang.String getZoneId() {
java.lang.Object ref = zoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for zoneId.
*/
public com.google.protobuf.ByteString
getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zoneId_ = value;
onChanged();
return this;
}
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearZoneId() {
zoneId_ = getDefaultInstance().getZoneId();
onChanged();
return this;
}
/**
*
* ID of the availability zone where the instance resides.
* To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zoneId_ = value;
onChanged();
return this;
}
private java.lang.Object platformId_ = "";
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @return The platformId.
*/
public java.lang.String getPlatformId() {
java.lang.Object ref = platformId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
platformId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @return The bytes for platformId.
*/
public com.google.protobuf.ByteString
getPlatformIdBytes() {
java.lang.Object ref = platformId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platformId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @param value The platformId to set.
* @return This builder for chaining.
*/
public Builder setPlatformId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
platformId_ = value;
onChanged();
return this;
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearPlatformId() {
platformId_ = getDefaultInstance().getPlatformId();
onChanged();
return this;
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6 [(.yandex.cloud.required) = true];
* @param value The bytes for platformId to set.
* @return This builder for chaining.
*/
public Builder setPlatformIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
platformId_ = value;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec resourcesSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder> resourcesSpecBuilder_;
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
* @return Whether the resourcesSpec field is set.
*/
public boolean hasResourcesSpec() {
return resourcesSpecBuilder_ != null || resourcesSpec_ != null;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
* @return The resourcesSpec.
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec getResourcesSpec() {
if (resourcesSpecBuilder_ == null) {
return resourcesSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_;
} else {
return resourcesSpecBuilder_.getMessage();
}
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
public Builder setResourcesSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec value) {
if (resourcesSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourcesSpec_ = value;
onChanged();
} else {
resourcesSpecBuilder_.setMessage(value);
}
return this;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
public Builder setResourcesSpec(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder builderForValue) {
if (resourcesSpecBuilder_ == null) {
resourcesSpec_ = builderForValue.build();
onChanged();
} else {
resourcesSpecBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
public Builder mergeResourcesSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec value) {
if (resourcesSpecBuilder_ == null) {
if (resourcesSpec_ != null) {
resourcesSpec_ =
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.newBuilder(resourcesSpec_).mergeFrom(value).buildPartial();
} else {
resourcesSpec_ = value;
}
onChanged();
} else {
resourcesSpecBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
public Builder clearResourcesSpec() {
if (resourcesSpecBuilder_ == null) {
resourcesSpec_ = null;
onChanged();
} else {
resourcesSpec_ = null;
resourcesSpecBuilder_ = null;
}
return this;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder getResourcesSpecBuilder() {
onChanged();
return getResourcesSpecFieldBuilder().getBuilder();
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder() {
if (resourcesSpecBuilder_ != null) {
return resourcesSpecBuilder_.getMessageOrBuilder();
} else {
return resourcesSpec_ == null ?
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_;
}
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7 [(.yandex.cloud.required) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder>
getResourcesSpecFieldBuilder() {
if (resourcesSpecBuilder_ == null) {
resourcesSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder>(
getResourcesSpec(),
getParentForChildren(),
isClean());
resourcesSpec_ = null;
}
return resourcesSpecBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
private com.google.protobuf.MapField
internalGetMutableMetadata() {
onChanged();;
if (metadata_ == null) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
if (!metadata_.isMutable()) {
metadata_ = metadata_.copy();
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetadata() {
internalGetMutableMetadata().getMutableMap()
.clear();
return this;
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
public Builder removeMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableMetadata().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetadata() {
return internalGetMutableMetadata().getMutableMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
public Builder putMetadata(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableMetadata().getMutableMap()
.put(key, value);
return this;
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
public Builder putAllMetadata(
java.util.Map values) {
internalGetMutableMetadata().getMutableMap()
.putAll(values);
return this;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions metadataOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder> metadataOptionsBuilder_;
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
* @return Whether the metadataOptions field is set.
*/
public boolean hasMetadataOptions() {
return metadataOptionsBuilder_ != null || metadataOptions_ != null;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
* @return The metadataOptions.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions() {
if (metadataOptionsBuilder_ == null) {
return metadataOptions_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
} else {
return metadataOptionsBuilder_.getMessage();
}
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
public Builder setMetadataOptions(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions value) {
if (metadataOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadataOptions_ = value;
onChanged();
} else {
metadataOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
public Builder setMetadataOptions(
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder builderForValue) {
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = builderForValue.build();
onChanged();
} else {
metadataOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
public Builder mergeMetadataOptions(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions value) {
if (metadataOptionsBuilder_ == null) {
if (metadataOptions_ != null) {
metadataOptions_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.newBuilder(metadataOptions_).mergeFrom(value).buildPartial();
} else {
metadataOptions_ = value;
}
onChanged();
} else {
metadataOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
public Builder clearMetadataOptions() {
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = null;
onChanged();
} else {
metadataOptions_ = null;
metadataOptionsBuilder_ = null;
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder getMetadataOptionsBuilder() {
onChanged();
return getMetadataOptionsFieldBuilder().getBuilder();
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder() {
if (metadataOptionsBuilder_ != null) {
return metadataOptionsBuilder_.getMessageOrBuilder();
} else {
return metadataOptions_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
}
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder>
getMetadataOptionsFieldBuilder() {
if (metadataOptionsBuilder_ == null) {
metadataOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder>(
getMetadataOptions(),
getParentForChildren(),
isClean());
metadataOptions_ = null;
}
return metadataOptionsBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec bootDiskSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder> bootDiskSpecBuilder_;
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
* @return Whether the bootDiskSpec field is set.
*/
public boolean hasBootDiskSpec() {
return bootDiskSpecBuilder_ != null || bootDiskSpec_ != null;
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
* @return The bootDiskSpec.
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getBootDiskSpec() {
if (bootDiskSpecBuilder_ == null) {
return bootDiskSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance() : bootDiskSpec_;
} else {
return bootDiskSpecBuilder_.getMessage();
}
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
public Builder setBootDiskSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec value) {
if (bootDiskSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bootDiskSpec_ = value;
onChanged();
} else {
bootDiskSpecBuilder_.setMessage(value);
}
return this;
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
public Builder setBootDiskSpec(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder builderForValue) {
if (bootDiskSpecBuilder_ == null) {
bootDiskSpec_ = builderForValue.build();
onChanged();
} else {
bootDiskSpecBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
public Builder mergeBootDiskSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec value) {
if (bootDiskSpecBuilder_ == null) {
if (bootDiskSpec_ != null) {
bootDiskSpec_ =
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.newBuilder(bootDiskSpec_).mergeFrom(value).buildPartial();
} else {
bootDiskSpec_ = value;
}
onChanged();
} else {
bootDiskSpecBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
public Builder clearBootDiskSpec() {
if (bootDiskSpecBuilder_ == null) {
bootDiskSpec_ = null;
onChanged();
} else {
bootDiskSpec_ = null;
bootDiskSpecBuilder_ = null;
}
return this;
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder getBootDiskSpecBuilder() {
onChanged();
return getBootDiskSpecFieldBuilder().getBuilder();
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getBootDiskSpecOrBuilder() {
if (bootDiskSpecBuilder_ != null) {
return bootDiskSpecBuilder_.getMessageOrBuilder();
} else {
return bootDiskSpec_ == null ?
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance() : bootDiskSpec_;
}
}
/**
*
* Boot disk to attach to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(.yandex.cloud.required) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>
getBootDiskSpecFieldBuilder() {
if (bootDiskSpecBuilder_ == null) {
bootDiskSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>(
getBootDiskSpec(),
getParentForChildren(),
isClean());
bootDiskSpec_ = null;
}
return bootDiskSpecBuilder_;
}
private java.util.List secondaryDiskSpecs_ =
java.util.Collections.emptyList();
private void ensureSecondaryDiskSpecsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
secondaryDiskSpecs_ = new java.util.ArrayList(secondaryDiskSpecs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder> secondaryDiskSpecsBuilder_;
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public java.util.List getSecondaryDiskSpecsList() {
if (secondaryDiskSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(secondaryDiskSpecs_);
} else {
return secondaryDiskSpecsBuilder_.getMessageList();
}
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public int getSecondaryDiskSpecsCount() {
if (secondaryDiskSpecsBuilder_ == null) {
return secondaryDiskSpecs_.size();
} else {
return secondaryDiskSpecsBuilder_.getCount();
}
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getSecondaryDiskSpecs(int index) {
if (secondaryDiskSpecsBuilder_ == null) {
return secondaryDiskSpecs_.get(index);
} else {
return secondaryDiskSpecsBuilder_.getMessage(index);
}
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder setSecondaryDiskSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec value) {
if (secondaryDiskSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryDiskSpecsIsMutable();
secondaryDiskSpecs_.set(index, value);
onChanged();
} else {
secondaryDiskSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder setSecondaryDiskSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder builderForValue) {
if (secondaryDiskSpecsBuilder_ == null) {
ensureSecondaryDiskSpecsIsMutable();
secondaryDiskSpecs_.set(index, builderForValue.build());
onChanged();
} else {
secondaryDiskSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder addSecondaryDiskSpecs(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec value) {
if (secondaryDiskSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryDiskSpecsIsMutable();
secondaryDiskSpecs_.add(value);
onChanged();
} else {
secondaryDiskSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder addSecondaryDiskSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec value) {
if (secondaryDiskSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryDiskSpecsIsMutable();
secondaryDiskSpecs_.add(index, value);
onChanged();
} else {
secondaryDiskSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder addSecondaryDiskSpecs(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder builderForValue) {
if (secondaryDiskSpecsBuilder_ == null) {
ensureSecondaryDiskSpecsIsMutable();
secondaryDiskSpecs_.add(builderForValue.build());
onChanged();
} else {
secondaryDiskSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder addSecondaryDiskSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder builderForValue) {
if (secondaryDiskSpecsBuilder_ == null) {
ensureSecondaryDiskSpecsIsMutable();
secondaryDiskSpecs_.add(index, builderForValue.build());
onChanged();
} else {
secondaryDiskSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder addAllSecondaryDiskSpecs(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec> values) {
if (secondaryDiskSpecsBuilder_ == null) {
ensureSecondaryDiskSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, secondaryDiskSpecs_);
onChanged();
} else {
secondaryDiskSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder clearSecondaryDiskSpecs() {
if (secondaryDiskSpecsBuilder_ == null) {
secondaryDiskSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
secondaryDiskSpecsBuilder_.clear();
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public Builder removeSecondaryDiskSpecs(int index) {
if (secondaryDiskSpecsBuilder_ == null) {
ensureSecondaryDiskSpecsIsMutable();
secondaryDiskSpecs_.remove(index);
onChanged();
} else {
secondaryDiskSpecsBuilder_.remove(index);
}
return this;
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder getSecondaryDiskSpecsBuilder(
int index) {
return getSecondaryDiskSpecsFieldBuilder().getBuilder(index);
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getSecondaryDiskSpecsOrBuilder(
int index) {
if (secondaryDiskSpecsBuilder_ == null) {
return secondaryDiskSpecs_.get(index); } else {
return secondaryDiskSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>
getSecondaryDiskSpecsOrBuilderList() {
if (secondaryDiskSpecsBuilder_ != null) {
return secondaryDiskSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(secondaryDiskSpecs_);
}
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder addSecondaryDiskSpecsBuilder() {
return getSecondaryDiskSpecsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance());
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder addSecondaryDiskSpecsBuilder(
int index) {
return getSecondaryDiskSpecsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance());
}
/**
*
* Array of secondary disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDiskSpec secondary_disk_specs = 10 [(.yandex.cloud.size) = "<=3"];
*/
public java.util.List
getSecondaryDiskSpecsBuilderList() {
return getSecondaryDiskSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>
getSecondaryDiskSpecsFieldBuilder() {
if (secondaryDiskSpecsBuilder_ == null) {
secondaryDiskSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>(
secondaryDiskSpecs_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
secondaryDiskSpecs_ = null;
}
return secondaryDiskSpecsBuilder_;
}
private java.util.List localDiskSpecs_ =
java.util.Collections.emptyList();
private void ensureLocalDiskSpecsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
localDiskSpecs_ = new java.util.ArrayList(localDiskSpecs_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder> localDiskSpecsBuilder_;
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public java.util.List getLocalDiskSpecsList() {
if (localDiskSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(localDiskSpecs_);
} else {
return localDiskSpecsBuilder_.getMessageList();
}
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public int getLocalDiskSpecsCount() {
if (localDiskSpecsBuilder_ == null) {
return localDiskSpecs_.size();
} else {
return localDiskSpecsBuilder_.getCount();
}
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec getLocalDiskSpecs(int index) {
if (localDiskSpecsBuilder_ == null) {
return localDiskSpecs_.get(index);
} else {
return localDiskSpecsBuilder_.getMessage(index);
}
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder setLocalDiskSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec value) {
if (localDiskSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalDiskSpecsIsMutable();
localDiskSpecs_.set(index, value);
onChanged();
} else {
localDiskSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder setLocalDiskSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder builderForValue) {
if (localDiskSpecsBuilder_ == null) {
ensureLocalDiskSpecsIsMutable();
localDiskSpecs_.set(index, builderForValue.build());
onChanged();
} else {
localDiskSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder addLocalDiskSpecs(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec value) {
if (localDiskSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalDiskSpecsIsMutable();
localDiskSpecs_.add(value);
onChanged();
} else {
localDiskSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder addLocalDiskSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec value) {
if (localDiskSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalDiskSpecsIsMutable();
localDiskSpecs_.add(index, value);
onChanged();
} else {
localDiskSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder addLocalDiskSpecs(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder builderForValue) {
if (localDiskSpecsBuilder_ == null) {
ensureLocalDiskSpecsIsMutable();
localDiskSpecs_.add(builderForValue.build());
onChanged();
} else {
localDiskSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder addLocalDiskSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder builderForValue) {
if (localDiskSpecsBuilder_ == null) {
ensureLocalDiskSpecsIsMutable();
localDiskSpecs_.add(index, builderForValue.build());
onChanged();
} else {
localDiskSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder addAllLocalDiskSpecs(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec> values) {
if (localDiskSpecsBuilder_ == null) {
ensureLocalDiskSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, localDiskSpecs_);
onChanged();
} else {
localDiskSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder clearLocalDiskSpecs() {
if (localDiskSpecsBuilder_ == null) {
localDiskSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
localDiskSpecsBuilder_.clear();
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public Builder removeLocalDiskSpecs(int index) {
if (localDiskSpecsBuilder_ == null) {
ensureLocalDiskSpecsIsMutable();
localDiskSpecs_.remove(index);
onChanged();
} else {
localDiskSpecsBuilder_.remove(index);
}
return this;
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder getLocalDiskSpecsBuilder(
int index) {
return getLocalDiskSpecsFieldBuilder().getBuilder(index);
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder getLocalDiskSpecsOrBuilder(
int index) {
if (localDiskSpecsBuilder_ == null) {
return localDiskSpecs_.get(index); } else {
return localDiskSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder>
getLocalDiskSpecsOrBuilderList() {
if (localDiskSpecsBuilder_ != null) {
return localDiskSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(localDiskSpecs_);
}
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder addLocalDiskSpecsBuilder() {
return getLocalDiskSpecsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.getDefaultInstance());
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder addLocalDiskSpecsBuilder(
int index) {
return getLocalDiskSpecsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.getDefaultInstance());
}
/**
*
* Array of local disks to attach to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDiskSpec local_disk_specs = 18;
*/
public java.util.List
getLocalDiskSpecsBuilderList() {
return getLocalDiskSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder>
getLocalDiskSpecsFieldBuilder() {
if (localDiskSpecsBuilder_ == null) {
localDiskSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder>(
localDiskSpecs_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
localDiskSpecs_ = null;
}
return localDiskSpecsBuilder_;
}
private java.util.List filesystemSpecs_ =
java.util.Collections.emptyList();
private void ensureFilesystemSpecsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
filesystemSpecs_ = new java.util.ArrayList(filesystemSpecs_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder> filesystemSpecsBuilder_;
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public java.util.List getFilesystemSpecsList() {
if (filesystemSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(filesystemSpecs_);
} else {
return filesystemSpecsBuilder_.getMessageList();
}
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public int getFilesystemSpecsCount() {
if (filesystemSpecsBuilder_ == null) {
return filesystemSpecs_.size();
} else {
return filesystemSpecsBuilder_.getCount();
}
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec getFilesystemSpecs(int index) {
if (filesystemSpecsBuilder_ == null) {
return filesystemSpecs_.get(index);
} else {
return filesystemSpecsBuilder_.getMessage(index);
}
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder setFilesystemSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec value) {
if (filesystemSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesystemSpecsIsMutable();
filesystemSpecs_.set(index, value);
onChanged();
} else {
filesystemSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder setFilesystemSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder builderForValue) {
if (filesystemSpecsBuilder_ == null) {
ensureFilesystemSpecsIsMutable();
filesystemSpecs_.set(index, builderForValue.build());
onChanged();
} else {
filesystemSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder addFilesystemSpecs(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec value) {
if (filesystemSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesystemSpecsIsMutable();
filesystemSpecs_.add(value);
onChanged();
} else {
filesystemSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder addFilesystemSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec value) {
if (filesystemSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesystemSpecsIsMutable();
filesystemSpecs_.add(index, value);
onChanged();
} else {
filesystemSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder addFilesystemSpecs(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder builderForValue) {
if (filesystemSpecsBuilder_ == null) {
ensureFilesystemSpecsIsMutable();
filesystemSpecs_.add(builderForValue.build());
onChanged();
} else {
filesystemSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder addFilesystemSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder builderForValue) {
if (filesystemSpecsBuilder_ == null) {
ensureFilesystemSpecsIsMutable();
filesystemSpecs_.add(index, builderForValue.build());
onChanged();
} else {
filesystemSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder addAllFilesystemSpecs(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec> values) {
if (filesystemSpecsBuilder_ == null) {
ensureFilesystemSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filesystemSpecs_);
onChanged();
} else {
filesystemSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder clearFilesystemSpecs() {
if (filesystemSpecsBuilder_ == null) {
filesystemSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
filesystemSpecsBuilder_.clear();
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public Builder removeFilesystemSpecs(int index) {
if (filesystemSpecsBuilder_ == null) {
ensureFilesystemSpecsIsMutable();
filesystemSpecs_.remove(index);
onChanged();
} else {
filesystemSpecsBuilder_.remove(index);
}
return this;
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder getFilesystemSpecsBuilder(
int index) {
return getFilesystemSpecsFieldBuilder().getBuilder(index);
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder getFilesystemSpecsOrBuilder(
int index) {
if (filesystemSpecsBuilder_ == null) {
return filesystemSpecs_.get(index); } else {
return filesystemSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder>
getFilesystemSpecsOrBuilderList() {
if (filesystemSpecsBuilder_ != null) {
return filesystemSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(filesystemSpecs_);
}
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder addFilesystemSpecsBuilder() {
return getFilesystemSpecsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.getDefaultInstance());
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder addFilesystemSpecsBuilder(
int index) {
return getFilesystemSpecsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.getDefaultInstance());
}
/**
*
* Array of filesystems to attach to the instance.
* The filesystems must reside in the same availability zone as the instance.
* To use the instance with an attached filesystem, the latter must be mounted.
* For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystemSpec filesystem_specs = 17;
*/
public java.util.List
getFilesystemSpecsBuilderList() {
return getFilesystemSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder>
getFilesystemSpecsFieldBuilder() {
if (filesystemSpecsBuilder_ == null) {
filesystemSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder>(
filesystemSpecs_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
filesystemSpecs_ = null;
}
return filesystemSpecsBuilder_;
}
private java.util.List networkInterfaceSpecs_ =
java.util.Collections.emptyList();
private void ensureNetworkInterfaceSpecsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
networkInterfaceSpecs_ = new java.util.ArrayList(networkInterfaceSpecs_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder> networkInterfaceSpecsBuilder_;
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public java.util.List getNetworkInterfaceSpecsList() {
if (networkInterfaceSpecsBuilder_ == null) {
return java.util.Collections.unmodifiableList(networkInterfaceSpecs_);
} else {
return networkInterfaceSpecsBuilder_.getMessageList();
}
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public int getNetworkInterfaceSpecsCount() {
if (networkInterfaceSpecsBuilder_ == null) {
return networkInterfaceSpecs_.size();
} else {
return networkInterfaceSpecsBuilder_.getCount();
}
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec getNetworkInterfaceSpecs(int index) {
if (networkInterfaceSpecsBuilder_ == null) {
return networkInterfaceSpecs_.get(index);
} else {
return networkInterfaceSpecsBuilder_.getMessage(index);
}
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder setNetworkInterfaceSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec value) {
if (networkInterfaceSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNetworkInterfaceSpecsIsMutable();
networkInterfaceSpecs_.set(index, value);
onChanged();
} else {
networkInterfaceSpecsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder setNetworkInterfaceSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder builderForValue) {
if (networkInterfaceSpecsBuilder_ == null) {
ensureNetworkInterfaceSpecsIsMutable();
networkInterfaceSpecs_.set(index, builderForValue.build());
onChanged();
} else {
networkInterfaceSpecsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder addNetworkInterfaceSpecs(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec value) {
if (networkInterfaceSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNetworkInterfaceSpecsIsMutable();
networkInterfaceSpecs_.add(value);
onChanged();
} else {
networkInterfaceSpecsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder addNetworkInterfaceSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec value) {
if (networkInterfaceSpecsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNetworkInterfaceSpecsIsMutable();
networkInterfaceSpecs_.add(index, value);
onChanged();
} else {
networkInterfaceSpecsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder addNetworkInterfaceSpecs(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder builderForValue) {
if (networkInterfaceSpecsBuilder_ == null) {
ensureNetworkInterfaceSpecsIsMutable();
networkInterfaceSpecs_.add(builderForValue.build());
onChanged();
} else {
networkInterfaceSpecsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder addNetworkInterfaceSpecs(
int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder builderForValue) {
if (networkInterfaceSpecsBuilder_ == null) {
ensureNetworkInterfaceSpecsIsMutable();
networkInterfaceSpecs_.add(index, builderForValue.build());
onChanged();
} else {
networkInterfaceSpecsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder addAllNetworkInterfaceSpecs(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec> values) {
if (networkInterfaceSpecsBuilder_ == null) {
ensureNetworkInterfaceSpecsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, networkInterfaceSpecs_);
onChanged();
} else {
networkInterfaceSpecsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder clearNetworkInterfaceSpecs() {
if (networkInterfaceSpecsBuilder_ == null) {
networkInterfaceSpecs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
networkInterfaceSpecsBuilder_.clear();
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public Builder removeNetworkInterfaceSpecs(int index) {
if (networkInterfaceSpecsBuilder_ == null) {
ensureNetworkInterfaceSpecsIsMutable();
networkInterfaceSpecs_.remove(index);
onChanged();
} else {
networkInterfaceSpecsBuilder_.remove(index);
}
return this;
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder getNetworkInterfaceSpecsBuilder(
int index) {
return getNetworkInterfaceSpecsFieldBuilder().getBuilder(index);
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder getNetworkInterfaceSpecsOrBuilder(
int index) {
if (networkInterfaceSpecsBuilder_ == null) {
return networkInterfaceSpecs_.get(index); } else {
return networkInterfaceSpecsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder>
getNetworkInterfaceSpecsOrBuilderList() {
if (networkInterfaceSpecsBuilder_ != null) {
return networkInterfaceSpecsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(networkInterfaceSpecs_);
}
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder addNetworkInterfaceSpecsBuilder() {
return getNetworkInterfaceSpecsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.getDefaultInstance());
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder addNetworkInterfaceSpecsBuilder(
int index) {
return getNetworkInterfaceSpecsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.getDefaultInstance());
}
/**
*
* Network configuration for the instance. Specifies how the network interface is configured
* to interact with other services on the internal network and on the internet.
* Currently only one network interface is supported per instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(.yandex.cloud.size) = "1"];
*/
public java.util.List
getNetworkInterfaceSpecsBuilderList() {
return getNetworkInterfaceSpecsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder>
getNetworkInterfaceSpecsFieldBuilder() {
if (networkInterfaceSpecsBuilder_ == null) {
networkInterfaceSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder>(
networkInterfaceSpecs_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
networkInterfaceSpecs_ = null;
}
return networkInterfaceSpecsBuilder_;
}
private java.lang.Object hostname_ = "";
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The hostname.
*/
public java.lang.String getHostname() {
java.lang.Object ref = hostname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for hostname.
*/
public com.google.protobuf.ByteString
getHostnameBytes() {
java.lang.Object ref = hostname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The hostname to set.
* @return This builder for chaining.
*/
public Builder setHostname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostname_ = value;
onChanged();
return this;
}
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearHostname() {
hostname_ = getDefaultInstance().getHostname();
onChanged();
return this;
}
/**
*
* Host name for the instance.
* This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
* The host name must be unique within the network and region.
* If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
* and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
*
*
* string hostname = 12 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The bytes for hostname to set.
* @return This builder for chaining.
*/
public Builder setHostnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostname_ = value;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy schedulingPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder> schedulingPolicyBuilder_;
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
* @return Whether the schedulingPolicy field is set.
*/
public boolean hasSchedulingPolicy() {
return schedulingPolicyBuilder_ != null || schedulingPolicy_ != null;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
* @return The schedulingPolicy.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy() {
if (schedulingPolicyBuilder_ == null) {
return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
} else {
return schedulingPolicyBuilder_.getMessage();
}
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
public Builder setSchedulingPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy value) {
if (schedulingPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulingPolicy_ = value;
onChanged();
} else {
schedulingPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
public Builder setSchedulingPolicy(
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder builderForValue) {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = builderForValue.build();
onChanged();
} else {
schedulingPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
public Builder mergeSchedulingPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy value) {
if (schedulingPolicyBuilder_ == null) {
if (schedulingPolicy_ != null) {
schedulingPolicy_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.newBuilder(schedulingPolicy_).mergeFrom(value).buildPartial();
} else {
schedulingPolicy_ = value;
}
onChanged();
} else {
schedulingPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
public Builder clearSchedulingPolicy() {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = null;
onChanged();
} else {
schedulingPolicy_ = null;
schedulingPolicyBuilder_ = null;
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder getSchedulingPolicyBuilder() {
onChanged();
return getSchedulingPolicyFieldBuilder().getBuilder();
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder() {
if (schedulingPolicyBuilder_ != null) {
return schedulingPolicyBuilder_.getMessageOrBuilder();
} else {
return schedulingPolicy_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
}
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder>
getSchedulingPolicyFieldBuilder() {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder>(
getSchedulingPolicy(),
getParentForChildren(),
isClean());
schedulingPolicy_ = null;
}
return schedulingPolicyBuilder_;
}
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 14;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings networkSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder> networkSettingsBuilder_;
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
* @return Whether the networkSettings field is set.
*/
public boolean hasNetworkSettings() {
return networkSettingsBuilder_ != null || networkSettings_ != null;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
* @return The networkSettings.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings() {
if (networkSettingsBuilder_ == null) {
return networkSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
} else {
return networkSettingsBuilder_.getMessage();
}
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
public Builder setNetworkSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings value) {
if (networkSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkSettings_ = value;
onChanged();
} else {
networkSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
public Builder setNetworkSettings(
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder builderForValue) {
if (networkSettingsBuilder_ == null) {
networkSettings_ = builderForValue.build();
onChanged();
} else {
networkSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
public Builder mergeNetworkSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings value) {
if (networkSettingsBuilder_ == null) {
if (networkSettings_ != null) {
networkSettings_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.newBuilder(networkSettings_).mergeFrom(value).buildPartial();
} else {
networkSettings_ = value;
}
onChanged();
} else {
networkSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
public Builder clearNetworkSettings() {
if (networkSettingsBuilder_ == null) {
networkSettings_ = null;
onChanged();
} else {
networkSettings_ = null;
networkSettingsBuilder_ = null;
}
return this;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder getNetworkSettingsBuilder() {
onChanged();
return getNetworkSettingsFieldBuilder().getBuilder();
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() {
if (networkSettingsBuilder_ != null) {
return networkSettingsBuilder_.getMessageOrBuilder();
} else {
return networkSettings_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
}
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder>
getNetworkSettingsFieldBuilder() {
if (networkSettingsBuilder_ == null) {
networkSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder>(
getNetworkSettings(),
getParentForChildren(),
isClean());
networkSettings_ = null;
}
return networkSettingsBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings gpuSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder> gpuSettingsBuilder_;
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
* @return Whether the gpuSettings field is set.
*/
public boolean hasGpuSettings() {
return gpuSettingsBuilder_ != null || gpuSettings_ != null;
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
* @return The gpuSettings.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings getGpuSettings() {
if (gpuSettingsBuilder_ == null) {
return gpuSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.getDefaultInstance() : gpuSettings_;
} else {
return gpuSettingsBuilder_.getMessage();
}
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
public Builder setGpuSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings value) {
if (gpuSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gpuSettings_ = value;
onChanged();
} else {
gpuSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
public Builder setGpuSettings(
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder builderForValue) {
if (gpuSettingsBuilder_ == null) {
gpuSettings_ = builderForValue.build();
onChanged();
} else {
gpuSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
public Builder mergeGpuSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings value) {
if (gpuSettingsBuilder_ == null) {
if (gpuSettings_ != null) {
gpuSettings_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.newBuilder(gpuSettings_).mergeFrom(value).buildPartial();
} else {
gpuSettings_ = value;
}
onChanged();
} else {
gpuSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
public Builder clearGpuSettings() {
if (gpuSettingsBuilder_ == null) {
gpuSettings_ = null;
onChanged();
} else {
gpuSettings_ = null;
gpuSettingsBuilder_ = null;
}
return this;
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder getGpuSettingsBuilder() {
onChanged();
return getGpuSettingsFieldBuilder().getBuilder();
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder getGpuSettingsOrBuilder() {
if (gpuSettingsBuilder_ != null) {
return gpuSettingsBuilder_.getMessageOrBuilder();
} else {
return gpuSettings_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.getDefaultInstance() : gpuSettings_;
}
}
/**
*
* GPU settings.
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder>
getGpuSettingsFieldBuilder() {
if (gpuSettingsBuilder_ == null) {
gpuSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder>(
getGpuSettings(),
getParentForChildren(),
isClean());
gpuSettings_ = null;
}
return gpuSettingsBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy placementPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder> placementPolicyBuilder_;
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
* @return Whether the placementPolicy field is set.
*/
public boolean hasPlacementPolicy() {
return placementPolicyBuilder_ != null || placementPolicy_ != null;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
* @return The placementPolicy.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy() {
if (placementPolicyBuilder_ == null) {
return placementPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
} else {
return placementPolicyBuilder_.getMessage();
}
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
public Builder setPlacementPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy value) {
if (placementPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
placementPolicy_ = value;
onChanged();
} else {
placementPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
public Builder setPlacementPolicy(
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder builderForValue) {
if (placementPolicyBuilder_ == null) {
placementPolicy_ = builderForValue.build();
onChanged();
} else {
placementPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
public Builder mergePlacementPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy value) {
if (placementPolicyBuilder_ == null) {
if (placementPolicy_ != null) {
placementPolicy_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.newBuilder(placementPolicy_).mergeFrom(value).buildPartial();
} else {
placementPolicy_ = value;
}
onChanged();
} else {
placementPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
public Builder clearPlacementPolicy() {
if (placementPolicyBuilder_ == null) {
placementPolicy_ = null;
onChanged();
} else {
placementPolicy_ = null;
placementPolicyBuilder_ = null;
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder getPlacementPolicyBuilder() {
onChanged();
return getPlacementPolicyFieldBuilder().getBuilder();
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() {
if (placementPolicyBuilder_ != null) {
return placementPolicyBuilder_.getMessageOrBuilder();
} else {
return placementPolicy_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
}
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder>
getPlacementPolicyFieldBuilder() {
if (placementPolicyBuilder_ == null) {
placementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder>(
getPlacementPolicy(),
getParentForChildren(),
isClean());
placementPolicy_ = null;
}
return placementPolicyBuilder_;
}
@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.CreateInstanceRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateInstanceRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateInstanceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateInstanceRequest(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.InstanceServiceOuterClass.CreateInstanceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateInstanceMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CreateInstanceMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.CreateInstanceMetadata}
*/
public static final class CreateInstanceMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CreateInstanceMetadata)
CreateInstanceMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateInstanceMetadata.newBuilder() to construct.
private CreateInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateInstanceMetadata() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateInstanceMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateInstanceMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.CreateInstanceMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata 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.InstanceServiceOuterClass.CreateInstanceMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata 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.InstanceServiceOuterClass.CreateInstanceMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata 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.InstanceServiceOuterClass.CreateInstanceMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata 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.InstanceServiceOuterClass.CreateInstanceMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata 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.InstanceServiceOuterClass.CreateInstanceMetadata 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.InstanceServiceOuterClass.CreateInstanceMetadata 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.InstanceServiceOuterClass.CreateInstanceMetadata 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.CreateInstanceMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CreateInstanceMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.CreateInstanceMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.CreateInstanceMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance that is being created.
*
*
* string instance_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.CreateInstanceMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateInstanceMetadata)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CreateInstanceMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateInstanceMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateInstanceMetadata(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.InstanceServiceOuterClass.CreateInstanceMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateInstanceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateInstanceRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
*
* Field mask that specifies which fields of the Instance 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 Instance 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 Instance resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* Name of the instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the instance.
*
*
* 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);
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @return The platformId.
*/
java.lang.String getPlatformId();
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @return The bytes for platformId.
*/
com.google.protobuf.ByteString
getPlatformIdBytes();
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
* @return Whether the resourcesSpec field is set.
*/
boolean hasResourcesSpec();
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
* @return The resourcesSpec.
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec getResourcesSpec();
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder();
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
int getMetadataCount();
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
* @return Whether the metadataOptions field is set.
*/
boolean hasMetadataOptions();
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
* @return The metadataOptions.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions();
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder();
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
* @return Whether the networkSettings field is set.
*/
boolean hasNetworkSettings();
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
* @return The networkSettings.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings();
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
* @return Whether the placementPolicy field is set.
*/
boolean hasPlacementPolicy();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
* @return The placementPolicy.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
* @return Whether the schedulingPolicy field is set.
*/
boolean hasSchedulingPolicy();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
* @return The schedulingPolicy.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.UpdateInstanceRequest}
*/
public static final class UpdateInstanceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateInstanceRequest)
UpdateInstanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateInstanceRequest.newBuilder() to construct.
private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateInstanceRequest() {
instanceId_ = "";
name_ = "";
description_ = "";
platformId_ = "";
serviceAccountId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateInstanceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateInstanceRequest(
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();
instanceId_ = s;
break;
}
case 18: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
platformId_ = s;
break;
}
case 58: {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder subBuilder = null;
if (resourcesSpec_ != null) {
subBuilder = resourcesSpec_.toBuilder();
}
resourcesSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resourcesSpec_);
resourcesSpec_ = subBuilder.buildPartial();
}
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
metadata__ = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(
metadata__.getKey(), metadata__.getValue());
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = s;
break;
}
case 82: {
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder subBuilder = null;
if (networkSettings_ != null) {
subBuilder = networkSettings_.toBuilder();
}
networkSettings_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(networkSettings_);
networkSettings_ = subBuilder.buildPartial();
}
break;
}
case 90: {
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder subBuilder = null;
if (placementPolicy_ != null) {
subBuilder = placementPolicy_.toBuilder();
}
placementPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(placementPolicy_);
placementPolicy_ = subBuilder.buildPartial();
}
break;
}
case 98: {
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder subBuilder = null;
if (schedulingPolicy_ != null) {
subBuilder = schedulingPolicy_.toBuilder();
}
schedulingPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schedulingPolicy_);
schedulingPolicy_ = subBuilder.buildPartial();
}
break;
}
case 106: {
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder subBuilder = null;
if (metadataOptions_ != null) {
subBuilder = metadataOptions_.toBuilder();
}
metadataOptions_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadataOptions_);
metadataOptions_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
case 8:
return internalGetMetadata();
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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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 Instance 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 Instance 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 Instance 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_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);
}
public static final int PLATFORM_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object platformId_;
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @return The platformId.
*/
@java.lang.Override
public java.lang.String getPlatformId() {
java.lang.Object ref = platformId_;
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();
platformId_ = s;
return s;
}
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @return The bytes for platformId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlatformIdBytes() {
java.lang.Object ref = platformId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platformId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCES_SPEC_FIELD_NUMBER = 7;
private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec resourcesSpec_;
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
* @return Whether the resourcesSpec field is set.
*/
@java.lang.Override
public boolean hasResourcesSpec() {
return resourcesSpec_ != null;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
* @return The resourcesSpec.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec getResourcesSpec() {
return resourcesSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder() {
return getResourcesSpec();
}
public static final int METADATA_FIELD_NUMBER = 8;
private static final class MetadataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_MetadataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int METADATA_OPTIONS_FIELD_NUMBER = 13;
private yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions metadataOptions_;
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
* @return Whether the metadataOptions field is set.
*/
@java.lang.Override
public boolean hasMetadataOptions() {
return metadataOptions_ != null;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
* @return The metadataOptions.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions() {
return metadataOptions_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder() {
return getMetadataOptions();
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 9;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
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();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NETWORK_SETTINGS_FIELD_NUMBER = 10;
private yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings networkSettings_;
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
* @return Whether the networkSettings field is set.
*/
@java.lang.Override
public boolean hasNetworkSettings() {
return networkSettings_ != null;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
* @return The networkSettings.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings() {
return networkSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() {
return getNetworkSettings();
}
public static final int PLACEMENT_POLICY_FIELD_NUMBER = 11;
private yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy placementPolicy_;
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
* @return Whether the placementPolicy field is set.
*/
@java.lang.Override
public boolean hasPlacementPolicy() {
return placementPolicy_ != null;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
* @return The placementPolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy() {
return placementPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() {
return getPlacementPolicy();
}
public static final int SCHEDULING_POLICY_FIELD_NUMBER = 12;
private yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy schedulingPolicy_;
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
* @return Whether the schedulingPolicy field is set.
*/
@java.lang.Override
public boolean hasSchedulingPolicy() {
return schedulingPolicy_ != null;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
* @return The schedulingPolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy() {
return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder() {
return getSchedulingPolicy();
}
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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
if (updateMask_ != null) {
output.writeMessage(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
5);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, platformId_);
}
if (resourcesSpec_ != null) {
output.writeMessage(7, getResourcesSpec());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
8);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccountId_);
}
if (networkSettings_ != null) {
output.writeMessage(10, getNetworkSettings());
}
if (placementPolicy_ != null) {
output.writeMessage(11, getPlacementPolicy());
}
if (schedulingPolicy_ != null) {
output.writeMessage(12, getSchedulingPolicy());
}
if (metadataOptions_ != null) {
output.writeMessage(13, getMetadataOptions());
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, platformId_);
}
if (resourcesSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getResourcesSpec());
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, metadata__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccountId_);
}
if (networkSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getNetworkSettings());
}
if (placementPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getPlacementPolicy());
}
if (schedulingPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getSchedulingPolicy());
}
if (metadataOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getMetadataOptions());
}
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.InstanceServiceOuterClass.UpdateInstanceRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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 (!getPlatformId()
.equals(other.getPlatformId())) return false;
if (hasResourcesSpec() != other.hasResourcesSpec()) return false;
if (hasResourcesSpec()) {
if (!getResourcesSpec()
.equals(other.getResourcesSpec())) return false;
}
if (!internalGetMetadata().equals(
other.internalGetMetadata())) return false;
if (hasMetadataOptions() != other.hasMetadataOptions()) return false;
if (hasMetadataOptions()) {
if (!getMetadataOptions()
.equals(other.getMetadataOptions())) return false;
}
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (hasNetworkSettings() != other.hasNetworkSettings()) return false;
if (hasNetworkSettings()) {
if (!getNetworkSettings()
.equals(other.getNetworkSettings())) return false;
}
if (hasPlacementPolicy() != other.hasPlacementPolicy()) return false;
if (hasPlacementPolicy()) {
if (!getPlacementPolicy()
.equals(other.getPlacementPolicy())) return false;
}
if (hasSchedulingPolicy() != other.hasSchedulingPolicy()) return false;
if (hasSchedulingPolicy()) {
if (!getSchedulingPolicy()
.equals(other.getSchedulingPolicy())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().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 = (37 * hash) + PLATFORM_ID_FIELD_NUMBER;
hash = (53 * hash) + getPlatformId().hashCode();
if (hasResourcesSpec()) {
hash = (37 * hash) + RESOURCES_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getResourcesSpec().hashCode();
}
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
if (hasMetadataOptions()) {
hash = (37 * hash) + METADATA_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getMetadataOptions().hashCode();
}
hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
if (hasNetworkSettings()) {
hash = (37 * hash) + NETWORK_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getNetworkSettings().hashCode();
}
if (hasPlacementPolicy()) {
hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPlacementPolicy().hashCode();
}
if (hasSchedulingPolicy()) {
hash = (37 * hash) + SCHEDULING_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getSchedulingPolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest 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.InstanceServiceOuterClass.UpdateInstanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest 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.InstanceServiceOuterClass.UpdateInstanceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest 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.InstanceServiceOuterClass.UpdateInstanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest 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.InstanceServiceOuterClass.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest 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.InstanceServiceOuterClass.UpdateInstanceRequest 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.InstanceServiceOuterClass.UpdateInstanceRequest 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.InstanceServiceOuterClass.UpdateInstanceRequest 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.UpdateInstanceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateInstanceRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
case 8:
return internalGetMetadata();
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();
case 8:
return internalGetMutableMetadata();
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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest.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();
instanceId_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
platformId_ = "";
if (resourcesSpecBuilder_ == null) {
resourcesSpec_ = null;
} else {
resourcesSpec_ = null;
resourcesSpecBuilder_ = null;
}
internalGetMutableMetadata().clear();
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = null;
} else {
metadataOptions_ = null;
metadataOptionsBuilder_ = null;
}
serviceAccountId_ = "";
if (networkSettingsBuilder_ == null) {
networkSettings_ = null;
} else {
networkSettings_ = null;
networkSettingsBuilder_ = null;
}
if (placementPolicyBuilder_ == null) {
placementPolicy_ = null;
} else {
placementPolicy_ = null;
placementPolicyBuilder_ = null;
}
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = null;
} else {
schedulingPolicy_ = null;
schedulingPolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest(this);
int from_bitField0_ = bitField0_;
result.instanceId_ = instanceId_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.platformId_ = platformId_;
if (resourcesSpecBuilder_ == null) {
result.resourcesSpec_ = resourcesSpec_;
} else {
result.resourcesSpec_ = resourcesSpecBuilder_.build();
}
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
if (metadataOptionsBuilder_ == null) {
result.metadataOptions_ = metadataOptions_;
} else {
result.metadataOptions_ = metadataOptionsBuilder_.build();
}
result.serviceAccountId_ = serviceAccountId_;
if (networkSettingsBuilder_ == null) {
result.networkSettings_ = networkSettings_;
} else {
result.networkSettings_ = networkSettingsBuilder_.build();
}
if (placementPolicyBuilder_ == null) {
result.placementPolicy_ = placementPolicy_;
} else {
result.placementPolicy_ = placementPolicyBuilder_.build();
}
if (schedulingPolicyBuilder_ == null) {
result.schedulingPolicy_ = schedulingPolicy_;
} else {
result.schedulingPolicy_ = schedulingPolicyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (!other.getPlatformId().isEmpty()) {
platformId_ = other.platformId_;
onChanged();
}
if (other.hasResourcesSpec()) {
mergeResourcesSpec(other.getResourcesSpec());
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
if (other.hasMetadataOptions()) {
mergeMetadataOptions(other.getMetadataOptions());
}
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (other.hasNetworkSettings()) {
mergeNetworkSettings(other.getNetworkSettings());
}
if (other.hasPlacementPolicy()) {
mergePlacementPolicy(other.getPlacementPolicy());
}
if (other.hasSchedulingPolicy()) {
mergeSchedulingPolicy(other.getSchedulingPolicy());
}
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.InstanceServiceOuterClass.UpdateInstanceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instanceId_ = "";
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the Instance resource to update.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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 Instance 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 Instance 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 Instance 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 Instance 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 Instance 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 Instance 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 Instance 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 Instance 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 Instance 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* 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 instance.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the instance.
*
*
* 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;
}
private java.lang.Object platformId_ = "";
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @return The platformId.
*/
public java.lang.String getPlatformId() {
java.lang.Object ref = platformId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
platformId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @return The bytes for platformId.
*/
public com.google.protobuf.ByteString
getPlatformIdBytes() {
java.lang.Object ref = platformId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platformId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @param value The platformId to set.
* @return This builder for chaining.
*/
public Builder setPlatformId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
platformId_ = value;
onChanged();
return this;
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @return This builder for chaining.
*/
public Builder clearPlatformId() {
platformId_ = getDefaultInstance().getPlatformId();
onChanged();
return this;
}
/**
*
* ID of the hardware platform configuration for the instance.
* This field affects the available values in [resources_spec] field.
* Platforms allows you to create various types of instances: with a large amount of memory,
* with a large number of cores, with a burstable performance.
* For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
*
*
* string platform_id = 6;
* @param value The bytes for platformId to set.
* @return This builder for chaining.
*/
public Builder setPlatformIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
platformId_ = value;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec resourcesSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder> resourcesSpecBuilder_;
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
* @return Whether the resourcesSpec field is set.
*/
public boolean hasResourcesSpec() {
return resourcesSpecBuilder_ != null || resourcesSpec_ != null;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
* @return The resourcesSpec.
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec getResourcesSpec() {
if (resourcesSpecBuilder_ == null) {
return resourcesSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_;
} else {
return resourcesSpecBuilder_.getMessage();
}
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
public Builder setResourcesSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec value) {
if (resourcesSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourcesSpec_ = value;
onChanged();
} else {
resourcesSpecBuilder_.setMessage(value);
}
return this;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
public Builder setResourcesSpec(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder builderForValue) {
if (resourcesSpecBuilder_ == null) {
resourcesSpec_ = builderForValue.build();
onChanged();
} else {
resourcesSpecBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
public Builder mergeResourcesSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec value) {
if (resourcesSpecBuilder_ == null) {
if (resourcesSpec_ != null) {
resourcesSpec_ =
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.newBuilder(resourcesSpec_).mergeFrom(value).buildPartial();
} else {
resourcesSpec_ = value;
}
onChanged();
} else {
resourcesSpecBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
public Builder clearResourcesSpec() {
if (resourcesSpecBuilder_ == null) {
resourcesSpec_ = null;
onChanged();
} else {
resourcesSpec_ = null;
resourcesSpecBuilder_ = null;
}
return this;
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder getResourcesSpecBuilder() {
onChanged();
return getResourcesSpecFieldBuilder().getBuilder();
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder() {
if (resourcesSpecBuilder_ != null) {
return resourcesSpecBuilder_.getMessageOrBuilder();
} else {
return resourcesSpec_ == null ?
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_;
}
}
/**
*
* Computing resources of the instance, such as the amount of memory and number of cores.
* To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels).
*
*
* .yandex.cloud.compute.v1.ResourcesSpec resources_spec = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder>
getResourcesSpecFieldBuilder() {
if (resourcesSpecBuilder_ == null) {
resourcesSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder>(
getResourcesSpec(),
getParentForChildren(),
isClean());
resourcesSpec_ = null;
}
return resourcesSpecBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
private com.google.protobuf.MapField
internalGetMutableMetadata() {
onChanged();;
if (metadata_ == null) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
if (!metadata_.isMutable()) {
metadata_ = metadata_.copy();
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetadata() {
internalGetMutableMetadata().getMutableMap()
.clear();
return this;
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
public Builder removeMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableMetadata().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetadata() {
return internalGetMutableMetadata().getMutableMap();
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
public Builder putMetadata(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableMetadata().getMutableMap()
.put(key, value);
return this;
}
/**
*
* The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys.
* The total size of all keys and values must be less than 512 KB.
* Existing set of `metadata` is completely replaced by the provided set.
* Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance.
* The values must be 256 KB or less.
* For example, you may use the metadata in order to provide your public SSH key to the instance.
* For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
*
*
* map<string, string> metadata = 8;
*/
public Builder putAllMetadata(
java.util.Map values) {
internalGetMutableMetadata().getMutableMap()
.putAll(values);
return this;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions metadataOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder> metadataOptionsBuilder_;
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
* @return Whether the metadataOptions field is set.
*/
public boolean hasMetadataOptions() {
return metadataOptionsBuilder_ != null || metadataOptions_ != null;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
* @return The metadataOptions.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions() {
if (metadataOptionsBuilder_ == null) {
return metadataOptions_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
} else {
return metadataOptionsBuilder_.getMessage();
}
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
public Builder setMetadataOptions(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions value) {
if (metadataOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadataOptions_ = value;
onChanged();
} else {
metadataOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
public Builder setMetadataOptions(
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder builderForValue) {
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = builderForValue.build();
onChanged();
} else {
metadataOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
public Builder mergeMetadataOptions(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions value) {
if (metadataOptionsBuilder_ == null) {
if (metadataOptions_ != null) {
metadataOptions_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.newBuilder(metadataOptions_).mergeFrom(value).buildPartial();
} else {
metadataOptions_ = value;
}
onChanged();
} else {
metadataOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
public Builder clearMetadataOptions() {
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = null;
onChanged();
} else {
metadataOptions_ = null;
metadataOptionsBuilder_ = null;
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder getMetadataOptionsBuilder() {
onChanged();
return getMetadataOptionsFieldBuilder().getBuilder();
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder() {
if (metadataOptionsBuilder_ != null) {
return metadataOptionsBuilder_.getMessageOrBuilder();
} else {
return metadataOptions_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
}
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder>
getMetadataOptionsFieldBuilder() {
if (metadataOptionsBuilder_ == null) {
metadataOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder>(
getMetadataOptions(),
getParentForChildren(),
isClean());
metadataOptions_ = null;
}
return metadataOptionsBuilder_;
}
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 9;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings networkSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder> networkSettingsBuilder_;
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
* @return Whether the networkSettings field is set.
*/
public boolean hasNetworkSettings() {
return networkSettingsBuilder_ != null || networkSettings_ != null;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
* @return The networkSettings.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings() {
if (networkSettingsBuilder_ == null) {
return networkSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
} else {
return networkSettingsBuilder_.getMessage();
}
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
public Builder setNetworkSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings value) {
if (networkSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkSettings_ = value;
onChanged();
} else {
networkSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
public Builder setNetworkSettings(
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder builderForValue) {
if (networkSettingsBuilder_ == null) {
networkSettings_ = builderForValue.build();
onChanged();
} else {
networkSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
public Builder mergeNetworkSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings value) {
if (networkSettingsBuilder_ == null) {
if (networkSettings_ != null) {
networkSettings_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.newBuilder(networkSettings_).mergeFrom(value).buildPartial();
} else {
networkSettings_ = value;
}
onChanged();
} else {
networkSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
public Builder clearNetworkSettings() {
if (networkSettingsBuilder_ == null) {
networkSettings_ = null;
onChanged();
} else {
networkSettings_ = null;
networkSettingsBuilder_ = null;
}
return this;
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder getNetworkSettingsBuilder() {
onChanged();
return getNetworkSettingsFieldBuilder().getBuilder();
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() {
if (networkSettingsBuilder_ != null) {
return networkSettingsBuilder_.getMessageOrBuilder();
} else {
return networkSettings_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
}
}
/**
*
* Network settings.
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder>
getNetworkSettingsFieldBuilder() {
if (networkSettingsBuilder_ == null) {
networkSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder>(
getNetworkSettings(),
getParentForChildren(),
isClean());
networkSettings_ = null;
}
return networkSettingsBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy placementPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder> placementPolicyBuilder_;
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
* @return Whether the placementPolicy field is set.
*/
public boolean hasPlacementPolicy() {
return placementPolicyBuilder_ != null || placementPolicy_ != null;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
* @return The placementPolicy.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy() {
if (placementPolicyBuilder_ == null) {
return placementPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
} else {
return placementPolicyBuilder_.getMessage();
}
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
public Builder setPlacementPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy value) {
if (placementPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
placementPolicy_ = value;
onChanged();
} else {
placementPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
public Builder setPlacementPolicy(
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder builderForValue) {
if (placementPolicyBuilder_ == null) {
placementPolicy_ = builderForValue.build();
onChanged();
} else {
placementPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
public Builder mergePlacementPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy value) {
if (placementPolicyBuilder_ == null) {
if (placementPolicy_ != null) {
placementPolicy_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.newBuilder(placementPolicy_).mergeFrom(value).buildPartial();
} else {
placementPolicy_ = value;
}
onChanged();
} else {
placementPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
public Builder clearPlacementPolicy() {
if (placementPolicyBuilder_ == null) {
placementPolicy_ = null;
onChanged();
} else {
placementPolicy_ = null;
placementPolicyBuilder_ = null;
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder getPlacementPolicyBuilder() {
onChanged();
return getPlacementPolicyFieldBuilder().getBuilder();
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() {
if (placementPolicyBuilder_ != null) {
return placementPolicyBuilder_.getMessageOrBuilder();
} else {
return placementPolicy_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
}
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder>
getPlacementPolicyFieldBuilder() {
if (placementPolicyBuilder_ == null) {
placementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder>(
getPlacementPolicy(),
getParentForChildren(),
isClean());
placementPolicy_ = null;
}
return placementPolicyBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy schedulingPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder> schedulingPolicyBuilder_;
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
* @return Whether the schedulingPolicy field is set.
*/
public boolean hasSchedulingPolicy() {
return schedulingPolicyBuilder_ != null || schedulingPolicy_ != null;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
* @return The schedulingPolicy.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy() {
if (schedulingPolicyBuilder_ == null) {
return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
} else {
return schedulingPolicyBuilder_.getMessage();
}
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
public Builder setSchedulingPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy value) {
if (schedulingPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulingPolicy_ = value;
onChanged();
} else {
schedulingPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
public Builder setSchedulingPolicy(
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder builderForValue) {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = builderForValue.build();
onChanged();
} else {
schedulingPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
public Builder mergeSchedulingPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy value) {
if (schedulingPolicyBuilder_ == null) {
if (schedulingPolicy_ != null) {
schedulingPolicy_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.newBuilder(schedulingPolicy_).mergeFrom(value).buildPartial();
} else {
schedulingPolicy_ = value;
}
onChanged();
} else {
schedulingPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
public Builder clearSchedulingPolicy() {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = null;
onChanged();
} else {
schedulingPolicy_ = null;
schedulingPolicyBuilder_ = null;
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder getSchedulingPolicyBuilder() {
onChanged();
return getSchedulingPolicyFieldBuilder().getBuilder();
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder() {
if (schedulingPolicyBuilder_ != null) {
return schedulingPolicyBuilder_.getMessageOrBuilder();
} else {
return schedulingPolicy_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
}
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder>
getSchedulingPolicyFieldBuilder() {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder>(
getSchedulingPolicy(),
getParentForChildren(),
isClean());
schedulingPolicy_ = null;
}
return schedulingPolicyBuilder_;
}
@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.UpdateInstanceRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateInstanceRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateInstanceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateInstanceRequest(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.InstanceServiceOuterClass.UpdateInstanceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateInstanceMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateInstanceMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.UpdateInstanceMetadata}
*/
public static final class UpdateInstanceMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateInstanceMetadata)
UpdateInstanceMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateInstanceMetadata.newBuilder() to construct.
private UpdateInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateInstanceMetadata() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateInstanceMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateInstanceMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.UpdateInstanceMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadata 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.UpdateInstanceMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateInstanceMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.UpdateInstanceMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.UpdateInstanceMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the Instance resource that is being updated.
*
*
* string instance_id = 1;
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.UpdateInstanceMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateInstanceMetadata)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateInstanceMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateInstanceMetadata(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.InstanceServiceOuterClass.UpdateInstanceMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteInstanceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DeleteInstanceRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.DeleteInstanceRequest}
*/
public static final class DeleteInstanceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DeleteInstanceRequest)
DeleteInstanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteInstanceRequest.newBuilder() to construct.
private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteInstanceRequest() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteInstanceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteInstanceRequest(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.DeleteInstanceRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest 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.InstanceServiceOuterClass.DeleteInstanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest 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.InstanceServiceOuterClass.DeleteInstanceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest 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.InstanceServiceOuterClass.DeleteInstanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest 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.InstanceServiceOuterClass.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest 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.InstanceServiceOuterClass.DeleteInstanceRequest 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.InstanceServiceOuterClass.DeleteInstanceRequest 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.InstanceServiceOuterClass.DeleteInstanceRequest 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.DeleteInstanceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DeleteInstanceRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.DeleteInstanceRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.DeleteInstanceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance to delete.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.DeleteInstanceRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteInstanceRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteInstanceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteInstanceRequest(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.InstanceServiceOuterClass.DeleteInstanceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteInstanceMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DeleteInstanceMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.DeleteInstanceMetadata}
*/
public static final class DeleteInstanceMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DeleteInstanceMetadata)
DeleteInstanceMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteInstanceMetadata.newBuilder() to construct.
private DeleteInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteInstanceMetadata() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteInstanceMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteInstanceMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.DeleteInstanceMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata 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.InstanceServiceOuterClass.DeleteInstanceMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata 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.InstanceServiceOuterClass.DeleteInstanceMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata 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.InstanceServiceOuterClass.DeleteInstanceMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata 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.InstanceServiceOuterClass.DeleteInstanceMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata 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.InstanceServiceOuterClass.DeleteInstanceMetadata 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.InstanceServiceOuterClass.DeleteInstanceMetadata 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.InstanceServiceOuterClass.DeleteInstanceMetadata 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.DeleteInstanceMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DeleteInstanceMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.DeleteInstanceMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.DeleteInstanceMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.DeleteInstanceMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteInstanceMetadata)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DeleteInstanceMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteInstanceMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteInstanceMetadata(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.InstanceServiceOuterClass.DeleteInstanceMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateInstanceMetadataRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateInstanceMetadataRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @return A list containing the delete.
*/
java.util.List
getDeleteList();
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @return The count of delete.
*/
int getDeleteCount();
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param index The index of the element to return.
* @return The delete at the given index.
*/
java.lang.String getDelete(int index);
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param index The index of the value to return.
* @return The bytes of the delete at the given index.
*/
com.google.protobuf.ByteString
getDeleteBytes(int index);
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
int getUpsertCount();
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
boolean containsUpsert(
java.lang.String key);
/**
* Use {@link #getUpsertMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getUpsert();
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
java.util.Map
getUpsertMap();
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
java.lang.String getUpsertOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
java.lang.String getUpsertOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.UpdateInstanceMetadataRequest}
*/
public static final class UpdateInstanceMetadataRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateInstanceMetadataRequest)
UpdateInstanceMetadataRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateInstanceMetadataRequest.newBuilder() to construct.
private UpdateInstanceMetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateInstanceMetadataRequest() {
instanceId_ = "";
delete_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateInstanceMetadataRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateInstanceMetadataRequest(
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();
instanceId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
delete_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
delete_.add(s);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
upsert_ = com.google.protobuf.MapField.newMapField(
UpsertDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
upsert__ = input.readMessage(
UpsertDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
upsert_.getMutableMap().put(
upsert__.getKey(), upsert__.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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
delete_ = delete_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetUpsert();
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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DELETE_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList delete_;
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @return A list containing the delete.
*/
public com.google.protobuf.ProtocolStringList
getDeleteList() {
return delete_;
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @return The count of delete.
*/
public int getDeleteCount() {
return delete_.size();
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param index The index of the element to return.
* @return The delete at the given index.
*/
public java.lang.String getDelete(int index) {
return delete_.get(index);
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param index The index of the value to return.
* @return The bytes of the delete at the given index.
*/
public com.google.protobuf.ByteString
getDeleteBytes(int index) {
return delete_.getByteString(index);
}
public static final int UPSERT_FIELD_NUMBER = 3;
private static final class UpsertDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_UpsertEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> upsert_;
private com.google.protobuf.MapField
internalGetUpsert() {
if (upsert_ == null) {
return com.google.protobuf.MapField.emptyMapField(
UpsertDefaultEntryHolder.defaultEntry);
}
return upsert_;
}
public int getUpsertCount() {
return internalGetUpsert().getMap().size();
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
@java.lang.Override
public boolean containsUpsert(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetUpsert().getMap().containsKey(key);
}
/**
* Use {@link #getUpsertMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getUpsert() {
return getUpsertMap();
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
@java.lang.Override
public java.util.Map getUpsertMap() {
return internalGetUpsert().getMap();
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
@java.lang.Override
public java.lang.String getUpsertOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetUpsert().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
@java.lang.Override
public java.lang.String getUpsertOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetUpsert().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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
for (int i = 0; i < delete_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, delete_.getRaw(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetUpsert(),
UpsertDefaultEntryHolder.defaultEntry,
3);
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
{
int dataSize = 0;
for (int i = 0; i < delete_.size(); i++) {
dataSize += computeStringSizeNoTag(delete_.getRaw(i));
}
size += dataSize;
size += 1 * getDeleteList().size();
}
for (java.util.Map.Entry entry
: internalGetUpsert().getMap().entrySet()) {
com.google.protobuf.MapEntry
upsert__ = UpsertDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, upsert__);
}
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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) return false;
if (!getDeleteList()
.equals(other.getDeleteList())) return false;
if (!internalGetUpsert().equals(
other.internalGetUpsert())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
if (getDeleteCount() > 0) {
hash = (37 * hash) + DELETE_FIELD_NUMBER;
hash = (53 * hash) + getDeleteList().hashCode();
}
if (!internalGetUpsert().getMap().isEmpty()) {
hash = (37 * hash) + UPSERT_FIELD_NUMBER;
hash = (53 * hash) + internalGetUpsert().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest 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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest 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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest 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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest 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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest 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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest 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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest 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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest 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.UpdateInstanceMetadataRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateInstanceMetadataRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetUpsert();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableUpsert();
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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest.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();
instanceId_ = "";
delete_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableUpsert().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest(this);
int from_bitField0_ = bitField0_;
result.instanceId_ = instanceId_;
if (((bitField0_ & 0x00000001) != 0)) {
delete_ = delete_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.delete_ = delete_;
result.upsert_ = internalGetUpsert();
result.upsert_.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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
onChanged();
}
if (!other.delete_.isEmpty()) {
if (delete_.isEmpty()) {
delete_ = other.delete_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeleteIsMutable();
delete_.addAll(other.delete_);
}
onChanged();
}
internalGetMutableUpsert().mergeFrom(
other.internalGetUpsert());
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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList delete_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDeleteIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
delete_ = new com.google.protobuf.LazyStringArrayList(delete_);
bitField0_ |= 0x00000001;
}
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @return A list containing the delete.
*/
public com.google.protobuf.ProtocolStringList
getDeleteList() {
return delete_.getUnmodifiableView();
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @return The count of delete.
*/
public int getDeleteCount() {
return delete_.size();
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param index The index of the element to return.
* @return The delete at the given index.
*/
public java.lang.String getDelete(int index) {
return delete_.get(index);
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param index The index of the value to return.
* @return The bytes of the delete at the given index.
*/
public com.google.protobuf.ByteString
getDeleteBytes(int index) {
return delete_.getByteString(index);
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param index The index to set the value at.
* @param value The delete to set.
* @return This builder for chaining.
*/
public Builder setDelete(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDeleteIsMutable();
delete_.set(index, value);
onChanged();
return this;
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param value The delete to add.
* @return This builder for chaining.
*/
public Builder addDelete(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDeleteIsMutable();
delete_.add(value);
onChanged();
return this;
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param values The delete to add.
* @return This builder for chaining.
*/
public Builder addAllDelete(
java.lang.Iterable values) {
ensureDeleteIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, delete_);
onChanged();
return this;
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @return This builder for chaining.
*/
public Builder clearDelete() {
delete_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* List of keys to be deleted.
*
*
* repeated string delete = 2;
* @param value The bytes of the delete to add.
* @return This builder for chaining.
*/
public Builder addDeleteBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDeleteIsMutable();
delete_.add(value);
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> upsert_;
private com.google.protobuf.MapField
internalGetUpsert() {
if (upsert_ == null) {
return com.google.protobuf.MapField.emptyMapField(
UpsertDefaultEntryHolder.defaultEntry);
}
return upsert_;
}
private com.google.protobuf.MapField
internalGetMutableUpsert() {
onChanged();;
if (upsert_ == null) {
upsert_ = com.google.protobuf.MapField.newMapField(
UpsertDefaultEntryHolder.defaultEntry);
}
if (!upsert_.isMutable()) {
upsert_ = upsert_.copy();
}
return upsert_;
}
public int getUpsertCount() {
return internalGetUpsert().getMap().size();
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
@java.lang.Override
public boolean containsUpsert(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetUpsert().getMap().containsKey(key);
}
/**
* Use {@link #getUpsertMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getUpsert() {
return getUpsertMap();
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
@java.lang.Override
public java.util.Map getUpsertMap() {
return internalGetUpsert().getMap();
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
@java.lang.Override
public java.lang.String getUpsertOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetUpsert().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
@java.lang.Override
public java.lang.String getUpsertOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetUpsert().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearUpsert() {
internalGetMutableUpsert().getMutableMap()
.clear();
return this;
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
public Builder removeUpsert(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableUpsert().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableUpsert() {
return internalGetMutableUpsert().getMutableMap();
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
public Builder putUpsert(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableUpsert().getMutableMap()
.put(key, value);
return this;
}
/**
*
* The metadata `key:value` pairs that will be added or updated to this instance.
*
*
* map<string, string> upsert = 3;
*/
public Builder putAllUpsert(
java.util.Map values) {
internalGetMutableUpsert().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.UpdateInstanceMetadataRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateInstanceMetadataRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateInstanceMetadataRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateInstanceMetadataRequest(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.InstanceServiceOuterClass.UpdateInstanceMetadataRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateInstanceMetadataMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateInstanceMetadataMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.UpdateInstanceMetadataMetadata}
*/
public static final class UpdateInstanceMetadataMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateInstanceMetadataMetadata)
UpdateInstanceMetadataMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateInstanceMetadataMetadata.newBuilder() to construct.
private UpdateInstanceMetadataMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateInstanceMetadataMetadata() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateInstanceMetadataMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateInstanceMetadataMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata 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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata 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.UpdateInstanceMetadataMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateInstanceMetadataMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance that is being updated.
*
*
* string instance_id = 1;
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.UpdateInstanceMetadataMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateInstanceMetadataMetadata)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateInstanceMetadataMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateInstanceMetadataMetadata(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.InstanceServiceOuterClass.UpdateInstanceMetadataMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetInstanceSerialPortOutputRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.GetInstanceSerialPortOutputRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
*
* Serial port to retrieve data from. The default is 1.
*
*
* int64 port = 2 [(.yandex.cloud.value) = "1,2,3,4"];
* @return The port.
*/
long getPort();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.GetInstanceSerialPortOutputRequest}
*/
public static final class GetInstanceSerialPortOutputRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.GetInstanceSerialPortOutputRequest)
GetInstanceSerialPortOutputRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetInstanceSerialPortOutputRequest.newBuilder() to construct.
private GetInstanceSerialPortOutputRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetInstanceSerialPortOutputRequest() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetInstanceSerialPortOutputRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetInstanceSerialPortOutputRequest(
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();
instanceId_ = s;
break;
}
case 16: {
port_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 2;
private long port_;
/**
*
* Serial port to retrieve data from. The default is 1.
*
*
* int64 port = 2 [(.yandex.cloud.value) = "1,2,3,4"];
* @return The port.
*/
@java.lang.Override
public long getPort() {
return port_;
}
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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
if (port_ != 0L) {
output.writeInt64(2, port_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
if (port_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, port_);
}
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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) return false;
if (getPort()
!= other.getPort()) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPort());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest 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.GetInstanceSerialPortOutputRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.GetInstanceSerialPortOutputRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest.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();
instanceId_ = "";
port_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest(this);
result.instanceId_ = instanceId_;
result.port_ = port_;
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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
onChanged();
}
if (other.getPort() != 0L) {
setPort(other.getPort());
}
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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance to return the serial port output for.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = value;
onChanged();
return this;
}
private long port_ ;
/**
*
* Serial port to retrieve data from. The default is 1.
*
*
* int64 port = 2 [(.yandex.cloud.value) = "1,2,3,4"];
* @return The port.
*/
@java.lang.Override
public long getPort() {
return port_;
}
/**
*
* Serial port to retrieve data from. The default is 1.
*
*
* int64 port = 2 [(.yandex.cloud.value) = "1,2,3,4"];
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(long value) {
port_ = value;
onChanged();
return this;
}
/**
*
* Serial port to retrieve data from. The default is 1.
*
*
* int64 port = 2 [(.yandex.cloud.value) = "1,2,3,4"];
* @return This builder for chaining.
*/
public Builder clearPort() {
port_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.GetInstanceSerialPortOutputRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GetInstanceSerialPortOutputRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetInstanceSerialPortOutputRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetInstanceSerialPortOutputRequest(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.InstanceServiceOuterClass.GetInstanceSerialPortOutputRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetInstanceSerialPortOutputResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.GetInstanceSerialPortOutputResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @return The contents.
*/
java.lang.String getContents();
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @return The bytes for contents.
*/
com.google.protobuf.ByteString
getContentsBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.GetInstanceSerialPortOutputResponse}
*/
public static final class GetInstanceSerialPortOutputResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.GetInstanceSerialPortOutputResponse)
GetInstanceSerialPortOutputResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetInstanceSerialPortOutputResponse.newBuilder() to construct.
private GetInstanceSerialPortOutputResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetInstanceSerialPortOutputResponse() {
contents_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetInstanceSerialPortOutputResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetInstanceSerialPortOutputResponse(
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();
contents_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse.Builder.class);
}
public static final int CONTENTS_FIELD_NUMBER = 1;
private volatile java.lang.Object contents_;
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @return The contents.
*/
@java.lang.Override
public java.lang.String getContents() {
java.lang.Object ref = contents_;
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();
contents_ = s;
return s;
}
}
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @return The bytes for contents.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContentsBytes() {
java.lang.Object ref = contents_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contents_ = 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(contents_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contents_);
}
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(contents_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contents_);
}
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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse) obj;
if (!getContents()
.equals(other.getContents())) 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) + CONTENTS_FIELD_NUMBER;
hash = (53 * hash) + getContents().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse 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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse 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.GetInstanceSerialPortOutputResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.GetInstanceSerialPortOutputResponse)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse.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();
contents_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse(this);
result.contents_ = contents_;
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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse.getDefaultInstance()) return this;
if (!other.getContents().isEmpty()) {
contents_ = other.contents_;
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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object contents_ = "";
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @return The contents.
*/
public java.lang.String getContents() {
java.lang.Object ref = contents_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contents_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @return The bytes for contents.
*/
public com.google.protobuf.ByteString
getContentsBytes() {
java.lang.Object ref = contents_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contents_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @param value The contents to set.
* @return This builder for chaining.
*/
public Builder setContents(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contents_ = value;
onChanged();
return this;
}
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @return This builder for chaining.
*/
public Builder clearContents() {
contents_ = getDefaultInstance().getContents();
onChanged();
return this;
}
/**
*
* The contents of the serial port output, starting from the time when the instance
* started to boot.
*
*
* string contents = 1;
* @param value The bytes for contents to set.
* @return This builder for chaining.
*/
public Builder setContentsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contents_ = 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.GetInstanceSerialPortOutputResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GetInstanceSerialPortOutputResponse)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetInstanceSerialPortOutputResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetInstanceSerialPortOutputResponse(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.InstanceServiceOuterClass.GetInstanceSerialPortOutputResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StopInstanceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.StopInstanceRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.StopInstanceRequest}
*/
public static final class StopInstanceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.StopInstanceRequest)
StopInstanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StopInstanceRequest.newBuilder() to construct.
private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StopInstanceRequest() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StopInstanceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StopInstanceRequest(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.StopInstanceRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest 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.InstanceServiceOuterClass.StopInstanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest 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.InstanceServiceOuterClass.StopInstanceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest 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.InstanceServiceOuterClass.StopInstanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest 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.InstanceServiceOuterClass.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest 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.InstanceServiceOuterClass.StopInstanceRequest 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.InstanceServiceOuterClass.StopInstanceRequest 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.InstanceServiceOuterClass.StopInstanceRequest 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.StopInstanceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.StopInstanceRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.StopInstanceRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.StopInstanceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance to stop.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.StopInstanceRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.StopInstanceRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StopInstanceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StopInstanceRequest(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.InstanceServiceOuterClass.StopInstanceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StopInstanceMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.StopInstanceMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.StopInstanceMetadata}
*/
public static final class StopInstanceMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.StopInstanceMetadata)
StopInstanceMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use StopInstanceMetadata.newBuilder() to construct.
private StopInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StopInstanceMetadata() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StopInstanceMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StopInstanceMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.StopInstanceMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata 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.InstanceServiceOuterClass.StopInstanceMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata 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.InstanceServiceOuterClass.StopInstanceMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata 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.InstanceServiceOuterClass.StopInstanceMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata 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.InstanceServiceOuterClass.StopInstanceMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata 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.InstanceServiceOuterClass.StopInstanceMetadata 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.InstanceServiceOuterClass.StopInstanceMetadata 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.InstanceServiceOuterClass.StopInstanceMetadata 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.StopInstanceMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.StopInstanceMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.StopInstanceMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.StopInstanceMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance that is being deleted.
*
*
* string instance_id = 1;
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.StopInstanceMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.StopInstanceMetadata)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StopInstanceMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StopInstanceMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StopInstanceMetadata(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.InstanceServiceOuterClass.StopInstanceMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StartInstanceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.StartInstanceRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.StartInstanceRequest}
*/
public static final class StartInstanceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.StartInstanceRequest)
StartInstanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartInstanceRequest.newBuilder() to construct.
private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StartInstanceRequest() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StartInstanceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartInstanceRequest(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.StartInstanceRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest 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.InstanceServiceOuterClass.StartInstanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest 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.InstanceServiceOuterClass.StartInstanceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest 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.InstanceServiceOuterClass.StartInstanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest 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.InstanceServiceOuterClass.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest 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.InstanceServiceOuterClass.StartInstanceRequest 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.InstanceServiceOuterClass.StartInstanceRequest 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.InstanceServiceOuterClass.StartInstanceRequest 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.StartInstanceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.StartInstanceRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.StartInstanceRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.StartInstanceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance to start.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.StartInstanceRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.StartInstanceRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartInstanceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartInstanceRequest(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.InstanceServiceOuterClass.StartInstanceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StartInstanceMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.StartInstanceMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.StartInstanceMetadata}
*/
public static final class StartInstanceMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.StartInstanceMetadata)
StartInstanceMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartInstanceMetadata.newBuilder() to construct.
private StartInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StartInstanceMetadata() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StartInstanceMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartInstanceMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.StartInstanceMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata 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.InstanceServiceOuterClass.StartInstanceMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata 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.InstanceServiceOuterClass.StartInstanceMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata 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.InstanceServiceOuterClass.StartInstanceMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata 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.InstanceServiceOuterClass.StartInstanceMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata 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.InstanceServiceOuterClass.StartInstanceMetadata 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.InstanceServiceOuterClass.StartInstanceMetadata 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.InstanceServiceOuterClass.StartInstanceMetadata 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.StartInstanceMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.StartInstanceMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.StartInstanceMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.StartInstanceMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.StartInstanceMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.StartInstanceMetadata)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.StartInstanceMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartInstanceMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartInstanceMetadata(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.InstanceServiceOuterClass.StartInstanceMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RestartInstanceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.RestartInstanceRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.RestartInstanceRequest}
*/
public static final class RestartInstanceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.RestartInstanceRequest)
RestartInstanceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RestartInstanceRequest.newBuilder() to construct.
private RestartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RestartInstanceRequest() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RestartInstanceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RestartInstanceRequest(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.RestartInstanceRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest 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.InstanceServiceOuterClass.RestartInstanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest 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.InstanceServiceOuterClass.RestartInstanceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest 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.InstanceServiceOuterClass.RestartInstanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest 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.InstanceServiceOuterClass.RestartInstanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest 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.InstanceServiceOuterClass.RestartInstanceRequest 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.InstanceServiceOuterClass.RestartInstanceRequest 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.InstanceServiceOuterClass.RestartInstanceRequest 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.RestartInstanceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.RestartInstanceRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.RestartInstanceRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.RestartInstanceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance to restart.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.RestartInstanceRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.RestartInstanceRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RestartInstanceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RestartInstanceRequest(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.InstanceServiceOuterClass.RestartInstanceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RestartInstanceMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.RestartInstanceMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.RestartInstanceMetadata}
*/
public static final class RestartInstanceMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.RestartInstanceMetadata)
RestartInstanceMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use RestartInstanceMetadata.newBuilder() to construct.
private RestartInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RestartInstanceMetadata() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RestartInstanceMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RestartInstanceMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.RestartInstanceMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata 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.InstanceServiceOuterClass.RestartInstanceMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata 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.InstanceServiceOuterClass.RestartInstanceMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata 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.InstanceServiceOuterClass.RestartInstanceMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata 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.InstanceServiceOuterClass.RestartInstanceMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata 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.InstanceServiceOuterClass.RestartInstanceMetadata 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.InstanceServiceOuterClass.RestartInstanceMetadata 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.InstanceServiceOuterClass.RestartInstanceMetadata 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.RestartInstanceMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.RestartInstanceMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata.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();
instanceId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.RestartInstanceMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.RestartInstanceMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = 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.RestartInstanceMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.RestartInstanceMetadata)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RestartInstanceMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RestartInstanceMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RestartInstanceMetadata(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.InstanceServiceOuterClass.RestartInstanceMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttachInstanceDiskRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachInstanceDiskRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
* @return Whether the attachedDiskSpec field is set.
*/
boolean hasAttachedDiskSpec();
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
* @return The attachedDiskSpec.
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getAttachedDiskSpec();
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getAttachedDiskSpecOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.AttachInstanceDiskRequest}
*/
public static final class AttachInstanceDiskRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachInstanceDiskRequest)
AttachInstanceDiskRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttachInstanceDiskRequest.newBuilder() to construct.
private AttachInstanceDiskRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttachInstanceDiskRequest() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttachInstanceDiskRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttachInstanceDiskRequest(
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();
instanceId_ = s;
break;
}
case 18: {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder subBuilder = null;
if (attachedDiskSpec_ != null) {
subBuilder = attachedDiskSpec_.toBuilder();
}
attachedDiskSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(attachedDiskSpec_);
attachedDiskSpec_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTACHED_DISK_SPEC_FIELD_NUMBER = 2;
private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec attachedDiskSpec_;
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
* @return Whether the attachedDiskSpec field is set.
*/
@java.lang.Override
public boolean hasAttachedDiskSpec() {
return attachedDiskSpec_ != null;
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
* @return The attachedDiskSpec.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getAttachedDiskSpec() {
return attachedDiskSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance() : attachedDiskSpec_;
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getAttachedDiskSpecOrBuilder() {
return getAttachedDiskSpec();
}
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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
if (attachedDiskSpec_ != null) {
output.writeMessage(2, getAttachedDiskSpec());
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
if (attachedDiskSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAttachedDiskSpec());
}
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.InstanceServiceOuterClass.AttachInstanceDiskRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) return false;
if (hasAttachedDiskSpec() != other.hasAttachedDiskSpec()) return false;
if (hasAttachedDiskSpec()) {
if (!getAttachedDiskSpec()
.equals(other.getAttachedDiskSpec())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
if (hasAttachedDiskSpec()) {
hash = (37 * hash) + ATTACHED_DISK_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getAttachedDiskSpec().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest 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.InstanceServiceOuterClass.AttachInstanceDiskRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest 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.InstanceServiceOuterClass.AttachInstanceDiskRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest 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.InstanceServiceOuterClass.AttachInstanceDiskRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest 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.InstanceServiceOuterClass.AttachInstanceDiskRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest 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.InstanceServiceOuterClass.AttachInstanceDiskRequest 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.InstanceServiceOuterClass.AttachInstanceDiskRequest 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.InstanceServiceOuterClass.AttachInstanceDiskRequest 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.AttachInstanceDiskRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachInstanceDiskRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest.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();
instanceId_ = "";
if (attachedDiskSpecBuilder_ == null) {
attachedDiskSpec_ = null;
} else {
attachedDiskSpec_ = null;
attachedDiskSpecBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest(this);
result.instanceId_ = instanceId_;
if (attachedDiskSpecBuilder_ == null) {
result.attachedDiskSpec_ = attachedDiskSpec_;
} else {
result.attachedDiskSpec_ = attachedDiskSpecBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
onChanged();
}
if (other.hasAttachedDiskSpec()) {
mergeAttachedDiskSpec(other.getAttachedDiskSpec());
}
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.InstanceServiceOuterClass.AttachInstanceDiskRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance to attach the disk to.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = value;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec attachedDiskSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder> attachedDiskSpecBuilder_;
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
* @return Whether the attachedDiskSpec field is set.
*/
public boolean hasAttachedDiskSpec() {
return attachedDiskSpecBuilder_ != null || attachedDiskSpec_ != null;
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
* @return The attachedDiskSpec.
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getAttachedDiskSpec() {
if (attachedDiskSpecBuilder_ == null) {
return attachedDiskSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance() : attachedDiskSpec_;
} else {
return attachedDiskSpecBuilder_.getMessage();
}
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
public Builder setAttachedDiskSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec value) {
if (attachedDiskSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
attachedDiskSpec_ = value;
onChanged();
} else {
attachedDiskSpecBuilder_.setMessage(value);
}
return this;
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
public Builder setAttachedDiskSpec(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder builderForValue) {
if (attachedDiskSpecBuilder_ == null) {
attachedDiskSpec_ = builderForValue.build();
onChanged();
} else {
attachedDiskSpecBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
public Builder mergeAttachedDiskSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec value) {
if (attachedDiskSpecBuilder_ == null) {
if (attachedDiskSpec_ != null) {
attachedDiskSpec_ =
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.newBuilder(attachedDiskSpec_).mergeFrom(value).buildPartial();
} else {
attachedDiskSpec_ = value;
}
onChanged();
} else {
attachedDiskSpecBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
public Builder clearAttachedDiskSpec() {
if (attachedDiskSpecBuilder_ == null) {
attachedDiskSpec_ = null;
onChanged();
} else {
attachedDiskSpec_ = null;
attachedDiskSpecBuilder_ = null;
}
return this;
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder getAttachedDiskSpecBuilder() {
onChanged();
return getAttachedDiskSpecFieldBuilder().getBuilder();
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder getAttachedDiskSpecOrBuilder() {
if (attachedDiskSpecBuilder_ != null) {
return attachedDiskSpecBuilder_.getMessageOrBuilder();
} else {
return attachedDiskSpec_ == null ?
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance() : attachedDiskSpec_;
}
}
/**
*
* Disk that should be attached.
*
*
* .yandex.cloud.compute.v1.AttachedDiskSpec attached_disk_spec = 2 [(.yandex.cloud.required) = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>
getAttachedDiskSpecFieldBuilder() {
if (attachedDiskSpecBuilder_ == null) {
attachedDiskSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder>(
getAttachedDiskSpec(),
getParentForChildren(),
isClean());
attachedDiskSpec_ = null;
}
return attachedDiskSpecBuilder_;
}
@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.AttachInstanceDiskRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachInstanceDiskRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttachInstanceDiskRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AttachInstanceDiskRequest(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.InstanceServiceOuterClass.AttachInstanceDiskRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttachInstanceDiskMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachInstanceDiskMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
*
* ID of the disk.
*
*
* string disk_id = 2;
* @return The diskId.
*/
java.lang.String getDiskId();
/**
*
* ID of the disk.
*
*
* string disk_id = 2;
* @return The bytes for diskId.
*/
com.google.protobuf.ByteString
getDiskIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.AttachInstanceDiskMetadata}
*/
public static final class AttachInstanceDiskMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachInstanceDiskMetadata)
AttachInstanceDiskMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttachInstanceDiskMetadata.newBuilder() to construct.
private AttachInstanceDiskMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttachInstanceDiskMetadata() {
instanceId_ = "";
diskId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttachInstanceDiskMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttachInstanceDiskMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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.
*
*
* 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 disk.
*
*
* 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.AttachInstanceDiskMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().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.InstanceServiceOuterClass.AttachInstanceDiskMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata 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.InstanceServiceOuterClass.AttachInstanceDiskMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata 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.InstanceServiceOuterClass.AttachInstanceDiskMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata 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.InstanceServiceOuterClass.AttachInstanceDiskMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata 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.InstanceServiceOuterClass.AttachInstanceDiskMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata 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.InstanceServiceOuterClass.AttachInstanceDiskMetadata 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.InstanceServiceOuterClass.AttachInstanceDiskMetadata 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.InstanceServiceOuterClass.AttachInstanceDiskMetadata 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.AttachInstanceDiskMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachInstanceDiskMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata.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();
instanceId_ = "";
diskId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.AttachInstanceDiskMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.AttachInstanceDiskMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = value;
onChanged();
return this;
}
private java.lang.Object diskId_ = "";
/**
*
* ID of the disk.
*
*
* 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 disk.
*
*
* 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 disk.
*
*
* 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 disk.
*
*
* string disk_id = 2;
* @return This builder for chaining.
*/
public Builder clearDiskId() {
diskId_ = getDefaultInstance().getDiskId();
onChanged();
return this;
}
/**
*
* ID of the disk.
*
*
* 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.AttachInstanceDiskMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachInstanceDiskMetadata)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceDiskMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttachInstanceDiskMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AttachInstanceDiskMetadata(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.InstanceServiceOuterClass.AttachInstanceDiskMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DetachInstanceDiskRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DetachInstanceDiskRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return Whether the diskId field is set.
*/
boolean hasDiskId();
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return The diskId.
*/
java.lang.String getDiskId();
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for diskId.
*/
com.google.protobuf.ByteString
getDiskIdBytes();
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return Whether the deviceName field is set.
*/
boolean hasDeviceName();
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return The deviceName.
*/
java.lang.String getDeviceName();
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return The bytes for deviceName.
*/
com.google.protobuf.ByteString
getDeviceNameBytes();
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest.DiskCase getDiskCase();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.DetachInstanceDiskRequest}
*/
public static final class DetachInstanceDiskRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DetachInstanceDiskRequest)
DetachInstanceDiskRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DetachInstanceDiskRequest.newBuilder() to construct.
private DetachInstanceDiskRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DetachInstanceDiskRequest() {
instanceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DetachInstanceDiskRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DetachInstanceDiskRequest(
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();
instanceId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
diskCase_ = 2;
disk_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
diskCase_ = 3;
disk_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest.Builder.class);
}
private int diskCase_ = 0;
private java.lang.Object disk_;
public enum DiskCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
DISK_ID(2),
DEVICE_NAME(3),
DISK_NOT_SET(0);
private final int value;
private DiskCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DiskCase valueOf(int value) {
return forNumber(value);
}
public static DiskCase forNumber(int value) {
switch (value) {
case 2: return DISK_ID;
case 3: return DEVICE_NAME;
case 0: return DISK_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DiskCase
getDiskCase() {
return DiskCase.forNumber(
diskCase_);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISK_ID_FIELD_NUMBER = 2;
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return Whether the diskId field is set.
*/
public boolean hasDiskId() {
return diskCase_ == 2;
}
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return The diskId.
*/
public java.lang.String getDiskId() {
java.lang.Object ref = "";
if (diskCase_ == 2) {
ref = disk_;
}
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();
if (diskCase_ == 2) {
disk_ = s;
}
return s;
}
}
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for diskId.
*/
public com.google.protobuf.ByteString
getDiskIdBytes() {
java.lang.Object ref = "";
if (diskCase_ == 2) {
ref = disk_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (diskCase_ == 2) {
disk_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICE_NAME_FIELD_NUMBER = 3;
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return Whether the deviceName field is set.
*/
public boolean hasDeviceName() {
return diskCase_ == 3;
}
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return The deviceName.
*/
public java.lang.String getDeviceName() {
java.lang.Object ref = "";
if (diskCase_ == 3) {
ref = disk_;
}
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();
if (diskCase_ == 3) {
disk_ = s;
}
return s;
}
}
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return The bytes for deviceName.
*/
public com.google.protobuf.ByteString
getDeviceNameBytes() {
java.lang.Object ref = "";
if (diskCase_ == 3) {
ref = disk_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (diskCase_ == 3) {
disk_ = 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
if (diskCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, disk_);
}
if (diskCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, disk_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
if (diskCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, disk_);
}
if (diskCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, disk_);
}
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.InstanceServiceOuterClass.DetachInstanceDiskRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) return false;
if (!getDiskCase().equals(other.getDiskCase())) return false;
switch (diskCase_) {
case 2:
if (!getDiskId()
.equals(other.getDiskId())) return false;
break;
case 3:
if (!getDeviceName()
.equals(other.getDeviceName())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().hashCode();
switch (diskCase_) {
case 2:
hash = (37 * hash) + DISK_ID_FIELD_NUMBER;
hash = (53 * hash) + getDiskId().hashCode();
break;
case 3:
hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDeviceName().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest 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.InstanceServiceOuterClass.DetachInstanceDiskRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest 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.InstanceServiceOuterClass.DetachInstanceDiskRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest 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.InstanceServiceOuterClass.DetachInstanceDiskRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest 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.InstanceServiceOuterClass.DetachInstanceDiskRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest 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.InstanceServiceOuterClass.DetachInstanceDiskRequest 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.InstanceServiceOuterClass.DetachInstanceDiskRequest 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.InstanceServiceOuterClass.DetachInstanceDiskRequest 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.DetachInstanceDiskRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DetachInstanceDiskRequest)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest.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();
instanceId_ = "";
diskCase_ = 0;
disk_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest(this);
result.instanceId_ = instanceId_;
if (diskCase_ == 2) {
result.disk_ = disk_;
}
if (diskCase_ == 3) {
result.disk_ = disk_;
}
result.diskCase_ = diskCase_;
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.InstanceServiceOuterClass.DetachInstanceDiskRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
onChanged();
}
switch (other.getDiskCase()) {
case DISK_ID: {
diskCase_ = 2;
disk_ = other.disk_;
onChanged();
break;
}
case DEVICE_NAME: {
diskCase_ = 3;
disk_ = other.disk_;
onChanged();
break;
}
case DISK_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int diskCase_ = 0;
private java.lang.Object disk_;
public DiskCase
getDiskCase() {
return DiskCase.forNumber(
diskCase_);
}
public Builder clearDisk() {
diskCase_ = 0;
disk_ = null;
onChanged();
return this;
}
private java.lang.Object instanceId_ = "";
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The instanceId.
*/
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceId.
*/
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceId() {
instanceId_ = getDefaultInstance().getInstanceId();
onChanged();
return this;
}
/**
*
* ID of the instance to detach the disk from.
* To get the instance ID, use a [InstanceService.List] request.
*
*
* string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceId to set.
* @return This builder for chaining.
*/
public Builder setInstanceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceId_ = value;
onChanged();
return this;
}
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return Whether the diskId field is set.
*/
@java.lang.Override
public boolean hasDiskId() {
return diskCase_ == 2;
}
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return The diskId.
*/
@java.lang.Override
public java.lang.String getDiskId() {
java.lang.Object ref = "";
if (diskCase_ == 2) {
ref = disk_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (diskCase_ == 2) {
disk_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for diskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDiskIdBytes() {
java.lang.Object ref = "";
if (diskCase_ == 2) {
ref = disk_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (diskCase_ == 2) {
disk_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.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();
}
diskCase_ = 2;
disk_ = value;
onChanged();
return this;
}
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearDiskId() {
if (diskCase_ == 2) {
diskCase_ = 0;
disk_ = null;
onChanged();
}
return this;
}
/**
*
* ID of the disk that should be detached.
*
*
* string disk_id = 2 [(.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);
diskCase_ = 2;
disk_ = value;
onChanged();
return this;
}
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return Whether the deviceName field is set.
*/
@java.lang.Override
public boolean hasDeviceName() {
return diskCase_ == 3;
}
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return The deviceName.
*/
@java.lang.Override
public java.lang.String getDeviceName() {
java.lang.Object ref = "";
if (diskCase_ == 3) {
ref = disk_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (diskCase_ == 3) {
disk_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return The bytes for deviceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceNameBytes() {
java.lang.Object ref = "";
if (diskCase_ == 3) {
ref = disk_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (diskCase_ == 3) {
disk_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @param value The deviceName to set.
* @return This builder for chaining.
*/
public Builder setDeviceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
diskCase_ = 3;
disk_ = value;
onChanged();
return this;
}
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @return This builder for chaining.
*/
public Builder clearDeviceName() {
if (diskCase_ == 3) {
diskCase_ = 0;
disk_ = null;
onChanged();
}
return this;
}
/**
*
* Serial number of the disk that should be detached. This value is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
*
*
* string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"];
* @param value The bytes for deviceName to set.
* @return This builder for chaining.
*/
public Builder setDeviceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
diskCase_ = 3;
disk_ = 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.DetachInstanceDiskRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DetachInstanceDiskRequest)
private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest();
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DetachInstanceDiskRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DetachInstanceDiskRequest(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.InstanceServiceOuterClass.DetachInstanceDiskRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DetachInstanceDiskMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DetachInstanceDiskMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
java.lang.String getInstanceId();
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
com.google.protobuf.ByteString
getInstanceIdBytes();
/**
*
* ID of the disk.
*
*
* string disk_id = 2;
* @return The diskId.
*/
java.lang.String getDiskId();
/**
*
* ID of the disk.
*
*
* string disk_id = 2;
* @return The bytes for diskId.
*/
com.google.protobuf.ByteString
getDiskIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.DetachInstanceDiskMetadata}
*/
public static final class DetachInstanceDiskMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DetachInstanceDiskMetadata)
DetachInstanceDiskMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DetachInstanceDiskMetadata.newBuilder() to construct.
private DetachInstanceDiskMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DetachInstanceDiskMetadata() {
instanceId_ = "";
diskId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DetachInstanceDiskMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DetachInstanceDiskMetadata(
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();
instanceId_ = 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.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata.Builder.class);
}
public static final int INSTANCE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceId_;
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The instanceId.
*/
@java.lang.Override
public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
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();
instanceId_ = s;
return s;
}
}
/**
*
* ID of the instance.
*
*
* string instance_id = 1;
* @return The bytes for instanceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceIdBytes() {
java.lang.Object ref = instanceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceId_ = 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.
*
*
* 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 disk.
*
*
* 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(instanceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
}
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(instanceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
}
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.InstanceServiceOuterClass.DetachInstanceDiskMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata) obj;
if (!getInstanceId()
.equals(other.getInstanceId())) 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) + INSTANCE_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceId().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.InstanceServiceOuterClass.DetachInstanceDiskMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata 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.InstanceServiceOuterClass.DetachInstanceDiskMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata 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.InstanceServiceOuterClass.DetachInstanceDiskMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata 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.InstanceServiceOuterClass.DetachInstanceDiskMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata 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.InstanceServiceOuterClass.DetachInstanceDiskMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata 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.InstanceServiceOuterClass.DetachInstanceDiskMetadata 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.InstanceServiceOuterClass.DetachInstanceDiskMetadata 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.InstanceServiceOuterClass.DetachInstanceDiskMetadata 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.DetachInstanceDiskMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DetachInstanceDiskMetadata)
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata.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();
instanceId_ = "";
diskId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata build() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata buildPartial() {
yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata(this);
result.instanceId_ = instanceId_;
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.InstanceServiceOuterClass.DetachInstanceDiskMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata other) {
if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata.getDefaultInstance()) return this;
if (!other.getInstanceId().isEmpty()) {
instanceId_ = other.instanceId_;
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.InstanceServiceOuterClass.DetachInstanceDiskMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceId_ = "";
/**
*