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

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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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_ = ""; /** *
       * 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.DetachInstanceDiskMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DetachInstanceDiskMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceDiskMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DetachInstanceDiskMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DetachInstanceDiskMetadata(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.DetachInstanceDiskMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttachInstanceFilesystemRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachInstanceFilesystemRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance to attach the filesystem to.
     * To get the instance ID, make 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 filesystem to.
     * To get the instance ID, make 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(); /** *
     * Filesystem to attach to the instance.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; * @return Whether the attachedFilesystemSpec field is set. */ boolean hasAttachedFilesystemSpec(); /** *
     * Filesystem to attach to the instance.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; * @return The attachedFilesystemSpec. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec getAttachedFilesystemSpec(); /** *
     * Filesystem to attach to the instance.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder getAttachedFilesystemSpecOrBuilder(); } /** * Protobuf type {@code yandex.cloud.compute.v1.AttachInstanceFilesystemRequest} */ public static final class AttachInstanceFilesystemRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachInstanceFilesystemRequest) AttachInstanceFilesystemRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AttachInstanceFilesystemRequest.newBuilder() to construct. private AttachInstanceFilesystemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttachInstanceFilesystemRequest() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AttachInstanceFilesystemRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachInstanceFilesystemRequest( 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.AttachedFilesystemSpec.Builder subBuilder = null; if (attachedFilesystemSpec_ != null) { subBuilder = attachedFilesystemSpec_.toBuilder(); } attachedFilesystemSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attachedFilesystemSpec_); attachedFilesystemSpec_ = 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_AttachInstanceFilesystemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance to attach the filesystem to.
     * To get the instance ID, make 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 filesystem to.
     * To get the instance ID, make 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_FILESYSTEM_SPEC_FIELD_NUMBER = 2; private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec attachedFilesystemSpec_; /** *
     * Filesystem to attach to the instance.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; * @return Whether the attachedFilesystemSpec field is set. */ @java.lang.Override public boolean hasAttachedFilesystemSpec() { return attachedFilesystemSpec_ != null; } /** *
     * Filesystem to attach to the instance.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; * @return The attachedFilesystemSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec getAttachedFilesystemSpec() { return attachedFilesystemSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.getDefaultInstance() : attachedFilesystemSpec_; } /** *
     * Filesystem to attach to the instance.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder getAttachedFilesystemSpecOrBuilder() { return getAttachedFilesystemSpec(); } 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 (attachedFilesystemSpec_ != null) { output.writeMessage(2, getAttachedFilesystemSpec()); } 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 (attachedFilesystemSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAttachedFilesystemSpec()); } 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.AttachInstanceFilesystemRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (hasAttachedFilesystemSpec() != other.hasAttachedFilesystemSpec()) return false; if (hasAttachedFilesystemSpec()) { if (!getAttachedFilesystemSpec() .equals(other.getAttachedFilesystemSpec())) 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 (hasAttachedFilesystemSpec()) { hash = (37 * hash) + ATTACHED_FILESYSTEM_SPEC_FIELD_NUMBER; hash = (53 * hash) + getAttachedFilesystemSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest 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.AttachInstanceFilesystemRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachInstanceFilesystemRequest) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest.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 (attachedFilesystemSpecBuilder_ == null) { attachedFilesystemSpec_ = null; } else { attachedFilesystemSpec_ = null; attachedFilesystemSpecBuilder_ = 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_AttachInstanceFilesystemRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest(this); result.instanceId_ = instanceId_; if (attachedFilesystemSpecBuilder_ == null) { result.attachedFilesystemSpec_ = attachedFilesystemSpec_; } else { result.attachedFilesystemSpec_ = attachedFilesystemSpecBuilder_.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.AttachInstanceFilesystemRequest) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (other.hasAttachedFilesystemSpec()) { mergeAttachedFilesystemSpec(other.getAttachedFilesystemSpec()); } 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.AttachInstanceFilesystemRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest) 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 filesystem to.
       * To get the instance ID, make 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 filesystem to.
       * To get the instance ID, make 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 filesystem to.
       * To get the instance ID, make 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 filesystem to.
       * To get the instance ID, make 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 filesystem to.
       * To get the instance ID, make 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.AttachedFilesystemSpec attachedFilesystemSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder> attachedFilesystemSpecBuilder_; /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; * @return Whether the attachedFilesystemSpec field is set. */ public boolean hasAttachedFilesystemSpec() { return attachedFilesystemSpecBuilder_ != null || attachedFilesystemSpec_ != null; } /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; * @return The attachedFilesystemSpec. */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec getAttachedFilesystemSpec() { if (attachedFilesystemSpecBuilder_ == null) { return attachedFilesystemSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.getDefaultInstance() : attachedFilesystemSpec_; } else { return attachedFilesystemSpecBuilder_.getMessage(); } } /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ public Builder setAttachedFilesystemSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec value) { if (attachedFilesystemSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attachedFilesystemSpec_ = value; onChanged(); } else { attachedFilesystemSpecBuilder_.setMessage(value); } return this; } /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ public Builder setAttachedFilesystemSpec( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder builderForValue) { if (attachedFilesystemSpecBuilder_ == null) { attachedFilesystemSpec_ = builderForValue.build(); onChanged(); } else { attachedFilesystemSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ public Builder mergeAttachedFilesystemSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec value) { if (attachedFilesystemSpecBuilder_ == null) { if (attachedFilesystemSpec_ != null) { attachedFilesystemSpec_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.newBuilder(attachedFilesystemSpec_).mergeFrom(value).buildPartial(); } else { attachedFilesystemSpec_ = value; } onChanged(); } else { attachedFilesystemSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ public Builder clearAttachedFilesystemSpec() { if (attachedFilesystemSpecBuilder_ == null) { attachedFilesystemSpec_ = null; onChanged(); } else { attachedFilesystemSpec_ = null; attachedFilesystemSpecBuilder_ = null; } return this; } /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder getAttachedFilesystemSpecBuilder() { onChanged(); return getAttachedFilesystemSpecFieldBuilder().getBuilder(); } /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder getAttachedFilesystemSpecOrBuilder() { if (attachedFilesystemSpecBuilder_ != null) { return attachedFilesystemSpecBuilder_.getMessageOrBuilder(); } else { return attachedFilesystemSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.getDefaultInstance() : attachedFilesystemSpec_; } } /** *
       * Filesystem to attach to the instance.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec attached_filesystem_spec = 2 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder> getAttachedFilesystemSpecFieldBuilder() { if (attachedFilesystemSpecBuilder_ == null) { attachedFilesystemSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder>( getAttachedFilesystemSpec(), getParentForChildren(), isClean()); attachedFilesystemSpec_ = null; } return attachedFilesystemSpecBuilder_; } @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.AttachInstanceFilesystemRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachInstanceFilesystemRequest) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttachInstanceFilesystemRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachInstanceFilesystemRequest(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.AttachInstanceFilesystemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttachInstanceFilesystemMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachInstanceFilesystemMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance that the filesystem is being attached to.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance that the filesystem is being attached to.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * ID of the filesystem that is being attached to the instance.
     * 
* * string filesystem_id = 2; * @return The filesystemId. */ java.lang.String getFilesystemId(); /** *
     * ID of the filesystem that is being attached to the instance.
     * 
* * string filesystem_id = 2; * @return The bytes for filesystemId. */ com.google.protobuf.ByteString getFilesystemIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.AttachInstanceFilesystemMetadata} */ public static final class AttachInstanceFilesystemMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachInstanceFilesystemMetadata) AttachInstanceFilesystemMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use AttachInstanceFilesystemMetadata.newBuilder() to construct. private AttachInstanceFilesystemMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttachInstanceFilesystemMetadata() { instanceId_ = ""; filesystemId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AttachInstanceFilesystemMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachInstanceFilesystemMetadata( 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(); filesystemId_ = 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_AttachInstanceFilesystemMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance that the filesystem is being attached to.
     * 
* * 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 the filesystem is being attached to.
     * 
* * 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 FILESYSTEM_ID_FIELD_NUMBER = 2; private volatile java.lang.Object filesystemId_; /** *
     * ID of the filesystem that is being attached to the instance.
     * 
* * string filesystem_id = 2; * @return The filesystemId. */ @java.lang.Override public java.lang.String getFilesystemId() { java.lang.Object ref = filesystemId_; 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(); filesystemId_ = s; return s; } } /** *
     * ID of the filesystem that is being attached to the instance.
     * 
* * string filesystem_id = 2; * @return The bytes for filesystemId. */ @java.lang.Override public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = filesystemId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filesystemId_ = 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(filesystemId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filesystemId_); } 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(filesystemId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filesystemId_); } 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.AttachInstanceFilesystemMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getFilesystemId() .equals(other.getFilesystemId())) 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) + FILESYSTEM_ID_FIELD_NUMBER; hash = (53 * hash) + getFilesystemId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata 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.AttachInstanceFilesystemMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachInstanceFilesystemMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata.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_ = ""; filesystemId_ = ""; 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_AttachInstanceFilesystemMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata(this); result.instanceId_ = instanceId_; result.filesystemId_ = filesystemId_; 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.AttachInstanceFilesystemMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getFilesystemId().isEmpty()) { filesystemId_ = other.filesystemId_; 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.AttachInstanceFilesystemMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance that the filesystem is being attached to.
       * 
* * 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 the filesystem is being attached to.
       * 
* * 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 the filesystem is being attached to.
       * 
* * 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 the filesystem is being attached to.
       * 
* * string instance_id = 1; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** *
       * ID of the instance that the filesystem is being attached to.
       * 
* * 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 filesystemId_ = ""; /** *
       * ID of the filesystem that is being attached to the instance.
       * 
* * string filesystem_id = 2; * @return The filesystemId. */ public java.lang.String getFilesystemId() { java.lang.Object ref = filesystemId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filesystemId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the filesystem that is being attached to the instance.
       * 
* * string filesystem_id = 2; * @return The bytes for filesystemId. */ public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = filesystemId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filesystemId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the filesystem that is being attached to the instance.
       * 
* * string filesystem_id = 2; * @param value The filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filesystemId_ = value; onChanged(); return this; } /** *
       * ID of the filesystem that is being attached to the instance.
       * 
* * string filesystem_id = 2; * @return This builder for chaining. */ public Builder clearFilesystemId() { filesystemId_ = getDefaultInstance().getFilesystemId(); onChanged(); return this; } /** *
       * ID of the filesystem that is being attached to the instance.
       * 
* * string filesystem_id = 2; * @param value The bytes for filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filesystemId_ = 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.AttachInstanceFilesystemMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachInstanceFilesystemMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachInstanceFilesystemMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttachInstanceFilesystemMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachInstanceFilesystemMetadata(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.AttachInstanceFilesystemMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DetachInstanceFilesystemRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DetachInstanceFilesystemRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance to detach the filesystem from.
     * To get the instance ID, make 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 filesystem from.
     * To get the instance ID, make 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 filesystem that should be detached.
     * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return Whether the filesystemId field is set. */ boolean hasFilesystemId(); /** *
     * ID of the filesystem that should be detached.
     * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The filesystemId. */ java.lang.String getFilesystemId(); /** *
     * ID of the filesystem that should be detached.
     * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for filesystemId. */ com.google.protobuf.ByteString getFilesystemIdBytes(); /** *
     * Name of the device used for mounting the filesystem that should be detached.
     * 
* * string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return Whether the deviceName field is set. */ boolean hasDeviceName(); /** *
     * Name of the device used for mounting the filesystem that should be detached.
     * 
* * string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The deviceName. */ java.lang.String getDeviceName(); /** *
     * Name of the device used for mounting the filesystem that should be detached.
     * 
* * 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.DetachInstanceFilesystemRequest.FilesystemCase getFilesystemCase(); } /** * Protobuf type {@code yandex.cloud.compute.v1.DetachInstanceFilesystemRequest} */ public static final class DetachInstanceFilesystemRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DetachInstanceFilesystemRequest) DetachInstanceFilesystemRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DetachInstanceFilesystemRequest.newBuilder() to construct. private DetachInstanceFilesystemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DetachInstanceFilesystemRequest() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DetachInstanceFilesystemRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DetachInstanceFilesystemRequest( 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(); filesystemCase_ = 2; filesystem_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); filesystemCase_ = 3; filesystem_ = 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_DetachInstanceFilesystemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest.Builder.class); } private int filesystemCase_ = 0; private java.lang.Object filesystem_; public enum FilesystemCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FILESYSTEM_ID(2), DEVICE_NAME(3), FILESYSTEM_NOT_SET(0); private final int value; private FilesystemCase(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 FilesystemCase valueOf(int value) { return forNumber(value); } public static FilesystemCase forNumber(int value) { switch (value) { case 2: return FILESYSTEM_ID; case 3: return DEVICE_NAME; case 0: return FILESYSTEM_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FilesystemCase getFilesystemCase() { return FilesystemCase.forNumber( filesystemCase_); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance to detach the filesystem from.
     * To get the instance ID, make 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 filesystem from.
     * To get the instance ID, make 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 FILESYSTEM_ID_FIELD_NUMBER = 2; /** *
     * ID of the filesystem that should be detached.
     * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return Whether the filesystemId field is set. */ public boolean hasFilesystemId() { return filesystemCase_ == 2; } /** *
     * ID of the filesystem that should be detached.
     * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The filesystemId. */ public java.lang.String getFilesystemId() { java.lang.Object ref = ""; if (filesystemCase_ == 2) { ref = filesystem_; } 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 (filesystemCase_ == 2) { filesystem_ = s; } return s; } } /** *
     * ID of the filesystem that should be detached.
     * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for filesystemId. */ public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = ""; if (filesystemCase_ == 2) { ref = filesystem_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (filesystemCase_ == 2) { filesystem_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEVICE_NAME_FIELD_NUMBER = 3; /** *
     * Name of the device used for mounting the filesystem that should be detached.
     * 
* * string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return Whether the deviceName field is set. */ public boolean hasDeviceName() { return filesystemCase_ == 3; } /** *
     * Name of the device used for mounting the filesystem that should be detached.
     * 
* * 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 (filesystemCase_ == 3) { ref = filesystem_; } 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 (filesystemCase_ == 3) { filesystem_ = s; } return s; } } /** *
     * Name of the device used for mounting the filesystem that should be detached.
     * 
* * 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 (filesystemCase_ == 3) { ref = filesystem_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (filesystemCase_ == 3) { filesystem_ = 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 (filesystemCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filesystem_); } if (filesystemCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filesystem_); } 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 (filesystemCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filesystem_); } if (filesystemCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filesystem_); } 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.DetachInstanceFilesystemRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getFilesystemCase().equals(other.getFilesystemCase())) return false; switch (filesystemCase_) { case 2: if (!getFilesystemId() .equals(other.getFilesystemId())) 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 (filesystemCase_) { case 2: hash = (37 * hash) + FILESYSTEM_ID_FIELD_NUMBER; hash = (53 * hash) + getFilesystemId().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.DetachInstanceFilesystemRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest 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.DetachInstanceFilesystemRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DetachInstanceFilesystemRequest) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest.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_ = ""; filesystemCase_ = 0; filesystem_ = 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_DetachInstanceFilesystemRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest(this); result.instanceId_ = instanceId_; if (filesystemCase_ == 2) { result.filesystem_ = filesystem_; } if (filesystemCase_ == 3) { result.filesystem_ = filesystem_; } result.filesystemCase_ = filesystemCase_; 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.DetachInstanceFilesystemRequest) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } switch (other.getFilesystemCase()) { case FILESYSTEM_ID: { filesystemCase_ = 2; filesystem_ = other.filesystem_; onChanged(); break; } case DEVICE_NAME: { filesystemCase_ = 3; filesystem_ = other.filesystem_; onChanged(); break; } case FILESYSTEM_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.DetachInstanceFilesystemRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int filesystemCase_ = 0; private java.lang.Object filesystem_; public FilesystemCase getFilesystemCase() { return FilesystemCase.forNumber( filesystemCase_); } public Builder clearFilesystem() { filesystemCase_ = 0; filesystem_ = null; onChanged(); return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance to detach the filesystem from.
       * To get the instance ID, make 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 filesystem from.
       * To get the instance ID, make 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 filesystem from.
       * To get the instance ID, make 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 filesystem from.
       * To get the instance ID, make 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 filesystem from.
       * To get the instance ID, make 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 filesystem that should be detached.
       * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return Whether the filesystemId field is set. */ @java.lang.Override public boolean hasFilesystemId() { return filesystemCase_ == 2; } /** *
       * ID of the filesystem that should be detached.
       * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The filesystemId. */ @java.lang.Override public java.lang.String getFilesystemId() { java.lang.Object ref = ""; if (filesystemCase_ == 2) { ref = filesystem_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filesystemCase_ == 2) { filesystem_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the filesystem that should be detached.
       * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for filesystemId. */ @java.lang.Override public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = ""; if (filesystemCase_ == 2) { ref = filesystem_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (filesystemCase_ == 2) { filesystem_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the filesystem that should be detached.
       * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @param value The filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filesystemCase_ = 2; filesystem_ = value; onChanged(); return this; } /** *
       * ID of the filesystem that should be detached.
       * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFilesystemId() { if (filesystemCase_ == 2) { filesystemCase_ = 0; filesystem_ = null; onChanged(); } return this; } /** *
       * ID of the filesystem that should be detached.
       * 
* * string filesystem_id = 2 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filesystemCase_ = 2; filesystem_ = value; onChanged(); return this; } /** *
       * Name of the device used for mounting the filesystem that should be detached.
       * 
* * 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 filesystemCase_ == 3; } /** *
       * Name of the device used for mounting the filesystem that should be detached.
       * 
* * 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 (filesystemCase_ == 3) { ref = filesystem_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (filesystemCase_ == 3) { filesystem_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the device used for mounting the filesystem that should be detached.
       * 
* * 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 (filesystemCase_ == 3) { ref = filesystem_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (filesystemCase_ == 3) { filesystem_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the device used for mounting the filesystem that should be detached.
       * 
* * 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(); } filesystemCase_ = 3; filesystem_ = value; onChanged(); return this; } /** *
       * Name of the device used for mounting the filesystem that should be detached.
       * 
* * string device_name = 3 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return This builder for chaining. */ public Builder clearDeviceName() { if (filesystemCase_ == 3) { filesystemCase_ = 0; filesystem_ = null; onChanged(); } return this; } /** *
       * Name of the device used for mounting the filesystem that should be detached.
       * 
* * 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); filesystemCase_ = 3; filesystem_ = 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.DetachInstanceFilesystemRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DetachInstanceFilesystemRequest) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DetachInstanceFilesystemRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DetachInstanceFilesystemRequest(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.DetachInstanceFilesystemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DetachInstanceFilesystemMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DetachInstanceFilesystemMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance that the filesystem is being detached from.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance that the filesystem is being detached from.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * ID of the filesystem that is being detached from the instance.
     * 
* * string filesystem_id = 2; * @return The filesystemId. */ java.lang.String getFilesystemId(); /** *
     * ID of the filesystem that is being detached from the instance.
     * 
* * string filesystem_id = 2; * @return The bytes for filesystemId. */ com.google.protobuf.ByteString getFilesystemIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.DetachInstanceFilesystemMetadata} */ public static final class DetachInstanceFilesystemMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DetachInstanceFilesystemMetadata) DetachInstanceFilesystemMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DetachInstanceFilesystemMetadata.newBuilder() to construct. private DetachInstanceFilesystemMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DetachInstanceFilesystemMetadata() { instanceId_ = ""; filesystemId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DetachInstanceFilesystemMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DetachInstanceFilesystemMetadata( 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(); filesystemId_ = 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_DetachInstanceFilesystemMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance that the filesystem is being detached from.
     * 
* * 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 the filesystem is being detached from.
     * 
* * 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 FILESYSTEM_ID_FIELD_NUMBER = 2; private volatile java.lang.Object filesystemId_; /** *
     * ID of the filesystem that is being detached from the instance.
     * 
* * string filesystem_id = 2; * @return The filesystemId. */ @java.lang.Override public java.lang.String getFilesystemId() { java.lang.Object ref = filesystemId_; 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(); filesystemId_ = s; return s; } } /** *
     * ID of the filesystem that is being detached from the instance.
     * 
* * string filesystem_id = 2; * @return The bytes for filesystemId. */ @java.lang.Override public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = filesystemId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filesystemId_ = 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(filesystemId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filesystemId_); } 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(filesystemId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filesystemId_); } 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.DetachInstanceFilesystemMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getFilesystemId() .equals(other.getFilesystemId())) 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) + FILESYSTEM_ID_FIELD_NUMBER; hash = (53 * hash) + getFilesystemId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata 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.DetachInstanceFilesystemMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DetachInstanceFilesystemMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata.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_ = ""; filesystemId_ = ""; 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_DetachInstanceFilesystemMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata(this); result.instanceId_ = instanceId_; result.filesystemId_ = filesystemId_; 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.DetachInstanceFilesystemMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getFilesystemId().isEmpty()) { filesystemId_ = other.filesystemId_; 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.DetachInstanceFilesystemMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance that the filesystem is being detached from.
       * 
* * 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 the filesystem is being detached from.
       * 
* * 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 the filesystem is being detached from.
       * 
* * 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 the filesystem is being detached from.
       * 
* * string instance_id = 1; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** *
       * ID of the instance that the filesystem is being detached from.
       * 
* * 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 filesystemId_ = ""; /** *
       * ID of the filesystem that is being detached from the instance.
       * 
* * string filesystem_id = 2; * @return The filesystemId. */ public java.lang.String getFilesystemId() { java.lang.Object ref = filesystemId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filesystemId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the filesystem that is being detached from the instance.
       * 
* * string filesystem_id = 2; * @return The bytes for filesystemId. */ public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = filesystemId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filesystemId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the filesystem that is being detached from the instance.
       * 
* * string filesystem_id = 2; * @param value The filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filesystemId_ = value; onChanged(); return this; } /** *
       * ID of the filesystem that is being detached from the instance.
       * 
* * string filesystem_id = 2; * @return This builder for chaining. */ public Builder clearFilesystemId() { filesystemId_ = getDefaultInstance().getFilesystemId(); onChanged(); return this; } /** *
       * ID of the filesystem that is being detached from the instance.
       * 
* * string filesystem_id = 2; * @param value The bytes for filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filesystemId_ = 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.DetachInstanceFilesystemMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DetachInstanceFilesystemMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DetachInstanceFilesystemMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DetachInstanceFilesystemMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DetachInstanceFilesystemMetadata(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.DetachInstanceFilesystemMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddInstanceOneToOneNatRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AddInstanceOneToOneNatRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance to enable One-to-One NAT on.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance to enable One-to-One NAT on.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * The index of the network interface to enable One-to-One NAT on.
     * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ java.lang.String getNetworkInterfaceIndex(); /** *
     * The index of the network interface to enable One-to-One NAT on.
     * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ com.google.protobuf.ByteString getNetworkInterfaceIndexBytes(); /** *
     * The network address that is assigned to the instance for this network interface.
     * 
* * string internal_address = 3; * @return The internalAddress. */ java.lang.String getInternalAddress(); /** *
     * The network address that is assigned to the instance for this network interface.
     * 
* * string internal_address = 3; * @return The bytes for internalAddress. */ com.google.protobuf.ByteString getInternalAddressBytes(); /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; * @return Whether the oneToOneNatSpec field is set. */ boolean hasOneToOneNatSpec(); /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; * @return The oneToOneNatSpec. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec getOneToOneNatSpec(); /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder(); } /** *
   * Enables One-to-one NAT on the network interface.
   * 
* * Protobuf type {@code yandex.cloud.compute.v1.AddInstanceOneToOneNatRequest} */ public static final class AddInstanceOneToOneNatRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AddInstanceOneToOneNatRequest) AddInstanceOneToOneNatRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AddInstanceOneToOneNatRequest.newBuilder() to construct. private AddInstanceOneToOneNatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddInstanceOneToOneNatRequest() { instanceId_ = ""; networkInterfaceIndex_ = ""; internalAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddInstanceOneToOneNatRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddInstanceOneToOneNatRequest( 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(); networkInterfaceIndex_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); internalAddress_ = s; break; } case 34: { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder subBuilder = null; if (oneToOneNatSpec_ != null) { subBuilder = oneToOneNatSpec_.toBuilder(); } oneToOneNatSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(oneToOneNatSpec_); oneToOneNatSpec_ = 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_AddInstanceOneToOneNatRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance to enable One-to-One NAT on.
     * 
* * 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 to enable One-to-One NAT on.
     * 
* * 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 NETWORK_INTERFACE_INDEX_FIELD_NUMBER = 2; private volatile java.lang.Object networkInterfaceIndex_; /** *
     * The index of the network interface to enable One-to-One NAT on.
     * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ @java.lang.Override public java.lang.String getNetworkInterfaceIndex() { java.lang.Object ref = networkInterfaceIndex_; 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(); networkInterfaceIndex_ = s; return s; } } /** *
     * The index of the network interface to enable One-to-One NAT on.
     * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkInterfaceIndexBytes() { java.lang.Object ref = networkInterfaceIndex_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkInterfaceIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INTERNAL_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object internalAddress_; /** *
     * The network address that is assigned to the instance for this network interface.
     * 
* * string internal_address = 3; * @return The internalAddress. */ @java.lang.Override public java.lang.String getInternalAddress() { java.lang.Object ref = internalAddress_; 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(); internalAddress_ = s; return s; } } /** *
     * The network address that is assigned to the instance for this network interface.
     * 
* * string internal_address = 3; * @return The bytes for internalAddress. */ @java.lang.Override public com.google.protobuf.ByteString getInternalAddressBytes() { java.lang.Object ref = internalAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); internalAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONE_TO_ONE_NAT_SPEC_FIELD_NUMBER = 4; private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec oneToOneNatSpec_; /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; * @return Whether the oneToOneNatSpec field is set. */ @java.lang.Override public boolean hasOneToOneNatSpec() { return oneToOneNatSpec_ != null; } /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; * @return The oneToOneNatSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec getOneToOneNatSpec() { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder() { return getOneToOneNatSpec(); } 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(networkInterfaceIndex_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkInterfaceIndex_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, internalAddress_); } if (oneToOneNatSpec_ != null) { output.writeMessage(4, getOneToOneNatSpec()); } 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(networkInterfaceIndex_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkInterfaceIndex_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, internalAddress_); } if (oneToOneNatSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getOneToOneNatSpec()); } 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.AddInstanceOneToOneNatRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getNetworkInterfaceIndex() .equals(other.getNetworkInterfaceIndex())) return false; if (!getInternalAddress() .equals(other.getInternalAddress())) return false; if (hasOneToOneNatSpec() != other.hasOneToOneNatSpec()) return false; if (hasOneToOneNatSpec()) { if (!getOneToOneNatSpec() .equals(other.getOneToOneNatSpec())) 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) + NETWORK_INTERFACE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getNetworkInterfaceIndex().hashCode(); hash = (37 * hash) + INTERNAL_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getInternalAddress().hashCode(); if (hasOneToOneNatSpec()) { hash = (37 * hash) + ONE_TO_ONE_NAT_SPEC_FIELD_NUMBER; hash = (53 * hash) + getOneToOneNatSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest 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.AddInstanceOneToOneNatRequest 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; } /** *
     * Enables One-to-one NAT on the network interface.
     * 
* * Protobuf type {@code yandex.cloud.compute.v1.AddInstanceOneToOneNatRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AddInstanceOneToOneNatRequest) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest.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_ = ""; networkInterfaceIndex_ = ""; internalAddress_ = ""; if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = null; } else { oneToOneNatSpec_ = null; oneToOneNatSpecBuilder_ = 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_AddInstanceOneToOneNatRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest(this); result.instanceId_ = instanceId_; result.networkInterfaceIndex_ = networkInterfaceIndex_; result.internalAddress_ = internalAddress_; if (oneToOneNatSpecBuilder_ == null) { result.oneToOneNatSpec_ = oneToOneNatSpec_; } else { result.oneToOneNatSpec_ = oneToOneNatSpecBuilder_.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.AddInstanceOneToOneNatRequest) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getNetworkInterfaceIndex().isEmpty()) { networkInterfaceIndex_ = other.networkInterfaceIndex_; onChanged(); } if (!other.getInternalAddress().isEmpty()) { internalAddress_ = other.internalAddress_; onChanged(); } if (other.hasOneToOneNatSpec()) { mergeOneToOneNatSpec(other.getOneToOneNatSpec()); } 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.AddInstanceOneToOneNatRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance to enable One-to-One NAT on.
       * 
* * 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 to enable One-to-One NAT on.
       * 
* * 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 to enable One-to-One NAT on.
       * 
* * 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 to enable One-to-One NAT on.
       * 
* * string instance_id = 1; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** *
       * ID of the instance to enable One-to-One NAT on.
       * 
* * 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 networkInterfaceIndex_ = ""; /** *
       * The index of the network interface to enable One-to-One NAT on.
       * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ public java.lang.String getNetworkInterfaceIndex() { java.lang.Object ref = networkInterfaceIndex_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterfaceIndex_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The index of the network interface to enable One-to-One NAT on.
       * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ public com.google.protobuf.ByteString getNetworkInterfaceIndexBytes() { java.lang.Object ref = networkInterfaceIndex_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkInterfaceIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The index of the network interface to enable One-to-One NAT on.
       * 
* * string network_interface_index = 2; * @param value The networkInterfaceIndex to set. * @return This builder for chaining. */ public Builder setNetworkInterfaceIndex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkInterfaceIndex_ = value; onChanged(); return this; } /** *
       * The index of the network interface to enable One-to-One NAT on.
       * 
* * string network_interface_index = 2; * @return This builder for chaining. */ public Builder clearNetworkInterfaceIndex() { networkInterfaceIndex_ = getDefaultInstance().getNetworkInterfaceIndex(); onChanged(); return this; } /** *
       * The index of the network interface to enable One-to-One NAT on.
       * 
* * string network_interface_index = 2; * @param value The bytes for networkInterfaceIndex to set. * @return This builder for chaining. */ public Builder setNetworkInterfaceIndexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkInterfaceIndex_ = value; onChanged(); return this; } private java.lang.Object internalAddress_ = ""; /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @return The internalAddress. */ public java.lang.String getInternalAddress() { java.lang.Object ref = internalAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); internalAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @return The bytes for internalAddress. */ public com.google.protobuf.ByteString getInternalAddressBytes() { java.lang.Object ref = internalAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); internalAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @param value The internalAddress to set. * @return This builder for chaining. */ public Builder setInternalAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } internalAddress_ = value; onChanged(); return this; } /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @return This builder for chaining. */ public Builder clearInternalAddress() { internalAddress_ = getDefaultInstance().getInternalAddress(); onChanged(); return this; } /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @param value The bytes for internalAddress to set. * @return This builder for chaining. */ public Builder setInternalAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); internalAddress_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec oneToOneNatSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder> oneToOneNatSpecBuilder_; /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; * @return Whether the oneToOneNatSpec field is set. */ public boolean hasOneToOneNatSpec() { return oneToOneNatSpecBuilder_ != null || oneToOneNatSpec_ != null; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; * @return The oneToOneNatSpec. */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec getOneToOneNatSpec() { if (oneToOneNatSpecBuilder_ == null) { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } else { return oneToOneNatSpecBuilder_.getMessage(); } } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ public Builder setOneToOneNatSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec value) { if (oneToOneNatSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneToOneNatSpec_ = value; onChanged(); } else { oneToOneNatSpecBuilder_.setMessage(value); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ public Builder setOneToOneNatSpec( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder builderForValue) { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = builderForValue.build(); onChanged(); } else { oneToOneNatSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ public Builder mergeOneToOneNatSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec value) { if (oneToOneNatSpecBuilder_ == null) { if (oneToOneNatSpec_ != null) { oneToOneNatSpec_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.newBuilder(oneToOneNatSpec_).mergeFrom(value).buildPartial(); } else { oneToOneNatSpec_ = value; } onChanged(); } else { oneToOneNatSpecBuilder_.mergeFrom(value); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ public Builder clearOneToOneNatSpec() { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = null; onChanged(); } else { oneToOneNatSpec_ = null; oneToOneNatSpecBuilder_ = null; } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder getOneToOneNatSpecBuilder() { onChanged(); return getOneToOneNatSpecFieldBuilder().getBuilder(); } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder() { if (oneToOneNatSpecBuilder_ != null) { return oneToOneNatSpecBuilder_.getMessageOrBuilder(); } else { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder> getOneToOneNatSpecFieldBuilder() { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder>( getOneToOneNatSpec(), getParentForChildren(), isClean()); oneToOneNatSpec_ = null; } return oneToOneNatSpecBuilder_; } @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.AddInstanceOneToOneNatRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AddInstanceOneToOneNatRequest) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddInstanceOneToOneNatRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddInstanceOneToOneNatRequest(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.AddInstanceOneToOneNatRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddInstanceOneToOneNatMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AddInstanceOneToOneNatMetadata) 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.AddInstanceOneToOneNatMetadata} */ public static final class AddInstanceOneToOneNatMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AddInstanceOneToOneNatMetadata) AddInstanceOneToOneNatMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use AddInstanceOneToOneNatMetadata.newBuilder() to construct. private AddInstanceOneToOneNatMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddInstanceOneToOneNatMetadata() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddInstanceOneToOneNatMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddInstanceOneToOneNatMetadata( 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_AddInstanceOneToOneNatMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata.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.AddInstanceOneToOneNatMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata) 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.AddInstanceOneToOneNatMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata 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.AddInstanceOneToOneNatMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AddInstanceOneToOneNatMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata.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_AddInstanceOneToOneNatMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata(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.AddInstanceOneToOneNatMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata.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.AddInstanceOneToOneNatMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata) 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.AddInstanceOneToOneNatMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AddInstanceOneToOneNatMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AddInstanceOneToOneNatMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddInstanceOneToOneNatMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddInstanceOneToOneNatMetadata(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.AddInstanceOneToOneNatMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoveInstanceOneToOneNatRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.RemoveInstanceOneToOneNatRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance to remove One-to-one NAT.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance to remove One-to-one NAT.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * The index of the network interface to remove One-to-One NAT from.
     * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ java.lang.String getNetworkInterfaceIndex(); /** *
     * The index of the network interface to remove One-to-One NAT from.
     * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ com.google.protobuf.ByteString getNetworkInterfaceIndexBytes(); /** *
     * The network address that is assigned to the instance for this network interface.
     * 
* * string internal_address = 3; * @return The internalAddress. */ java.lang.String getInternalAddress(); /** *
     * The network address that is assigned to the instance for this network interface.
     * 
* * string internal_address = 3; * @return The bytes for internalAddress. */ com.google.protobuf.ByteString getInternalAddressBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.RemoveInstanceOneToOneNatRequest} */ public static final class RemoveInstanceOneToOneNatRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.RemoveInstanceOneToOneNatRequest) RemoveInstanceOneToOneNatRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RemoveInstanceOneToOneNatRequest.newBuilder() to construct. private RemoveInstanceOneToOneNatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoveInstanceOneToOneNatRequest() { instanceId_ = ""; networkInterfaceIndex_ = ""; internalAddress_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoveInstanceOneToOneNatRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveInstanceOneToOneNatRequest( 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(); networkInterfaceIndex_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); internalAddress_ = 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_RemoveInstanceOneToOneNatRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance to remove One-to-one NAT.
     * 
* * 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 to remove One-to-one NAT.
     * 
* * 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 NETWORK_INTERFACE_INDEX_FIELD_NUMBER = 2; private volatile java.lang.Object networkInterfaceIndex_; /** *
     * The index of the network interface to remove One-to-One NAT from.
     * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ @java.lang.Override public java.lang.String getNetworkInterfaceIndex() { java.lang.Object ref = networkInterfaceIndex_; 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(); networkInterfaceIndex_ = s; return s; } } /** *
     * The index of the network interface to remove One-to-One NAT from.
     * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkInterfaceIndexBytes() { java.lang.Object ref = networkInterfaceIndex_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkInterfaceIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INTERNAL_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object internalAddress_; /** *
     * The network address that is assigned to the instance for this network interface.
     * 
* * string internal_address = 3; * @return The internalAddress. */ @java.lang.Override public java.lang.String getInternalAddress() { java.lang.Object ref = internalAddress_; 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(); internalAddress_ = s; return s; } } /** *
     * The network address that is assigned to the instance for this network interface.
     * 
* * string internal_address = 3; * @return The bytes for internalAddress. */ @java.lang.Override public com.google.protobuf.ByteString getInternalAddressBytes() { java.lang.Object ref = internalAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); internalAddress_ = 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(networkInterfaceIndex_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkInterfaceIndex_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, internalAddress_); } 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(networkInterfaceIndex_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkInterfaceIndex_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, internalAddress_); } 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.RemoveInstanceOneToOneNatRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getNetworkInterfaceIndex() .equals(other.getNetworkInterfaceIndex())) return false; if (!getInternalAddress() .equals(other.getInternalAddress())) 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) + NETWORK_INTERFACE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getNetworkInterfaceIndex().hashCode(); hash = (37 * hash) + INTERNAL_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getInternalAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest 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.RemoveInstanceOneToOneNatRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.RemoveInstanceOneToOneNatRequest) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest.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_ = ""; networkInterfaceIndex_ = ""; internalAddress_ = ""; 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_RemoveInstanceOneToOneNatRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest(this); result.instanceId_ = instanceId_; result.networkInterfaceIndex_ = networkInterfaceIndex_; result.internalAddress_ = internalAddress_; 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.RemoveInstanceOneToOneNatRequest) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getNetworkInterfaceIndex().isEmpty()) { networkInterfaceIndex_ = other.networkInterfaceIndex_; onChanged(); } if (!other.getInternalAddress().isEmpty()) { internalAddress_ = other.internalAddress_; 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.RemoveInstanceOneToOneNatRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance to remove One-to-one NAT.
       * 
* * 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 to remove One-to-one NAT.
       * 
* * 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 to remove One-to-one NAT.
       * 
* * 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 to remove One-to-one NAT.
       * 
* * string instance_id = 1; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** *
       * ID of the instance to remove One-to-one NAT.
       * 
* * 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 networkInterfaceIndex_ = ""; /** *
       * The index of the network interface to remove One-to-One NAT from.
       * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ public java.lang.String getNetworkInterfaceIndex() { java.lang.Object ref = networkInterfaceIndex_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterfaceIndex_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The index of the network interface to remove One-to-One NAT from.
       * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ public com.google.protobuf.ByteString getNetworkInterfaceIndexBytes() { java.lang.Object ref = networkInterfaceIndex_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkInterfaceIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The index of the network interface to remove One-to-One NAT from.
       * 
* * string network_interface_index = 2; * @param value The networkInterfaceIndex to set. * @return This builder for chaining. */ public Builder setNetworkInterfaceIndex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkInterfaceIndex_ = value; onChanged(); return this; } /** *
       * The index of the network interface to remove One-to-One NAT from.
       * 
* * string network_interface_index = 2; * @return This builder for chaining. */ public Builder clearNetworkInterfaceIndex() { networkInterfaceIndex_ = getDefaultInstance().getNetworkInterfaceIndex(); onChanged(); return this; } /** *
       * The index of the network interface to remove One-to-One NAT from.
       * 
* * string network_interface_index = 2; * @param value The bytes for networkInterfaceIndex to set. * @return This builder for chaining. */ public Builder setNetworkInterfaceIndexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkInterfaceIndex_ = value; onChanged(); return this; } private java.lang.Object internalAddress_ = ""; /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @return The internalAddress. */ public java.lang.String getInternalAddress() { java.lang.Object ref = internalAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); internalAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @return The bytes for internalAddress. */ public com.google.protobuf.ByteString getInternalAddressBytes() { java.lang.Object ref = internalAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); internalAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @param value The internalAddress to set. * @return This builder for chaining. */ public Builder setInternalAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } internalAddress_ = value; onChanged(); return this; } /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @return This builder for chaining. */ public Builder clearInternalAddress() { internalAddress_ = getDefaultInstance().getInternalAddress(); onChanged(); return this; } /** *
       * The network address that is assigned to the instance for this network interface.
       * 
* * string internal_address = 3; * @param value The bytes for internalAddress to set. * @return This builder for chaining. */ public Builder setInternalAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); internalAddress_ = 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.RemoveInstanceOneToOneNatRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.RemoveInstanceOneToOneNatRequest) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RemoveInstanceOneToOneNatRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveInstanceOneToOneNatRequest(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.RemoveInstanceOneToOneNatRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoveInstanceOneToOneNatMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.RemoveInstanceOneToOneNatMetadata) 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.RemoveInstanceOneToOneNatMetadata} */ public static final class RemoveInstanceOneToOneNatMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.RemoveInstanceOneToOneNatMetadata) RemoveInstanceOneToOneNatMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RemoveInstanceOneToOneNatMetadata.newBuilder() to construct. private RemoveInstanceOneToOneNatMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoveInstanceOneToOneNatMetadata() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoveInstanceOneToOneNatMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveInstanceOneToOneNatMetadata( 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_RemoveInstanceOneToOneNatMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata.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.RemoveInstanceOneToOneNatMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata) 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.RemoveInstanceOneToOneNatMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata 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.RemoveInstanceOneToOneNatMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.RemoveInstanceOneToOneNatMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata.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_RemoveInstanceOneToOneNatMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata(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.RemoveInstanceOneToOneNatMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata.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.RemoveInstanceOneToOneNatMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata) 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.RemoveInstanceOneToOneNatMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.RemoveInstanceOneToOneNatMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RemoveInstanceOneToOneNatMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RemoveInstanceOneToOneNatMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveInstanceOneToOneNatMetadata(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.RemoveInstanceOneToOneNatMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateInstanceNetworkInterfaceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the network interface that is being updated.
     * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the network interface that is being updated.
     * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * The index of the network interface to be updated.
     * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @return The networkInterfaceIndex. */ java.lang.String getNetworkInterfaceIndex(); /** *
     * The index of the network interface to be updated.
     * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @return The bytes for networkInterfaceIndex. */ com.google.protobuf.ByteString getNetworkInterfaceIndexBytes(); /** *
     * Field mask that specifies which attributes of the instance should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 3; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** *
     * Field mask that specifies which attributes of the instance should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 3; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** *
     * Field mask that specifies which attributes of the instance should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 3; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** *
     * ID of the subnet.
     * 
* * string subnet_id = 4; * @return The subnetId. */ java.lang.String getSubnetId(); /** *
     * ID of the subnet.
     * 
* * string subnet_id = 4; * @return The bytes for subnetId. */ com.google.protobuf.ByteString getSubnetIdBytes(); /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; * @return Whether the primaryV4AddressSpec field is set. */ boolean hasPrimaryV4AddressSpec(); /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; * @return The primaryV4AddressSpec. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec(); /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder(); /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; * @return Whether the primaryV6AddressSpec field is set. */ boolean hasPrimaryV6AddressSpec(); /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; * @return The primaryV6AddressSpec. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec(); /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder(); /** *
     * ID's of security groups attached to the interface.
     * 
* * repeated string security_group_ids = 7; * @return A list containing the securityGroupIds. */ java.util.List getSecurityGroupIdsList(); /** *
     * ID's of security groups attached to the interface.
     * 
* * repeated string security_group_ids = 7; * @return The count of securityGroupIds. */ int getSecurityGroupIdsCount(); /** *
     * ID's of security groups attached to the interface.
     * 
* * repeated string security_group_ids = 7; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ java.lang.String getSecurityGroupIds(int index); /** *
     * ID's of security groups attached to the interface.
     * 
* * repeated string security_group_ids = 7; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceRequest} */ public static final class UpdateInstanceNetworkInterfaceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceRequest) UpdateInstanceNetworkInterfaceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateInstanceNetworkInterfaceRequest.newBuilder() to construct. private UpdateInstanceNetworkInterfaceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateInstanceNetworkInterfaceRequest() { instanceId_ = ""; networkInterfaceIndex_ = ""; subnetId_ = ""; securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateInstanceNetworkInterfaceRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateInstanceNetworkInterfaceRequest( 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(); networkInterfaceIndex_ = s; break; } case 26: { 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 34: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 42: { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder subBuilder = null; if (primaryV4AddressSpec_ != null) { subBuilder = primaryV4AddressSpec_.toBuilder(); } primaryV4AddressSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(primaryV4AddressSpec_); primaryV4AddressSpec_ = subBuilder.buildPartial(); } break; } case 50: { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder subBuilder = null; if (primaryV6AddressSpec_ != null) { subBuilder = primaryV6AddressSpec_.toBuilder(); } primaryV6AddressSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(primaryV6AddressSpec_); primaryV6AddressSpec_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } securityGroupIds_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = securityGroupIds_.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_UpdateInstanceNetworkInterfaceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the network interface that is being updated.
     * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @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 network interface that is being updated.
     * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @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 NETWORK_INTERFACE_INDEX_FIELD_NUMBER = 2; private volatile java.lang.Object networkInterfaceIndex_; /** *
     * The index of the network interface to be updated.
     * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @return The networkInterfaceIndex. */ @java.lang.Override public java.lang.String getNetworkInterfaceIndex() { java.lang.Object ref = networkInterfaceIndex_; 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(); networkInterfaceIndex_ = s; return s; } } /** *
     * The index of the network interface to be updated.
     * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @return The bytes for networkInterfaceIndex. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkInterfaceIndexBytes() { java.lang.Object ref = networkInterfaceIndex_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkInterfaceIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** *
     * Field mask that specifies which attributes of the instance should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 3; * @return Whether the updateMask field is set. */ @java.lang.Override public boolean hasUpdateMask() { return updateMask_ != null; } /** *
     * Field mask that specifies which attributes of the instance should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 3; * @return The updateMask. */ @java.lang.Override public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** *
     * Field mask that specifies which attributes of the instance should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 3; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } public static final int SUBNET_ID_FIELD_NUMBER = 4; private volatile java.lang.Object subnetId_; /** *
     * ID of the subnet.
     * 
* * string subnet_id = 4; * @return The subnetId. */ @java.lang.Override public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; 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(); subnetId_ = s; return s; } } /** *
     * ID of the subnet.
     * 
* * string subnet_id = 4; * @return The bytes for subnetId. */ @java.lang.Override public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIMARY_V4_ADDRESS_SPEC_FIELD_NUMBER = 5; private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec primaryV4AddressSpec_; /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; * @return Whether the primaryV4AddressSpec field is set. */ @java.lang.Override public boolean hasPrimaryV4AddressSpec() { return primaryV4AddressSpec_ != null; } /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; * @return The primaryV4AddressSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec() { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder() { return getPrimaryV4AddressSpec(); } public static final int PRIMARY_V6_ADDRESS_SPEC_FIELD_NUMBER = 6; private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec primaryV6AddressSpec_; /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; * @return Whether the primaryV6AddressSpec field is set. */ @java.lang.Override public boolean hasPrimaryV6AddressSpec() { return primaryV6AddressSpec_ != null; } /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; * @return The primaryV6AddressSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec() { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder() { return getPrimaryV6AddressSpec(); } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList securityGroupIds_; /** *
     * ID's of security groups attached to the interface.
     * 
* * repeated string security_group_ids = 7; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_; } /** *
     * ID's of security groups attached to the interface.
     * 
* * repeated string security_group_ids = 7; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
     * ID's of security groups attached to the interface.
     * 
* * repeated string security_group_ids = 7; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
     * ID's of security groups attached to the interface.
     * 
* * repeated string security_group_ids = 7; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkInterfaceIndex_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkInterfaceIndex_); } if (updateMask_ != null) { output.writeMessage(3, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subnetId_); } if (primaryV4AddressSpec_ != null) { output.writeMessage(5, getPrimaryV4AddressSpec()); } if (primaryV6AddressSpec_ != null) { output.writeMessage(6, getPrimaryV6AddressSpec()); } for (int i = 0; i < securityGroupIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, securityGroupIds_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkInterfaceIndex_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkInterfaceIndex_); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subnetId_); } if (primaryV4AddressSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPrimaryV4AddressSpec()); } if (primaryV6AddressSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPrimaryV6AddressSpec()); } { int dataSize = 0; for (int i = 0; i < securityGroupIds_.size(); i++) { dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); } size += dataSize; size += 1 * getSecurityGroupIdsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getNetworkInterfaceIndex() .equals(other.getNetworkInterfaceIndex())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { if (!getUpdateMask() .equals(other.getUpdateMask())) return false; } if (!getSubnetId() .equals(other.getSubnetId())) return false; if (hasPrimaryV4AddressSpec() != other.hasPrimaryV4AddressSpec()) return false; if (hasPrimaryV4AddressSpec()) { if (!getPrimaryV4AddressSpec() .equals(other.getPrimaryV4AddressSpec())) return false; } if (hasPrimaryV6AddressSpec() != other.hasPrimaryV6AddressSpec()) return false; if (hasPrimaryV6AddressSpec()) { if (!getPrimaryV6AddressSpec() .equals(other.getPrimaryV6AddressSpec())) return false; } if (!getSecurityGroupIdsList() .equals(other.getSecurityGroupIdsList())) 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) + NETWORK_INTERFACE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getNetworkInterfaceIndex().hashCode(); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetId().hashCode(); if (hasPrimaryV4AddressSpec()) { hash = (37 * hash) + PRIMARY_V4_ADDRESS_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPrimaryV4AddressSpec().hashCode(); } if (hasPrimaryV6AddressSpec()) { hash = (37 * hash) + PRIMARY_V6_ADDRESS_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPrimaryV6AddressSpec().hashCode(); } if (getSecurityGroupIdsCount() > 0) { hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest 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.UpdateInstanceNetworkInterfaceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceRequest) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest.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_ = ""; networkInterfaceIndex_ = ""; if (updateMaskBuilder_ == null) { updateMask_ = null; } else { updateMask_ = null; updateMaskBuilder_ = null; } subnetId_ = ""; if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = null; } else { primaryV4AddressSpec_ = null; primaryV4AddressSpecBuilder_ = null; } if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = null; } else { primaryV6AddressSpec_ = null; primaryV6AddressSpecBuilder_ = null; } securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); 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_UpdateInstanceNetworkInterfaceRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest(this); int from_bitField0_ = bitField0_; result.instanceId_ = instanceId_; result.networkInterfaceIndex_ = networkInterfaceIndex_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } result.subnetId_ = subnetId_; if (primaryV4AddressSpecBuilder_ == null) { result.primaryV4AddressSpec_ = primaryV4AddressSpec_; } else { result.primaryV4AddressSpec_ = primaryV4AddressSpecBuilder_.build(); } if (primaryV6AddressSpecBuilder_ == null) { result.primaryV6AddressSpec_ = primaryV6AddressSpec_; } else { result.primaryV6AddressSpec_ = primaryV6AddressSpecBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.securityGroupIds_ = securityGroupIds_; 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.UpdateInstanceNetworkInterfaceRequest) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getNetworkInterfaceIndex().isEmpty()) { networkInterfaceIndex_ = other.networkInterfaceIndex_; onChanged(); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); } if (other.hasPrimaryV4AddressSpec()) { mergePrimaryV4AddressSpec(other.getPrimaryV4AddressSpec()); } if (other.hasPrimaryV6AddressSpec()) { mergePrimaryV6AddressSpec(other.getPrimaryV6AddressSpec()); } if (!other.securityGroupIds_.isEmpty()) { if (securityGroupIds_.isEmpty()) { securityGroupIds_ = other.securityGroupIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.addAll(other.securityGroupIds_); } 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.UpdateInstanceNetworkInterfaceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instanceId_ = ""; /** *
       * ID of the network interface that is being updated.
       * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @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 network interface that is being updated.
       * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @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 network interface that is being updated.
       * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @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 network interface that is being updated.
       * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** *
       * ID of the network interface that is being updated.
       * 
* * string instance_id = 1 [(.yandex.cloud.required) = true]; * @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 networkInterfaceIndex_ = ""; /** *
       * The index of the network interface to be updated.
       * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @return The networkInterfaceIndex. */ public java.lang.String getNetworkInterfaceIndex() { java.lang.Object ref = networkInterfaceIndex_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterfaceIndex_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The index of the network interface to be updated.
       * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @return The bytes for networkInterfaceIndex. */ public com.google.protobuf.ByteString getNetworkInterfaceIndexBytes() { java.lang.Object ref = networkInterfaceIndex_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkInterfaceIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The index of the network interface to be updated.
       * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @param value The networkInterfaceIndex to set. * @return This builder for chaining. */ public Builder setNetworkInterfaceIndex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkInterfaceIndex_ = value; onChanged(); return this; } /** *
       * The index of the network interface to be updated.
       * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearNetworkInterfaceIndex() { networkInterfaceIndex_ = getDefaultInstance().getNetworkInterfaceIndex(); onChanged(); return this; } /** *
       * The index of the network interface to be updated.
       * 
* * string network_interface_index = 2 [(.yandex.cloud.required) = true]; * @param value The bytes for networkInterfaceIndex to set. * @return This builder for chaining. */ public Builder setNetworkInterfaceIndexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkInterfaceIndex_ = value; onChanged(); return this; } private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; */ public Builder setUpdateMask( com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** *
       * Field mask that specifies which attributes of the instance should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 3; */ 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 subnetId_ = ""; /** *
       * ID of the subnet.
       * 
* * string subnet_id = 4; * @return The subnetId. */ public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 4; * @return The bytes for subnetId. */ public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 4; * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetId_ = value; onChanged(); return this; } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 4; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = getDefaultInstance().getSubnetId(); onChanged(); return this; } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 4; * @param value The bytes for subnetId to set. * @return This builder for chaining. */ public Builder setSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetId_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec primaryV4AddressSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder> primaryV4AddressSpecBuilder_; /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; * @return Whether the primaryV4AddressSpec field is set. */ public boolean hasPrimaryV4AddressSpec() { return primaryV4AddressSpecBuilder_ != null || primaryV4AddressSpec_ != null; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; * @return The primaryV4AddressSpec. */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec() { if (primaryV4AddressSpecBuilder_ == null) { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } else { return primaryV4AddressSpecBuilder_.getMessage(); } } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ public Builder setPrimaryV4AddressSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec value) { if (primaryV4AddressSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryV4AddressSpec_ = value; onChanged(); } else { primaryV4AddressSpecBuilder_.setMessage(value); } return this; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ public Builder setPrimaryV4AddressSpec( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder builderForValue) { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = builderForValue.build(); onChanged(); } else { primaryV4AddressSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ public Builder mergePrimaryV4AddressSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec value) { if (primaryV4AddressSpecBuilder_ == null) { if (primaryV4AddressSpec_ != null) { primaryV4AddressSpec_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.newBuilder(primaryV4AddressSpec_).mergeFrom(value).buildPartial(); } else { primaryV4AddressSpec_ = value; } onChanged(); } else { primaryV4AddressSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ public Builder clearPrimaryV4AddressSpec() { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = null; onChanged(); } else { primaryV4AddressSpec_ = null; primaryV4AddressSpecBuilder_ = null; } return this; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder getPrimaryV4AddressSpecBuilder() { onChanged(); return getPrimaryV4AddressSpecFieldBuilder().getBuilder(); } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder() { if (primaryV4AddressSpecBuilder_ != null) { return primaryV4AddressSpecBuilder_.getMessageOrBuilder(); } else { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder> getPrimaryV4AddressSpecFieldBuilder() { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder>( getPrimaryV4AddressSpec(), getParentForChildren(), isClean()); primaryV4AddressSpec_ = null; } return primaryV4AddressSpecBuilder_; } private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec primaryV6AddressSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder> primaryV6AddressSpecBuilder_; /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; * @return Whether the primaryV6AddressSpec field is set. */ public boolean hasPrimaryV6AddressSpec() { return primaryV6AddressSpecBuilder_ != null || primaryV6AddressSpec_ != null; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; * @return The primaryV6AddressSpec. */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec() { if (primaryV6AddressSpecBuilder_ == null) { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } else { return primaryV6AddressSpecBuilder_.getMessage(); } } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ public Builder setPrimaryV6AddressSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec value) { if (primaryV6AddressSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryV6AddressSpec_ = value; onChanged(); } else { primaryV6AddressSpecBuilder_.setMessage(value); } return this; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ public Builder setPrimaryV6AddressSpec( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder builderForValue) { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = builderForValue.build(); onChanged(); } else { primaryV6AddressSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ public Builder mergePrimaryV6AddressSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec value) { if (primaryV6AddressSpecBuilder_ == null) { if (primaryV6AddressSpec_ != null) { primaryV6AddressSpec_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.newBuilder(primaryV6AddressSpec_).mergeFrom(value).buildPartial(); } else { primaryV6AddressSpec_ = value; } onChanged(); } else { primaryV6AddressSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ public Builder clearPrimaryV6AddressSpec() { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = null; onChanged(); } else { primaryV6AddressSpec_ = null; primaryV6AddressSpecBuilder_ = null; } return this; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder getPrimaryV6AddressSpecBuilder() { onChanged(); return getPrimaryV6AddressSpecFieldBuilder().getBuilder(); } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder() { if (primaryV6AddressSpecBuilder_ != null) { return primaryV6AddressSpecBuilder_.getMessageOrBuilder(); } else { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 6; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder> getPrimaryV6AddressSpecFieldBuilder() { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder>( getPrimaryV6AddressSpec(), getParentForChildren(), isClean()); primaryV6AddressSpec_ = null; } return primaryV6AddressSpecBuilder_; } private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSecurityGroupIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); bitField0_ |= 0x00000001; } } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_.getUnmodifiableView(); } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @param index The index to set the value at. * @param value The securityGroupIds to set. * @return This builder for chaining. */ public Builder setSecurityGroupIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.set(index, value); onChanged(); return this; } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @param value The securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @param values The securityGroupIds to add. * @return This builder for chaining. */ public Builder addAllSecurityGroupIds( java.lang.Iterable values) { ensureSecurityGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, securityGroupIds_); onChanged(); return this; } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @return This builder for chaining. */ public Builder clearSecurityGroupIds() { securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * ID's of security groups attached to the interface.
       * 
* * repeated string security_group_ids = 7; * @param value The bytes of the securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceRequest) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateInstanceNetworkInterfaceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateInstanceNetworkInterfaceRequest(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.UpdateInstanceNetworkInterfaceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateInstanceNetworkInterfaceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instant network interface that is being updated.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instant network interface that is being updated.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * The index of the network interface.
     * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ java.lang.String getNetworkInterfaceIndex(); /** *
     * The index of the network interface.
     * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ com.google.protobuf.ByteString getNetworkInterfaceIndexBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceMetadata} */ public static final class UpdateInstanceNetworkInterfaceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceMetadata) UpdateInstanceNetworkInterfaceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateInstanceNetworkInterfaceMetadata.newBuilder() to construct. private UpdateInstanceNetworkInterfaceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateInstanceNetworkInterfaceMetadata() { instanceId_ = ""; networkInterfaceIndex_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateInstanceNetworkInterfaceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateInstanceNetworkInterfaceMetadata( 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(); networkInterfaceIndex_ = 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_UpdateInstanceNetworkInterfaceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instant network interface 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 instant network interface 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 NETWORK_INTERFACE_INDEX_FIELD_NUMBER = 2; private volatile java.lang.Object networkInterfaceIndex_; /** *
     * The index of the network interface.
     * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ @java.lang.Override public java.lang.String getNetworkInterfaceIndex() { java.lang.Object ref = networkInterfaceIndex_; 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(); networkInterfaceIndex_ = s; return s; } } /** *
     * The index of the network interface.
     * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkInterfaceIndexBytes() { java.lang.Object ref = networkInterfaceIndex_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkInterfaceIndex_ = 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(networkInterfaceIndex_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, networkInterfaceIndex_); } 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(networkInterfaceIndex_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, networkInterfaceIndex_); } 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.UpdateInstanceNetworkInterfaceMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getNetworkInterfaceIndex() .equals(other.getNetworkInterfaceIndex())) 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) + NETWORK_INTERFACE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getNetworkInterfaceIndex().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata 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.UpdateInstanceNetworkInterfaceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata.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_ = ""; networkInterfaceIndex_ = ""; 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_UpdateInstanceNetworkInterfaceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata(this); result.instanceId_ = instanceId_; result.networkInterfaceIndex_ = networkInterfaceIndex_; 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.UpdateInstanceNetworkInterfaceMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getNetworkInterfaceIndex().isEmpty()) { networkInterfaceIndex_ = other.networkInterfaceIndex_; 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.UpdateInstanceNetworkInterfaceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instant network interface 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 instant network interface 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 instant network interface 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 instant network interface 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 instant network interface 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 java.lang.Object networkInterfaceIndex_ = ""; /** *
       * The index of the network interface.
       * 
* * string network_interface_index = 2; * @return The networkInterfaceIndex. */ public java.lang.String getNetworkInterfaceIndex() { java.lang.Object ref = networkInterfaceIndex_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkInterfaceIndex_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The index of the network interface.
       * 
* * string network_interface_index = 2; * @return The bytes for networkInterfaceIndex. */ public com.google.protobuf.ByteString getNetworkInterfaceIndexBytes() { java.lang.Object ref = networkInterfaceIndex_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkInterfaceIndex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The index of the network interface.
       * 
* * string network_interface_index = 2; * @param value The networkInterfaceIndex to set. * @return This builder for chaining. */ public Builder setNetworkInterfaceIndex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkInterfaceIndex_ = value; onChanged(); return this; } /** *
       * The index of the network interface.
       * 
* * string network_interface_index = 2; * @return This builder for chaining. */ public Builder clearNetworkInterfaceIndex() { networkInterfaceIndex_ = getDefaultInstance().getNetworkInterfaceIndex(); onChanged(); return this; } /** *
       * The index of the network interface.
       * 
* * string network_interface_index = 2; * @param value The bytes for networkInterfaceIndex to set. * @return This builder for chaining. */ public Builder setNetworkInterfaceIndexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkInterfaceIndex_ = 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.UpdateInstanceNetworkInterfaceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateInstanceNetworkInterfaceMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.UpdateInstanceNetworkInterfaceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateInstanceNetworkInterfaceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateInstanceNetworkInterfaceMetadata(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.UpdateInstanceNetworkInterfaceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListInstanceOperationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the Instance resource to list operations for.
     * 
* * 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 list operations for.
     * 
* * string instance_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size], the service returns a [ListInstanceOperationsResponse.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
     * [ListInstanceOperationsResponse.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
     * [ListInstanceOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ListInstanceOperationsRequest} */ public static final class ListInstanceOperationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListInstanceOperationsRequest) ListInstanceOperationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceOperationsRequest.newBuilder() to construct. private ListInstanceOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceOperationsRequest() { instanceId_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceOperationsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceOperationsRequest( 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: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the Instance resource to list operations 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 resource to list operations 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 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 [ListInstanceOperationsResponse.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
     * [ListInstanceOperationsResponse.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
     * [ListInstanceOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest 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.ListInstanceOperationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListInstanceOperationsRequest) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest.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_ = ""; pageSize_ = 0L; pageToken_ = ""; 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_ListInstanceOperationsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest(this); result.instanceId_ = instanceId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the Instance resource to list operations 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 resource to list operations 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 resource to list operations 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 resource to list operations 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 resource to list operations 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 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 [ListInstanceOperationsResponse.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 [ListInstanceOperationsResponse.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 [ListInstanceOperationsResponse.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
       * [ListInstanceOperationsResponse.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
       * [ListInstanceOperationsResponse.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
       * [ListInstanceOperationsResponse.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
       * [ListInstanceOperationsResponse.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
       * [ListInstanceOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.ListInstanceOperationsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListInstanceOperationsRequest) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceOperationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceOperationsRequest(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.ListInstanceOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListInstanceOperationsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsList(); /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index); /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ int getOperationsCount(); /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsOrBuilderList(); /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index); /** *
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
     * for the [ListInstanceOperationsRequest.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 [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
     * for the [ListInstanceOperationsRequest.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.ListInstanceOperationsResponse} */ public static final class ListInstanceOperationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListInstanceOperationsResponse) ListInstanceOperationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceOperationsResponse.newBuilder() to construct. private ListInstanceOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceOperationsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceOperationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } operations_.add( input.readMessage(yandex.cloud.api.operation.OperationOuterClass.Operation.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse.Builder.class); } public static final int OPERATIONS_FIELD_NUMBER = 1; private java.util.List operations_; /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsList() { return operations_; } /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsOrBuilderList() { return operations_; } /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public int getOperationsCount() { return operations_.size(); } /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { return operations_.get(index); } /** *
     * List of operations for the specified instance.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
     * for the [ListInstanceOperationsRequest.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 [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
     * for the [ListInstanceOperationsRequest.page_token] query parameter in the next list request.
     * Each subsequent list request will have its own [next_page_token] to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < operations_.size(); i++) { output.writeMessage(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < operations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse) obj; if (!getOperationsList() .equals(other.getOperationsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse 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.ListInstanceOperationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListInstanceOperationsResponse) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { operationsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse(this); int from_bitField0_ = bitField0_; if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); bitField0_ = (bitField0_ & ~0x00000001); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse.getDefaultInstance()) return this; if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); } onChanged(); } } else { if (!other.operations_.isEmpty()) { if (operationsBuilder_.isEmpty()) { operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); operationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_; /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsList() { if (operationsBuilder_ == null) { return java.util.Collections.unmodifiableList(operations_); } else { return operationsBuilder_.getMessageList(); } } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public int getOperationsCount() { if (operationsBuilder_ == null) { return operations_.size(); } else { return operationsBuilder_.getCount(); } } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessage(index); } } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder setOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.set(index, value); onChanged(); } else { operationsBuilder_.setMessage(index, value); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder setOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.set(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations(yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(value); onChanged(); } else { operationsBuilder_.addMessage(value); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(index, value); onChanged(); } else { operationsBuilder_.addMessage(index, value); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addAllOperations( java.lang.Iterable values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder clearOperations() { if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { operationsBuilder_.clear(); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder removeOperations(int index) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.remove(index); onChanged(); } else { operationsBuilder_.remove(index); } return this; } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(operations_); } } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder() { return getOperationsFieldBuilder().addBuilder( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()); } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder( int index) { return getOperationsFieldBuilder().addBuilder( index, yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()); } /** *
       * List of operations for the specified instance.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>( operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * This token allows you to get the next page of results for list requests. If the number of results
       * is larger than [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceOperationsRequest.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 [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceOperationsRequest.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 [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceOperationsRequest.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 [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceOperationsRequest.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 [ListInstanceOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceOperationsRequest.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.ListInstanceOperationsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListInstanceOperationsResponse) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ListInstanceOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceOperationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceOperationsResponse(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.ListInstanceOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourcesSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ResourcesSpec) com.google.protobuf.MessageOrBuilder { /** *
     * The amount of memory available to the instance, specified in bytes.
     * 
* * int64 memory = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "<=274877906944"]; * @return The memory. */ long getMemory(); /** *
     * The number of cores available to the instance.
     * 
* * int64 cores = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @return The cores. */ long getCores(); /** *
     * Baseline level of CPU performance with the ability to burst performance above that baseline level.
     * This field sets baseline performance for each core.
     * For example, if you need only 5% of the CPU performance, you can set core_fraction=5.
     * For more information, see [Levels of core performance](/docs/compute/concepts/performance-levels).
     * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @return The coreFraction. */ long getCoreFraction(); /** *
     * The number of GPUs available to the instance.
     * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @return The gpus. */ long getGpus(); } /** * Protobuf type {@code yandex.cloud.compute.v1.ResourcesSpec} */ public static final class ResourcesSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ResourcesSpec) ResourcesSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ResourcesSpec.newBuilder() to construct. private ResourcesSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourcesSpec() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResourcesSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourcesSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { memory_ = input.readInt64(); break; } case 16: { cores_ = input.readInt64(); break; } case 24: { coreFraction_ = input.readInt64(); break; } case 32: { gpus_ = 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_ResourcesSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ResourcesSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder.class); } public static final int MEMORY_FIELD_NUMBER = 1; private long memory_; /** *
     * The amount of memory available to the instance, specified in bytes.
     * 
* * int64 memory = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "<=274877906944"]; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } public static final int CORES_FIELD_NUMBER = 2; private long cores_; /** *
     * The number of cores available to the instance.
     * 
* * int64 cores = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @return The cores. */ @java.lang.Override public long getCores() { return cores_; } public static final int CORE_FRACTION_FIELD_NUMBER = 3; private long coreFraction_; /** *
     * Baseline level of CPU performance with the ability to burst performance above that baseline level.
     * This field sets baseline performance for each core.
     * For example, if you need only 5% of the CPU performance, you can set core_fraction=5.
     * For more information, see [Levels of core performance](/docs/compute/concepts/performance-levels).
     * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @return The coreFraction. */ @java.lang.Override public long getCoreFraction() { return coreFraction_; } public static final int GPUS_FIELD_NUMBER = 4; private long gpus_; /** *
     * The number of GPUs available to the instance.
     * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @return The gpus. */ @java.lang.Override public long getGpus() { return gpus_; } 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 (memory_ != 0L) { output.writeInt64(1, memory_); } if (cores_ != 0L) { output.writeInt64(2, cores_); } if (coreFraction_ != 0L) { output.writeInt64(3, coreFraction_); } if (gpus_ != 0L) { output.writeInt64(4, gpus_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (memory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, memory_); } if (cores_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, cores_); } if (coreFraction_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, coreFraction_); } if (gpus_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, gpus_); } 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.ResourcesSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec) obj; if (getMemory() != other.getMemory()) return false; if (getCores() != other.getCores()) return false; if (getCoreFraction() != other.getCoreFraction()) return false; if (getGpus() != other.getGpus()) 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) + MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemory()); hash = (37 * hash) + CORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCores()); hash = (37 * hash) + CORE_FRACTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCoreFraction()); hash = (37 * hash) + GPUS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGpus()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec 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.ResourcesSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec 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.ResourcesSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec 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.ResourcesSpec 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.ResourcesSpec 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.ResourcesSpec 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.ResourcesSpec 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.ResourcesSpec 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.ResourcesSpec 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.ResourcesSpec 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.ResourcesSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ResourcesSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ResourcesSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_ResourcesSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.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(); memory_ = 0L; cores_ = 0L; coreFraction_ = 0L; gpus_ = 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_ResourcesSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec(this); result.memory_ = memory_; result.cores_ = cores_; result.coreFraction_ = coreFraction_; result.gpus_ = gpus_; 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.ResourcesSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec.getDefaultInstance()) return this; if (other.getMemory() != 0L) { setMemory(other.getMemory()); } if (other.getCores() != 0L) { setCores(other.getCores()); } if (other.getCoreFraction() != 0L) { setCoreFraction(other.getCoreFraction()); } if (other.getGpus() != 0L) { setGpus(other.getGpus()); } 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.ResourcesSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long memory_ ; /** *
       * The amount of memory available to the instance, specified in bytes.
       * 
* * int64 memory = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "<=274877906944"]; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } /** *
       * The amount of memory available to the instance, specified in bytes.
       * 
* * int64 memory = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "<=274877906944"]; * @param value The memory to set. * @return This builder for chaining. */ public Builder setMemory(long value) { memory_ = value; onChanged(); return this; } /** *
       * The amount of memory available to the instance, specified in bytes.
       * 
* * int64 memory = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "<=274877906944"]; * @return This builder for chaining. */ public Builder clearMemory() { memory_ = 0L; onChanged(); return this; } private long cores_ ; /** *
       * The number of cores available to the instance.
       * 
* * int64 cores = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @return The cores. */ @java.lang.Override public long getCores() { return cores_; } /** *
       * The number of cores available to the instance.
       * 
* * int64 cores = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @param value The cores to set. * @return This builder for chaining. */ public Builder setCores(long value) { cores_ = value; onChanged(); return this; } /** *
       * The number of cores available to the instance.
       * 
* * int64 cores = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @return This builder for chaining. */ public Builder clearCores() { cores_ = 0L; onChanged(); return this; } private long coreFraction_ ; /** *
       * Baseline level of CPU performance with the ability to burst performance above that baseline level.
       * This field sets baseline performance for each core.
       * For example, if you need only 5% of the CPU performance, you can set core_fraction=5.
       * For more information, see [Levels of core performance](/docs/compute/concepts/performance-levels).
       * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @return The coreFraction. */ @java.lang.Override public long getCoreFraction() { return coreFraction_; } /** *
       * Baseline level of CPU performance with the ability to burst performance above that baseline level.
       * This field sets baseline performance for each core.
       * For example, if you need only 5% of the CPU performance, you can set core_fraction=5.
       * For more information, see [Levels of core performance](/docs/compute/concepts/performance-levels).
       * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @param value The coreFraction to set. * @return This builder for chaining. */ public Builder setCoreFraction(long value) { coreFraction_ = value; onChanged(); return this; } /** *
       * Baseline level of CPU performance with the ability to burst performance above that baseline level.
       * This field sets baseline performance for each core.
       * For example, if you need only 5% of the CPU performance, you can set core_fraction=5.
       * For more information, see [Levels of core performance](/docs/compute/concepts/performance-levels).
       * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @return This builder for chaining. */ public Builder clearCoreFraction() { coreFraction_ = 0L; onChanged(); return this; } private long gpus_ ; /** *
       * The number of GPUs available to the instance.
       * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @return The gpus. */ @java.lang.Override public long getGpus() { return gpus_; } /** *
       * The number of GPUs available to the instance.
       * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @param value The gpus to set. * @return This builder for chaining. */ public Builder setGpus(long value) { gpus_ = value; onChanged(); return this; } /** *
       * The number of GPUs available to the instance.
       * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @return This builder for chaining. */ public Builder clearGpus() { gpus_ = 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.ResourcesSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ResourcesSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.ResourcesSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourcesSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourcesSpec(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.ResourcesSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttachedDiskSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachedDiskSpec) com.google.protobuf.MessageOrBuilder { /** *
     * The mode in which to attach this disk.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** *
     * The mode in which to attach this disk.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @return The mode. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode getMode(); /** *
     * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
     * of a Linux operating system running within the instance.
     * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The deviceName. */ java.lang.String getDeviceName(); /** *
     * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
     * of a Linux operating system running within the instance.
     * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); /** *
     * Specifies whether the disk will be auto-deleted when the instance is deleted.
     * 
* * bool auto_delete = 3; * @return The autoDelete. */ boolean getAutoDelete(); /** *
     * Disk specification.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; * @return Whether the diskSpec field is set. */ boolean hasDiskSpec(); /** *
     * Disk specification.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; * @return The diskSpec. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec getDiskSpec(); /** *
     * Disk specification.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpecOrBuilder getDiskSpecOrBuilder(); /** *
     * ID of the disk that should be attached.
     * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the diskId field is set. */ boolean hasDiskId(); /** *
     * ID of the disk that should be attached.
     * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The diskId. */ java.lang.String getDiskId(); /** *
     * ID of the disk that should be attached.
     * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for diskId. */ com.google.protobuf.ByteString getDiskIdBytes(); public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskCase getDiskCase(); } /** * Protobuf type {@code yandex.cloud.compute.v1.AttachedDiskSpec} */ public static final class AttachedDiskSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachedDiskSpec) AttachedDiskSpecOrBuilder { private static final long serialVersionUID = 0L; // Use AttachedDiskSpec.newBuilder() to construct. private AttachedDiskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttachedDiskSpec() { mode_ = 0; deviceName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AttachedDiskSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachedDiskSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); mode_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); deviceName_ = s; break; } case 24: { autoDelete_ = input.readBool(); break; } case 34: { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.Builder subBuilder = null; if (diskCase_ == 4) { subBuilder = ((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_).toBuilder(); } disk_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_); disk_ = subBuilder.buildPartial(); } diskCase_ = 4; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); diskCase_ = 5; 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_AttachedDiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.AttachedDiskSpec.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), /** *
       * Read-only access.
       * 
* * READ_ONLY = 1; */ READ_ONLY(1), /** *
       * Read/Write access. Default value.
       * 
* * READ_WRITE = 2; */ READ_WRITE(2), UNRECOGNIZED(-1), ; /** * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** *
       * Read-only access.
       * 
* * READ_ONLY = 1; */ public static final int READ_ONLY_VALUE = 1; /** *
       * Read/Write access. Default value.
       * 
* * READ_WRITE = 2; */ public static final int READ_WRITE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode 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 Mode forNumber(int value) { switch (value) { case 0: return MODE_UNSPECIFIED; case 1: return READ_ONLY; case 2: return READ_WRITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.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.AttachedDiskSpec.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode 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 Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.AttachedDiskSpec.Mode) } public interface DiskSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the disk.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @return The name. */ java.lang.String getName(); /** *
       * Name of the disk.
       * 
* * string name = 1 [(.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 disk.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
       * Description of the disk.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
       * ID of the disk type.
       * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
       * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The typeId. */ java.lang.String getTypeId(); /** *
       * ID of the disk type.
       * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
       * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for typeId. */ com.google.protobuf.ByteString getTypeIdBytes(); /** *
       * Size of the disk, specified in bytes.
       * 
* * int64 size = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "4194304-4398046511104"]; * @return The size. */ long getSize(); /** *
       * Block size of the disk, specified in bytes. The default is 4096.
       * 
* * int64 block_size = 8; * @return The blockSize. */ long getBlockSize(); /** *
       * Placement policy configuration.
       * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; * @return Whether the diskPlacementPolicy field is set. */ boolean hasDiskPlacementPolicy(); /** *
       * Placement policy configuration.
       * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; * @return The diskPlacementPolicy. */ yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy getDiskPlacementPolicy(); /** *
       * Placement policy configuration.
       * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicyOrBuilder getDiskPlacementPolicyOrBuilder(); /** *
       * ID of the image to create the disk from.
       * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the imageId field is set. */ boolean hasImageId(); /** *
       * ID of the image to create the disk from.
       * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The imageId. */ java.lang.String getImageId(); /** *
       * ID of the image to create the disk from.
       * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for imageId. */ com.google.protobuf.ByteString getImageIdBytes(); /** *
       * ID of the snapshot to restore the disk from.
       * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return Whether the snapshotId field is set. */ boolean hasSnapshotId(); /** *
       * ID of the snapshot to restore the disk from.
       * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The snapshotId. */ java.lang.String getSnapshotId(); /** *
       * ID of the snapshot to restore the disk from.
       * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for snapshotId. */ com.google.protobuf.ByteString getSnapshotIdBytes(); public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.SourceCase getSourceCase(); } /** * Protobuf type {@code yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec} */ public static final class DiskSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec) DiskSpecOrBuilder { private static final long serialVersionUID = 0L; // Use DiskSpec.newBuilder() to construct. private DiskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiskSpec() { name_ = ""; description_ = ""; typeId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiskSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiskSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); typeId_ = s; break; } case 32: { size_ = input.readInt64(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); sourceCase_ = 5; source_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); sourceCase_ = 6; source_ = s; break; } case 58: { yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.Builder subBuilder = null; if (diskPlacementPolicy_ != null) { subBuilder = diskPlacementPolicy_.toBuilder(); } diskPlacementPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(diskPlacementPolicy_); diskPlacementPolicy_ = subBuilder.buildPartial(); } break; } case 64: { blockSize_ = 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_AttachedDiskSpec_DiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_DiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.Builder.class); } private int sourceCase_ = 0; private java.lang.Object source_; public enum SourceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_ID(5), SNAPSHOT_ID(6), SOURCE_NOT_SET(0); private final int value; private SourceCase(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 SourceCase valueOf(int value) { return forNumber(value); } public static SourceCase forNumber(int value) { switch (value) { case 5: return IMAGE_ID; case 6: return SNAPSHOT_ID; case 0: return SOURCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SourceCase getSourceCase() { return SourceCase.forNumber( sourceCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
       * Name of the disk.
       * 
* * string name = 1 [(.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 disk.
       * 
* * string name = 1 [(.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 = 2; private volatile java.lang.Object description_; /** *
       * Description of the disk.
       * 
* * string description = 2 [(.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 disk.
       * 
* * string description = 2 [(.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 TYPE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object typeId_; /** *
       * ID of the disk type.
       * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
       * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The typeId. */ @java.lang.Override public java.lang.String getTypeId() { java.lang.Object ref = typeId_; 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(); typeId_ = s; return s; } } /** *
       * ID of the disk type.
       * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
       * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for typeId. */ @java.lang.Override public com.google.protobuf.ByteString getTypeIdBytes() { java.lang.Object ref = typeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIZE_FIELD_NUMBER = 4; private long size_; /** *
       * Size of the disk, specified in bytes.
       * 
* * int64 size = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "4194304-4398046511104"]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int BLOCK_SIZE_FIELD_NUMBER = 8; private long blockSize_; /** *
       * Block size of the disk, specified in bytes. The default is 4096.
       * 
* * int64 block_size = 8; * @return The blockSize. */ @java.lang.Override public long getBlockSize() { return blockSize_; } public static final int DISK_PLACEMENT_POLICY_FIELD_NUMBER = 7; private yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy diskPlacementPolicy_; /** *
       * Placement policy configuration.
       * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; * @return Whether the diskPlacementPolicy field is set. */ @java.lang.Override public boolean hasDiskPlacementPolicy() { return diskPlacementPolicy_ != null; } /** *
       * Placement policy configuration.
       * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; * @return The diskPlacementPolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy getDiskPlacementPolicy() { return diskPlacementPolicy_ == null ? yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.getDefaultInstance() : diskPlacementPolicy_; } /** *
       * Placement policy configuration.
       * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ @java.lang.Override public yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicyOrBuilder getDiskPlacementPolicyOrBuilder() { return getDiskPlacementPolicy(); } public static final int IMAGE_ID_FIELD_NUMBER = 5; /** *
       * ID of the image to create the disk from.
       * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the imageId field is set. */ public boolean hasImageId() { return sourceCase_ == 5; } /** *
       * ID of the image to create the disk from.
       * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The imageId. */ public java.lang.String getImageId() { java.lang.Object ref = ""; if (sourceCase_ == 5) { ref = source_; } 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 (sourceCase_ == 5) { source_ = s; } return s; } } /** *
       * ID of the image to create the disk from.
       * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for imageId. */ public com.google.protobuf.ByteString getImageIdBytes() { java.lang.Object ref = ""; if (sourceCase_ == 5) { ref = source_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceCase_ == 5) { source_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SNAPSHOT_ID_FIELD_NUMBER = 6; /** *
       * ID of the snapshot to restore the disk from.
       * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return Whether the snapshotId field is set. */ public boolean hasSnapshotId() { return sourceCase_ == 6; } /** *
       * ID of the snapshot to restore the disk from.
       * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The snapshotId. */ public java.lang.String getSnapshotId() { java.lang.Object ref = ""; if (sourceCase_ == 6) { ref = source_; } 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 (sourceCase_ == 6) { source_ = s; } return s; } } /** *
       * ID of the snapshot to restore the disk from.
       * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for snapshotId. */ public com.google.protobuf.ByteString getSnapshotIdBytes() { java.lang.Object ref = ""; if (sourceCase_ == 6) { ref = source_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceCase_ == 6) { source_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, typeId_); } if (size_ != 0L) { output.writeInt64(4, size_); } if (sourceCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, source_); } if (sourceCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, source_); } if (diskPlacementPolicy_ != null) { output.writeMessage(7, getDiskPlacementPolicy()); } if (blockSize_ != 0L) { output.writeInt64(8, blockSize_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, typeId_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, size_); } if (sourceCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, source_); } if (sourceCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, source_); } if (diskPlacementPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getDiskPlacementPolicy()); } if (blockSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, blockSize_); } 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.AttachedDiskSpec.DiskSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getTypeId() .equals(other.getTypeId())) return false; if (getSize() != other.getSize()) return false; if (getBlockSize() != other.getBlockSize()) return false; if (hasDiskPlacementPolicy() != other.hasDiskPlacementPolicy()) return false; if (hasDiskPlacementPolicy()) { if (!getDiskPlacementPolicy() .equals(other.getDiskPlacementPolicy())) return false; } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 5: if (!getImageId() .equals(other.getImageId())) return false; break; case 6: if (!getSnapshotId() .equals(other.getSnapshotId())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + TYPE_ID_FIELD_NUMBER; hash = (53 * hash) + getTypeId().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (37 * hash) + BLOCK_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBlockSize()); if (hasDiskPlacementPolicy()) { hash = (37 * hash) + DISK_PLACEMENT_POLICY_FIELD_NUMBER; hash = (53 * hash) + getDiskPlacementPolicy().hashCode(); } switch (sourceCase_) { case 5: hash = (37 * hash) + IMAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getImageId().hashCode(); break; case 6: hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec 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.AttachedDiskSpec.DiskSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_DiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_DiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; description_ = ""; typeId_ = ""; size_ = 0L; blockSize_ = 0L; if (diskPlacementPolicyBuilder_ == null) { diskPlacementPolicy_ = null; } else { diskPlacementPolicy_ = null; diskPlacementPolicyBuilder_ = null; } sourceCase_ = 0; source_ = 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_AttachedDiskSpec_DiskSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec(this); result.name_ = name_; result.description_ = description_; result.typeId_ = typeId_; result.size_ = size_; result.blockSize_ = blockSize_; if (diskPlacementPolicyBuilder_ == null) { result.diskPlacementPolicy_ = diskPlacementPolicy_; } else { result.diskPlacementPolicy_ = diskPlacementPolicyBuilder_.build(); } if (sourceCase_ == 5) { result.source_ = source_; } if (sourceCase_ == 6) { result.source_ = source_; } result.sourceCase_ = sourceCase_; 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.AttachedDiskSpec.DiskSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getTypeId().isEmpty()) { typeId_ = other.typeId_; onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); } if (other.getBlockSize() != 0L) { setBlockSize(other.getBlockSize()); } if (other.hasDiskPlacementPolicy()) { mergeDiskPlacementPolicy(other.getDiskPlacementPolicy()); } switch (other.getSourceCase()) { case IMAGE_ID: { sourceCase_ = 5; source_ = other.source_; onChanged(); break; } case SNAPSHOT_ID: { sourceCase_ = 6; source_ = other.source_; onChanged(); break; } case SOURCE_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.AttachedDiskSpec.DiskSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sourceCase_ = 0; private java.lang.Object source_; public SourceCase getSourceCase() { return SourceCase.forNumber( sourceCase_); } public Builder clearSource() { sourceCase_ = 0; source_ = null; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
         * Name of the disk.
         * 
* * string name = 1 [(.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 disk.
         * 
* * string name = 1 [(.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 disk.
         * 
* * string name = 1 [(.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 disk.
         * 
* * string name = 1 [(.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 disk.
         * 
* * string name = 1 [(.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 disk.
         * 
* * string description = 2 [(.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 disk.
         * 
* * string description = 2 [(.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 disk.
         * 
* * string description = 2 [(.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 disk.
         * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
         * Description of the disk.
         * 
* * string description = 2 [(.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 java.lang.Object typeId_ = ""; /** *
         * ID of the disk type.
         * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
         * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The typeId. */ public java.lang.String getTypeId() { java.lang.Object ref = typeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the disk type.
         * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
         * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for typeId. */ public com.google.protobuf.ByteString getTypeIdBytes() { java.lang.Object ref = typeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the disk type.
         * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
         * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @param value The typeId to set. * @return This builder for chaining. */ public Builder setTypeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeId_ = value; onChanged(); return this; } /** *
         * ID of the disk type.
         * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
         * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearTypeId() { typeId_ = getDefaultInstance().getTypeId(); onChanged(); return this; } /** *
         * ID of the disk type.
         * To get a list of available disk types, use the [yandex.cloud.compute.v1.DiskTypeService.List] request.
         * 
* * string type_id = 3 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for typeId to set. * @return This builder for chaining. */ public Builder setTypeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeId_ = value; onChanged(); return this; } private long size_ ; /** *
         * Size of the disk, specified in bytes.
         * 
* * int64 size = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "4194304-4398046511104"]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
         * Size of the disk, specified in bytes.
         * 
* * int64 size = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "4194304-4398046511104"]; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
         * Size of the disk, specified in bytes.
         * 
* * int64 size = 4 [(.yandex.cloud.required) = true, (.yandex.cloud.value) = "4194304-4398046511104"]; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } private long blockSize_ ; /** *
         * Block size of the disk, specified in bytes. The default is 4096.
         * 
* * int64 block_size = 8; * @return The blockSize. */ @java.lang.Override public long getBlockSize() { return blockSize_; } /** *
         * Block size of the disk, specified in bytes. The default is 4096.
         * 
* * int64 block_size = 8; * @param value The blockSize to set. * @return This builder for chaining. */ public Builder setBlockSize(long value) { blockSize_ = value; onChanged(); return this; } /** *
         * Block size of the disk, specified in bytes. The default is 4096.
         * 
* * int64 block_size = 8; * @return This builder for chaining. */ public Builder clearBlockSize() { blockSize_ = 0L; onChanged(); return this; } private yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy diskPlacementPolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy, yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.Builder, yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicyOrBuilder> diskPlacementPolicyBuilder_; /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; * @return Whether the diskPlacementPolicy field is set. */ public boolean hasDiskPlacementPolicy() { return diskPlacementPolicyBuilder_ != null || diskPlacementPolicy_ != null; } /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; * @return The diskPlacementPolicy. */ public yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy getDiskPlacementPolicy() { if (diskPlacementPolicyBuilder_ == null) { return diskPlacementPolicy_ == null ? yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.getDefaultInstance() : diskPlacementPolicy_; } else { return diskPlacementPolicyBuilder_.getMessage(); } } /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ public Builder setDiskPlacementPolicy(yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy value) { if (diskPlacementPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } diskPlacementPolicy_ = value; onChanged(); } else { diskPlacementPolicyBuilder_.setMessage(value); } return this; } /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ public Builder setDiskPlacementPolicy( yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.Builder builderForValue) { if (diskPlacementPolicyBuilder_ == null) { diskPlacementPolicy_ = builderForValue.build(); onChanged(); } else { diskPlacementPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ public Builder mergeDiskPlacementPolicy(yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy value) { if (diskPlacementPolicyBuilder_ == null) { if (diskPlacementPolicy_ != null) { diskPlacementPolicy_ = yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.newBuilder(diskPlacementPolicy_).mergeFrom(value).buildPartial(); } else { diskPlacementPolicy_ = value; } onChanged(); } else { diskPlacementPolicyBuilder_.mergeFrom(value); } return this; } /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ public Builder clearDiskPlacementPolicy() { if (diskPlacementPolicyBuilder_ == null) { diskPlacementPolicy_ = null; onChanged(); } else { diskPlacementPolicy_ = null; diskPlacementPolicyBuilder_ = null; } return this; } /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ public yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.Builder getDiskPlacementPolicyBuilder() { onChanged(); return getDiskPlacementPolicyFieldBuilder().getBuilder(); } /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ public yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicyOrBuilder getDiskPlacementPolicyOrBuilder() { if (diskPlacementPolicyBuilder_ != null) { return diskPlacementPolicyBuilder_.getMessageOrBuilder(); } else { return diskPlacementPolicy_ == null ? yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.getDefaultInstance() : diskPlacementPolicy_; } } /** *
         * Placement policy configuration.
         * 
* * .yandex.cloud.compute.v1.DiskPlacementPolicy disk_placement_policy = 7; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy, yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.Builder, yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicyOrBuilder> getDiskPlacementPolicyFieldBuilder() { if (diskPlacementPolicyBuilder_ == null) { diskPlacementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy, yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicy.Builder, yandex.cloud.api.compute.v1.DiskOuterClass.DiskPlacementPolicyOrBuilder>( getDiskPlacementPolicy(), getParentForChildren(), isClean()); diskPlacementPolicy_ = null; } return diskPlacementPolicyBuilder_; } /** *
         * ID of the image to create the disk from.
         * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the imageId field is set. */ @java.lang.Override public boolean hasImageId() { return sourceCase_ == 5; } /** *
         * ID of the image to create the disk from.
         * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The imageId. */ @java.lang.Override public java.lang.String getImageId() { java.lang.Object ref = ""; if (sourceCase_ == 5) { ref = source_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 5) { source_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the image to create the disk from.
         * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for imageId. */ @java.lang.Override public com.google.protobuf.ByteString getImageIdBytes() { java.lang.Object ref = ""; if (sourceCase_ == 5) { ref = source_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceCase_ == 5) { source_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the image to create the disk from.
         * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @param value The imageId to set. * @return This builder for chaining. */ public Builder setImageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceCase_ = 5; source_ = value; onChanged(); return this; } /** *
         * ID of the image to create the disk from.
         * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearImageId() { if (sourceCase_ == 5) { sourceCase_ = 0; source_ = null; onChanged(); } return this; } /** *
         * ID of the image to create the disk from.
         * 
* * string image_id = 5 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for imageId to set. * @return This builder for chaining. */ public Builder setImageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 5; source_ = value; onChanged(); return this; } /** *
         * ID of the snapshot to restore the disk from.
         * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return Whether the snapshotId field is set. */ @java.lang.Override public boolean hasSnapshotId() { return sourceCase_ == 6; } /** *
         * ID of the snapshot to restore the disk from.
         * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The snapshotId. */ @java.lang.Override public java.lang.String getSnapshotId() { java.lang.Object ref = ""; if (sourceCase_ == 6) { ref = source_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCase_ == 6) { source_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the snapshot to restore the disk from.
         * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for snapshotId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotIdBytes() { java.lang.Object ref = ""; if (sourceCase_ == 6) { ref = source_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceCase_ == 6) { source_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the snapshot to restore the disk from.
         * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @param value The snapshotId to set. * @return This builder for chaining. */ public Builder setSnapshotId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceCase_ = 6; source_ = value; onChanged(); return this; } /** *
         * ID of the snapshot to restore the disk from.
         * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearSnapshotId() { if (sourceCase_ == 6) { sourceCase_ = 0; source_ = null; onChanged(); } return this; } /** *
         * ID of the snapshot to restore the disk from.
         * 
* * string snapshot_id = 6 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for snapshotId to set. * @return This builder for chaining. */ public Builder setSnapshotIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCase_ = 6; source_ = 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.AttachedDiskSpec.DiskSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiskSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiskSpec(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.AttachedDiskSpec.DiskSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int diskCase_ = 0; private java.lang.Object disk_; public enum DiskCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DISK_SPEC(4), DISK_ID(5), 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 4: return DISK_SPEC; case 5: return DISK_ID; 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 MODE_FIELD_NUMBER = 1; private int mode_; /** *
     * The mode in which to attach this disk.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** *
     * The mode in which to attach this disk.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @return The mode. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode result = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode.UNRECOGNIZED : result; } public static final int DEVICE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object deviceName_; /** *
     * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
     * of a Linux operating system running within the instance.
     * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The deviceName. */ @java.lang.Override public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; 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(); deviceName_ = s; return s; } } /** *
     * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
     * of a Linux operating system running within the instance.
     * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.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 = deviceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTO_DELETE_FIELD_NUMBER = 3; private boolean autoDelete_; /** *
     * Specifies whether the disk will be auto-deleted when the instance is deleted.
     * 
* * bool auto_delete = 3; * @return The autoDelete. */ @java.lang.Override public boolean getAutoDelete() { return autoDelete_; } public static final int DISK_SPEC_FIELD_NUMBER = 4; /** *
     * Disk specification.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; * @return Whether the diskSpec field is set. */ @java.lang.Override public boolean hasDiskSpec() { return diskCase_ == 4; } /** *
     * Disk specification.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; * @return The diskSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec getDiskSpec() { if (diskCase_ == 4) { return (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_; } return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance(); } /** *
     * Disk specification.
     * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpecOrBuilder getDiskSpecOrBuilder() { if (diskCase_ == 4) { return (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_; } return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance(); } public static final int DISK_ID_FIELD_NUMBER = 5; /** *
     * ID of the disk that should be attached.
     * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the diskId field is set. */ public boolean hasDiskId() { return diskCase_ == 5; } /** *
     * ID of the disk that should be attached.
     * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The diskId. */ public java.lang.String getDiskId() { java.lang.Object ref = ""; if (diskCase_ == 5) { 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_ == 5) { disk_ = s; } return s; } } /** *
     * ID of the disk that should be attached.
     * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for diskId. */ public com.google.protobuf.ByteString getDiskIdBytes() { java.lang.Object ref = ""; if (diskCase_ == 5) { ref = disk_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (diskCase_ == 5) { 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 (mode_ != yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_); } if (autoDelete_ != false) { output.writeBool(3, autoDelete_); } if (diskCase_ == 4) { output.writeMessage(4, (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_); } if (diskCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, disk_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mode_ != yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode.MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, mode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_); } if (autoDelete_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, autoDelete_); } if (diskCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_); } if (diskCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.AttachedDiskSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec) obj; if (mode_ != other.mode_) return false; if (!getDeviceName() .equals(other.getDeviceName())) return false; if (getAutoDelete() != other.getAutoDelete()) return false; if (!getDiskCase().equals(other.getDiskCase())) return false; switch (diskCase_) { case 4: if (!getDiskSpec() .equals(other.getDiskSpec())) return false; break; case 5: if (!getDiskId() .equals(other.getDiskId())) 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) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDeviceName().hashCode(); hash = (37 * hash) + AUTO_DELETE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAutoDelete()); switch (diskCase_) { case 4: hash = (37 * hash) + DISK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDiskSpec().hashCode(); break; case 5: hash = (37 * hash) + DISK_ID_FIELD_NUMBER; hash = (53 * hash) + getDiskId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec 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.AttachedDiskSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec 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.AttachedDiskSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec 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.AttachedDiskSpec 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.AttachedDiskSpec 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.AttachedDiskSpec 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.AttachedDiskSpec 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.AttachedDiskSpec 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.AttachedDiskSpec 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.AttachedDiskSpec 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.AttachedDiskSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachedDiskSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.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(); mode_ = 0; deviceName_ = ""; autoDelete_ = false; 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_AttachedDiskSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec(this); result.mode_ = mode_; result.deviceName_ = deviceName_; result.autoDelete_ = autoDelete_; if (diskCase_ == 4) { if (diskSpecBuilder_ == null) { result.disk_ = disk_; } else { result.disk_ = diskSpecBuilder_.build(); } } if (diskCase_ == 5) { 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.AttachedDiskSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } if (!other.getDeviceName().isEmpty()) { deviceName_ = other.deviceName_; onChanged(); } if (other.getAutoDelete() != false) { setAutoDelete(other.getAutoDelete()); } switch (other.getDiskCase()) { case DISK_SPEC: { mergeDiskSpec(other.getDiskSpec()); break; } case DISK_ID: { diskCase_ = 5; 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.AttachedDiskSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec) 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 int mode_ = 0; /** *
       * The mode in which to attach this disk.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** *
       * The mode in which to attach this disk.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { mode_ = value; onChanged(); return this; } /** *
       * The mode in which to attach this disk.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @return The mode. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode result = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode.UNRECOGNIZED : result; } /** *
       * The mode in which to attach this disk.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.Mode value) { if (value == null) { throw new NullPointerException(); } mode_ = value.getNumber(); onChanged(); return this; } /** *
       * The mode in which to attach this disk.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.Mode mode = 1; * @return This builder for chaining. */ public Builder clearMode() { mode_ = 0; onChanged(); return this; } private java.lang.Object deviceName_ = ""; /** *
       * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.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(); } deviceName_ = value; onChanged(); return this; } /** *
       * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return This builder for chaining. */ public Builder clearDeviceName() { deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** *
       * Specifies a unique serial number of your choice that is reflected into the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.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); deviceName_ = value; onChanged(); return this; } private boolean autoDelete_ ; /** *
       * Specifies whether the disk will be auto-deleted when the instance is deleted.
       * 
* * bool auto_delete = 3; * @return The autoDelete. */ @java.lang.Override public boolean getAutoDelete() { return autoDelete_; } /** *
       * Specifies whether the disk will be auto-deleted when the instance is deleted.
       * 
* * bool auto_delete = 3; * @param value The autoDelete to set. * @return This builder for chaining. */ public Builder setAutoDelete(boolean value) { autoDelete_ = value; onChanged(); return this; } /** *
       * Specifies whether the disk will be auto-deleted when the instance is deleted.
       * 
* * bool auto_delete = 3; * @return This builder for chaining. */ public Builder clearAutoDelete() { autoDelete_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpecOrBuilder> diskSpecBuilder_; /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; * @return Whether the diskSpec field is set. */ @java.lang.Override public boolean hasDiskSpec() { return diskCase_ == 4; } /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; * @return The diskSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec getDiskSpec() { if (diskSpecBuilder_ == null) { if (diskCase_ == 4) { return (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_; } return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance(); } else { if (diskCase_ == 4) { return diskSpecBuilder_.getMessage(); } return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance(); } } /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ public Builder setDiskSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec value) { if (diskSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } disk_ = value; onChanged(); } else { diskSpecBuilder_.setMessage(value); } diskCase_ = 4; return this; } /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ public Builder setDiskSpec( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.Builder builderForValue) { if (diskSpecBuilder_ == null) { disk_ = builderForValue.build(); onChanged(); } else { diskSpecBuilder_.setMessage(builderForValue.build()); } diskCase_ = 4; return this; } /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ public Builder mergeDiskSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec value) { if (diskSpecBuilder_ == null) { if (diskCase_ == 4 && disk_ != yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance()) { disk_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.newBuilder((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_) .mergeFrom(value).buildPartial(); } else { disk_ = value; } onChanged(); } else { if (diskCase_ == 4) { diskSpecBuilder_.mergeFrom(value); } diskSpecBuilder_.setMessage(value); } diskCase_ = 4; return this; } /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ public Builder clearDiskSpec() { if (diskSpecBuilder_ == null) { if (diskCase_ == 4) { diskCase_ = 0; disk_ = null; onChanged(); } } else { if (diskCase_ == 4) { diskCase_ = 0; disk_ = null; } diskSpecBuilder_.clear(); } return this; } /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.Builder getDiskSpecBuilder() { return getDiskSpecFieldBuilder().getBuilder(); } /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpecOrBuilder getDiskSpecOrBuilder() { if ((diskCase_ == 4) && (diskSpecBuilder_ != null)) { return diskSpecBuilder_.getMessageOrBuilder(); } else { if (diskCase_ == 4) { return (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_; } return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance(); } } /** *
       * Disk specification.
       * 
* * .yandex.cloud.compute.v1.AttachedDiskSpec.DiskSpec disk_spec = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpecOrBuilder> getDiskSpecFieldBuilder() { if (diskSpecBuilder_ == null) { if (!(diskCase_ == 4)) { disk_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance(); } diskSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpecOrBuilder>( (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec.DiskSpec) disk_, getParentForChildren(), isClean()); disk_ = null; } diskCase_ = 4; onChanged();; return diskSpecBuilder_; } /** *
       * ID of the disk that should be attached.
       * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the diskId field is set. */ @java.lang.Override public boolean hasDiskId() { return diskCase_ == 5; } /** *
       * ID of the disk that should be attached.
       * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The diskId. */ @java.lang.Override public java.lang.String getDiskId() { java.lang.Object ref = ""; if (diskCase_ == 5) { 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_ == 5) { disk_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the disk that should be attached.
       * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for diskId. */ @java.lang.Override public com.google.protobuf.ByteString getDiskIdBytes() { java.lang.Object ref = ""; if (diskCase_ == 5) { ref = disk_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (diskCase_ == 5) { disk_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the disk that should be attached.
       * 
* * string disk_id = 5 [(.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_ = 5; disk_ = value; onChanged(); return this; } /** *
       * ID of the disk that should be attached.
       * 
* * string disk_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDiskId() { if (diskCase_ == 5) { diskCase_ = 0; disk_ = null; onChanged(); } return this; } /** *
       * ID of the disk that should be attached.
       * 
* * string disk_id = 5 [(.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_ = 5; 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.AttachedDiskSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachedDiskSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedDiskSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttachedDiskSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachedDiskSpec(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.AttachedDiskSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttachedLocalDiskSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachedLocalDiskSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Size of the disk, specified in bytes.
     * 
* * int64 size = 1 [(.yandex.cloud.required) = true]; * @return The size. */ long getSize(); } /** * Protobuf type {@code yandex.cloud.compute.v1.AttachedLocalDiskSpec} */ public static final class AttachedLocalDiskSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachedLocalDiskSpec) AttachedLocalDiskSpecOrBuilder { private static final long serialVersionUID = 0L; // Use AttachedLocalDiskSpec.newBuilder() to construct. private AttachedLocalDiskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttachedLocalDiskSpec() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AttachedLocalDiskSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachedLocalDiskSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { size_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder.class); } public static final int SIZE_FIELD_NUMBER = 1; private long size_; /** *
     * Size of the disk, specified in bytes.
     * 
* * int64 size = 1 [(.yandex.cloud.required) = true]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (size_ != 0L) { output.writeInt64(1, size_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, size_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec) obj; if (getSize() != other.getSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec 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.AttachedLocalDiskSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachedLocalDiskSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); size_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec(this); result.size_ = size_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec.getDefaultInstance()) return this; if (other.getSize() != 0L) { setSize(other.getSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long size_ ; /** *
       * Size of the disk, specified in bytes.
       * 
* * int64 size = 1 [(.yandex.cloud.required) = true]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
       * Size of the disk, specified in bytes.
       * 
* * int64 size = 1 [(.yandex.cloud.required) = true]; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
       * Size of the disk, specified in bytes.
       * 
* * int64 size = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.AttachedLocalDiskSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachedLocalDiskSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedLocalDiskSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttachedLocalDiskSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachedLocalDiskSpec(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.AttachedLocalDiskSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttachedFilesystemSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachedFilesystemSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Mode of access to the filesystem that should be attached.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** *
     * Mode of access to the filesystem that should be attached.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @return The mode. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode getMode(); /** *
     * Name of the device representing the filesystem on the instance.
     * The name should be used for referencing the filesystem from within the instance
     * when it's being mounted, resized etc.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The deviceName. */ java.lang.String getDeviceName(); /** *
     * Name of the device representing the filesystem on the instance.
     * The name should be used for referencing the filesystem from within the instance
     * when it's being mounted, resized etc.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); /** *
     * ID of the filesystem that should be attached.
     * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The filesystemId. */ java.lang.String getFilesystemId(); /** *
     * ID of the filesystem that should be attached.
     * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for filesystemId. */ com.google.protobuf.ByteString getFilesystemIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.AttachedFilesystemSpec} */ public static final class AttachedFilesystemSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachedFilesystemSpec) AttachedFilesystemSpecOrBuilder { private static final long serialVersionUID = 0L; // Use AttachedFilesystemSpec.newBuilder() to construct. private AttachedFilesystemSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttachedFilesystemSpec() { mode_ = 0; deviceName_ = ""; filesystemId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AttachedFilesystemSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachedFilesystemSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); mode_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); deviceName_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); filesystemId_ = 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_AttachedFilesystemSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedFilesystemSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), /** *
       * Read-only access.
       * 
* * READ_ONLY = 1; */ READ_ONLY(1), /** *
       * Read/Write access. Default value.
       * 
* * READ_WRITE = 2; */ READ_WRITE(2), UNRECOGNIZED(-1), ; /** * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** *
       * Read-only access.
       * 
* * READ_ONLY = 1; */ public static final int READ_ONLY_VALUE = 1; /** *
       * Read/Write access. Default value.
       * 
* * READ_WRITE = 2; */ public static final int READ_WRITE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode 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 Mode forNumber(int value) { switch (value) { case 0: return MODE_UNSPECIFIED; case 1: return READ_ONLY; case 2: return READ_WRITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.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.AttachedFilesystemSpec.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode 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 Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode) } public static final int MODE_FIELD_NUMBER = 1; private int mode_; /** *
     * Mode of access to the filesystem that should be attached.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** *
     * Mode of access to the filesystem that should be attached.
     * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @return The mode. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode result = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode.UNRECOGNIZED : result; } public static final int DEVICE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object deviceName_; /** *
     * Name of the device representing the filesystem on the instance.
     * The name should be used for referencing the filesystem from within the instance
     * when it's being mounted, resized etc.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The deviceName. */ @java.lang.Override public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; 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(); deviceName_ = s; return s; } } /** *
     * Name of the device representing the filesystem on the instance.
     * The name should be used for referencing the filesystem from within the instance
     * when it's being mounted, resized etc.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.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 = deviceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILESYSTEM_ID_FIELD_NUMBER = 3; private volatile java.lang.Object filesystemId_; /** *
     * ID of the filesystem that should be attached.
     * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The filesystemId. */ @java.lang.Override public java.lang.String getFilesystemId() { java.lang.Object ref = filesystemId_; 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(); filesystemId_ = s; return s; } } /** *
     * ID of the filesystem that should be attached.
     * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for filesystemId. */ @java.lang.Override public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = filesystemId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filesystemId_ = 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 (mode_ != yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filesystemId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filesystemId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mode_ != yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode.MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, mode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filesystemId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filesystemId_); } 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.AttachedFilesystemSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec) obj; if (mode_ != other.mode_) return false; if (!getDeviceName() .equals(other.getDeviceName())) return false; if (!getFilesystemId() .equals(other.getFilesystemId())) 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) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDeviceName().hashCode(); hash = (37 * hash) + FILESYSTEM_ID_FIELD_NUMBER; hash = (53 * hash) + getFilesystemId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec 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.AttachedFilesystemSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec 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.AttachedFilesystemSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec 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.AttachedFilesystemSpec 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.AttachedFilesystemSpec 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.AttachedFilesystemSpec 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.AttachedFilesystemSpec 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.AttachedFilesystemSpec 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.AttachedFilesystemSpec 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.AttachedFilesystemSpec 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.AttachedFilesystemSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachedFilesystemSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedFilesystemSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedFilesystemSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.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(); mode_ = 0; deviceName_ = ""; filesystemId_ = ""; 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_AttachedFilesystemSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec(this); result.mode_ = mode_; result.deviceName_ = deviceName_; result.filesystemId_ = filesystemId_; 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.AttachedFilesystemSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } if (!other.getDeviceName().isEmpty()) { deviceName_ = other.deviceName_; onChanged(); } if (!other.getFilesystemId().isEmpty()) { filesystemId_ = other.filesystemId_; 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.AttachedFilesystemSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int mode_ = 0; /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { mode_ = value; onChanged(); return this; } /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @return The mode. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode result = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode.UNRECOGNIZED : result; } /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec.Mode value) { if (value == null) { throw new NullPointerException(); } mode_ = value.getNumber(); onChanged(); return this; } /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.AttachedFilesystemSpec.Mode mode = 1; * @return This builder for chaining. */ public Builder clearMode() { mode_ = 0; onChanged(); return this; } private java.lang.Object deviceName_ = ""; /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.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(); } deviceName_ = value; onChanged(); return this; } /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "[a-z][a-z0-9-_]{,19}"]; * @return This builder for chaining. */ public Builder clearDeviceName() { deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.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); deviceName_ = value; onChanged(); return this; } private java.lang.Object filesystemId_ = ""; /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The filesystemId. */ public java.lang.String getFilesystemId() { java.lang.Object ref = filesystemId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filesystemId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for filesystemId. */ public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = filesystemId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filesystemId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @param value The filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filesystemId_ = value; onChanged(); return this; } /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFilesystemId() { filesystemId_ = getDefaultInstance().getFilesystemId(); onChanged(); return this; } /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filesystemId_ = 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.AttachedFilesystemSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachedFilesystemSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.AttachedFilesystemSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttachedFilesystemSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachedFilesystemSpec(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.AttachedFilesystemSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NetworkInterfaceSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.NetworkInterfaceSpec) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the subnet.
     * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The subnetId. */ java.lang.String getSubnetId(); /** *
     * ID of the subnet.
     * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for subnetId. */ com.google.protobuf.ByteString getSubnetIdBytes(); /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; * @return Whether the primaryV4AddressSpec field is set. */ boolean hasPrimaryV4AddressSpec(); /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; * @return The primaryV4AddressSpec. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec(); /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder(); /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; * @return Whether the primaryV6AddressSpec field is set. */ boolean hasPrimaryV6AddressSpec(); /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; * @return The primaryV6AddressSpec. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec(); /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder(); /** *
     * ID's of security groups attached to the interface
     * 
* * repeated string security_group_ids = 6; * @return A list containing the securityGroupIds. */ java.util.List getSecurityGroupIdsList(); /** *
     * ID's of security groups attached to the interface
     * 
* * repeated string security_group_ids = 6; * @return The count of securityGroupIds. */ int getSecurityGroupIdsCount(); /** *
     * ID's of security groups attached to the interface
     * 
* * repeated string security_group_ids = 6; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ java.lang.String getSecurityGroupIds(int index); /** *
     * ID's of security groups attached to the interface
     * 
* * repeated string security_group_ids = 6; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.NetworkInterfaceSpec} */ public static final class NetworkInterfaceSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.NetworkInterfaceSpec) NetworkInterfaceSpecOrBuilder { private static final long serialVersionUID = 0L; // Use NetworkInterfaceSpec.newBuilder() to construct. private NetworkInterfaceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NetworkInterfaceSpec() { subnetId_ = ""; securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NetworkInterfaceSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NetworkInterfaceSpec( 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(); subnetId_ = s; break; } case 18: { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder subBuilder = null; if (primaryV4AddressSpec_ != null) { subBuilder = primaryV4AddressSpec_.toBuilder(); } primaryV4AddressSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(primaryV4AddressSpec_); primaryV4AddressSpec_ = subBuilder.buildPartial(); } break; } case 26: { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder subBuilder = null; if (primaryV6AddressSpec_ != null) { subBuilder = primaryV6AddressSpec_.toBuilder(); } primaryV6AddressSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(primaryV6AddressSpec_); primaryV6AddressSpec_ = subBuilder.buildPartial(); } break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } securityGroupIds_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = securityGroupIds_.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_NetworkInterfaceSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkInterfaceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder.class); } public static final int SUBNET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object subnetId_; /** *
     * ID of the subnet.
     * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The subnetId. */ @java.lang.Override public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; 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(); subnetId_ = s; return s; } } /** *
     * ID of the subnet.
     * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for subnetId. */ @java.lang.Override public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIMARY_V4_ADDRESS_SPEC_FIELD_NUMBER = 2; private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec primaryV4AddressSpec_; /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; * @return Whether the primaryV4AddressSpec field is set. */ @java.lang.Override public boolean hasPrimaryV4AddressSpec() { return primaryV4AddressSpec_ != null; } /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; * @return The primaryV4AddressSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec() { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } /** *
     * Primary IPv4 address that will be assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder() { return getPrimaryV4AddressSpec(); } public static final int PRIMARY_V6_ADDRESS_SPEC_FIELD_NUMBER = 3; private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec primaryV6AddressSpec_; /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; * @return Whether the primaryV6AddressSpec field is set. */ @java.lang.Override public boolean hasPrimaryV6AddressSpec() { return primaryV6AddressSpec_ != null; } /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; * @return The primaryV6AddressSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec() { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } /** *
     * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder() { return getPrimaryV6AddressSpec(); } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList securityGroupIds_; /** *
     * ID's of security groups attached to the interface
     * 
* * repeated string security_group_ids = 6; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_; } /** *
     * ID's of security groups attached to the interface
     * 
* * repeated string security_group_ids = 6; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
     * ID's of security groups attached to the interface
     * 
* * repeated string security_group_ids = 6; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
     * ID's of security groups attached to the interface
     * 
* * repeated string security_group_ids = 6; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetId_); } if (primaryV4AddressSpec_ != null) { output.writeMessage(2, getPrimaryV4AddressSpec()); } if (primaryV6AddressSpec_ != null) { output.writeMessage(3, getPrimaryV6AddressSpec()); } for (int i = 0; i < securityGroupIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, securityGroupIds_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetId_); } if (primaryV4AddressSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPrimaryV4AddressSpec()); } if (primaryV6AddressSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPrimaryV6AddressSpec()); } { int dataSize = 0; for (int i = 0; i < securityGroupIds_.size(); i++) { dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); } size += dataSize; size += 1 * getSecurityGroupIdsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec) obj; if (!getSubnetId() .equals(other.getSubnetId())) return false; if (hasPrimaryV4AddressSpec() != other.hasPrimaryV4AddressSpec()) return false; if (hasPrimaryV4AddressSpec()) { if (!getPrimaryV4AddressSpec() .equals(other.getPrimaryV4AddressSpec())) return false; } if (hasPrimaryV6AddressSpec() != other.hasPrimaryV6AddressSpec()) return false; if (hasPrimaryV6AddressSpec()) { if (!getPrimaryV6AddressSpec() .equals(other.getPrimaryV6AddressSpec())) return false; } if (!getSecurityGroupIdsList() .equals(other.getSecurityGroupIdsList())) 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) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetId().hashCode(); if (hasPrimaryV4AddressSpec()) { hash = (37 * hash) + PRIMARY_V4_ADDRESS_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPrimaryV4AddressSpec().hashCode(); } if (hasPrimaryV6AddressSpec()) { hash = (37 * hash) + PRIMARY_V6_ADDRESS_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPrimaryV6AddressSpec().hashCode(); } if (getSecurityGroupIdsCount() > 0) { hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec 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.NetworkInterfaceSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec 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.NetworkInterfaceSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec 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.NetworkInterfaceSpec 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.NetworkInterfaceSpec 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.NetworkInterfaceSpec 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.NetworkInterfaceSpec 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.NetworkInterfaceSpec 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.NetworkInterfaceSpec 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.NetworkInterfaceSpec 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.NetworkInterfaceSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.NetworkInterfaceSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkInterfaceSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkInterfaceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.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(); subnetId_ = ""; if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = null; } else { primaryV4AddressSpec_ = null; primaryV4AddressSpecBuilder_ = null; } if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = null; } else { primaryV6AddressSpec_ = null; primaryV6AddressSpecBuilder_ = null; } securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); 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_NetworkInterfaceSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec(this); int from_bitField0_ = bitField0_; result.subnetId_ = subnetId_; if (primaryV4AddressSpecBuilder_ == null) { result.primaryV4AddressSpec_ = primaryV4AddressSpec_; } else { result.primaryV4AddressSpec_ = primaryV4AddressSpecBuilder_.build(); } if (primaryV6AddressSpecBuilder_ == null) { result.primaryV6AddressSpec_ = primaryV6AddressSpec_; } else { result.primaryV6AddressSpec_ = primaryV6AddressSpecBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.securityGroupIds_ = securityGroupIds_; 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.NetworkInterfaceSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec.getDefaultInstance()) return this; if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); } if (other.hasPrimaryV4AddressSpec()) { mergePrimaryV4AddressSpec(other.getPrimaryV4AddressSpec()); } if (other.hasPrimaryV6AddressSpec()) { mergePrimaryV6AddressSpec(other.getPrimaryV6AddressSpec()); } if (!other.securityGroupIds_.isEmpty()) { if (securityGroupIds_.isEmpty()) { securityGroupIds_ = other.securityGroupIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.addAll(other.securityGroupIds_); } 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.NetworkInterfaceSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object subnetId_ = ""; /** *
       * ID of the subnet.
       * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The subnetId. */ public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for subnetId. */ public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetId_ = value; onChanged(); return this; } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = getDefaultInstance().getSubnetId(); onChanged(); return this; } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for subnetId to set. * @return This builder for chaining. */ public Builder setSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetId_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec primaryV4AddressSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder> primaryV4AddressSpecBuilder_; /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; * @return Whether the primaryV4AddressSpec field is set. */ public boolean hasPrimaryV4AddressSpec() { return primaryV4AddressSpecBuilder_ != null || primaryV4AddressSpec_ != null; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; * @return The primaryV4AddressSpec. */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec() { if (primaryV4AddressSpecBuilder_ == null) { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } else { return primaryV4AddressSpecBuilder_.getMessage(); } } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ public Builder setPrimaryV4AddressSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec value) { if (primaryV4AddressSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryV4AddressSpec_ = value; onChanged(); } else { primaryV4AddressSpecBuilder_.setMessage(value); } return this; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ public Builder setPrimaryV4AddressSpec( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder builderForValue) { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = builderForValue.build(); onChanged(); } else { primaryV4AddressSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ public Builder mergePrimaryV4AddressSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec value) { if (primaryV4AddressSpecBuilder_ == null) { if (primaryV4AddressSpec_ != null) { primaryV4AddressSpec_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.newBuilder(primaryV4AddressSpec_).mergeFrom(value).buildPartial(); } else { primaryV4AddressSpec_ = value; } onChanged(); } else { primaryV4AddressSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ public Builder clearPrimaryV4AddressSpec() { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = null; onChanged(); } else { primaryV4AddressSpec_ = null; primaryV4AddressSpecBuilder_ = null; } return this; } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder getPrimaryV4AddressSpecBuilder() { onChanged(); return getPrimaryV4AddressSpecFieldBuilder().getBuilder(); } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder() { if (primaryV4AddressSpecBuilder_ != null) { return primaryV4AddressSpecBuilder_.getMessageOrBuilder(); } else { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } } /** *
       * Primary IPv4 address that will be assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v4_address_spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder> getPrimaryV4AddressSpecFieldBuilder() { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder>( getPrimaryV4AddressSpec(), getParentForChildren(), isClean()); primaryV4AddressSpec_ = null; } return primaryV4AddressSpecBuilder_; } private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec primaryV6AddressSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder> primaryV6AddressSpecBuilder_; /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; * @return Whether the primaryV6AddressSpec field is set. */ public boolean hasPrimaryV6AddressSpec() { return primaryV6AddressSpecBuilder_ != null || primaryV6AddressSpec_ != null; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; * @return The primaryV6AddressSpec. */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec() { if (primaryV6AddressSpecBuilder_ == null) { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } else { return primaryV6AddressSpecBuilder_.getMessage(); } } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ public Builder setPrimaryV6AddressSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec value) { if (primaryV6AddressSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryV6AddressSpec_ = value; onChanged(); } else { primaryV6AddressSpecBuilder_.setMessage(value); } return this; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ public Builder setPrimaryV6AddressSpec( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder builderForValue) { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = builderForValue.build(); onChanged(); } else { primaryV6AddressSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ public Builder mergePrimaryV6AddressSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec value) { if (primaryV6AddressSpecBuilder_ == null) { if (primaryV6AddressSpec_ != null) { primaryV6AddressSpec_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.newBuilder(primaryV6AddressSpec_).mergeFrom(value).buildPartial(); } else { primaryV6AddressSpec_ = value; } onChanged(); } else { primaryV6AddressSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ public Builder clearPrimaryV6AddressSpec() { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = null; onChanged(); } else { primaryV6AddressSpec_ = null; primaryV6AddressSpecBuilder_ = null; } return this; } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder getPrimaryV6AddressSpecBuilder() { onChanged(); return getPrimaryV6AddressSpecFieldBuilder().getBuilder(); } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder() { if (primaryV6AddressSpecBuilder_ != null) { return primaryV6AddressSpecBuilder_.getMessageOrBuilder(); } else { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } } /** *
       * Primary IPv6 address that will be assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.PrimaryAddressSpec primary_v6_address_spec = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder> getPrimaryV6AddressSpecFieldBuilder() { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder>( getPrimaryV6AddressSpec(), getParentForChildren(), isClean()); primaryV6AddressSpec_ = null; } return primaryV6AddressSpecBuilder_; } private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSecurityGroupIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); bitField0_ |= 0x00000001; } } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_.getUnmodifiableView(); } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @param index The index to set the value at. * @param value The securityGroupIds to set. * @return This builder for chaining. */ public Builder setSecurityGroupIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.set(index, value); onChanged(); return this; } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @param value The securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @param values The securityGroupIds to add. * @return This builder for chaining. */ public Builder addAllSecurityGroupIds( java.lang.Iterable values) { ensureSecurityGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, securityGroupIds_); onChanged(); return this; } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @return This builder for chaining. */ public Builder clearSecurityGroupIds() { securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * ID's of security groups attached to the interface
       * 
* * repeated string security_group_ids = 6; * @param value The bytes of the securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.NetworkInterfaceSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.NetworkInterfaceSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.NetworkInterfaceSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NetworkInterfaceSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NetworkInterfaceSpec(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.NetworkInterfaceSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrimaryAddressSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.PrimaryAddressSpec) com.google.protobuf.MessageOrBuilder { /** *
     * An IPv4 internal network address that is assigned to the instance for this network interface.
     * If not specified by the user, an unused internal IP is assigned by the system.
     * 
* * string address = 1; * @return The address. */ java.lang.String getAddress(); /** *
     * An IPv4 internal network address that is assigned to the instance for this network interface.
     * If not specified by the user, an unused internal IP is assigned by the system.
     * 
* * string address = 1; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; * @return Whether the oneToOneNatSpec field is set. */ boolean hasOneToOneNatSpec(); /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; * @return The oneToOneNatSpec. */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec getOneToOneNatSpec(); /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder(); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ java.util.List getDnsRecordSpecsList(); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec getDnsRecordSpecs(int index); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ int getDnsRecordSpecsCount(); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ java.util.List getDnsRecordSpecsOrBuilderList(); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.PrimaryAddressSpec} */ public static final class PrimaryAddressSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.PrimaryAddressSpec) PrimaryAddressSpecOrBuilder { private static final long serialVersionUID = 0L; // Use PrimaryAddressSpec.newBuilder() to construct. private PrimaryAddressSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrimaryAddressSpec() { address_ = ""; dnsRecordSpecs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrimaryAddressSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrimaryAddressSpec( 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(); address_ = s; break; } case 18: { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder subBuilder = null; if (oneToOneNatSpec_ != null) { subBuilder = oneToOneNatSpec_.toBuilder(); } oneToOneNatSpec_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(oneToOneNatSpec_); oneToOneNatSpec_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dnsRecordSpecs_.add( input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.parser(), extensionRegistry)); 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)) { dnsRecordSpecs_ = java.util.Collections.unmodifiableList(dnsRecordSpecs_); } 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_PrimaryAddressSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_PrimaryAddressSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** *
     * An IPv4 internal network address that is assigned to the instance for this network interface.
     * If not specified by the user, an unused internal IP is assigned by the system.
     * 
* * string address = 1; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; 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(); address_ = s; return s; } } /** *
     * An IPv4 internal network address that is assigned to the instance for this network interface.
     * If not specified by the user, an unused internal IP is assigned by the system.
     * 
* * string address = 1; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONE_TO_ONE_NAT_SPEC_FIELD_NUMBER = 2; private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec oneToOneNatSpec_; /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; * @return Whether the oneToOneNatSpec field is set. */ @java.lang.Override public boolean hasOneToOneNatSpec() { return oneToOneNatSpec_ != null; } /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; * @return The oneToOneNatSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec getOneToOneNatSpec() { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } /** *
     * An external IP address configuration.
     * If not specified, then this instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder() { return getOneToOneNatSpec(); } public static final int DNS_RECORD_SPECS_FIELD_NUMBER = 3; private java.util.List dnsRecordSpecs_; /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public java.util.List getDnsRecordSpecsList() { return dnsRecordSpecs_; } /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public java.util.List getDnsRecordSpecsOrBuilderList() { return dnsRecordSpecs_; } /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public int getDnsRecordSpecsCount() { return dnsRecordSpecs_.size(); } /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec getDnsRecordSpecs(int index) { return dnsRecordSpecs_.get(index); } /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index) { return dnsRecordSpecs_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (oneToOneNatSpec_ != null) { output.writeMessage(2, getOneToOneNatSpec()); } for (int i = 0; i < dnsRecordSpecs_.size(); i++) { output.writeMessage(3, dnsRecordSpecs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (oneToOneNatSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOneToOneNatSpec()); } for (int i = 0; i < dnsRecordSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, dnsRecordSpecs_.get(i)); } 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.PrimaryAddressSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec) obj; if (!getAddress() .equals(other.getAddress())) return false; if (hasOneToOneNatSpec() != other.hasOneToOneNatSpec()) return false; if (hasOneToOneNatSpec()) { if (!getOneToOneNatSpec() .equals(other.getOneToOneNatSpec())) return false; } if (!getDnsRecordSpecsList() .equals(other.getDnsRecordSpecsList())) 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) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (hasOneToOneNatSpec()) { hash = (37 * hash) + ONE_TO_ONE_NAT_SPEC_FIELD_NUMBER; hash = (53 * hash) + getOneToOneNatSpec().hashCode(); } if (getDnsRecordSpecsCount() > 0) { hash = (37 * hash) + DNS_RECORD_SPECS_FIELD_NUMBER; hash = (53 * hash) + getDnsRecordSpecsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec 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.PrimaryAddressSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec 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.PrimaryAddressSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec 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.PrimaryAddressSpec 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.PrimaryAddressSpec 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.PrimaryAddressSpec 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.PrimaryAddressSpec 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.PrimaryAddressSpec 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.PrimaryAddressSpec 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.PrimaryAddressSpec 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.PrimaryAddressSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.PrimaryAddressSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_PrimaryAddressSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_PrimaryAddressSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDnsRecordSpecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); address_ = ""; if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = null; } else { oneToOneNatSpec_ = null; oneToOneNatSpecBuilder_ = null; } if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dnsRecordSpecsBuilder_.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_PrimaryAddressSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec(this); int from_bitField0_ = bitField0_; result.address_ = address_; if (oneToOneNatSpecBuilder_ == null) { result.oneToOneNatSpec_ = oneToOneNatSpec_; } else { result.oneToOneNatSpec_ = oneToOneNatSpecBuilder_.build(); } if (dnsRecordSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = java.util.Collections.unmodifiableList(dnsRecordSpecs_); bitField0_ = (bitField0_ & ~0x00000001); } result.dnsRecordSpecs_ = dnsRecordSpecs_; } else { result.dnsRecordSpecs_ = dnsRecordSpecsBuilder_.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.PrimaryAddressSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (other.hasOneToOneNatSpec()) { mergeOneToOneNatSpec(other.getOneToOneNatSpec()); } if (dnsRecordSpecsBuilder_ == null) { if (!other.dnsRecordSpecs_.isEmpty()) { if (dnsRecordSpecs_.isEmpty()) { dnsRecordSpecs_ = other.dnsRecordSpecs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.addAll(other.dnsRecordSpecs_); } onChanged(); } } else { if (!other.dnsRecordSpecs_.isEmpty()) { if (dnsRecordSpecsBuilder_.isEmpty()) { dnsRecordSpecsBuilder_.dispose(); dnsRecordSpecsBuilder_ = null; dnsRecordSpecs_ = other.dnsRecordSpecs_; bitField0_ = (bitField0_ & ~0x00000001); dnsRecordSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDnsRecordSpecsFieldBuilder() : null; } else { dnsRecordSpecsBuilder_.addAllMessages(other.dnsRecordSpecs_); } } } 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.PrimaryAddressSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object address_ = ""; /** *
       * An IPv4 internal network address that is assigned to the instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * An IPv4 internal network address that is assigned to the instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * An IPv4 internal network address that is assigned to the instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * An IPv4 internal network address that is assigned to the instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * An IPv4 internal network address that is assigned to the instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec oneToOneNatSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder> oneToOneNatSpecBuilder_; /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; * @return Whether the oneToOneNatSpec field is set. */ public boolean hasOneToOneNatSpec() { return oneToOneNatSpecBuilder_ != null || oneToOneNatSpec_ != null; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; * @return The oneToOneNatSpec. */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec getOneToOneNatSpec() { if (oneToOneNatSpecBuilder_ == null) { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } else { return oneToOneNatSpecBuilder_.getMessage(); } } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ public Builder setOneToOneNatSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec value) { if (oneToOneNatSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneToOneNatSpec_ = value; onChanged(); } else { oneToOneNatSpecBuilder_.setMessage(value); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ public Builder setOneToOneNatSpec( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder builderForValue) { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = builderForValue.build(); onChanged(); } else { oneToOneNatSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ public Builder mergeOneToOneNatSpec(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec value) { if (oneToOneNatSpecBuilder_ == null) { if (oneToOneNatSpec_ != null) { oneToOneNatSpec_ = yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.newBuilder(oneToOneNatSpec_).mergeFrom(value).buildPartial(); } else { oneToOneNatSpec_ = value; } onChanged(); } else { oneToOneNatSpecBuilder_.mergeFrom(value); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ public Builder clearOneToOneNatSpec() { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = null; onChanged(); } else { oneToOneNatSpec_ = null; oneToOneNatSpecBuilder_ = null; } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder getOneToOneNatSpecBuilder() { onChanged(); return getOneToOneNatSpecFieldBuilder().getBuilder(); } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder() { if (oneToOneNatSpecBuilder_ != null) { return oneToOneNatSpecBuilder_.getMessageOrBuilder(); } else { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } } /** *
       * An external IP address configuration.
       * If not specified, then this instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.OneToOneNatSpec one_to_one_nat_spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder> getOneToOneNatSpecFieldBuilder() { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder>( getOneToOneNatSpec(), getParentForChildren(), isClean()); oneToOneNatSpec_ = null; } return oneToOneNatSpecBuilder_; } private java.util.List dnsRecordSpecs_ = java.util.Collections.emptyList(); private void ensureDnsRecordSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = new java.util.ArrayList(dnsRecordSpecs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder> dnsRecordSpecsBuilder_; /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsList() { if (dnsRecordSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsRecordSpecs_); } else { return dnsRecordSpecsBuilder_.getMessageList(); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public int getDnsRecordSpecsCount() { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.size(); } else { return dnsRecordSpecsBuilder_.getCount(); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec getDnsRecordSpecs(int index) { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.get(index); } else { return dnsRecordSpecsBuilder_.getMessage(index); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder setDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.set(index, value); onChanged(); } else { dnsRecordSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder setDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.set(index, builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(value); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(value); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(index, value); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(index, builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addAllDnsRecordSpecs( java.lang.Iterable values) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dnsRecordSpecs_); onChanged(); } else { dnsRecordSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder clearDnsRecordSpecs() { if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dnsRecordSpecsBuilder_.clear(); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder removeDnsRecordSpecs(int index) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.remove(index); onChanged(); } else { dnsRecordSpecsBuilder_.remove(index); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder getDnsRecordSpecsBuilder( int index) { return getDnsRecordSpecsFieldBuilder().getBuilder(index); } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index) { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.get(index); } else { return dnsRecordSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsOrBuilderList() { if (dnsRecordSpecsBuilder_ != null) { return dnsRecordSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dnsRecordSpecs_); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder addDnsRecordSpecsBuilder() { return getDnsRecordSpecsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.getDefaultInstance()); } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder addDnsRecordSpecsBuilder( int index) { return getDnsRecordSpecsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.getDefaultInstance()); } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsBuilderList() { return getDnsRecordSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder> getDnsRecordSpecsFieldBuilder() { if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder>( dnsRecordSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dnsRecordSpecs_ = null; } return dnsRecordSpecsBuilder_; } @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.PrimaryAddressSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.PrimaryAddressSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PrimaryAddressSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrimaryAddressSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrimaryAddressSpec(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.PrimaryAddressSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OneToOneNatSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.OneToOneNatSpec) com.google.protobuf.MessageOrBuilder { /** *
     * External IP address version.
     * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @return The enum numeric value on the wire for ipVersion. */ int getIpVersionValue(); /** *
     * External IP address version.
     * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @return The ipVersion. */ yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion getIpVersion(); /** *
     *set static IP by value
     * 
* * string address = 2; * @return The address. */ java.lang.String getAddress(); /** *
     *set static IP by value
     * 
* * string address = 2; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ java.util.List getDnsRecordSpecsList(); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec getDnsRecordSpecs(int index); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ int getDnsRecordSpecsCount(); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ java.util.List getDnsRecordSpecsOrBuilderList(); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.OneToOneNatSpec} */ public static final class OneToOneNatSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.OneToOneNatSpec) OneToOneNatSpecOrBuilder { private static final long serialVersionUID = 0L; // Use OneToOneNatSpec.newBuilder() to construct. private OneToOneNatSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OneToOneNatSpec() { ipVersion_ = 0; address_ = ""; dnsRecordSpecs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OneToOneNatSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OneToOneNatSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); ipVersion_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dnsRecordSpecs_.add( input.readMessage(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.parser(), extensionRegistry)); 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)) { dnsRecordSpecs_ = java.util.Collections.unmodifiableList(dnsRecordSpecs_); } 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_OneToOneNatSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_OneToOneNatSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder.class); } public static final int IP_VERSION_FIELD_NUMBER = 1; private int ipVersion_; /** *
     * External IP address version.
     * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @return The enum numeric value on the wire for ipVersion. */ @java.lang.Override public int getIpVersionValue() { return ipVersion_; } /** *
     * External IP address version.
     * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @return The ipVersion. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion getIpVersion() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion result = yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.valueOf(ipVersion_); return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.UNRECOGNIZED : result; } public static final int ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object address_; /** *
     *set static IP by value
     * 
* * string address = 2; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; 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(); address_ = s; return s; } } /** *
     *set static IP by value
     * 
* * string address = 2; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DNS_RECORD_SPECS_FIELD_NUMBER = 3; private java.util.List dnsRecordSpecs_; /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public java.util.List getDnsRecordSpecsList() { return dnsRecordSpecs_; } /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public java.util.List getDnsRecordSpecsOrBuilderList() { return dnsRecordSpecs_; } /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public int getDnsRecordSpecsCount() { return dnsRecordSpecs_.size(); } /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec getDnsRecordSpecs(int index) { return dnsRecordSpecs_.get(index); } /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index) { return dnsRecordSpecs_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (ipVersion_ != yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.IP_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(1, ipVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); } for (int i = 0; i < dnsRecordSpecs_.size(); i++) { output.writeMessage(3, dnsRecordSpecs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ipVersion_ != yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.IP_VERSION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ipVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); } for (int i = 0; i < dnsRecordSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, dnsRecordSpecs_.get(i)); } 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.OneToOneNatSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec) obj; if (ipVersion_ != other.ipVersion_) return false; if (!getAddress() .equals(other.getAddress())) return false; if (!getDnsRecordSpecsList() .equals(other.getDnsRecordSpecsList())) 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) + IP_VERSION_FIELD_NUMBER; hash = (53 * hash) + ipVersion_; hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (getDnsRecordSpecsCount() > 0) { hash = (37 * hash) + DNS_RECORD_SPECS_FIELD_NUMBER; hash = (53 * hash) + getDnsRecordSpecsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec 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.OneToOneNatSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec 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.OneToOneNatSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec 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.OneToOneNatSpec 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.OneToOneNatSpec 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.OneToOneNatSpec 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.OneToOneNatSpec 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.OneToOneNatSpec 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.OneToOneNatSpec 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.OneToOneNatSpec 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.OneToOneNatSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.OneToOneNatSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_OneToOneNatSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_OneToOneNatSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDnsRecordSpecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); ipVersion_ = 0; address_ = ""; if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dnsRecordSpecsBuilder_.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_OneToOneNatSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec(this); int from_bitField0_ = bitField0_; result.ipVersion_ = ipVersion_; result.address_ = address_; if (dnsRecordSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = java.util.Collections.unmodifiableList(dnsRecordSpecs_); bitField0_ = (bitField0_ & ~0x00000001); } result.dnsRecordSpecs_ = dnsRecordSpecs_; } else { result.dnsRecordSpecs_ = dnsRecordSpecsBuilder_.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.OneToOneNatSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec.getDefaultInstance()) return this; if (other.ipVersion_ != 0) { setIpVersionValue(other.getIpVersionValue()); } if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (dnsRecordSpecsBuilder_ == null) { if (!other.dnsRecordSpecs_.isEmpty()) { if (dnsRecordSpecs_.isEmpty()) { dnsRecordSpecs_ = other.dnsRecordSpecs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.addAll(other.dnsRecordSpecs_); } onChanged(); } } else { if (!other.dnsRecordSpecs_.isEmpty()) { if (dnsRecordSpecsBuilder_.isEmpty()) { dnsRecordSpecsBuilder_.dispose(); dnsRecordSpecsBuilder_ = null; dnsRecordSpecs_ = other.dnsRecordSpecs_; bitField0_ = (bitField0_ & ~0x00000001); dnsRecordSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDnsRecordSpecsFieldBuilder() : null; } else { dnsRecordSpecsBuilder_.addAllMessages(other.dnsRecordSpecs_); } } } 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.OneToOneNatSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int ipVersion_ = 0; /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @return The enum numeric value on the wire for ipVersion. */ @java.lang.Override public int getIpVersionValue() { return ipVersion_; } /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @param value The enum numeric value on the wire for ipVersion to set. * @return This builder for chaining. */ public Builder setIpVersionValue(int value) { ipVersion_ = value; onChanged(); return this; } /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @return The ipVersion. */ @java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion getIpVersion() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion result = yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.valueOf(ipVersion_); return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.UNRECOGNIZED : result; } /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @param value The ipVersion to set. * @return This builder for chaining. */ public Builder setIpVersion(yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion value) { if (value == null) { throw new NullPointerException(); } ipVersion_ = value.getNumber(); onChanged(); return this; } /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.IpVersion ip_version = 1; * @return This builder for chaining. */ public Builder clearIpVersion() { ipVersion_ = 0; onChanged(); return this; } private java.lang.Object address_ = ""; /** *
       *set static IP by value
       * 
* * string address = 2; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       *set static IP by value
       * 
* * string address = 2; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *set static IP by value
       * 
* * string address = 2; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       *set static IP by value
       * 
* * string address = 2; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       *set static IP by value
       * 
* * string address = 2; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private java.util.List dnsRecordSpecs_ = java.util.Collections.emptyList(); private void ensureDnsRecordSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = new java.util.ArrayList(dnsRecordSpecs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder> dnsRecordSpecsBuilder_; /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsList() { if (dnsRecordSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsRecordSpecs_); } else { return dnsRecordSpecsBuilder_.getMessageList(); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public int getDnsRecordSpecsCount() { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.size(); } else { return dnsRecordSpecsBuilder_.getCount(); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec getDnsRecordSpecs(int index) { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.get(index); } else { return dnsRecordSpecsBuilder_.getMessage(index); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder setDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.set(index, value); onChanged(); } else { dnsRecordSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder setDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.set(index, builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(value); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(value); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(index, value); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(index, builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder addAllDnsRecordSpecs( java.lang.Iterable values) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dnsRecordSpecs_); onChanged(); } else { dnsRecordSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder clearDnsRecordSpecs() { if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dnsRecordSpecsBuilder_.clear(); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public Builder removeDnsRecordSpecs(int index) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.remove(index); onChanged(); } else { dnsRecordSpecsBuilder_.remove(index); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder getDnsRecordSpecsBuilder( int index) { return getDnsRecordSpecsFieldBuilder().getBuilder(index); } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index) { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.get(index); } else { return dnsRecordSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsOrBuilderList() { if (dnsRecordSpecsBuilder_ != null) { return dnsRecordSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dnsRecordSpecs_); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder addDnsRecordSpecsBuilder() { return getDnsRecordSpecsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.getDefaultInstance()); } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder addDnsRecordSpecsBuilder( int index) { return getDnsRecordSpecsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.getDefaultInstance()); } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsBuilderList() { return getDnsRecordSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder> getDnsRecordSpecsFieldBuilder() { if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder>( dnsRecordSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dnsRecordSpecs_ = null; } return dnsRecordSpecsBuilder_; } @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.OneToOneNatSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.OneToOneNatSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.OneToOneNatSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OneToOneNatSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OneToOneNatSpec(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.OneToOneNatSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DnsRecordSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DnsRecordSpec) com.google.protobuf.MessageOrBuilder { /** *
     * FQDN (required)
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ java.lang.String getFqdn(); /** *
     * FQDN (required)
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ com.google.protobuf.ByteString getFqdnBytes(); /** *
     * DNS zone id (optional, if not set, private zone used)
     * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ java.lang.String getDnsZoneId(); /** *
     * DNS zone id (optional, if not set, private zone used)
     * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ com.google.protobuf.ByteString getDnsZoneIdBytes(); /** *
     * DNS record ttl, values in 0-86400 (optional)
     * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ long getTtl(); /** *
     * When set to true, also create PTR DNS record (optional)
     * 
* * bool ptr = 4; * @return The ptr. */ boolean getPtr(); } /** * Protobuf type {@code yandex.cloud.compute.v1.DnsRecordSpec} */ public static final class DnsRecordSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DnsRecordSpec) DnsRecordSpecOrBuilder { private static final long serialVersionUID = 0L; // Use DnsRecordSpec.newBuilder() to construct. private DnsRecordSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DnsRecordSpec() { fqdn_ = ""; dnsZoneId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DnsRecordSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DnsRecordSpec( 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(); fqdn_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); dnsZoneId_ = s; break; } case 24: { ttl_ = input.readInt64(); break; } case 32: { ptr_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecordSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecordSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder.class); } public static final int FQDN_FIELD_NUMBER = 1; private volatile java.lang.Object fqdn_; /** *
     * FQDN (required)
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ @java.lang.Override public java.lang.String getFqdn() { java.lang.Object ref = fqdn_; 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(); fqdn_ = s; return s; } } /** *
     * FQDN (required)
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ @java.lang.Override public com.google.protobuf.ByteString getFqdnBytes() { java.lang.Object ref = fqdn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqdn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DNS_ZONE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object dnsZoneId_; /** *
     * DNS zone id (optional, if not set, private zone used)
     * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ @java.lang.Override public java.lang.String getDnsZoneId() { java.lang.Object ref = dnsZoneId_; 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(); dnsZoneId_ = s; return s; } } /** *
     * DNS zone id (optional, if not set, private zone used)
     * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ @java.lang.Override public com.google.protobuf.ByteString getDnsZoneIdBytes() { java.lang.Object ref = dnsZoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dnsZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TTL_FIELD_NUMBER = 3; private long ttl_; /** *
     * DNS record ttl, values in 0-86400 (optional)
     * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ @java.lang.Override public long getTtl() { return ttl_; } public static final int PTR_FIELD_NUMBER = 4; private boolean ptr_; /** *
     * When set to true, also create PTR DNS record (optional)
     * 
* * bool ptr = 4; * @return The ptr. */ @java.lang.Override public boolean getPtr() { return ptr_; } 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(fqdn_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fqdn_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dnsZoneId_); } if (ttl_ != 0L) { output.writeInt64(3, ttl_); } if (ptr_ != false) { output.writeBool(4, ptr_); } 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(fqdn_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fqdn_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dnsZoneId_); } if (ttl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, ttl_); } if (ptr_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, ptr_); } 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.DnsRecordSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec) obj; if (!getFqdn() .equals(other.getFqdn())) return false; if (!getDnsZoneId() .equals(other.getDnsZoneId())) return false; if (getTtl() != other.getTtl()) return false; if (getPtr() != other.getPtr()) 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) + FQDN_FIELD_NUMBER; hash = (53 * hash) + getFqdn().hashCode(); hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getDnsZoneId().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); hash = (37 * hash) + PTR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPtr()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec 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.DnsRecordSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec 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.DnsRecordSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec 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.DnsRecordSpec 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.DnsRecordSpec 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.DnsRecordSpec 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.DnsRecordSpec 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.DnsRecordSpec 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.DnsRecordSpec 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.DnsRecordSpec 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.DnsRecordSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DnsRecordSpec) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecordSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecordSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.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(); fqdn_ = ""; dnsZoneId_ = ""; ttl_ = 0L; ptr_ = false; 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_DnsRecordSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec(this); result.fqdn_ = fqdn_; result.dnsZoneId_ = dnsZoneId_; result.ttl_ = ttl_; result.ptr_ = ptr_; 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.DnsRecordSpec) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec.getDefaultInstance()) return this; if (!other.getFqdn().isEmpty()) { fqdn_ = other.fqdn_; onChanged(); } if (!other.getDnsZoneId().isEmpty()) { dnsZoneId_ = other.dnsZoneId_; onChanged(); } if (other.getTtl() != 0L) { setTtl(other.getTtl()); } if (other.getPtr() != false) { setPtr(other.getPtr()); } 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.DnsRecordSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object fqdn_ = ""; /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ public java.lang.String getFqdn() { java.lang.Object ref = fqdn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqdn_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ public com.google.protobuf.ByteString getFqdnBytes() { java.lang.Object ref = fqdn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqdn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @param value The fqdn to set. * @return This builder for chaining. */ public Builder setFqdn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fqdn_ = value; onChanged(); return this; } /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFqdn() { fqdn_ = getDefaultInstance().getFqdn(); onChanged(); return this; } /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for fqdn to set. * @return This builder for chaining. */ public Builder setFqdnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fqdn_ = value; onChanged(); return this; } private java.lang.Object dnsZoneId_ = ""; /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ public java.lang.String getDnsZoneId() { java.lang.Object ref = dnsZoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dnsZoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ public com.google.protobuf.ByteString getDnsZoneIdBytes() { java.lang.Object ref = dnsZoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dnsZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @param value The dnsZoneId to set. * @return This builder for chaining. */ public Builder setDnsZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dnsZoneId_ = value; onChanged(); return this; } /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @return This builder for chaining. */ public Builder clearDnsZoneId() { dnsZoneId_ = getDefaultInstance().getDnsZoneId(); onChanged(); return this; } /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @param value The bytes for dnsZoneId to set. * @return This builder for chaining. */ public Builder setDnsZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dnsZoneId_ = value; onChanged(); return this; } private long ttl_ ; /** *
       * DNS record ttl, values in 0-86400 (optional)
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ @java.lang.Override public long getTtl() { return ttl_; } /** *
       * DNS record ttl, values in 0-86400 (optional)
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @param value The ttl to set. * @return This builder for chaining. */ public Builder setTtl(long value) { ttl_ = value; onChanged(); return this; } /** *
       * DNS record ttl, values in 0-86400 (optional)
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return This builder for chaining. */ public Builder clearTtl() { ttl_ = 0L; onChanged(); return this; } private boolean ptr_ ; /** *
       * When set to true, also create PTR DNS record (optional)
       * 
* * bool ptr = 4; * @return The ptr. */ @java.lang.Override public boolean getPtr() { return ptr_; } /** *
       * When set to true, also create PTR DNS record (optional)
       * 
* * bool ptr = 4; * @param value The ptr to set. * @return This builder for chaining. */ public Builder setPtr(boolean value) { ptr_ = value; onChanged(); return this; } /** *
       * When set to true, also create PTR DNS record (optional)
       * 
* * bool ptr = 4; * @return This builder for chaining. */ public Builder clearPtr() { ptr_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.DnsRecordSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DnsRecordSpec) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.DnsRecordSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DnsRecordSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DnsRecordSpec(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.DnsRecordSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MoveInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.MoveInstanceRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance to move.
     * To get the instance ID, make 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 move.
     * To get the instance ID, make 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 folder to move the instance to.
     * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The destinationFolderId. */ java.lang.String getDestinationFolderId(); /** *
     * ID of the folder to move the instance to.
     * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for destinationFolderId. */ com.google.protobuf.ByteString getDestinationFolderIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.MoveInstanceRequest} */ public static final class MoveInstanceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.MoveInstanceRequest) MoveInstanceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MoveInstanceRequest.newBuilder() to construct. private MoveInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MoveInstanceRequest() { instanceId_ = ""; destinationFolderId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MoveInstanceRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MoveInstanceRequest( 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(); destinationFolderId_ = 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_MoveInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_MoveInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance to move.
     * To get the instance ID, make 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 move.
     * To get the instance ID, make 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 DESTINATION_FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object destinationFolderId_; /** *
     * ID of the folder to move the instance to.
     * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The destinationFolderId. */ @java.lang.Override public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; 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(); destinationFolderId_ = s; return s; } } /** *
     * ID of the folder to move the instance to.
     * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for destinationFolderId. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationFolderId_ = 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(destinationFolderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationFolderId_); } 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(destinationFolderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationFolderId_); } 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.MoveInstanceRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getDestinationFolderId() .equals(other.getDestinationFolderId())) 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) + DESTINATION_FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getDestinationFolderId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest 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.MoveInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest 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.MoveInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest 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.MoveInstanceRequest 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.MoveInstanceRequest 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.MoveInstanceRequest 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.MoveInstanceRequest 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.MoveInstanceRequest 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.MoveInstanceRequest 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.MoveInstanceRequest 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.MoveInstanceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.MoveInstanceRequest) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_MoveInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_MoveInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest.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_ = ""; destinationFolderId_ = ""; 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_MoveInstanceRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest(this); result.instanceId_ = instanceId_; result.destinationFolderId_ = destinationFolderId_; 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.MoveInstanceRequest) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getDestinationFolderId().isEmpty()) { destinationFolderId_ = other.destinationFolderId_; 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.MoveInstanceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance to move.
       * To get the instance ID, make 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 move.
       * To get the instance ID, make 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 move.
       * To get the instance ID, make 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 move.
       * To get the instance ID, make 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 move.
       * To get the instance ID, make 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 java.lang.Object destinationFolderId_ = ""; /** *
       * ID of the folder to move the instance to.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The destinationFolderId. */ public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder to move the instance to.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for destinationFolderId. */ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationFolderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder to move the instance to.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The destinationFolderId to set. * @return This builder for chaining. */ public Builder setDestinationFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationFolderId_ = value; onChanged(); return this; } /** *
       * ID of the folder to move the instance to.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDestinationFolderId() { destinationFolderId_ = getDefaultInstance().getDestinationFolderId(); onChanged(); return this; } /** *
       * ID of the folder to move the instance to.
       * To get the folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string destination_folder_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for destinationFolderId to set. * @return This builder for chaining. */ public Builder setDestinationFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationFolderId_ = 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.MoveInstanceRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.MoveInstanceRequest) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MoveInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MoveInstanceRequest(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.MoveInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MoveInstanceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.MoveInstanceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance that is being moved.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance that is being moved.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * ID of the folder that the instance is being moved from.
     * 
* * string source_folder_id = 2; * @return The sourceFolderId. */ java.lang.String getSourceFolderId(); /** *
     * ID of the folder that the instance is being moved from.
     * 
* * string source_folder_id = 2; * @return The bytes for sourceFolderId. */ com.google.protobuf.ByteString getSourceFolderIdBytes(); /** *
     * ID of the folder that the instance is being moved to.
     * 
* * string destination_folder_id = 3; * @return The destinationFolderId. */ java.lang.String getDestinationFolderId(); /** *
     * ID of the folder that the instance is being moved to.
     * 
* * string destination_folder_id = 3; * @return The bytes for destinationFolderId. */ com.google.protobuf.ByteString getDestinationFolderIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.MoveInstanceMetadata} */ public static final class MoveInstanceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.MoveInstanceMetadata) MoveInstanceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use MoveInstanceMetadata.newBuilder() to construct. private MoveInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MoveInstanceMetadata() { instanceId_ = ""; sourceFolderId_ = ""; destinationFolderId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MoveInstanceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MoveInstanceMetadata( 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(); sourceFolderId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); destinationFolderId_ = 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_MoveInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_MoveInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance that is being moved.
     * 
* * 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 moved.
     * 
* * 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 SOURCE_FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object sourceFolderId_; /** *
     * ID of the folder that the instance is being moved from.
     * 
* * string source_folder_id = 2; * @return The sourceFolderId. */ @java.lang.Override public java.lang.String getSourceFolderId() { java.lang.Object ref = sourceFolderId_; 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(); sourceFolderId_ = s; return s; } } /** *
     * ID of the folder that the instance is being moved from.
     * 
* * string source_folder_id = 2; * @return The bytes for sourceFolderId. */ @java.lang.Override public com.google.protobuf.ByteString getSourceFolderIdBytes() { java.lang.Object ref = sourceFolderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sourceFolderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESTINATION_FOLDER_ID_FIELD_NUMBER = 3; private volatile java.lang.Object destinationFolderId_; /** *
     * ID of the folder that the instance is being moved to.
     * 
* * string destination_folder_id = 3; * @return The destinationFolderId. */ @java.lang.Override public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; 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(); destinationFolderId_ = s; return s; } } /** *
     * ID of the folder that the instance is being moved to.
     * 
* * string destination_folder_id = 3; * @return The bytes for destinationFolderId. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationFolderId_ = 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(sourceFolderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceFolderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationFolderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destinationFolderId_); } 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(sourceFolderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceFolderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationFolderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destinationFolderId_); } 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.MoveInstanceMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getSourceFolderId() .equals(other.getSourceFolderId())) return false; if (!getDestinationFolderId() .equals(other.getDestinationFolderId())) 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) + SOURCE_FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getSourceFolderId().hashCode(); hash = (37 * hash) + DESTINATION_FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getDestinationFolderId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata 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.MoveInstanceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata 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.MoveInstanceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata 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.MoveInstanceMetadata 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.MoveInstanceMetadata 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.MoveInstanceMetadata 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.MoveInstanceMetadata 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.MoveInstanceMetadata 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.MoveInstanceMetadata 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.MoveInstanceMetadata 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.MoveInstanceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.MoveInstanceMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_MoveInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_MoveInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata.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_ = ""; sourceFolderId_ = ""; destinationFolderId_ = ""; 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_MoveInstanceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata(this); result.instanceId_ = instanceId_; result.sourceFolderId_ = sourceFolderId_; result.destinationFolderId_ = destinationFolderId_; 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.MoveInstanceMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getSourceFolderId().isEmpty()) { sourceFolderId_ = other.sourceFolderId_; onChanged(); } if (!other.getDestinationFolderId().isEmpty()) { destinationFolderId_ = other.destinationFolderId_; 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.MoveInstanceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata) 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 moved.
       * 
* * 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 moved.
       * 
* * 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 moved.
       * 
* * 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 moved.
       * 
* * 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 moved.
       * 
* * 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 sourceFolderId_ = ""; /** *
       * ID of the folder that the instance is being moved from.
       * 
* * string source_folder_id = 2; * @return The sourceFolderId. */ public java.lang.String getSourceFolderId() { java.lang.Object ref = sourceFolderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFolderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder that the instance is being moved from.
       * 
* * string source_folder_id = 2; * @return The bytes for sourceFolderId. */ public com.google.protobuf.ByteString getSourceFolderIdBytes() { java.lang.Object ref = sourceFolderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sourceFolderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder that the instance is being moved from.
       * 
* * string source_folder_id = 2; * @param value The sourceFolderId to set. * @return This builder for chaining. */ public Builder setSourceFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceFolderId_ = value; onChanged(); return this; } /** *
       * ID of the folder that the instance is being moved from.
       * 
* * string source_folder_id = 2; * @return This builder for chaining. */ public Builder clearSourceFolderId() { sourceFolderId_ = getDefaultInstance().getSourceFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the instance is being moved from.
       * 
* * string source_folder_id = 2; * @param value The bytes for sourceFolderId to set. * @return This builder for chaining. */ public Builder setSourceFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceFolderId_ = value; onChanged(); return this; } private java.lang.Object destinationFolderId_ = ""; /** *
       * ID of the folder that the instance is being moved to.
       * 
* * string destination_folder_id = 3; * @return The destinationFolderId. */ public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder that the instance is being moved to.
       * 
* * string destination_folder_id = 3; * @return The bytes for destinationFolderId. */ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationFolderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder that the instance is being moved to.
       * 
* * string destination_folder_id = 3; * @param value The destinationFolderId to set. * @return This builder for chaining. */ public Builder setDestinationFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationFolderId_ = value; onChanged(); return this; } /** *
       * ID of the folder that the instance is being moved to.
       * 
* * string destination_folder_id = 3; * @return This builder for chaining. */ public Builder clearDestinationFolderId() { destinationFolderId_ = getDefaultInstance().getDestinationFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the instance is being moved to.
       * 
* * string destination_folder_id = 3; * @param value The bytes for destinationFolderId to set. * @return This builder for chaining. */ public Builder setDestinationFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationFolderId_ = 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.MoveInstanceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.MoveInstanceMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.MoveInstanceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MoveInstanceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MoveInstanceMetadata(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.MoveInstanceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RelocateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.RelocateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance to move.
     * To get the instance ID, make 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 move.
     * To get the instance ID, make 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 availability zone to move the instance to.
     * To get the zone ID, make a [ZoneService.List] request.
     * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The destinationZoneId. */ java.lang.String getDestinationZoneId(); /** *
     * ID of the availability zone to move the instance to.
     * To get the zone ID, make a [ZoneService.List] request.
     * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for destinationZoneId. */ com.google.protobuf.ByteString getDestinationZoneIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.RelocateInstanceRequest} */ public static final class RelocateInstanceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.RelocateInstanceRequest) RelocateInstanceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RelocateInstanceRequest.newBuilder() to construct. private RelocateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RelocateInstanceRequest() { instanceId_ = ""; destinationZoneId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RelocateInstanceRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RelocateInstanceRequest( 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(); destinationZoneId_ = 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_RelocateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RelocateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance to move.
     * To get the instance ID, make 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 move.
     * To get the instance ID, make 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 DESTINATION_ZONE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object destinationZoneId_; /** *
     * ID of the availability zone to move the instance to.
     * To get the zone ID, make a [ZoneService.List] request.
     * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The destinationZoneId. */ @java.lang.Override public java.lang.String getDestinationZoneId() { java.lang.Object ref = destinationZoneId_; 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(); destinationZoneId_ = s; return s; } } /** *
     * ID of the availability zone to move the instance to.
     * To get the zone ID, make a [ZoneService.List] request.
     * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for destinationZoneId. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationZoneIdBytes() { java.lang.Object ref = destinationZoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationZoneId_ = 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(destinationZoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationZoneId_); } 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(destinationZoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationZoneId_); } 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.RelocateInstanceRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getDestinationZoneId() .equals(other.getDestinationZoneId())) 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) + DESTINATION_ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getDestinationZoneId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest 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.RelocateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest 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.RelocateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest 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.RelocateInstanceRequest 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.RelocateInstanceRequest 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.RelocateInstanceRequest 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.RelocateInstanceRequest 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.RelocateInstanceRequest 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.RelocateInstanceRequest 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.RelocateInstanceRequest 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.RelocateInstanceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.RelocateInstanceRequest) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RelocateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RelocateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest.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_ = ""; destinationZoneId_ = ""; 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_RelocateInstanceRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest(this); result.instanceId_ = instanceId_; result.destinationZoneId_ = destinationZoneId_; 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.RelocateInstanceRequest) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getDestinationZoneId().isEmpty()) { destinationZoneId_ = other.destinationZoneId_; 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.RelocateInstanceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance to move.
       * To get the instance ID, make 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 move.
       * To get the instance ID, make 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 move.
       * To get the instance ID, make 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 move.
       * To get the instance ID, make 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 move.
       * To get the instance ID, make 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 java.lang.Object destinationZoneId_ = ""; /** *
       * ID of the availability zone to move the instance to.
       * To get the zone ID, make a [ZoneService.List] request.
       * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The destinationZoneId. */ public java.lang.String getDestinationZoneId() { java.lang.Object ref = destinationZoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationZoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the availability zone to move the instance to.
       * To get the zone ID, make a [ZoneService.List] request.
       * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for destinationZoneId. */ public com.google.protobuf.ByteString getDestinationZoneIdBytes() { java.lang.Object ref = destinationZoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the availability zone to move the instance to.
       * To get the zone ID, make a [ZoneService.List] request.
       * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The destinationZoneId to set. * @return This builder for chaining. */ public Builder setDestinationZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationZoneId_ = value; onChanged(); return this; } /** *
       * ID of the availability zone to move the instance to.
       * To get the zone ID, make a [ZoneService.List] request.
       * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDestinationZoneId() { destinationZoneId_ = getDefaultInstance().getDestinationZoneId(); onChanged(); return this; } /** *
       * ID of the availability zone to move the instance to.
       * To get the zone ID, make a [ZoneService.List] request.
       * 
* * string destination_zone_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for destinationZoneId to set. * @return This builder for chaining. */ public Builder setDestinationZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationZoneId_ = 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.RelocateInstanceRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.RelocateInstanceRequest) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RelocateInstanceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RelocateInstanceRequest(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.RelocateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RelocateInstanceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.RelocateInstanceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance that is being moved.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance that is being moved.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * ID of the availability zone that the instance is being moved from.
     * 
* * string source_zone_id = 2; * @return The sourceZoneId. */ java.lang.String getSourceZoneId(); /** *
     * ID of the availability zone that the instance is being moved from.
     * 
* * string source_zone_id = 2; * @return The bytes for sourceZoneId. */ com.google.protobuf.ByteString getSourceZoneIdBytes(); /** *
     * ID of the availability zone that the instance is being moved to.
     * 
* * string destination_zone_id = 3; * @return The destinationZoneId. */ java.lang.String getDestinationZoneId(); /** *
     * ID of the availability zone that the instance is being moved to.
     * 
* * string destination_zone_id = 3; * @return The bytes for destinationZoneId. */ com.google.protobuf.ByteString getDestinationZoneIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.RelocateInstanceMetadata} */ public static final class RelocateInstanceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.RelocateInstanceMetadata) RelocateInstanceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RelocateInstanceMetadata.newBuilder() to construct. private RelocateInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RelocateInstanceMetadata() { instanceId_ = ""; sourceZoneId_ = ""; destinationZoneId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RelocateInstanceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RelocateInstanceMetadata( 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(); sourceZoneId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); destinationZoneId_ = 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_RelocateInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RelocateInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance that is being moved.
     * 
* * 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 moved.
     * 
* * 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 SOURCE_ZONE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object sourceZoneId_; /** *
     * ID of the availability zone that the instance is being moved from.
     * 
* * string source_zone_id = 2; * @return The sourceZoneId. */ @java.lang.Override public java.lang.String getSourceZoneId() { java.lang.Object ref = sourceZoneId_; 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(); sourceZoneId_ = s; return s; } } /** *
     * ID of the availability zone that the instance is being moved from.
     * 
* * string source_zone_id = 2; * @return The bytes for sourceZoneId. */ @java.lang.Override public com.google.protobuf.ByteString getSourceZoneIdBytes() { java.lang.Object ref = sourceZoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sourceZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESTINATION_ZONE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object destinationZoneId_; /** *
     * ID of the availability zone that the instance is being moved to.
     * 
* * string destination_zone_id = 3; * @return The destinationZoneId. */ @java.lang.Override public java.lang.String getDestinationZoneId() { java.lang.Object ref = destinationZoneId_; 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(); destinationZoneId_ = s; return s; } } /** *
     * ID of the availability zone that the instance is being moved to.
     * 
* * string destination_zone_id = 3; * @return The bytes for destinationZoneId. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationZoneIdBytes() { java.lang.Object ref = destinationZoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationZoneId_ = 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(sourceZoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceZoneId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationZoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destinationZoneId_); } 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(sourceZoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceZoneId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationZoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destinationZoneId_); } 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.RelocateInstanceMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata) obj; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getSourceZoneId() .equals(other.getSourceZoneId())) return false; if (!getDestinationZoneId() .equals(other.getDestinationZoneId())) 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) + SOURCE_ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getSourceZoneId().hashCode(); hash = (37 * hash) + DESTINATION_ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getDestinationZoneId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata 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.RelocateInstanceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata 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.RelocateInstanceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata 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.RelocateInstanceMetadata 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.RelocateInstanceMetadata 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.RelocateInstanceMetadata 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.RelocateInstanceMetadata 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.RelocateInstanceMetadata 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.RelocateInstanceMetadata 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.RelocateInstanceMetadata 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.RelocateInstanceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.RelocateInstanceMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RelocateInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_RelocateInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata.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_ = ""; sourceZoneId_ = ""; destinationZoneId_ = ""; 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_RelocateInstanceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata(this); result.instanceId_ = instanceId_; result.sourceZoneId_ = sourceZoneId_; result.destinationZoneId_ = destinationZoneId_; 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.RelocateInstanceMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getSourceZoneId().isEmpty()) { sourceZoneId_ = other.sourceZoneId_; onChanged(); } if (!other.getDestinationZoneId().isEmpty()) { destinationZoneId_ = other.destinationZoneId_; 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.RelocateInstanceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata) 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 moved.
       * 
* * 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 moved.
       * 
* * 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 moved.
       * 
* * 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 moved.
       * 
* * 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 moved.
       * 
* * 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 sourceZoneId_ = ""; /** *
       * ID of the availability zone that the instance is being moved from.
       * 
* * string source_zone_id = 2; * @return The sourceZoneId. */ public java.lang.String getSourceZoneId() { java.lang.Object ref = sourceZoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceZoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the availability zone that the instance is being moved from.
       * 
* * string source_zone_id = 2; * @return The bytes for sourceZoneId. */ public com.google.protobuf.ByteString getSourceZoneIdBytes() { java.lang.Object ref = sourceZoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sourceZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the availability zone that the instance is being moved from.
       * 
* * string source_zone_id = 2; * @param value The sourceZoneId to set. * @return This builder for chaining. */ public Builder setSourceZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceZoneId_ = value; onChanged(); return this; } /** *
       * ID of the availability zone that the instance is being moved from.
       * 
* * string source_zone_id = 2; * @return This builder for chaining. */ public Builder clearSourceZoneId() { sourceZoneId_ = getDefaultInstance().getSourceZoneId(); onChanged(); return this; } /** *
       * ID of the availability zone that the instance is being moved from.
       * 
* * string source_zone_id = 2; * @param value The bytes for sourceZoneId to set. * @return This builder for chaining. */ public Builder setSourceZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceZoneId_ = value; onChanged(); return this; } private java.lang.Object destinationZoneId_ = ""; /** *
       * ID of the availability zone that the instance is being moved to.
       * 
* * string destination_zone_id = 3; * @return The destinationZoneId. */ public java.lang.String getDestinationZoneId() { java.lang.Object ref = destinationZoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationZoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the availability zone that the instance is being moved to.
       * 
* * string destination_zone_id = 3; * @return The bytes for destinationZoneId. */ public com.google.protobuf.ByteString getDestinationZoneIdBytes() { java.lang.Object ref = destinationZoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destinationZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the availability zone that the instance is being moved to.
       * 
* * string destination_zone_id = 3; * @param value The destinationZoneId to set. * @return This builder for chaining. */ public Builder setDestinationZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationZoneId_ = value; onChanged(); return this; } /** *
       * ID of the availability zone that the instance is being moved to.
       * 
* * string destination_zone_id = 3; * @return This builder for chaining. */ public Builder clearDestinationZoneId() { destinationZoneId_ = getDefaultInstance().getDestinationZoneId(); onChanged(); return this; } /** *
       * ID of the availability zone that the instance is being moved to.
       * 
* * string destination_zone_id = 3; * @param value The bytes for destinationZoneId to set. * @return This builder for chaining. */ public Builder setDestinationZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationZoneId_ = 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.RelocateInstanceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.RelocateInstanceMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.RelocateInstanceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RelocateInstanceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RelocateInstanceMetadata(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.RelocateInstanceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GuestStopInstanceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.GuestStopInstanceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance that was stopped from guest OS.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance that was stopped from guest OS.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.GuestStopInstanceMetadata} */ public static final class GuestStopInstanceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.GuestStopInstanceMetadata) GuestStopInstanceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use GuestStopInstanceMetadata.newBuilder() to construct. private GuestStopInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GuestStopInstanceMetadata() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GuestStopInstanceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GuestStopInstanceMetadata( 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_GuestStopInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GuestStopInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance that was stopped from guest OS.
     * 
* * 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 was stopped from guest OS.
     * 
* * 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.GuestStopInstanceMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata) 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.GuestStopInstanceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata 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.GuestStopInstanceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.GuestStopInstanceMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GuestStopInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_GuestStopInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata.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_GuestStopInstanceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata(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.GuestStopInstanceMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata.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.GuestStopInstanceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance that was stopped from guest OS.
       * 
* * 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 was stopped from guest OS.
       * 
* * 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 was stopped from guest OS.
       * 
* * 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 was stopped from guest OS.
       * 
* * string instance_id = 1; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** *
       * ID of the instance that was stopped from guest OS.
       * 
* * 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.GuestStopInstanceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GuestStopInstanceMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.GuestStopInstanceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GuestStopInstanceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GuestStopInstanceMetadata(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.GuestStopInstanceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PreemptInstanceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.PreemptInstanceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance that is being preempted.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance that is being preempted.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.PreemptInstanceMetadata} */ public static final class PreemptInstanceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.PreemptInstanceMetadata) PreemptInstanceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use PreemptInstanceMetadata.newBuilder() to construct. private PreemptInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PreemptInstanceMetadata() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PreemptInstanceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PreemptInstanceMetadata( 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_PreemptInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_PreemptInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance that is being preempted.
     * 
* * 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 preempted.
     * 
* * 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.PreemptInstanceMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata) 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.PreemptInstanceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata 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.PreemptInstanceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata 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.PreemptInstanceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata 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.PreemptInstanceMetadata 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.PreemptInstanceMetadata 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.PreemptInstanceMetadata 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.PreemptInstanceMetadata 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.PreemptInstanceMetadata 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.PreemptInstanceMetadata 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.PreemptInstanceMetadata 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.PreemptInstanceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.PreemptInstanceMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_PreemptInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_PreemptInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata.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_PreemptInstanceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata(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.PreemptInstanceMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata.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.PreemptInstanceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata) 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 preempted.
       * 
* * 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 preempted.
       * 
* * 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 preempted.
       * 
* * 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 preempted.
       * 
* * 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 preempted.
       * 
* * 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.PreemptInstanceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.PreemptInstanceMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.PreemptInstanceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PreemptInstanceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PreemptInstanceMetadata(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.PreemptInstanceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CrashInstanceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CrashInstanceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance that was crashed.
     * 
* * string instance_id = 1; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance that was crashed.
     * 
* * string instance_id = 1; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.CrashInstanceMetadata} */ public static final class CrashInstanceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CrashInstanceMetadata) CrashInstanceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use CrashInstanceMetadata.newBuilder() to construct. private CrashInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CrashInstanceMetadata() { instanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CrashInstanceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CrashInstanceMetadata( 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_CrashInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CrashInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata.Builder.class); } public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance that was crashed.
     * 
* * 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 was crashed.
     * 
* * 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.CrashInstanceMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata other = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata) 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.CrashInstanceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata 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.CrashInstanceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata 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.CrashInstanceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata 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.CrashInstanceMetadata 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.CrashInstanceMetadata 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.CrashInstanceMetadata 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.CrashInstanceMetadata 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.CrashInstanceMetadata 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.CrashInstanceMetadata 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.CrashInstanceMetadata 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.CrashInstanceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CrashInstanceMetadata) yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CrashInstanceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.internal_static_yandex_cloud_compute_v1_CrashInstanceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata.class, yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata.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_CrashInstanceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata build() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata buildPartial() { yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata result = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata(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.CrashInstanceMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata other) { if (other == yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata.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.CrashInstanceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance that was crashed.
       * 
* * 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 was crashed.
       * 
* * 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 was crashed.
       * 
* * 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 was crashed.
       * 
* * string instance_id = 1; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** *
       * ID of the instance that was crashed.
       * 
* * 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.CrashInstanceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CrashInstanceMetadata) private static final yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata(); } public static yandex.cloud.api.compute.v1.InstanceServiceOuterClass.CrashInstanceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CrashInstanceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CrashInstanceMetadata(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.CrashInstanceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_GetInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_GetInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListInstancesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListInstancesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListInstancesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_UpsertEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_UpsertEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_StopInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_StartInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_ResourcesSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_ResourcesSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_DiskSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_DiskSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_AttachedFilesystemSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_AttachedFilesystemSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_NetworkInterfaceSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_NetworkInterfaceSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_PrimaryAddressSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_PrimaryAddressSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_OneToOneNatSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_OneToOneNatSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_DnsRecordSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_DnsRecordSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_MoveInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_MoveInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_MoveInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_MoveInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_RelocateInstanceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_RelocateInstanceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_RelocateInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_RelocateInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_GuestStopInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_GuestStopInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_PreemptInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_PreemptInstanceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_CrashInstanceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_CrashInstanceMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n.yandex/cloud/compute/v1/instance_servi" + "ce.proto\022\027yandex.cloud.compute.v1\032\034googl" + "e/api/annotations.proto\032 google/protobuf" + "/field_mask.proto\032 yandex/cloud/api/oper" + "ation.proto\032\"yandex/cloud/compute/v1/dis" + "k.proto\032&yandex/cloud/compute/v1/instanc" + "e.proto\032&yandex/cloud/operation/operatio" + "n.proto\032\035yandex/cloud/validation.proto\"l" + "\n\022GetInstanceRequest\022!\n\013instance_id\030\001 \001(" + "\tB\014\350\3071\001\212\3101\004<=50\0223\n\004view\030\002 \001(\0162%.yandex.c" + "loud.compute.v1.InstanceView\"\256\001\n\024ListIns" + "tancesRequest\022\037\n\tfolder_id\030\001 \001(\tB\014\350\3071\001\212\310" + "1\004<=50\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006<=1000\022\035\n" + "\npage_token\030\003 \001(\tB\t\212\3101\005<=100\022\032\n\006filter\030\004" + " \001(\tB\n\212\3101\006<=1000\022\033\n\010order_by\030\005 \001(\tB\t\212\3101\005" + "<=100\"f\n\025ListInstancesResponse\0224\n\tinstan" + "ces\030\001 \003(\0132!.yandex.cloud.compute.v1.Inst" + "ance\022\027\n\017next_page_token\030\002 \001(\t\"\373\n\n\025Create" + "InstanceRequest\022\037\n\tfolder_id\030\001 \001(\tB\014\350\3071\001" + "\212\3101\004<=50\0222\n\004name\030\002 \001(\tB$\362\3071 |[a-z]([-a-z" + "0-9]{0,61}[a-z0-9])?\022\036\n\013description\030\003 \001(" + "\tB\t\212\3101\005<=256\022\223\001\n\006labels\030\004 \003(\0132:.yandex.c" + "loud.compute.v1.CreateInstanceRequest.La" + "belsEntryBG\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_./\\@0-" + "9a-z]*\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0-9a-z" + "]*\022\035\n\007zone_id\030\005 \001(\tB\014\350\3071\001\212\3101\004<=50\022\031\n\013pla" + "tform_id\030\006 \001(\tB\004\350\3071\001\022D\n\016resources_spec\030\007" + " \001(\0132&.yandex.cloud.compute.v1.Resources" + "SpecB\004\350\3071\001\022N\n\010metadata\030\010 \003(\0132<.yandex.cl" + "oud.compute.v1.CreateInstanceRequest.Met" + "adataEntry\022B\n\020metadata_options\030\023 \001(\0132(.y" + "andex.cloud.compute.v1.MetadataOptions\022G" + "\n\016boot_disk_spec\030\t \001(\0132).yandex.cloud.co" + "mpute.v1.AttachedDiskSpecB\004\350\3071\001\022P\n\024secon" + "dary_disk_specs\030\n \003(\0132).yandex.cloud.com" + "pute.v1.AttachedDiskSpecB\007\202\3101\003<=3\022H\n\020loc" + "al_disk_specs\030\022 \003(\0132..yandex.cloud.compu" + "te.v1.AttachedLocalDiskSpec\022I\n\020filesyste" + "m_specs\030\021 \003(\0132/.yandex.cloud.compute.v1." + "AttachedFilesystemSpec\022U\n\027network_interf" + "ace_specs\030\013 \003(\0132-.yandex.cloud.compute.v" + "1.NetworkInterfaceSpecB\005\202\3101\0011\0226\n\010hostnam" + "e\030\014 \001(\tB$\362\3071 |[a-z]([-a-z0-9]{0,61}[a-z0" + "-9])?\022D\n\021scheduling_policy\030\r \001(\0132).yande" + "x.cloud.compute.v1.SchedulingPolicy\022\032\n\022s" + "ervice_account_id\030\016 \001(\t\022B\n\020network_setti" + "ngs\030\017 \001(\0132(.yandex.cloud.compute.v1.Netw" + "orkSettings\022:\n\014gpu_settings\030\024 \001(\0132$.yand" + "ex.cloud.compute.v1.GpuSettings\022B\n\020place" + "ment_policy\030\020 \001(\0132(.yandex.cloud.compute" + ".v1.PlacementPolicy\032-\n\013LabelsEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadataEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\026C" + "reateInstanceMetadata\022\035\n\013instance_id\030\001 \001" + "(\tB\010\212\3101\004<=50\"\210\007\n\025UpdateInstanceRequest\022!" + "\n\013instance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022/\n\013upd" + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + "sk\0222\n\004name\030\003 \001(\tB$\362\3071 |[a-z]([-a-z0-9]{0" + ",61}[a-z0-9])?\022\036\n\013description\030\004 \001(\tB\t\212\3101" + "\005<=256\022\223\001\n\006labels\030\005 \003(\0132:.yandex.cloud.c" + "ompute.v1.UpdateInstanceRequest.LabelsEn" + "tryBG\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_./\\@0-9a-z]*" + "\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0-9a-z]*\022\023\n\013" + "platform_id\030\006 \001(\t\022>\n\016resources_spec\030\007 \001(" + "\0132&.yandex.cloud.compute.v1.ResourcesSpe" + "c\022N\n\010metadata\030\010 \003(\0132<.yandex.cloud.compu" + "te.v1.UpdateInstanceRequest.MetadataEntr" + "y\022B\n\020metadata_options\030\r \001(\0132(.yandex.clo" + "ud.compute.v1.MetadataOptions\022\032\n\022service" + "_account_id\030\t \001(\t\022B\n\020network_settings\030\n " + "\001(\0132(.yandex.cloud.compute.v1.NetworkSet" + "tings\022B\n\020placement_policy\030\013 \001(\0132(.yandex" + ".cloud.compute.v1.PlacementPolicy\022D\n\021sch" + "eduling_policy\030\014 \001(\0132).yandex.cloud.comp" + "ute.v1.SchedulingPolicy\032-\n\013LabelsEntry\022\013" + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetada" + "taEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + "-\n\026UpdateInstanceMetadata\022\023\n\013instance_id" + "\030\001 \001(\t\":\n\025DeleteInstanceRequest\022!\n\013insta" + "nce_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"-\n\026DeleteInst" + "anceMetadata\022\023\n\013instance_id\030\001 \001(\t\"\307\001\n\035Up" + "dateInstanceMetadataRequest\022\023\n\013instance_" + "id\030\001 \001(\t\022\016\n\006delete\030\002 \003(\t\022R\n\006upsert\030\003 \003(\013" + "2B.yandex.cloud.compute.v1.UpdateInstanc" + "eMetadataRequest.UpsertEntry\032-\n\013UpsertEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"5\n\036U" + "pdateInstanceMetadataMetadata\022\023\n\013instanc" + "e_id\030\001 \001(\t\"b\n\"GetInstanceSerialPortOutpu" + "tRequest\022!\n\013instance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<" + "=50\022\031\n\004port\030\002 \001(\003B\013\372\3071\0071,2,3,4\"7\n#GetIns" + "tanceSerialPortOutputResponse\022\020\n\010content" + "s\030\001 \001(\t\"8\n\023StopInstanceRequest\022!\n\013instan" + "ce_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"+\n\024StopInstanc" + "eMetadata\022\023\n\013instance_id\030\001 \001(\t\"9\n\024StartI" + "nstanceRequest\022!\n\013instance_id\030\001 \001(\tB\014\350\3071" + "\001\212\3101\004<=50\",\n\025StartInstanceMetadata\022\023\n\013in" + "stance_id\030\001 \001(\t\";\n\026RestartInstanceReques" + "t\022!\n\013instance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\".\n\027" + "RestartInstanceMetadata\022\023\n\013instance_id\030\001" + " \001(\t\"\213\001\n\031AttachInstanceDiskRequest\022!\n\013in" + "stance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022K\n\022attache" + "d_disk_spec\030\002 \001(\0132).yandex.cloud.compute" + ".v1.AttachedDiskSpecB\004\350\3071\001\"B\n\032AttachInst" + "anceDiskMetadata\022\023\n\013instance_id\030\001 \001(\t\022\017\n" + "\007disk_id\030\002 \001(\t\"\232\001\n\031DetachInstanceDiskReq" + "uest\022!\n\013instance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022" + "\033\n\007disk_id\030\002 \001(\tB\010\212\3101\004<=50H\000\022/\n\013device_n" + "ame\030\003 \001(\tB\030\362\3071\024[a-z][a-z0-9-_]{,19}H\000B\014\n" + "\004disk\022\004\300\3011\001\"B\n\032DetachInstanceDiskMetadat" + "a\022\023\n\013instance_id\030\001 \001(\t\022\017\n\007disk_id\030\002 \001(\t\"" + "\235\001\n\037AttachInstanceFilesystemRequest\022!\n\013i" + "nstance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022W\n\030attach" + "ed_filesystem_spec\030\002 \001(\0132/.yandex.cloud." + "compute.v1.AttachedFilesystemSpecB\004\350\3071\001\"" + "N\n AttachInstanceFilesystemMetadata\022\023\n\013i" + "nstance_id\030\001 \001(\t\022\025\n\rfilesystem_id\030\002 \001(\t\"" + "\254\001\n\037DetachInstanceFilesystemRequest\022!\n\013i" + "nstance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022!\n\rfilesy" + "stem_id\030\002 \001(\tB\010\212\3101\004<=50H\000\022/\n\013device_name" + "\030\003 \001(\tB\030\362\3071\024[a-z][a-z0-9-_]{,19}H\000B\022\n\nfi" + "lesystem\022\004\300\3011\001\"N\n DetachInstanceFilesyst" + "emMetadata\022\023\n\013instance_id\030\001 \001(\t\022\025\n\rfiles" + "ystem_id\030\002 \001(\t\"\266\001\n\035AddInstanceOneToOneNa" + "tRequest\022\023\n\013instance_id\030\001 \001(\t\022\037\n\027network" + "_interface_index\030\002 \001(\t\022\030\n\020internal_addre" + "ss\030\003 \001(\t\022E\n\023one_to_one_nat_spec\030\004 \001(\0132(." + "yandex.cloud.compute.v1.OneToOneNatSpec\"" + "5\n\036AddInstanceOneToOneNatMetadata\022\023\n\013ins" + "tance_id\030\001 \001(\t\"r\n RemoveInstanceOneToOne" + "NatRequest\022\023\n\013instance_id\030\001 \001(\t\022\037\n\027netwo" + "rk_interface_index\030\002 \001(\t\022\030\n\020internal_add" + "ress\030\003 \001(\t\"8\n!RemoveInstanceOneToOneNatM" + "etadata\022\023\n\013instance_id\030\001 \001(\t\"\345\002\n%UpdateI" + "nstanceNetworkInterfaceRequest\022\031\n\013instan" + "ce_id\030\001 \001(\tB\004\350\3071\001\022%\n\027network_interface_i" + "ndex\030\002 \001(\tB\004\350\3071\001\022/\n\013update_mask\030\003 \001(\0132\032." + "google.protobuf.FieldMask\022\021\n\tsubnet_id\030\004" + " \001(\t\022L\n\027primary_v4_address_spec\030\005 \001(\0132+." + "yandex.cloud.compute.v1.PrimaryAddressSp" + "ec\022L\n\027primary_v6_address_spec\030\006 \001(\0132+.ya" + "ndex.cloud.compute.v1.PrimaryAddressSpec" + "\022\032\n\022security_group_ids\030\007 \003(\t\"^\n&UpdateIn" + "stanceNetworkInterfaceMetadata\022\023\n\013instan" + "ce_id\030\001 \001(\t\022\037\n\027network_interface_index\030\002" + " \001(\t\"\200\001\n\035ListInstanceOperationsRequest\022!" + "\n\013instance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022\035\n\tpag" + "e_size\030\002 \001(\003B\n\372\3071\006<=1000\022\035\n\npage_token\030\003" + " \001(\tB\t\212\3101\005<=100\"p\n\036ListInstanceOperation" + "sResponse\0225\n\noperations\030\001 \003(\0132!.yandex.c" + "loud.operation.Operation\022\027\n\017next_page_to" + "ken\030\002 \001(\t\"\347\001\n\rResourcesSpec\022&\n\006memory\030\001 " + "\001(\003B\026\350\3071\001\372\3071\016<=274877906944\022i\n\005cores\030\002 \001" + "(\003BZ\350\3071\001\372\3071R2,4,6,8,10,12,14,16,18,20,22" + ",24,26,28,30,32,34,36,40,44,48,52,56,60," + "64,68,72,76,80\022(\n\rcore_fraction\030\003 \001(\003B\021\372" + "\3071\r0,5,20,50,100\022\031\n\004gpus\030\004 \001(\003B\013\372\3071\0070,1," + "2,4\"\230\005\n\020AttachedDiskSpec\022<\n\004mode\030\001 \001(\0162." + ".yandex.cloud.compute.v1.AttachedDiskSpe" + "c.Mode\022-\n\013device_name\030\002 \001(\tB\030\362\3071\024[a-z][a" + "-z0-9-_]{,19}\022\023\n\013auto_delete\030\003 \001(\010\022G\n\tdi" + "sk_spec\030\004 \001(\01322.yandex.cloud.compute.v1." + "AttachedDiskSpec.DiskSpecH\000\022\033\n\007disk_id\030\005" + " \001(\tB\010\212\3101\004<=50H\000\032\320\002\n\010DiskSpec\0222\n\004name\030\001 " + "\001(\tB$\362\3071 |[a-z]([-a-z0-9]{0,61}[a-z0-9])" + "?\022\036\n\013description\030\002 \001(\tB\t\212\3101\005<=256\022\031\n\007typ" + "e_id\030\003 \001(\tB\010\212\3101\004<=50\022+\n\004size\030\004 \001(\003B\035\350\3071\001" + "\372\3071\0254194304-4398046511104\022\022\n\nblock_size\030" + "\010 \001(\003\022K\n\025disk_placement_policy\030\007 \001(\0132,.y" + "andex.cloud.compute.v1.DiskPlacementPoli" + "cy\022\034\n\010image_id\030\005 \001(\tB\010\212\3101\004<=50H\000\022\037\n\013snap" + "shot_id\030\006 \001(\tB\010\212\3101\004<=50H\000B\010\n\006source\";\n\004M" + "ode\022\024\n\020MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ONLY\020\001" + "\022\016\n\nREAD_WRITE\020\002B\014\n\004disk\022\004\300\3011\001\"+\n\025Attach" + "edLocalDiskSpec\022\022\n\004size\030\001 \001(\003B\004\350\3071\001\"\351\001\n\026" + "AttachedFilesystemSpec\022B\n\004mode\030\001 \001(\01624.y" + "andex.cloud.compute.v1.AttachedFilesyste" + "mSpec.Mode\022-\n\013device_name\030\002 \001(\tB\030\362\3071\024[a-" + "z][a-z0-9-_]{,19}\022\037\n\rfilesystem_id\030\003 \001(\t" + "B\010\212\3101\004<=50\";\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000" + "\022\r\n\tREAD_ONLY\020\001\022\016\n\nREAD_WRITE\020\002\"\357\001\n\024Netw" + "orkInterfaceSpec\022\037\n\tsubnet_id\030\001 \001(\tB\014\350\3071" + "\001\212\3101\004<=50\022L\n\027primary_v4_address_spec\030\002 \001" + "(\0132+.yandex.cloud.compute.v1.PrimaryAddr" + "essSpec\022L\n\027primary_v6_address_spec\030\003 \001(\013" + "2+.yandex.cloud.compute.v1.PrimaryAddres" + "sSpec\022\032\n\022security_group_ids\030\006 \003(\t\"\256\001\n\022Pr" + "imaryAddressSpec\022\017\n\007address\030\001 \001(\t\022E\n\023one" + "_to_one_nat_spec\030\002 \001(\0132(.yandex.cloud.co" + "mpute.v1.OneToOneNatSpec\022@\n\020dns_record_s" + "pecs\030\003 \003(\0132&.yandex.cloud.compute.v1.Dns" + "RecordSpec\"\234\001\n\017OneToOneNatSpec\0226\n\nip_ver" + "sion\030\001 \001(\0162\".yandex.cloud.compute.v1.IpV" + "ersion\022\017\n\007address\030\002 \001(\t\022@\n\020dns_record_sp" + "ecs\030\003 \003(\0132&.yandex.cloud.compute.v1.DnsR" + "ecordSpec\"_\n\rDnsRecordSpec\022\022\n\004fqdn\030\001 \001(\t" + "B\004\350\3071\001\022\023\n\013dns_zone_id\030\002 \001(\t\022\030\n\003ttl\030\003 \001(\003" + "B\013\372\3071\0070-86400\022\013\n\003ptr\030\004 \001(\010\"e\n\023MoveInstan" + "ceRequest\022!\n\013instance_id\030\001 \001(\tB\014\350\3071\001\212\3101\004" + "<=50\022+\n\025destination_folder_id\030\002 \001(\tB\014\350\3071" + "\001\212\3101\004<=50\"d\n\024MoveInstanceMetadata\022\023\n\013ins" + "tance_id\030\001 \001(\t\022\030\n\020source_folder_id\030\002 \001(\t" + "\022\035\n\025destination_folder_id\030\003 \001(\t\"g\n\027Reloc" + "ateInstanceRequest\022!\n\013instance_id\030\001 \001(\tB" + "\014\350\3071\001\212\3101\004<=50\022)\n\023destination_zone_id\030\002 \001" + "(\tB\014\350\3071\001\212\3101\004<=50\"d\n\030RelocateInstanceMeta" + "data\022\023\n\013instance_id\030\001 \001(\t\022\026\n\016source_zone" + "_id\030\002 \001(\t\022\033\n\023destination_zone_id\030\003 \001(\t\"0" + "\n\031GuestStopInstanceMetadata\022\023\n\013instance_" + "id\030\001 \001(\t\".\n\027PreemptInstanceMetadata\022\023\n\013i" + "nstance_id\030\001 \001(\t\",\n\025CrashInstanceMetadat" + "a\022\023\n\013instance_id\030\001 \001(\t*#\n\014InstanceView\022\t" + "\n\005BASIC\020\000\022\010\n\004FULL\020\0012\346\036\n\017InstanceService\022" + "\202\001\n\003Get\022+.yandex.cloud.compute.v1.GetIns" + "tanceRequest\032!.yandex.cloud.compute.v1.I" + "nstance\"+\202\323\344\223\002%\022#/compute/v1/instances/{" + "instance_id}\022\204\001\n\004List\022-.yandex.cloud.com" + "pute.v1.ListInstancesRequest\032..yandex.cl" + "oud.compute.v1.ListInstancesResponse\"\035\202\323" + "\344\223\002\027\022\025/compute/v1/instances\022\243\001\n\006Create\022." + ".yandex.cloud.compute.v1.CreateInstanceR" + "equest\032!.yandex.cloud.operation.Operatio" + "n\"F\202\323\344\223\002\032\"\025/compute/v1/instances:\001*\262\322*\"\n" + "\026CreateInstanceMetadata\022\010Instance\022\261\001\n\006Up" + "date\022..yandex.cloud.compute.v1.UpdateIns" + "tanceRequest\032!.yandex.cloud.operation.Op" + "eration\"T\202\323\344\223\002(2#/compute/v1/instances/{" + "instance_id}:\001*\262\322*\"\n\026UpdateInstanceMetad" + "ata\022\010Instance\022\273\001\n\006Delete\022..yandex.cloud." + "compute.v1.DeleteInstanceRequest\032!.yande" + "x.cloud.operation.Operation\"^\202\323\344\223\002%*#/co" + "mpute/v1/instances/{instance_id}\262\322*/\n\026De" + "leteInstanceMetadata\022\025google.protobuf.Em" + "pty\022\330\001\n\016UpdateMetadata\0226.yandex.cloud.co" + "mpute.v1.UpdateInstanceMetadataRequest\032!" + ".yandex.cloud.operation.Operation\"k\202\323\344\223\002" + "7\"2/compute/v1/instances/{instance_id}/u" + "pdateMetadata:\001*\262\322**\n\036UpdateInstanceMeta" + "dataMetadata\022\010Instance\022\316\001\n\023GetSerialPort" + "Output\022;.yandex.cloud.compute.v1.GetInst" + "anceSerialPortOutputRequest\032<.yandex.clo" + "ud.compute.v1.GetInstanceSerialPortOutpu" + "tResponse\"<\202\323\344\223\0026\0224/compute/v1/instances" + "/{instance_id}:serialPortOutput\022\272\001\n\004Stop" + "\022,.yandex.cloud.compute.v1.StopInstanceR" + "equest\032!.yandex.cloud.operation.Operatio" + "n\"a\202\323\344\223\002*\"(/compute/v1/instances/{instan" + "ce_id}:stop\262\322*-\n\024StopInstanceMetadata\022\025g" + "oogle.protobuf.Empty\022\261\001\n\005Start\022-.yandex." + "cloud.compute.v1.StartInstanceRequest\032!." + "yandex.cloud.operation.Operation\"V\202\323\344\223\002+" + "\")/compute/v1/instances/{instance_id}:st" + "art\262\322*!\n\025StartInstanceMetadata\022\010Instance" + "\022\306\001\n\007Restart\022/.yandex.cloud.compute.v1.R" + "estartInstanceRequest\032!.yandex.cloud.ope" + "ration.Operation\"g\202\323\344\223\002-\"+/compute/v1/in" + "stances/{instance_id}:restart\262\322*0\n\027Resta" + "rtInstanceMetadata\022\025google.protobuf.Empt" + "y\022\310\001\n\nAttachDisk\0222.yandex.cloud.compute." + "v1.AttachInstanceDiskRequest\032!.yandex.cl" + "oud.operation.Operation\"c\202\323\344\223\0023\"./comput" + "e/v1/instances/{instance_id}:attachDisk:" + "\001*\262\322*&\n\032AttachInstanceDiskMetadata\022\010Inst" + "ance\022\310\001\n\nDetachDisk\0222.yandex.cloud.compu" + "te.v1.DetachInstanceDiskRequest\032!.yandex" + ".cloud.operation.Operation\"c\202\323\344\223\0023\"./com" + "pute/v1/instances/{instance_id}:detachDi" + "sk:\001*\262\322*&\n\032DetachInstanceDiskMetadata\022\010I" + "nstance\022\340\001\n\020AttachFilesystem\0228.yandex.cl" + "oud.compute.v1.AttachInstanceFilesystemR" + "equest\032!.yandex.cloud.operation.Operatio" + "n\"o\202\323\344\223\0029\"4/compute/v1/instances/{instan" + "ce_id}:attachFilesystem:\001*\262\322*,\n AttachIn" + "stanceFilesystemMetadata\022\010Instance\022\340\001\n\020D" + "etachFilesystem\0228.yandex.cloud.compute.v" + "1.DetachInstanceFilesystemRequest\032!.yand" + "ex.cloud.operation.Operation\"o\202\323\344\223\0029\"4/c" + "ompute/v1/instances/{instance_id}:detach" + "Filesystem:\001*\262\322*,\n DetachInstanceFilesys" + "temMetadata\022\010Instance\022\330\001\n\016AddOneToOneNat" + "\0226.yandex.cloud.compute.v1.AddInstanceOn" + "eToOneNatRequest\032!.yandex.cloud.operatio" + "n.Operation\"k\202\323\344\223\0027\"2/compute/v1/instanc" + "es/{instance_id}/addOneToOneNat:\001*\262\322**\n\036" + "AddInstanceOneToOneNatMetadata\022\010Instance" + "\022\344\001\n\021RemoveOneToOneNat\0229.yandex.cloud.co" + "mpute.v1.RemoveInstanceOneToOneNatReques" + "t\032!.yandex.cloud.operation.Operation\"q\202\323" + "\344\223\002:\"5/compute/v1/instances/{instance_id" + "}/removeOneToOneNat:\001*\262\322*-\n!RemoveInstan" + "ceOneToOneNatMetadata\022\010Instance\022\370\001\n\026Upda" + "teNetworkInterface\022>.yandex.cloud.comput" + "e.v1.UpdateInstanceNetworkInterfaceReque" + "st\032!.yandex.cloud.operation.Operation\"{\202" + "\323\344\223\002?2:/compute/v1/instances/{instance_i" + "d}/updateNetworkInterface:\001*\262\322*2\n&Update" + "InstanceNetworkInterfaceMetadata\022\010Instan" + "ce\022\271\001\n\016ListOperations\0226.yandex.cloud.com" + "pute.v1.ListInstanceOperationsRequest\0327." + "yandex.cloud.compute.v1.ListInstanceOper" + "ationsResponse\"6\202\323\344\223\0020\022./compute/v1/inst" + "ances/{instance_id}/operations\022\260\001\n\004Move\022" + ",.yandex.cloud.compute.v1.MoveInstanceRe" + "quest\032!.yandex.cloud.operation.Operation" + "\"W\202\323\344\223\002-\"(/compute/v1/instances/{instanc" + "e_id}:move:\001*\262\322* \n\024MoveInstanceMetadata\022" + "\010Instance\022\300\001\n\010Relocate\0220.yandex.cloud.co" + "mpute.v1.RelocateInstanceRequest\032!.yande" + "x.cloud.operation.Operation\"_\202\323\344\223\0021\",/co" + "mpute/v1/instances/{instance_id}:relocat" + "e:\001*\262\322*$\n\030RelocateInstanceMetadata\022\010Inst" + "anceBb\n\033yandex.cloud.api.compute.v1ZCgit" + "hub.com/yandex-cloud/go-genproto/yandex/" + "cloud/compute/v1;computeb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), yandex.cloud.api.OperationOuterClass.getDescriptor(), yandex.cloud.api.compute.v1.DiskOuterClass.getDescriptor(), yandex.cloud.api.compute.v1.InstanceOuterClass.getDescriptor(), yandex.cloud.api.operation.OperationOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_compute_v1_GetInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_compute_v1_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_GetInstanceRequest_descriptor, new java.lang.String[] { "InstanceId", "View", }); internal_static_yandex_cloud_compute_v1_ListInstancesRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_compute_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListInstancesRequest_descriptor, new java.lang.String[] { "FolderId", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_yandex_cloud_compute_v1_ListInstancesResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_compute_v1_ListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListInstancesResponse_descriptor, new java.lang.String[] { "Instances", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_descriptor, new java.lang.String[] { "FolderId", "Name", "Description", "Labels", "ZoneId", "PlatformId", "ResourcesSpec", "Metadata", "MetadataOptions", "BootDiskSpec", "SecondaryDiskSpecs", "LocalDiskSpecs", "FilesystemSpecs", "NetworkInterfaceSpecs", "Hostname", "SchedulingPolicy", "ServiceAccountId", "NetworkSettings", "GpuSettings", "PlacementPolicy", }); internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_MetadataEntry_descriptor = internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_CreateInstanceRequest_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_CreateInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_descriptor, new java.lang.String[] { "InstanceId", "UpdateMask", "Name", "Description", "Labels", "PlatformId", "ResourcesSpec", "Metadata", "MetadataOptions", "ServiceAccountId", "NetworkSettings", "PlacementPolicy", "SchedulingPolicy", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_MetadataEntry_descriptor = internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceRequest_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DeleteInstanceRequest_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DeleteInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_descriptor, new java.lang.String[] { "InstanceId", "Delete", "Upsert", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_UpsertEntry_descriptor = internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_UpsertEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataRequest_UpsertEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceMetadataMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputRequest_descriptor, new java.lang.String[] { "InstanceId", "Port", }); internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_GetInstanceSerialPortOutputResponse_descriptor, new java.lang.String[] { "Contents", }); internal_static_yandex_cloud_compute_v1_StopInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_yandex_cloud_compute_v1_StopInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_StopInstanceRequest_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_StopInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_StartInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_yandex_cloud_compute_v1_StartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_StartInstanceRequest_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_StartInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_RestartInstanceRequest_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_RestartInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AttachInstanceDiskRequest_descriptor, new java.lang.String[] { "InstanceId", "AttachedDiskSpec", }); internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AttachInstanceDiskMetadata_descriptor, new java.lang.String[] { "InstanceId", "DiskId", }); internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DetachInstanceDiskRequest_descriptor, new java.lang.String[] { "InstanceId", "DiskId", "DeviceName", "Disk", }); internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DetachInstanceDiskMetadata_descriptor, new java.lang.String[] { "InstanceId", "DiskId", }); internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemRequest_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemRequest_descriptor, new java.lang.String[] { "InstanceId", "AttachedFilesystemSpec", }); internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemMetadata_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AttachInstanceFilesystemMetadata_descriptor, new java.lang.String[] { "InstanceId", "FilesystemId", }); internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemRequest_descriptor, new java.lang.String[] { "InstanceId", "FilesystemId", "DeviceName", "Filesystem", }); internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemMetadata_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DetachInstanceFilesystemMetadata_descriptor, new java.lang.String[] { "InstanceId", "FilesystemId", }); internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatRequest_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatRequest_descriptor, new java.lang.String[] { "InstanceId", "NetworkInterfaceIndex", "InternalAddress", "OneToOneNatSpec", }); internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatMetadata_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AddInstanceOneToOneNatMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatRequest_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatRequest_descriptor, new java.lang.String[] { "InstanceId", "NetworkInterfaceIndex", "InternalAddress", }); internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatMetadata_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_RemoveInstanceOneToOneNatMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceRequest_descriptor, new java.lang.String[] { "InstanceId", "NetworkInterfaceIndex", "UpdateMask", "SubnetId", "PrimaryV4AddressSpec", "PrimaryV6AddressSpec", "SecurityGroupIds", }); internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceMetadata_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_UpdateInstanceNetworkInterfaceMetadata_descriptor, new java.lang.String[] { "InstanceId", "NetworkInterfaceIndex", }); internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListInstanceOperationsRequest_descriptor, new java.lang.String[] { "InstanceId", "PageSize", "PageToken", }); internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ListInstanceOperationsResponse_descriptor, new java.lang.String[] { "Operations", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_ResourcesSpec_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_yandex_cloud_compute_v1_ResourcesSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_ResourcesSpec_descriptor, new java.lang.String[] { "Memory", "Cores", "CoreFraction", "Gpus", }); internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_descriptor, new java.lang.String[] { "Mode", "DeviceName", "AutoDelete", "DiskSpec", "DiskId", "Disk", }); internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_DiskSpec_descriptor = internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_DiskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AttachedDiskSpec_DiskSpec_descriptor, new java.lang.String[] { "Name", "Description", "TypeId", "Size", "BlockSize", "DiskPlacementPolicy", "ImageId", "SnapshotId", "Source", }); internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AttachedLocalDiskSpec_descriptor, new java.lang.String[] { "Size", }); internal_static_yandex_cloud_compute_v1_AttachedFilesystemSpec_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_yandex_cloud_compute_v1_AttachedFilesystemSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_AttachedFilesystemSpec_descriptor, new java.lang.String[] { "Mode", "DeviceName", "FilesystemId", }); internal_static_yandex_cloud_compute_v1_NetworkInterfaceSpec_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_yandex_cloud_compute_v1_NetworkInterfaceSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_NetworkInterfaceSpec_descriptor, new java.lang.String[] { "SubnetId", "PrimaryV4AddressSpec", "PrimaryV6AddressSpec", "SecurityGroupIds", }); internal_static_yandex_cloud_compute_v1_PrimaryAddressSpec_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_yandex_cloud_compute_v1_PrimaryAddressSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_PrimaryAddressSpec_descriptor, new java.lang.String[] { "Address", "OneToOneNatSpec", "DnsRecordSpecs", }); internal_static_yandex_cloud_compute_v1_OneToOneNatSpec_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_yandex_cloud_compute_v1_OneToOneNatSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_OneToOneNatSpec_descriptor, new java.lang.String[] { "IpVersion", "Address", "DnsRecordSpecs", }); internal_static_yandex_cloud_compute_v1_DnsRecordSpec_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_yandex_cloud_compute_v1_DnsRecordSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_DnsRecordSpec_descriptor, new java.lang.String[] { "Fqdn", "DnsZoneId", "Ttl", "Ptr", }); internal_static_yandex_cloud_compute_v1_MoveInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_yandex_cloud_compute_v1_MoveInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_MoveInstanceRequest_descriptor, new java.lang.String[] { "InstanceId", "DestinationFolderId", }); internal_static_yandex_cloud_compute_v1_MoveInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_yandex_cloud_compute_v1_MoveInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_MoveInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", "SourceFolderId", "DestinationFolderId", }); internal_static_yandex_cloud_compute_v1_RelocateInstanceRequest_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_yandex_cloud_compute_v1_RelocateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_RelocateInstanceRequest_descriptor, new java.lang.String[] { "InstanceId", "DestinationZoneId", }); internal_static_yandex_cloud_compute_v1_RelocateInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_yandex_cloud_compute_v1_RelocateInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_RelocateInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", "SourceZoneId", "DestinationZoneId", }); internal_static_yandex_cloud_compute_v1_GuestStopInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_yandex_cloud_compute_v1_GuestStopInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_GuestStopInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_PreemptInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_yandex_cloud_compute_v1_PreemptInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_PreemptInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); internal_static_yandex_cloud_compute_v1_CrashInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_yandex_cloud_compute_v1_CrashInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_CrashInstanceMetadata_descriptor, new java.lang.String[] { "InstanceId", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); registry.add(yandex.cloud.api.OperationOuterClass.operation); registry.add(yandex.cloud.api.Validation.exactlyOne); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.mapKey); registry.add(yandex.cloud.api.Validation.pattern); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.size); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); yandex.cloud.api.OperationOuterClass.getDescriptor(); yandex.cloud.api.compute.v1.DiskOuterClass.getDescriptor(); yandex.cloud.api.compute.v1.InstanceOuterClass.getDescriptor(); yandex.cloud.api.operation.OperationOuterClass.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy