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

yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.compute.v1.instancegroup;

public final class InstanceGroupServiceOuterClass {
  private InstanceGroupServiceOuterClass() {}
  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.instancegroup.InstanceGroupView}
   */
  public enum InstanceGroupView
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Doesn't include the metadata of the instance template in the server response.
     * 
* * BASIC = 0; */ BASIC(0), /** *
     * Returns the metadata of the instance template in the server response.
     * 
* * FULL = 1; */ FULL(1), UNRECOGNIZED(-1), ; /** *
     * Doesn't include the metadata of the instance template in the server response.
     * 
* * BASIC = 0; */ public static final int BASIC_VALUE = 0; /** *
     * Returns the metadata of the instance template 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 InstanceGroupView 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 InstanceGroupView 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< InstanceGroupView> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public InstanceGroupView findValueByNumber(int number) { return InstanceGroupView.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.instancegroup.InstanceGroupServiceOuterClass.getDescriptor().getEnumTypes().get(0); } private static final InstanceGroupView[] VALUES = values(); public static InstanceGroupView 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 InstanceGroupView(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.InstanceGroupView) } public interface ResumeInstanceGroupProcessesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to resume processes in.
     * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
     * To get the instance group ID, make a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to resume processes in.
     * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
     * To get the instance group ID, make a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest} */ public static final class ResumeInstanceGroupProcessesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest) ResumeInstanceGroupProcessesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ResumeInstanceGroupProcessesRequest.newBuilder() to construct. private ResumeInstanceGroupProcessesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResumeInstanceGroupProcessesRequest() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResumeInstanceGroupProcessesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResumeInstanceGroupProcessesRequest( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to resume processes in.
     * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
     * To get the instance group ID, make a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to resume processes in.
     * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
     * To get the instance group ID, make a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.ResumeInstanceGroupProcessesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to resume processes in.
       * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to resume processes in.
       * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to resume processes in.
       * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to resume processes in.
       * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to resume processes in.
       * The instance group must have a `PAUSED` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.ResumeInstanceGroupProcessesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResumeInstanceGroupProcessesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResumeInstanceGroupProcessesRequest(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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResumeInstanceGroupProcessMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group that processes are being resumed in.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group that processes are being resumed in.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessMetadata} */ public static final class ResumeInstanceGroupProcessMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessMetadata) ResumeInstanceGroupProcessMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use ResumeInstanceGroupProcessMetadata.newBuilder() to construct. private ResumeInstanceGroupProcessMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResumeInstanceGroupProcessMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResumeInstanceGroupProcessMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResumeInstanceGroupProcessMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group that processes are being resumed in.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group that processes are being resumed in.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata 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.instancegroup.ResumeInstanceGroupProcessMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group that processes are being resumed in.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group that processes are being resumed in.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group that processes are being resumed in.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group that processes are being resumed in.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group that processes are being resumed in.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.ResumeInstanceGroupProcessMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResumeInstanceGroupProcessMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResumeInstanceGroupProcessMetadata(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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PauseInstanceGroupProcessesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to pause processes in.
     * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
     * To get the instance group ID, make a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to pause processes in.
     * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
     * To get the instance group ID, make a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest} */ public static final class PauseInstanceGroupProcessesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest) PauseInstanceGroupProcessesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PauseInstanceGroupProcessesRequest.newBuilder() to construct. private PauseInstanceGroupProcessesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PauseInstanceGroupProcessesRequest() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PauseInstanceGroupProcessesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PauseInstanceGroupProcessesRequest( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to pause processes in.
     * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
     * To get the instance group ID, make a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to pause processes in.
     * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
     * To get the instance group ID, make a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.PauseInstanceGroupProcessesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to pause processes in.
       * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to pause processes in.
       * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to pause processes in.
       * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to pause processes in.
       * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to pause processes in.
       * The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
       * To get the instance group ID, make a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.PauseInstanceGroupProcessesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PauseInstanceGroupProcessesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PauseInstanceGroupProcessesRequest(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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PauseInstanceGroupProcessMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group that processes are being paused in.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group that processes are being paused in.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessMetadata} */ public static final class PauseInstanceGroupProcessMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessMetadata) PauseInstanceGroupProcessMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use PauseInstanceGroupProcessMetadata.newBuilder() to construct. private PauseInstanceGroupProcessMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PauseInstanceGroupProcessMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PauseInstanceGroupProcessMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PauseInstanceGroupProcessMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group that processes are being paused in.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group that processes are being paused in.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata 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.instancegroup.PauseInstanceGroupProcessMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group that processes are being paused in.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group that processes are being paused in.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group that processes are being paused in.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group that processes are being paused in.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group that processes are being paused in.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.PauseInstanceGroupProcessMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PauseInstanceGroupProcessMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PauseInstanceGroupProcessMetadata(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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetInstanceGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource to return.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource to return.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * Defines which information about the Instance template should be returned in the server response.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** *
     * Defines which information about the Instance template should be returned in the server response.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2; * @return The view. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest} */ public static final class GetInstanceGroupRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest) GetInstanceGroupRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetInstanceGroupRequest.newBuilder() to construct. private GetInstanceGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetInstanceGroupRequest() { instanceGroupId_ = ""; view_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetInstanceGroupRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetInstanceGroupRequest( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource to return.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource to return.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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 template should be returned in the server response.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView 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 template should be returned in the server response.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2; * @return The view. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.valueOf(view_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } if (view_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } if (view_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.GetInstanceGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.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(); instanceGroupId_ = ""; view_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource to return.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource to return.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource to return.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource to return.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource to return.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = value; onChanged(); return this; } private int view_ = 0; /** *
       * Defines which information about the Instance template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView 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 template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView 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 template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2; * @return The view. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.valueOf(view_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.UNRECOGNIZED : result; } /** *
       * Defines which information about the Instance template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2; * @param value The view to set. * @return This builder for chaining. */ public Builder setView(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView value) { if (value == null) { throw new NullPointerException(); } view_ = value.getNumber(); onChanged(); return this; } /** *
       * Defines which information about the Instance template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView 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.instancegroup.GetInstanceGroupRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetInstanceGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetInstanceGroupRequest(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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateInstanceGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the folder to create an instance group in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to create an instance group in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Name of the instance group.
     * 
* * 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 group.
     * 
* * 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 group.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the instance group.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 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.
     * 
* * 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.
     * 
* * 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.
     * 
* * 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.
     * 
* * 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); /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return Whether the instanceTemplate field is set. */ boolean hasInstanceTemplate(); /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return The instanceTemplate. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getInstanceTemplate(); /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder getInstanceTemplateOrBuilder(); /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return Whether the scalePolicy field is set. */ boolean hasScalePolicy(); /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return The scalePolicy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy getScalePolicy(); /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder(); /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return Whether the deployPolicy field is set. */ boolean hasDeployPolicy(); /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return The deployPolicy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy getDeployPolicy(); /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder(); /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return Whether the allocationPolicy field is set. */ boolean hasAllocationPolicy(); /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return The allocationPolicy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy getAllocationPolicy(); /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder(); /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; * @return Whether the loadBalancerSpec field is set. */ boolean hasLoadBalancerSpec(); /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; * @return The loadBalancerSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec getLoadBalancerSpec(); /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder getLoadBalancerSpecOrBuilder(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return Whether the healthChecksSpec field is set. */ boolean hasHealthChecksSpec(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return The healthChecksSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec getHealthChecksSpec(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder(); /** *
     * ID of the service account. The service account will be used for all API calls
     * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
     * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
     * 
* * string service_account_id = 12; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * ID of the service account. The service account will be used for all API calls
     * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
     * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
     * 
* * string service_account_id = 12; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ java.util.List getVariablesList(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getVariables(int index); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ int getVariablesCount(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ java.util.List getVariablesOrBuilderList(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder getVariablesOrBuilder( int index); /** *
     * Flag prohibiting deletion of the instance group.
     * Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
     * The default is `false`.
     * 
* * bool deletion_protection = 14; * @return The deletionProtection. */ boolean getDeletionProtection(); /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; * @return Whether the applicationLoadBalancerSpec field is set. */ boolean hasApplicationLoadBalancerSpec(); /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; * @return The applicationLoadBalancerSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getApplicationLoadBalancerSpec(); /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest} */ public static final class CreateInstanceGroupRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest) CreateInstanceGroupRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateInstanceGroupRequest.newBuilder() to construct. private CreateInstanceGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateInstanceGroupRequest() { folderId_ = ""; name_ = ""; description_ = ""; serviceAccountId_ = ""; variables_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateInstanceGroupRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateInstanceGroupRequest( 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 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 50: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder subBuilder = null; if (instanceTemplate_ != null) { subBuilder = instanceTemplate_.toBuilder(); } instanceTemplate_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(instanceTemplate_); instanceTemplate_ = subBuilder.buildPartial(); } break; } case 58: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder subBuilder = null; if (scalePolicy_ != null) { subBuilder = scalePolicy_.toBuilder(); } scalePolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scalePolicy_); scalePolicy_ = subBuilder.buildPartial(); } break; } case 66: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder subBuilder = null; if (deployPolicy_ != null) { subBuilder = deployPolicy_.toBuilder(); } deployPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deployPolicy_); deployPolicy_ = subBuilder.buildPartial(); } break; } case 74: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder subBuilder = null; if (allocationPolicy_ != null) { subBuilder = allocationPolicy_.toBuilder(); } allocationPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allocationPolicy_); allocationPolicy_ = subBuilder.buildPartial(); } break; } case 82: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder subBuilder = null; if (loadBalancerSpec_ != null) { subBuilder = loadBalancerSpec_.toBuilder(); } loadBalancerSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(loadBalancerSpec_); loadBalancerSpec_ = subBuilder.buildPartial(); } break; } case 90: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder subBuilder = null; if (healthChecksSpec_ != null) { subBuilder = healthChecksSpec_.toBuilder(); } healthChecksSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(healthChecksSpec_); healthChecksSpec_ = subBuilder.buildPartial(); } break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 106: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { variables_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } variables_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.parser(), extensionRegistry)); break; } case 112: { deletionProtection_ = input.readBool(); break; } case 122: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder subBuilder = null; if (applicationLoadBalancerSpec_ != null) { subBuilder = applicationLoadBalancerSpec_.toBuilder(); } applicationLoadBalancerSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(applicationLoadBalancerSpec_); applicationLoadBalancerSpec_ = 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_ & 0x00000002) != 0)) { variables_ = java.util.Collections.unmodifiableList(variables_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.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 group in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 = 3; private volatile java.lang.Object name_; /** *
     * Name of the instance group.
     * 
* * 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 group.
     * 
* * 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 group.
     * 
* * 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 group.
     * 
* * 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_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 = 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.
     * 
* * 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.
     * 
* * 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.
     * 
* * 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 INSTANCE_TEMPLATE_FIELD_NUMBER = 6; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate instanceTemplate_; /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return Whether the instanceTemplate field is set. */ @java.lang.Override public boolean hasInstanceTemplate() { return instanceTemplate_ != null; } /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return The instanceTemplate. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getInstanceTemplate() { return instanceTemplate_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.getDefaultInstance() : instanceTemplate_; } /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder getInstanceTemplateOrBuilder() { return getInstanceTemplate(); } public static final int SCALE_POLICY_FIELD_NUMBER = 7; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy scalePolicy_; /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return Whether the scalePolicy field is set. */ @java.lang.Override public boolean hasScalePolicy() { return scalePolicy_ != null; } /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return The scalePolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy getScalePolicy() { return scalePolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_; } /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() { return getScalePolicy(); } public static final int DEPLOY_POLICY_FIELD_NUMBER = 8; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy deployPolicy_; /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return Whether the deployPolicy field is set. */ @java.lang.Override public boolean hasDeployPolicy() { return deployPolicy_ != null; } /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return The deployPolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy getDeployPolicy() { return deployPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_; } /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder() { return getDeployPolicy(); } public static final int ALLOCATION_POLICY_FIELD_NUMBER = 9; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy allocationPolicy_; /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return Whether the allocationPolicy field is set. */ @java.lang.Override public boolean hasAllocationPolicy() { return allocationPolicy_ != null; } /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return The allocationPolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy getAllocationPolicy() { return allocationPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() { return getAllocationPolicy(); } public static final int LOAD_BALANCER_SPEC_FIELD_NUMBER = 10; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec loadBalancerSpec_; /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; * @return Whether the loadBalancerSpec field is set. */ @java.lang.Override public boolean hasLoadBalancerSpec() { return loadBalancerSpec_ != null; } /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; * @return The loadBalancerSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec getLoadBalancerSpec() { return loadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.getDefaultInstance() : loadBalancerSpec_; } /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder getLoadBalancerSpecOrBuilder() { return getLoadBalancerSpec(); } public static final int HEALTH_CHECKS_SPEC_FIELD_NUMBER = 11; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec healthChecksSpec_; /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return Whether the healthChecksSpec field is set. */ @java.lang.Override public boolean hasHealthChecksSpec() { return healthChecksSpec_ != null; } /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return The healthChecksSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec getHealthChecksSpec() { return healthChecksSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.getDefaultInstance() : healthChecksSpec_; } /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder() { return getHealthChecksSpec(); } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 12; private volatile java.lang.Object serviceAccountId_; /** *
     * ID of the service account. The service account will be used for all API calls
     * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
     * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
     * 
* * string service_account_id = 12; * @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. The service account will be used for all API calls
     * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
     * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
     * 
* * string service_account_id = 12; * @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 VARIABLES_FIELD_NUMBER = 13; private java.util.List variables_; /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ @java.lang.Override public java.util.List getVariablesList() { return variables_; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ @java.lang.Override public java.util.List getVariablesOrBuilderList() { return variables_; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ @java.lang.Override public int getVariablesCount() { return variables_.size(); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getVariables(int index) { return variables_.get(index); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder getVariablesOrBuilder( int index) { return variables_.get(index); } public static final int DELETION_PROTECTION_FIELD_NUMBER = 14; private boolean deletionProtection_; /** *
     * Flag prohibiting deletion of the instance group.
     * Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
     * The default is `false`.
     * 
* * bool deletion_protection = 14; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } public static final int APPLICATION_LOAD_BALANCER_SPEC_FIELD_NUMBER = 15; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec applicationLoadBalancerSpec_; /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; * @return Whether the applicationLoadBalancerSpec field is set. */ @java.lang.Override public boolean hasApplicationLoadBalancerSpec() { return applicationLoadBalancerSpec_ != null; } /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; * @return The applicationLoadBalancerSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getApplicationLoadBalancerSpec() { return applicationLoadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.getDefaultInstance() : applicationLoadBalancerSpec_; } /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
     * and attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder() { return getApplicationLoadBalancerSpec(); } 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, 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 (instanceTemplate_ != null) { output.writeMessage(6, getInstanceTemplate()); } if (scalePolicy_ != null) { output.writeMessage(7, getScalePolicy()); } if (deployPolicy_ != null) { output.writeMessage(8, getDeployPolicy()); } if (allocationPolicy_ != null) { output.writeMessage(9, getAllocationPolicy()); } if (loadBalancerSpec_ != null) { output.writeMessage(10, getLoadBalancerSpec()); } if (healthChecksSpec_ != null) { output.writeMessage(11, getHealthChecksSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, serviceAccountId_); } for (int i = 0; i < variables_.size(); i++) { output.writeMessage(13, variables_.get(i)); } if (deletionProtection_ != false) { output.writeBool(14, deletionProtection_); } if (applicationLoadBalancerSpec_ != null) { output.writeMessage(15, getApplicationLoadBalancerSpec()); } 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(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 (instanceTemplate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getInstanceTemplate()); } if (scalePolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getScalePolicy()); } if (deployPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getDeployPolicy()); } if (allocationPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getAllocationPolicy()); } if (loadBalancerSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getLoadBalancerSpec()); } if (healthChecksSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getHealthChecksSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, serviceAccountId_); } for (int i = 0; i < variables_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, variables_.get(i)); } if (deletionProtection_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, deletionProtection_); } if (applicationLoadBalancerSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getApplicationLoadBalancerSpec()); } 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest) 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 (hasInstanceTemplate() != other.hasInstanceTemplate()) return false; if (hasInstanceTemplate()) { if (!getInstanceTemplate() .equals(other.getInstanceTemplate())) return false; } if (hasScalePolicy() != other.hasScalePolicy()) return false; if (hasScalePolicy()) { if (!getScalePolicy() .equals(other.getScalePolicy())) return false; } if (hasDeployPolicy() != other.hasDeployPolicy()) return false; if (hasDeployPolicy()) { if (!getDeployPolicy() .equals(other.getDeployPolicy())) return false; } if (hasAllocationPolicy() != other.hasAllocationPolicy()) return false; if (hasAllocationPolicy()) { if (!getAllocationPolicy() .equals(other.getAllocationPolicy())) return false; } if (hasLoadBalancerSpec() != other.hasLoadBalancerSpec()) return false; if (hasLoadBalancerSpec()) { if (!getLoadBalancerSpec() .equals(other.getLoadBalancerSpec())) return false; } if (hasHealthChecksSpec() != other.hasHealthChecksSpec()) return false; if (hasHealthChecksSpec()) { if (!getHealthChecksSpec() .equals(other.getHealthChecksSpec())) return false; } if (!getServiceAccountId() .equals(other.getServiceAccountId())) return false; if (!getVariablesList() .equals(other.getVariablesList())) return false; if (getDeletionProtection() != other.getDeletionProtection()) return false; if (hasApplicationLoadBalancerSpec() != other.hasApplicationLoadBalancerSpec()) return false; if (hasApplicationLoadBalancerSpec()) { if (!getApplicationLoadBalancerSpec() .equals(other.getApplicationLoadBalancerSpec())) 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(); } if (hasInstanceTemplate()) { hash = (37 * hash) + INSTANCE_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getInstanceTemplate().hashCode(); } if (hasScalePolicy()) { hash = (37 * hash) + SCALE_POLICY_FIELD_NUMBER; hash = (53 * hash) + getScalePolicy().hashCode(); } if (hasDeployPolicy()) { hash = (37 * hash) + DEPLOY_POLICY_FIELD_NUMBER; hash = (53 * hash) + getDeployPolicy().hashCode(); } if (hasAllocationPolicy()) { hash = (37 * hash) + ALLOCATION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getAllocationPolicy().hashCode(); } if (hasLoadBalancerSpec()) { hash = (37 * hash) + LOAD_BALANCER_SPEC_FIELD_NUMBER; hash = (53 * hash) + getLoadBalancerSpec().hashCode(); } if (hasHealthChecksSpec()) { hash = (37 * hash) + HEALTH_CHECKS_SPEC_FIELD_NUMBER; hash = (53 * hash) + getHealthChecksSpec().hashCode(); } hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountId().hashCode(); if (getVariablesCount() > 0) { hash = (37 * hash) + VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getVariablesList().hashCode(); } hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeletionProtection()); if (hasApplicationLoadBalancerSpec()) { hash = (37 * hash) + APPLICATION_LOAD_BALANCER_SPEC_FIELD_NUMBER; hash = (53 * hash) + getApplicationLoadBalancerSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest 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.instancegroup.CreateInstanceGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVariablesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); folderId_ = ""; name_ = ""; description_ = ""; internalGetMutableLabels().clear(); if (instanceTemplateBuilder_ == null) { instanceTemplate_ = null; } else { instanceTemplate_ = null; instanceTemplateBuilder_ = null; } if (scalePolicyBuilder_ == null) { scalePolicy_ = null; } else { scalePolicy_ = null; scalePolicyBuilder_ = null; } if (deployPolicyBuilder_ == null) { deployPolicy_ = null; } else { deployPolicy_ = null; deployPolicyBuilder_ = null; } if (allocationPolicyBuilder_ == null) { allocationPolicy_ = null; } else { allocationPolicy_ = null; allocationPolicyBuilder_ = null; } if (loadBalancerSpecBuilder_ == null) { loadBalancerSpec_ = null; } else { loadBalancerSpec_ = null; loadBalancerSpecBuilder_ = null; } if (healthChecksSpecBuilder_ == null) { healthChecksSpec_ = null; } else { healthChecksSpec_ = null; healthChecksSpecBuilder_ = null; } serviceAccountId_ = ""; if (variablesBuilder_ == null) { variables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { variablesBuilder_.clear(); } deletionProtection_ = false; if (applicationLoadBalancerSpecBuilder_ == null) { applicationLoadBalancerSpec_ = null; } else { applicationLoadBalancerSpec_ = null; applicationLoadBalancerSpecBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest(this); int from_bitField0_ = bitField0_; result.folderId_ = folderId_; result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (instanceTemplateBuilder_ == null) { result.instanceTemplate_ = instanceTemplate_; } else { result.instanceTemplate_ = instanceTemplateBuilder_.build(); } if (scalePolicyBuilder_ == null) { result.scalePolicy_ = scalePolicy_; } else { result.scalePolicy_ = scalePolicyBuilder_.build(); } if (deployPolicyBuilder_ == null) { result.deployPolicy_ = deployPolicy_; } else { result.deployPolicy_ = deployPolicyBuilder_.build(); } if (allocationPolicyBuilder_ == null) { result.allocationPolicy_ = allocationPolicy_; } else { result.allocationPolicy_ = allocationPolicyBuilder_.build(); } if (loadBalancerSpecBuilder_ == null) { result.loadBalancerSpec_ = loadBalancerSpec_; } else { result.loadBalancerSpec_ = loadBalancerSpecBuilder_.build(); } if (healthChecksSpecBuilder_ == null) { result.healthChecksSpec_ = healthChecksSpec_; } else { result.healthChecksSpec_ = healthChecksSpecBuilder_.build(); } result.serviceAccountId_ = serviceAccountId_; if (variablesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { variables_ = java.util.Collections.unmodifiableList(variables_); bitField0_ = (bitField0_ & ~0x00000002); } result.variables_ = variables_; } else { result.variables_ = variablesBuilder_.build(); } result.deletionProtection_ = deletionProtection_; if (applicationLoadBalancerSpecBuilder_ == null) { result.applicationLoadBalancerSpec_ = applicationLoadBalancerSpec_; } else { result.applicationLoadBalancerSpec_ = applicationLoadBalancerSpecBuilder_.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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.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.hasInstanceTemplate()) { mergeInstanceTemplate(other.getInstanceTemplate()); } if (other.hasScalePolicy()) { mergeScalePolicy(other.getScalePolicy()); } if (other.hasDeployPolicy()) { mergeDeployPolicy(other.getDeployPolicy()); } if (other.hasAllocationPolicy()) { mergeAllocationPolicy(other.getAllocationPolicy()); } if (other.hasLoadBalancerSpec()) { mergeLoadBalancerSpec(other.getLoadBalancerSpec()); } if (other.hasHealthChecksSpec()) { mergeHealthChecksSpec(other.getHealthChecksSpec()); } if (!other.getServiceAccountId().isEmpty()) { serviceAccountId_ = other.serviceAccountId_; onChanged(); } if (variablesBuilder_ == null) { if (!other.variables_.isEmpty()) { if (variables_.isEmpty()) { variables_ = other.variables_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVariablesIsMutable(); variables_.addAll(other.variables_); } onChanged(); } } else { if (!other.variables_.isEmpty()) { if (variablesBuilder_.isEmpty()) { variablesBuilder_.dispose(); variablesBuilder_ = null; variables_ = other.variables_; bitField0_ = (bitField0_ & ~0x00000002); variablesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVariablesFieldBuilder() : null; } else { variablesBuilder_.addAllMessages(other.variables_); } } } if (other.getDeletionProtection() != false) { setDeletionProtection(other.getDeletionProtection()); } if (other.hasApplicationLoadBalancerSpec()) { mergeApplicationLoadBalancerSpec(other.getApplicationLoadBalancerSpec()); } 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest) 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 group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder to create an instance group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 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.
       * 
* * 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.
       * 
* * 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.
       * 
* * 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.
       * 
* * 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.
       * 
* * 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.
       * 
* * 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 yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate instanceTemplate_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder> instanceTemplateBuilder_; /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return Whether the instanceTemplate field is set. */ public boolean hasInstanceTemplate() { return instanceTemplateBuilder_ != null || instanceTemplate_ != null; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return The instanceTemplate. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getInstanceTemplate() { if (instanceTemplateBuilder_ == null) { return instanceTemplate_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.getDefaultInstance() : instanceTemplate_; } else { return instanceTemplateBuilder_.getMessage(); } } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public Builder setInstanceTemplate(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate value) { if (instanceTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } instanceTemplate_ = value; onChanged(); } else { instanceTemplateBuilder_.setMessage(value); } return this; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public Builder setInstanceTemplate( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder builderForValue) { if (instanceTemplateBuilder_ == null) { instanceTemplate_ = builderForValue.build(); onChanged(); } else { instanceTemplateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public Builder mergeInstanceTemplate(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate value) { if (instanceTemplateBuilder_ == null) { if (instanceTemplate_ != null) { instanceTemplate_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.newBuilder(instanceTemplate_).mergeFrom(value).buildPartial(); } else { instanceTemplate_ = value; } onChanged(); } else { instanceTemplateBuilder_.mergeFrom(value); } return this; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public Builder clearInstanceTemplate() { if (instanceTemplateBuilder_ == null) { instanceTemplate_ = null; onChanged(); } else { instanceTemplate_ = null; instanceTemplateBuilder_ = null; } return this; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder getInstanceTemplateBuilder() { onChanged(); return getInstanceTemplateFieldBuilder().getBuilder(); } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder getInstanceTemplateOrBuilder() { if (instanceTemplateBuilder_ != null) { return instanceTemplateBuilder_.getMessageOrBuilder(); } else { return instanceTemplate_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.getDefaultInstance() : instanceTemplate_; } } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder> getInstanceTemplateFieldBuilder() { if (instanceTemplateBuilder_ == null) { instanceTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder>( getInstanceTemplate(), getParentForChildren(), isClean()); instanceTemplate_ = null; } return instanceTemplateBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy scalePolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder> scalePolicyBuilder_; /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return Whether the scalePolicy field is set. */ public boolean hasScalePolicy() { return scalePolicyBuilder_ != null || scalePolicy_ != null; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return The scalePolicy. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy getScalePolicy() { if (scalePolicyBuilder_ == null) { return scalePolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_; } else { return scalePolicyBuilder_.getMessage(); } } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public Builder setScalePolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy value) { if (scalePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scalePolicy_ = value; onChanged(); } else { scalePolicyBuilder_.setMessage(value); } return this; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public Builder setScalePolicy( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder builderForValue) { if (scalePolicyBuilder_ == null) { scalePolicy_ = builderForValue.build(); onChanged(); } else { scalePolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public Builder mergeScalePolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy value) { if (scalePolicyBuilder_ == null) { if (scalePolicy_ != null) { scalePolicy_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.newBuilder(scalePolicy_).mergeFrom(value).buildPartial(); } else { scalePolicy_ = value; } onChanged(); } else { scalePolicyBuilder_.mergeFrom(value); } return this; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public Builder clearScalePolicy() { if (scalePolicyBuilder_ == null) { scalePolicy_ = null; onChanged(); } else { scalePolicy_ = null; scalePolicyBuilder_ = null; } return this; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder getScalePolicyBuilder() { onChanged(); return getScalePolicyFieldBuilder().getBuilder(); } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() { if (scalePolicyBuilder_ != null) { return scalePolicyBuilder_.getMessageOrBuilder(); } else { return scalePolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_; } } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder> getScalePolicyFieldBuilder() { if (scalePolicyBuilder_ == null) { scalePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder>( getScalePolicy(), getParentForChildren(), isClean()); scalePolicy_ = null; } return scalePolicyBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy deployPolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder> deployPolicyBuilder_; /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return Whether the deployPolicy field is set. */ public boolean hasDeployPolicy() { return deployPolicyBuilder_ != null || deployPolicy_ != null; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return The deployPolicy. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy getDeployPolicy() { if (deployPolicyBuilder_ == null) { return deployPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_; } else { return deployPolicyBuilder_.getMessage(); } } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public Builder setDeployPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy value) { if (deployPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deployPolicy_ = value; onChanged(); } else { deployPolicyBuilder_.setMessage(value); } return this; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public Builder setDeployPolicy( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder builderForValue) { if (deployPolicyBuilder_ == null) { deployPolicy_ = builderForValue.build(); onChanged(); } else { deployPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public Builder mergeDeployPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy value) { if (deployPolicyBuilder_ == null) { if (deployPolicy_ != null) { deployPolicy_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.newBuilder(deployPolicy_).mergeFrom(value).buildPartial(); } else { deployPolicy_ = value; } onChanged(); } else { deployPolicyBuilder_.mergeFrom(value); } return this; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public Builder clearDeployPolicy() { if (deployPolicyBuilder_ == null) { deployPolicy_ = null; onChanged(); } else { deployPolicy_ = null; deployPolicyBuilder_ = null; } return this; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder getDeployPolicyBuilder() { onChanged(); return getDeployPolicyFieldBuilder().getBuilder(); } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder() { if (deployPolicyBuilder_ != null) { return deployPolicyBuilder_.getMessageOrBuilder(); } else { return deployPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_; } } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder> getDeployPolicyFieldBuilder() { if (deployPolicyBuilder_ == null) { deployPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder>( getDeployPolicy(), getParentForChildren(), isClean()); deployPolicy_ = null; } return deployPolicyBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy allocationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder> allocationPolicyBuilder_; /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return Whether the allocationPolicy field is set. */ public boolean hasAllocationPolicy() { return allocationPolicyBuilder_ != null || allocationPolicy_ != null; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return The allocationPolicy. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy getAllocationPolicy() { if (allocationPolicyBuilder_ == null) { return allocationPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } else { return allocationPolicyBuilder_.getMessage(); } } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public Builder setAllocationPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy value) { if (allocationPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allocationPolicy_ = value; onChanged(); } else { allocationPolicyBuilder_.setMessage(value); } return this; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public Builder setAllocationPolicy( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder builderForValue) { if (allocationPolicyBuilder_ == null) { allocationPolicy_ = builderForValue.build(); onChanged(); } else { allocationPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public Builder mergeAllocationPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy value) { if (allocationPolicyBuilder_ == null) { if (allocationPolicy_ != null) { allocationPolicy_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.newBuilder(allocationPolicy_).mergeFrom(value).buildPartial(); } else { allocationPolicy_ = value; } onChanged(); } else { allocationPolicyBuilder_.mergeFrom(value); } return this; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public Builder clearAllocationPolicy() { if (allocationPolicyBuilder_ == null) { allocationPolicy_ = null; onChanged(); } else { allocationPolicy_ = null; allocationPolicyBuilder_ = null; } return this; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder getAllocationPolicyBuilder() { onChanged(); return getAllocationPolicyFieldBuilder().getBuilder(); } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() { if (allocationPolicyBuilder_ != null) { return allocationPolicyBuilder_.getMessageOrBuilder(); } else { return allocationPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder> getAllocationPolicyFieldBuilder() { if (allocationPolicyBuilder_ == null) { allocationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder>( getAllocationPolicy(), getParentForChildren(), isClean()); allocationPolicy_ = null; } return allocationPolicyBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec loadBalancerSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder> loadBalancerSpecBuilder_; /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; * @return Whether the loadBalancerSpec field is set. */ public boolean hasLoadBalancerSpec() { return loadBalancerSpecBuilder_ != null || loadBalancerSpec_ != null; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; * @return The loadBalancerSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec getLoadBalancerSpec() { if (loadBalancerSpecBuilder_ == null) { return loadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.getDefaultInstance() : loadBalancerSpec_; } else { return loadBalancerSpecBuilder_.getMessage(); } } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ public Builder setLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec value) { if (loadBalancerSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } loadBalancerSpec_ = value; onChanged(); } else { loadBalancerSpecBuilder_.setMessage(value); } return this; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ public Builder setLoadBalancerSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder builderForValue) { if (loadBalancerSpecBuilder_ == null) { loadBalancerSpec_ = builderForValue.build(); onChanged(); } else { loadBalancerSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ public Builder mergeLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec value) { if (loadBalancerSpecBuilder_ == null) { if (loadBalancerSpec_ != null) { loadBalancerSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.newBuilder(loadBalancerSpec_).mergeFrom(value).buildPartial(); } else { loadBalancerSpec_ = value; } onChanged(); } else { loadBalancerSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ public Builder clearLoadBalancerSpec() { if (loadBalancerSpecBuilder_ == null) { loadBalancerSpec_ = null; onChanged(); } else { loadBalancerSpec_ = null; loadBalancerSpecBuilder_ = null; } return this; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder getLoadBalancerSpecBuilder() { onChanged(); return getLoadBalancerSpecFieldBuilder().getBuilder(); } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder getLoadBalancerSpecOrBuilder() { if (loadBalancerSpecBuilder_ != null) { return loadBalancerSpecBuilder_.getMessageOrBuilder(); } else { return loadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.getDefaultInstance() : loadBalancerSpec_; } } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * If specified, a Network Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder> getLoadBalancerSpecFieldBuilder() { if (loadBalancerSpecBuilder_ == null) { loadBalancerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder>( getLoadBalancerSpec(), getParentForChildren(), isClean()); loadBalancerSpec_ = null; } return loadBalancerSpecBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec healthChecksSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder> healthChecksSpecBuilder_; /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return Whether the healthChecksSpec field is set. */ public boolean hasHealthChecksSpec() { return healthChecksSpecBuilder_ != null || healthChecksSpec_ != null; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return The healthChecksSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec getHealthChecksSpec() { if (healthChecksSpecBuilder_ == null) { return healthChecksSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.getDefaultInstance() : healthChecksSpec_; } else { return healthChecksSpecBuilder_.getMessage(); } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public Builder setHealthChecksSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec value) { if (healthChecksSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthChecksSpec_ = value; onChanged(); } else { healthChecksSpecBuilder_.setMessage(value); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public Builder setHealthChecksSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder builderForValue) { if (healthChecksSpecBuilder_ == null) { healthChecksSpec_ = builderForValue.build(); onChanged(); } else { healthChecksSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public Builder mergeHealthChecksSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec value) { if (healthChecksSpecBuilder_ == null) { if (healthChecksSpec_ != null) { healthChecksSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.newBuilder(healthChecksSpec_).mergeFrom(value).buildPartial(); } else { healthChecksSpec_ = value; } onChanged(); } else { healthChecksSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public Builder clearHealthChecksSpec() { if (healthChecksSpecBuilder_ == null) { healthChecksSpec_ = null; onChanged(); } else { healthChecksSpec_ = null; healthChecksSpecBuilder_ = null; } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder getHealthChecksSpecBuilder() { onChanged(); return getHealthChecksSpecFieldBuilder().getBuilder(); } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder() { if (healthChecksSpecBuilder_ != null) { return healthChecksSpecBuilder_.getMessageOrBuilder(); } else { return healthChecksSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.getDefaultInstance() : healthChecksSpec_; } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder> getHealthChecksSpecFieldBuilder() { if (healthChecksSpecBuilder_ == null) { healthChecksSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder>( getHealthChecksSpec(), getParentForChildren(), isClean()); healthChecksSpec_ = null; } return healthChecksSpecBuilder_; } private java.lang.Object serviceAccountId_ = ""; /** *
       * ID of the service account. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @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. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @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. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @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. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @return This builder for chaining. */ public Builder clearServiceAccountId() { serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** *
       * ID of the service account. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @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 java.util.List variables_ = java.util.Collections.emptyList(); private void ensureVariablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { variables_ = new java.util.ArrayList(variables_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder> variablesBuilder_; /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public java.util.List getVariablesList() { if (variablesBuilder_ == null) { return java.util.Collections.unmodifiableList(variables_); } else { return variablesBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public int getVariablesCount() { if (variablesBuilder_ == null) { return variables_.size(); } else { return variablesBuilder_.getCount(); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getVariables(int index) { if (variablesBuilder_ == null) { return variables_.get(index); } else { return variablesBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder setVariables( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.set(index, value); onChanged(); } else { variablesBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder setVariables( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.set(index, builderForValue.build()); onChanged(); } else { variablesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder addVariables(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.add(value); onChanged(); } else { variablesBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder addVariables( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.add(index, value); onChanged(); } else { variablesBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder addVariables( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.add(builderForValue.build()); onChanged(); } else { variablesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder addVariables( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.add(index, builderForValue.build()); onChanged(); } else { variablesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder addAllVariables( java.lang.Iterable values) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, variables_); onChanged(); } else { variablesBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder clearVariables() { if (variablesBuilder_ == null) { variables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { variablesBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public Builder removeVariables(int index) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.remove(index); onChanged(); } else { variablesBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder getVariablesBuilder( int index) { return getVariablesFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder getVariablesOrBuilder( int index) { if (variablesBuilder_ == null) { return variables_.get(index); } else { return variablesBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public java.util.List getVariablesOrBuilderList() { if (variablesBuilder_ != null) { return variablesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(variables_); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder addVariablesBuilder() { return getVariablesFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.getDefaultInstance()); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder addVariablesBuilder( int index) { return getVariablesFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.getDefaultInstance()); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13; */ public java.util.List getVariablesBuilderList() { return getVariablesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder> getVariablesFieldBuilder() { if (variablesBuilder_ == null) { variablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder>( variables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); variables_ = null; } return variablesBuilder_; } private boolean deletionProtection_ ; /** *
       * Flag prohibiting deletion of the instance group.
       * Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
       * The default is `false`.
       * 
* * bool deletion_protection = 14; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } /** *
       * Flag prohibiting deletion of the instance group.
       * Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
       * The default is `false`.
       * 
* * bool deletion_protection = 14; * @param value The deletionProtection to set. * @return This builder for chaining. */ public Builder setDeletionProtection(boolean value) { deletionProtection_ = value; onChanged(); return this; } /** *
       * Flag prohibiting deletion of the instance group.
       * Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
       * The default is `false`.
       * 
* * bool deletion_protection = 14; * @return This builder for chaining. */ public Builder clearDeletionProtection() { deletionProtection_ = false; onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec applicationLoadBalancerSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder> applicationLoadBalancerSpecBuilder_; /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; * @return Whether the applicationLoadBalancerSpec field is set. */ public boolean hasApplicationLoadBalancerSpec() { return applicationLoadBalancerSpecBuilder_ != null || applicationLoadBalancerSpec_ != null; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; * @return The applicationLoadBalancerSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getApplicationLoadBalancerSpec() { if (applicationLoadBalancerSpecBuilder_ == null) { return applicationLoadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.getDefaultInstance() : applicationLoadBalancerSpec_; } else { return applicationLoadBalancerSpecBuilder_.getMessage(); } } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ public Builder setApplicationLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec value) { if (applicationLoadBalancerSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } applicationLoadBalancerSpec_ = value; onChanged(); } else { applicationLoadBalancerSpecBuilder_.setMessage(value); } return this; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ public Builder setApplicationLoadBalancerSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder builderForValue) { if (applicationLoadBalancerSpecBuilder_ == null) { applicationLoadBalancerSpec_ = builderForValue.build(); onChanged(); } else { applicationLoadBalancerSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ public Builder mergeApplicationLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec value) { if (applicationLoadBalancerSpecBuilder_ == null) { if (applicationLoadBalancerSpec_ != null) { applicationLoadBalancerSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.newBuilder(applicationLoadBalancerSpec_).mergeFrom(value).buildPartial(); } else { applicationLoadBalancerSpec_ = value; } onChanged(); } else { applicationLoadBalancerSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ public Builder clearApplicationLoadBalancerSpec() { if (applicationLoadBalancerSpecBuilder_ == null) { applicationLoadBalancerSpec_ = null; onChanged(); } else { applicationLoadBalancerSpec_ = null; applicationLoadBalancerSpecBuilder_ = null; } return this; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder getApplicationLoadBalancerSpecBuilder() { onChanged(); return getApplicationLoadBalancerSpecFieldBuilder().getBuilder(); } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder() { if (applicationLoadBalancerSpecBuilder_ != null) { return applicationLoadBalancerSpecBuilder_.getMessageOrBuilder(); } else { return applicationLoadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.getDefaultInstance() : applicationLoadBalancerSpec_; } } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * If specified, an Application Load Balancer target group containing all instances from the instance group will be created
       * and attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder> getApplicationLoadBalancerSpecFieldBuilder() { if (applicationLoadBalancerSpecBuilder_ == null) { applicationLoadBalancerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder>( getApplicationLoadBalancerSpec(), getParentForChildren(), isClean()); applicationLoadBalancerSpec_ = null; } return applicationLoadBalancerSpecBuilder_; } @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.instancegroup.CreateInstanceGroupRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateInstanceGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateInstanceGroupRequest(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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateInstanceGroupFromYamlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupFromYamlRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the folder to create an instance group in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to create an instance group in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * [InstanceGroupService.Create] request in YAML format.
     * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The instanceGroupYaml. */ java.lang.String getInstanceGroupYaml(); /** *
     * [InstanceGroupService.Create] request in YAML format.
     * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The bytes for instanceGroupYaml. */ com.google.protobuf.ByteString getInstanceGroupYamlBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupFromYamlRequest} */ public static final class CreateInstanceGroupFromYamlRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupFromYamlRequest) CreateInstanceGroupFromYamlRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateInstanceGroupFromYamlRequest.newBuilder() to construct. private CreateInstanceGroupFromYamlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateInstanceGroupFromYamlRequest() { folderId_ = ""; instanceGroupYaml_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateInstanceGroupFromYamlRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateInstanceGroupFromYamlRequest( 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 18: { java.lang.String s = input.readStringRequireUtf8(); instanceGroupYaml_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest.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 group in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 INSTANCE_GROUP_YAML_FIELD_NUMBER = 2; private volatile java.lang.Object instanceGroupYaml_; /** *
     * [InstanceGroupService.Create] request in YAML format.
     * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The instanceGroupYaml. */ @java.lang.Override public java.lang.String getInstanceGroupYaml() { java.lang.Object ref = instanceGroupYaml_; 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(); instanceGroupYaml_ = s; return s; } } /** *
     * [InstanceGroupService.Create] request in YAML format.
     * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The bytes for instanceGroupYaml. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupYamlBytes() { java.lang.Object ref = instanceGroupYaml_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupYaml_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupYaml_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceGroupYaml_); } 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(instanceGroupYaml_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupYaml_); } 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest) obj; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getInstanceGroupYaml() .equals(other.getInstanceGroupYaml())) 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) + INSTANCE_GROUP_YAML_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupYaml().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest 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.instancegroup.CreateInstanceGroupFromYamlRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupFromYamlRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest.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_ = ""; instanceGroupYaml_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest(this); result.folderId_ = folderId_; result.instanceGroupYaml_ = instanceGroupYaml_; 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest.getDefaultInstance()) return this; if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getInstanceGroupYaml().isEmpty()) { instanceGroupYaml_ = other.instanceGroupYaml_; 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder to create an instance group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder to create an instance group in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 instanceGroupYaml_ = ""; /** *
       * [InstanceGroupService.Create] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The instanceGroupYaml. */ public java.lang.String getInstanceGroupYaml() { java.lang.Object ref = instanceGroupYaml_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupYaml_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * [InstanceGroupService.Create] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The bytes for instanceGroupYaml. */ public com.google.protobuf.ByteString getInstanceGroupYamlBytes() { java.lang.Object ref = instanceGroupYaml_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupYaml_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * [InstanceGroupService.Create] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @param value The instanceGroupYaml to set. * @return This builder for chaining. */ public Builder setInstanceGroupYaml( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupYaml_ = value; onChanged(); return this; } /** *
       * [InstanceGroupService.Create] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return This builder for chaining. */ public Builder clearInstanceGroupYaml() { instanceGroupYaml_ = getDefaultInstance().getInstanceGroupYaml(); onChanged(); return this; } /** *
       * [InstanceGroupService.Create] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @param value The bytes for instanceGroupYaml to set. * @return This builder for chaining. */ public Builder setInstanceGroupYamlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupYaml_ = 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.instancegroup.CreateInstanceGroupFromYamlRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupFromYamlRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateInstanceGroupFromYamlRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateInstanceGroupFromYamlRequest(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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupFromYamlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateInstanceGroupMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group that is being created.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group that is being created.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupMetadata} */ public static final class CreateInstanceGroupMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupMetadata) CreateInstanceGroupMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use CreateInstanceGroupMetadata.newBuilder() to construct. private CreateInstanceGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateInstanceGroupMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateInstanceGroupMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateInstanceGroupMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group that is being created.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group that is being created.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata 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.instancegroup.CreateInstanceGroupMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group that is being created.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group that is being created.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group that is being created.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group that is being created.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group that is being created.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.CreateInstanceGroupMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateInstanceGroupMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateInstanceGroupMetadata(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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateInstanceGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to update.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to update.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * Field mask that specifies which fields of the InstanceGroup 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 InstanceGroup 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 InstanceGroup resource are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** *
     * Name of the instance group.
     * 
* * 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 group.
     * 
* * 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 group.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the instance group.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs.
     * The 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.
     * The 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.
     * The 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.
     * The 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.
     * The 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); /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return Whether the instanceTemplate field is set. */ boolean hasInstanceTemplate(); /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return The instanceTemplate. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getInstanceTemplate(); /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder getInstanceTemplateOrBuilder(); /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return Whether the scalePolicy field is set. */ boolean hasScalePolicy(); /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return The scalePolicy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy getScalePolicy(); /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder(); /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return Whether the deployPolicy field is set. */ boolean hasDeployPolicy(); /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return The deployPolicy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy getDeployPolicy(); /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder(); /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return Whether the allocationPolicy field is set. */ boolean hasAllocationPolicy(); /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return The allocationPolicy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy getAllocationPolicy(); /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return Whether the healthChecksSpec field is set. */ boolean hasHealthChecksSpec(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return The healthChecksSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec getHealthChecksSpec(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder(); /** *
     * ID of the service account. The service account will be used for all API calls
     * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
     * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
     * 
* * string service_account_id = 12; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * ID of the service account. The service account will be used for all API calls
     * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
     * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
     * 
* * string service_account_id = 12; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; * @return Whether the loadBalancerSpec field is set. */ boolean hasLoadBalancerSpec(); /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; * @return The loadBalancerSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec getLoadBalancerSpec(); /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder getLoadBalancerSpecOrBuilder(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ java.util.List getVariablesList(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getVariables(int index); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ int getVariablesCount(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ java.util.List getVariablesOrBuilderList(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder getVariablesOrBuilder( int index); /** *
     * Flag that inhibits deletion of the instance group
     * 
* * bool deletion_protection = 16; * @return The deletionProtection. */ boolean getDeletionProtection(); /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; * @return Whether the applicationLoadBalancerSpec field is set. */ boolean hasApplicationLoadBalancerSpec(); /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; * @return The applicationLoadBalancerSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getApplicationLoadBalancerSpec(); /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupRequest} */ public static final class UpdateInstanceGroupRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupRequest) UpdateInstanceGroupRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateInstanceGroupRequest.newBuilder() to construct. private UpdateInstanceGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateInstanceGroupRequest() { instanceGroupId_ = ""; name_ = ""; description_ = ""; serviceAccountId_ = ""; variables_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateInstanceGroupRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateInstanceGroupRequest( 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(); instanceGroupId_ = s; break; } case 18: { com.google.protobuf.FieldMask.Builder subBuilder = null; if (updateMask_ != null) { subBuilder = updateMask_.toBuilder(); } updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updateMask_); updateMask_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 50: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder subBuilder = null; if (instanceTemplate_ != null) { subBuilder = instanceTemplate_.toBuilder(); } instanceTemplate_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(instanceTemplate_); instanceTemplate_ = subBuilder.buildPartial(); } break; } case 58: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder subBuilder = null; if (scalePolicy_ != null) { subBuilder = scalePolicy_.toBuilder(); } scalePolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scalePolicy_); scalePolicy_ = subBuilder.buildPartial(); } break; } case 66: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder subBuilder = null; if (deployPolicy_ != null) { subBuilder = deployPolicy_.toBuilder(); } deployPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deployPolicy_); deployPolicy_ = subBuilder.buildPartial(); } break; } case 74: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder subBuilder = null; if (allocationPolicy_ != null) { subBuilder = allocationPolicy_.toBuilder(); } allocationPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(allocationPolicy_); allocationPolicy_ = subBuilder.buildPartial(); } break; } case 90: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder subBuilder = null; if (healthChecksSpec_ != null) { subBuilder = healthChecksSpec_.toBuilder(); } healthChecksSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(healthChecksSpec_); healthChecksSpec_ = subBuilder.buildPartial(); } break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 114: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder subBuilder = null; if (loadBalancerSpec_ != null) { subBuilder = loadBalancerSpec_.toBuilder(); } loadBalancerSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(loadBalancerSpec_); loadBalancerSpec_ = subBuilder.buildPartial(); } break; } case 122: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { variables_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } variables_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.parser(), extensionRegistry)); break; } case 128: { deletionProtection_ = input.readBool(); break; } case 138: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder subBuilder = null; if (applicationLoadBalancerSpec_ != null) { subBuilder = applicationLoadBalancerSpec_.toBuilder(); } applicationLoadBalancerSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(applicationLoadBalancerSpec_); applicationLoadBalancerSpec_ = 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_ & 0x00000002) != 0)) { variables_ = java.util.Collections.unmodifiableList(variables_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to update.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to update.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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 InstanceGroup 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 InstanceGroup 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 InstanceGroup 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 group.
     * 
* * 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 group.
     * 
* * 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 group.
     * 
* * 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 group.
     * 
* * 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_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.
     * The 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.
     * The 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.
     * The 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.
     * The 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 INSTANCE_TEMPLATE_FIELD_NUMBER = 6; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate instanceTemplate_; /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return Whether the instanceTemplate field is set. */ @java.lang.Override public boolean hasInstanceTemplate() { return instanceTemplate_ != null; } /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return The instanceTemplate. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getInstanceTemplate() { return instanceTemplate_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.getDefaultInstance() : instanceTemplate_; } /** *
     * Instance template that the instance group belongs to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder getInstanceTemplateOrBuilder() { return getInstanceTemplate(); } public static final int SCALE_POLICY_FIELD_NUMBER = 7; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy scalePolicy_; /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return Whether the scalePolicy field is set. */ @java.lang.Override public boolean hasScalePolicy() { return scalePolicy_ != null; } /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return The scalePolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy getScalePolicy() { return scalePolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_; } /** *
     * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() { return getScalePolicy(); } public static final int DEPLOY_POLICY_FIELD_NUMBER = 8; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy deployPolicy_; /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return Whether the deployPolicy field is set. */ @java.lang.Override public boolean hasDeployPolicy() { return deployPolicy_ != null; } /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return The deployPolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy getDeployPolicy() { return deployPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_; } /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder() { return getDeployPolicy(); } public static final int ALLOCATION_POLICY_FIELD_NUMBER = 9; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy allocationPolicy_; /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return Whether the allocationPolicy field is set. */ @java.lang.Override public boolean hasAllocationPolicy() { return allocationPolicy_ != null; } /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return The allocationPolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy getAllocationPolicy() { return allocationPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } /** *
     * Allocation policy of the instance group by zones and regions.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() { return getAllocationPolicy(); } public static final int HEALTH_CHECKS_SPEC_FIELD_NUMBER = 11; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec healthChecksSpec_; /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return Whether the healthChecksSpec field is set. */ @java.lang.Override public boolean hasHealthChecksSpec() { return healthChecksSpec_ != null; } /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return The healthChecksSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec getHealthChecksSpec() { return healthChecksSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.getDefaultInstance() : healthChecksSpec_; } /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder() { return getHealthChecksSpec(); } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 12; private volatile java.lang.Object serviceAccountId_; /** *
     * ID of the service account. The service account will be used for all API calls
     * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
     * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
     * 
* * string service_account_id = 12; * @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. The service account will be used for all API calls
     * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
     * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
     * 
* * string service_account_id = 12; * @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 LOAD_BALANCER_SPEC_FIELD_NUMBER = 14; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec loadBalancerSpec_; /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; * @return Whether the loadBalancerSpec field is set. */ @java.lang.Override public boolean hasLoadBalancerSpec() { return loadBalancerSpec_ != null; } /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; * @return The loadBalancerSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec getLoadBalancerSpec() { return loadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.getDefaultInstance() : loadBalancerSpec_; } /** *
     * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
     * (OSI model layer 3).
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder getLoadBalancerSpecOrBuilder() { return getLoadBalancerSpec(); } public static final int VARIABLES_FIELD_NUMBER = 15; private java.util.List variables_; /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ @java.lang.Override public java.util.List getVariablesList() { return variables_; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ @java.lang.Override public java.util.List getVariablesOrBuilderList() { return variables_; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ @java.lang.Override public int getVariablesCount() { return variables_.size(); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getVariables(int index) { return variables_.get(index); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder getVariablesOrBuilder( int index) { return variables_.get(index); } public static final int DELETION_PROTECTION_FIELD_NUMBER = 16; private boolean deletionProtection_; /** *
     * Flag that inhibits deletion of the instance group
     * 
* * bool deletion_protection = 16; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } public static final int APPLICATION_LOAD_BALANCER_SPEC_FIELD_NUMBER = 17; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec applicationLoadBalancerSpec_; /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; * @return Whether the applicationLoadBalancerSpec field is set. */ @java.lang.Override public boolean hasApplicationLoadBalancerSpec() { return applicationLoadBalancerSpec_ != null; } /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; * @return The applicationLoadBalancerSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getApplicationLoadBalancerSpec() { return applicationLoadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.getDefaultInstance() : applicationLoadBalancerSpec_; } /** *
     * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
     * (OSI model layer 7).
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder() { return getApplicationLoadBalancerSpec(); } 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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 (instanceTemplate_ != null) { output.writeMessage(6, getInstanceTemplate()); } if (scalePolicy_ != null) { output.writeMessage(7, getScalePolicy()); } if (deployPolicy_ != null) { output.writeMessage(8, getDeployPolicy()); } if (allocationPolicy_ != null) { output.writeMessage(9, getAllocationPolicy()); } if (healthChecksSpec_ != null) { output.writeMessage(11, getHealthChecksSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, serviceAccountId_); } if (loadBalancerSpec_ != null) { output.writeMessage(14, getLoadBalancerSpec()); } for (int i = 0; i < variables_.size(); i++) { output.writeMessage(15, variables_.get(i)); } if (deletionProtection_ != false) { output.writeBool(16, deletionProtection_); } if (applicationLoadBalancerSpec_ != null) { output.writeMessage(17, getApplicationLoadBalancerSpec()); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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 (instanceTemplate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getInstanceTemplate()); } if (scalePolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getScalePolicy()); } if (deployPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getDeployPolicy()); } if (allocationPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getAllocationPolicy()); } if (healthChecksSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getHealthChecksSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, serviceAccountId_); } if (loadBalancerSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getLoadBalancerSpec()); } for (int i = 0; i < variables_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, variables_.get(i)); } if (deletionProtection_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, deletionProtection_); } if (applicationLoadBalancerSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getApplicationLoadBalancerSpec()); } 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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 (hasInstanceTemplate() != other.hasInstanceTemplate()) return false; if (hasInstanceTemplate()) { if (!getInstanceTemplate() .equals(other.getInstanceTemplate())) return false; } if (hasScalePolicy() != other.hasScalePolicy()) return false; if (hasScalePolicy()) { if (!getScalePolicy() .equals(other.getScalePolicy())) return false; } if (hasDeployPolicy() != other.hasDeployPolicy()) return false; if (hasDeployPolicy()) { if (!getDeployPolicy() .equals(other.getDeployPolicy())) return false; } if (hasAllocationPolicy() != other.hasAllocationPolicy()) return false; if (hasAllocationPolicy()) { if (!getAllocationPolicy() .equals(other.getAllocationPolicy())) return false; } if (hasHealthChecksSpec() != other.hasHealthChecksSpec()) return false; if (hasHealthChecksSpec()) { if (!getHealthChecksSpec() .equals(other.getHealthChecksSpec())) return false; } if (!getServiceAccountId() .equals(other.getServiceAccountId())) return false; if (hasLoadBalancerSpec() != other.hasLoadBalancerSpec()) return false; if (hasLoadBalancerSpec()) { if (!getLoadBalancerSpec() .equals(other.getLoadBalancerSpec())) return false; } if (!getVariablesList() .equals(other.getVariablesList())) return false; if (getDeletionProtection() != other.getDeletionProtection()) return false; if (hasApplicationLoadBalancerSpec() != other.hasApplicationLoadBalancerSpec()) return false; if (hasApplicationLoadBalancerSpec()) { if (!getApplicationLoadBalancerSpec() .equals(other.getApplicationLoadBalancerSpec())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (hasInstanceTemplate()) { hash = (37 * hash) + INSTANCE_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getInstanceTemplate().hashCode(); } if (hasScalePolicy()) { hash = (37 * hash) + SCALE_POLICY_FIELD_NUMBER; hash = (53 * hash) + getScalePolicy().hashCode(); } if (hasDeployPolicy()) { hash = (37 * hash) + DEPLOY_POLICY_FIELD_NUMBER; hash = (53 * hash) + getDeployPolicy().hashCode(); } if (hasAllocationPolicy()) { hash = (37 * hash) + ALLOCATION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getAllocationPolicy().hashCode(); } if (hasHealthChecksSpec()) { hash = (37 * hash) + HEALTH_CHECKS_SPEC_FIELD_NUMBER; hash = (53 * hash) + getHealthChecksSpec().hashCode(); } hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountId().hashCode(); if (hasLoadBalancerSpec()) { hash = (37 * hash) + LOAD_BALANCER_SPEC_FIELD_NUMBER; hash = (53 * hash) + getLoadBalancerSpec().hashCode(); } if (getVariablesCount() > 0) { hash = (37 * hash) + VARIABLES_FIELD_NUMBER; hash = (53 * hash) + getVariablesList().hashCode(); } hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeletionProtection()); if (hasApplicationLoadBalancerSpec()) { hash = (37 * hash) + APPLICATION_LOAD_BALANCER_SPEC_FIELD_NUMBER; hash = (53 * hash) + getApplicationLoadBalancerSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest 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.instancegroup.UpdateInstanceGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVariablesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); instanceGroupId_ = ""; if (updateMaskBuilder_ == null) { updateMask_ = null; } else { updateMask_ = null; updateMaskBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); if (instanceTemplateBuilder_ == null) { instanceTemplate_ = null; } else { instanceTemplate_ = null; instanceTemplateBuilder_ = null; } if (scalePolicyBuilder_ == null) { scalePolicy_ = null; } else { scalePolicy_ = null; scalePolicyBuilder_ = null; } if (deployPolicyBuilder_ == null) { deployPolicy_ = null; } else { deployPolicy_ = null; deployPolicyBuilder_ = null; } if (allocationPolicyBuilder_ == null) { allocationPolicy_ = null; } else { allocationPolicy_ = null; allocationPolicyBuilder_ = null; } if (healthChecksSpecBuilder_ == null) { healthChecksSpec_ = null; } else { healthChecksSpec_ = null; healthChecksSpecBuilder_ = null; } serviceAccountId_ = ""; if (loadBalancerSpecBuilder_ == null) { loadBalancerSpec_ = null; } else { loadBalancerSpec_ = null; loadBalancerSpecBuilder_ = null; } if (variablesBuilder_ == null) { variables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { variablesBuilder_.clear(); } deletionProtection_ = false; if (applicationLoadBalancerSpecBuilder_ == null) { applicationLoadBalancerSpec_ = null; } else { applicationLoadBalancerSpec_ = null; applicationLoadBalancerSpecBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest(this); int from_bitField0_ = bitField0_; result.instanceGroupId_ = instanceGroupId_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (instanceTemplateBuilder_ == null) { result.instanceTemplate_ = instanceTemplate_; } else { result.instanceTemplate_ = instanceTemplateBuilder_.build(); } if (scalePolicyBuilder_ == null) { result.scalePolicy_ = scalePolicy_; } else { result.scalePolicy_ = scalePolicyBuilder_.build(); } if (deployPolicyBuilder_ == null) { result.deployPolicy_ = deployPolicy_; } else { result.deployPolicy_ = deployPolicyBuilder_.build(); } if (allocationPolicyBuilder_ == null) { result.allocationPolicy_ = allocationPolicy_; } else { result.allocationPolicy_ = allocationPolicyBuilder_.build(); } if (healthChecksSpecBuilder_ == null) { result.healthChecksSpec_ = healthChecksSpec_; } else { result.healthChecksSpec_ = healthChecksSpecBuilder_.build(); } result.serviceAccountId_ = serviceAccountId_; if (loadBalancerSpecBuilder_ == null) { result.loadBalancerSpec_ = loadBalancerSpec_; } else { result.loadBalancerSpec_ = loadBalancerSpecBuilder_.build(); } if (variablesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { variables_ = java.util.Collections.unmodifiableList(variables_); bitField0_ = (bitField0_ & ~0x00000002); } result.variables_ = variables_; } else { result.variables_ = variablesBuilder_.build(); } result.deletionProtection_ = deletionProtection_; if (applicationLoadBalancerSpecBuilder_ == null) { result.applicationLoadBalancerSpec_ = applicationLoadBalancerSpec_; } else { result.applicationLoadBalancerSpec_ = applicationLoadBalancerSpecBuilder_.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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.hasInstanceTemplate()) { mergeInstanceTemplate(other.getInstanceTemplate()); } if (other.hasScalePolicy()) { mergeScalePolicy(other.getScalePolicy()); } if (other.hasDeployPolicy()) { mergeDeployPolicy(other.getDeployPolicy()); } if (other.hasAllocationPolicy()) { mergeAllocationPolicy(other.getAllocationPolicy()); } if (other.hasHealthChecksSpec()) { mergeHealthChecksSpec(other.getHealthChecksSpec()); } if (!other.getServiceAccountId().isEmpty()) { serviceAccountId_ = other.serviceAccountId_; onChanged(); } if (other.hasLoadBalancerSpec()) { mergeLoadBalancerSpec(other.getLoadBalancerSpec()); } if (variablesBuilder_ == null) { if (!other.variables_.isEmpty()) { if (variables_.isEmpty()) { variables_ = other.variables_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureVariablesIsMutable(); variables_.addAll(other.variables_); } onChanged(); } } else { if (!other.variables_.isEmpty()) { if (variablesBuilder_.isEmpty()) { variablesBuilder_.dispose(); variablesBuilder_ = null; variables_ = other.variables_; bitField0_ = (bitField0_ & ~0x00000002); variablesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVariablesFieldBuilder() : null; } else { variablesBuilder_.addAllMessages(other.variables_); } } } if (other.getDeletionProtection() != false) { setDeletionProtection(other.getDeletionProtection()); } if (other.hasApplicationLoadBalancerSpec()) { mergeApplicationLoadBalancerSpec(other.getApplicationLoadBalancerSpec()); } 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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 InstanceGroup 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 InstanceGroup 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 InstanceGroup 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 InstanceGroup 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 InstanceGroup 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 InstanceGroup 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 InstanceGroup 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 InstanceGroup 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 InstanceGroup 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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 group.
       * 
* * 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.
       * The 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.
       * The 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.
       * The 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.
       * The 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.
       * The 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.
       * The 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.
       * The 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 yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate instanceTemplate_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder> instanceTemplateBuilder_; /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return Whether the instanceTemplate field is set. */ public boolean hasInstanceTemplate() { return instanceTemplateBuilder_ != null || instanceTemplate_ != null; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; * @return The instanceTemplate. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getInstanceTemplate() { if (instanceTemplateBuilder_ == null) { return instanceTemplate_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.getDefaultInstance() : instanceTemplate_; } else { return instanceTemplateBuilder_.getMessage(); } } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public Builder setInstanceTemplate(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate value) { if (instanceTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } instanceTemplate_ = value; onChanged(); } else { instanceTemplateBuilder_.setMessage(value); } return this; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public Builder setInstanceTemplate( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder builderForValue) { if (instanceTemplateBuilder_ == null) { instanceTemplate_ = builderForValue.build(); onChanged(); } else { instanceTemplateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public Builder mergeInstanceTemplate(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate value) { if (instanceTemplateBuilder_ == null) { if (instanceTemplate_ != null) { instanceTemplate_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.newBuilder(instanceTemplate_).mergeFrom(value).buildPartial(); } else { instanceTemplate_ = value; } onChanged(); } else { instanceTemplateBuilder_.mergeFrom(value); } return this; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public Builder clearInstanceTemplate() { if (instanceTemplateBuilder_ == null) { instanceTemplate_ = null; onChanged(); } else { instanceTemplate_ = null; instanceTemplateBuilder_ = null; } return this; } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder getInstanceTemplateBuilder() { onChanged(); return getInstanceTemplateFieldBuilder().getBuilder(); } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder getInstanceTemplateOrBuilder() { if (instanceTemplateBuilder_ != null) { return instanceTemplateBuilder_.getMessageOrBuilder(); } else { return instanceTemplate_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.getDefaultInstance() : instanceTemplate_; } } /** *
       * Instance template that the instance group belongs to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 6 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder> getInstanceTemplateFieldBuilder() { if (instanceTemplateBuilder_ == null) { instanceTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder>( getInstanceTemplate(), getParentForChildren(), isClean()); instanceTemplate_ = null; } return instanceTemplateBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy scalePolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder> scalePolicyBuilder_; /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return Whether the scalePolicy field is set. */ public boolean hasScalePolicy() { return scalePolicyBuilder_ != null || scalePolicy_ != null; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; * @return The scalePolicy. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy getScalePolicy() { if (scalePolicyBuilder_ == null) { return scalePolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_; } else { return scalePolicyBuilder_.getMessage(); } } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public Builder setScalePolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy value) { if (scalePolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scalePolicy_ = value; onChanged(); } else { scalePolicyBuilder_.setMessage(value); } return this; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public Builder setScalePolicy( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder builderForValue) { if (scalePolicyBuilder_ == null) { scalePolicy_ = builderForValue.build(); onChanged(); } else { scalePolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public Builder mergeScalePolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy value) { if (scalePolicyBuilder_ == null) { if (scalePolicy_ != null) { scalePolicy_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.newBuilder(scalePolicy_).mergeFrom(value).buildPartial(); } else { scalePolicy_ = value; } onChanged(); } else { scalePolicyBuilder_.mergeFrom(value); } return this; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public Builder clearScalePolicy() { if (scalePolicyBuilder_ == null) { scalePolicy_ = null; onChanged(); } else { scalePolicy_ = null; scalePolicyBuilder_ = null; } return this; } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder getScalePolicyBuilder() { onChanged(); return getScalePolicyFieldBuilder().getBuilder(); } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() { if (scalePolicyBuilder_ != null) { return scalePolicyBuilder_.getMessageOrBuilder(); } else { return scalePolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_; } } /** *
       * [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy scale_policy = 7 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder> getScalePolicyFieldBuilder() { if (scalePolicyBuilder_ == null) { scalePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder>( getScalePolicy(), getParentForChildren(), isClean()); scalePolicy_ = null; } return scalePolicyBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy deployPolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder> deployPolicyBuilder_; /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return Whether the deployPolicy field is set. */ public boolean hasDeployPolicy() { return deployPolicyBuilder_ != null || deployPolicy_ != null; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; * @return The deployPolicy. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy getDeployPolicy() { if (deployPolicyBuilder_ == null) { return deployPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_; } else { return deployPolicyBuilder_.getMessage(); } } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public Builder setDeployPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy value) { if (deployPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deployPolicy_ = value; onChanged(); } else { deployPolicyBuilder_.setMessage(value); } return this; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public Builder setDeployPolicy( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder builderForValue) { if (deployPolicyBuilder_ == null) { deployPolicy_ = builderForValue.build(); onChanged(); } else { deployPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public Builder mergeDeployPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy value) { if (deployPolicyBuilder_ == null) { if (deployPolicy_ != null) { deployPolicy_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.newBuilder(deployPolicy_).mergeFrom(value).buildPartial(); } else { deployPolicy_ = value; } onChanged(); } else { deployPolicyBuilder_.mergeFrom(value); } return this; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public Builder clearDeployPolicy() { if (deployPolicyBuilder_ == null) { deployPolicy_ = null; onChanged(); } else { deployPolicy_ = null; deployPolicyBuilder_ = null; } return this; } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder getDeployPolicyBuilder() { onChanged(); return getDeployPolicyFieldBuilder().getBuilder(); } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder() { if (deployPolicyBuilder_ != null) { return deployPolicyBuilder_.getMessageOrBuilder(); } else { return deployPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.getDefaultInstance() : deployPolicy_; } } /** *
       * Deployment policy of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 8 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder> getDeployPolicyFieldBuilder() { if (deployPolicyBuilder_ == null) { deployPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder>( getDeployPolicy(), getParentForChildren(), isClean()); deployPolicy_ = null; } return deployPolicyBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy allocationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder> allocationPolicyBuilder_; /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return Whether the allocationPolicy field is set. */ public boolean hasAllocationPolicy() { return allocationPolicyBuilder_ != null || allocationPolicy_ != null; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; * @return The allocationPolicy. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy getAllocationPolicy() { if (allocationPolicyBuilder_ == null) { return allocationPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } else { return allocationPolicyBuilder_.getMessage(); } } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public Builder setAllocationPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy value) { if (allocationPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } allocationPolicy_ = value; onChanged(); } else { allocationPolicyBuilder_.setMessage(value); } return this; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public Builder setAllocationPolicy( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder builderForValue) { if (allocationPolicyBuilder_ == null) { allocationPolicy_ = builderForValue.build(); onChanged(); } else { allocationPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public Builder mergeAllocationPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy value) { if (allocationPolicyBuilder_ == null) { if (allocationPolicy_ != null) { allocationPolicy_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.newBuilder(allocationPolicy_).mergeFrom(value).buildPartial(); } else { allocationPolicy_ = value; } onChanged(); } else { allocationPolicyBuilder_.mergeFrom(value); } return this; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public Builder clearAllocationPolicy() { if (allocationPolicyBuilder_ == null) { allocationPolicy_ = null; onChanged(); } else { allocationPolicy_ = null; allocationPolicyBuilder_ = null; } return this; } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder getAllocationPolicyBuilder() { onChanged(); return getAllocationPolicyFieldBuilder().getBuilder(); } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() { if (allocationPolicyBuilder_ != null) { return allocationPolicyBuilder_.getMessageOrBuilder(); } else { return allocationPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.getDefaultInstance() : allocationPolicy_; } } /** *
       * Allocation policy of the instance group by zones and regions.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder> getAllocationPolicyFieldBuilder() { if (allocationPolicyBuilder_ == null) { allocationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder>( getAllocationPolicy(), getParentForChildren(), isClean()); allocationPolicy_ = null; } return allocationPolicyBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec healthChecksSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder> healthChecksSpecBuilder_; /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return Whether the healthChecksSpec field is set. */ public boolean hasHealthChecksSpec() { return healthChecksSpecBuilder_ != null || healthChecksSpec_ != null; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; * @return The healthChecksSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec getHealthChecksSpec() { if (healthChecksSpecBuilder_ == null) { return healthChecksSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.getDefaultInstance() : healthChecksSpec_; } else { return healthChecksSpecBuilder_.getMessage(); } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public Builder setHealthChecksSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec value) { if (healthChecksSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthChecksSpec_ = value; onChanged(); } else { healthChecksSpecBuilder_.setMessage(value); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public Builder setHealthChecksSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder builderForValue) { if (healthChecksSpecBuilder_ == null) { healthChecksSpec_ = builderForValue.build(); onChanged(); } else { healthChecksSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public Builder mergeHealthChecksSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec value) { if (healthChecksSpecBuilder_ == null) { if (healthChecksSpec_ != null) { healthChecksSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.newBuilder(healthChecksSpec_).mergeFrom(value).buildPartial(); } else { healthChecksSpec_ = value; } onChanged(); } else { healthChecksSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public Builder clearHealthChecksSpec() { if (healthChecksSpecBuilder_ == null) { healthChecksSpec_ = null; onChanged(); } else { healthChecksSpec_ = null; healthChecksSpecBuilder_ = null; } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder getHealthChecksSpecBuilder() { onChanged(); return getHealthChecksSpecFieldBuilder().getBuilder(); } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder() { if (healthChecksSpecBuilder_ != null) { return healthChecksSpecBuilder_.getMessageOrBuilder(); } else { return healthChecksSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.getDefaultInstance() : healthChecksSpec_; } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder> getHealthChecksSpecFieldBuilder() { if (healthChecksSpecBuilder_ == null) { healthChecksSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder>( getHealthChecksSpec(), getParentForChildren(), isClean()); healthChecksSpec_ = null; } return healthChecksSpecBuilder_; } private java.lang.Object serviceAccountId_ = ""; /** *
       * ID of the service account. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @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. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @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. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @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. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @return This builder for chaining. */ public Builder clearServiceAccountId() { serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** *
       * ID of the service account. The service account will be used for all API calls
       * made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
       * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
       * 
* * string service_account_id = 12; * @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.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec loadBalancerSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder> loadBalancerSpecBuilder_; /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; * @return Whether the loadBalancerSpec field is set. */ public boolean hasLoadBalancerSpec() { return loadBalancerSpecBuilder_ != null || loadBalancerSpec_ != null; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; * @return The loadBalancerSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec getLoadBalancerSpec() { if (loadBalancerSpecBuilder_ == null) { return loadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.getDefaultInstance() : loadBalancerSpec_; } else { return loadBalancerSpecBuilder_.getMessage(); } } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ public Builder setLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec value) { if (loadBalancerSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } loadBalancerSpec_ = value; onChanged(); } else { loadBalancerSpecBuilder_.setMessage(value); } return this; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ public Builder setLoadBalancerSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder builderForValue) { if (loadBalancerSpecBuilder_ == null) { loadBalancerSpec_ = builderForValue.build(); onChanged(); } else { loadBalancerSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ public Builder mergeLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec value) { if (loadBalancerSpecBuilder_ == null) { if (loadBalancerSpec_ != null) { loadBalancerSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.newBuilder(loadBalancerSpec_).mergeFrom(value).buildPartial(); } else { loadBalancerSpec_ = value; } onChanged(); } else { loadBalancerSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ public Builder clearLoadBalancerSpec() { if (loadBalancerSpecBuilder_ == null) { loadBalancerSpec_ = null; onChanged(); } else { loadBalancerSpec_ = null; loadBalancerSpecBuilder_ = null; } return this; } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder getLoadBalancerSpecBuilder() { onChanged(); return getLoadBalancerSpecFieldBuilder().getBuilder(); } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder getLoadBalancerSpecOrBuilder() { if (loadBalancerSpecBuilder_ != null) { return loadBalancerSpecBuilder_.getMessageOrBuilder(); } else { return loadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.getDefaultInstance() : loadBalancerSpec_; } } /** *
       * Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
       * (OSI model layer 3).
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder> getLoadBalancerSpecFieldBuilder() { if (loadBalancerSpecBuilder_ == null) { loadBalancerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder>( getLoadBalancerSpec(), getParentForChildren(), isClean()); loadBalancerSpec_ = null; } return loadBalancerSpecBuilder_; } private java.util.List variables_ = java.util.Collections.emptyList(); private void ensureVariablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { variables_ = new java.util.ArrayList(variables_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder> variablesBuilder_; /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public java.util.List getVariablesList() { if (variablesBuilder_ == null) { return java.util.Collections.unmodifiableList(variables_); } else { return variablesBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public int getVariablesCount() { if (variablesBuilder_ == null) { return variables_.size(); } else { return variablesBuilder_.getCount(); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getVariables(int index) { if (variablesBuilder_ == null) { return variables_.get(index); } else { return variablesBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder setVariables( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.set(index, value); onChanged(); } else { variablesBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder setVariables( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.set(index, builderForValue.build()); onChanged(); } else { variablesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder addVariables(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.add(value); onChanged(); } else { variablesBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder addVariables( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable value) { if (variablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVariablesIsMutable(); variables_.add(index, value); onChanged(); } else { variablesBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder addVariables( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.add(builderForValue.build()); onChanged(); } else { variablesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder addVariables( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder builderForValue) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.add(index, builderForValue.build()); onChanged(); } else { variablesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder addAllVariables( java.lang.Iterable values) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, variables_); onChanged(); } else { variablesBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder clearVariables() { if (variablesBuilder_ == null) { variables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { variablesBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public Builder removeVariables(int index) { if (variablesBuilder_ == null) { ensureVariablesIsMutable(); variables_.remove(index); onChanged(); } else { variablesBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder getVariablesBuilder( int index) { return getVariablesFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder getVariablesOrBuilder( int index) { if (variablesBuilder_ == null) { return variables_.get(index); } else { return variablesBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public java.util.List getVariablesOrBuilderList() { if (variablesBuilder_ != null) { return variablesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(variables_); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder addVariablesBuilder() { return getVariablesFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.getDefaultInstance()); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder addVariablesBuilder( int index) { return getVariablesFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.getDefaultInstance()); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 15; */ public java.util.List getVariablesBuilderList() { return getVariablesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder> getVariablesFieldBuilder() { if (variablesBuilder_ == null) { variablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder>( variables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); variables_ = null; } return variablesBuilder_; } private boolean deletionProtection_ ; /** *
       * Flag that inhibits deletion of the instance group
       * 
* * bool deletion_protection = 16; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } /** *
       * Flag that inhibits deletion of the instance group
       * 
* * bool deletion_protection = 16; * @param value The deletionProtection to set. * @return This builder for chaining. */ public Builder setDeletionProtection(boolean value) { deletionProtection_ = value; onChanged(); return this; } /** *
       * Flag that inhibits deletion of the instance group
       * 
* * bool deletion_protection = 16; * @return This builder for chaining. */ public Builder clearDeletionProtection() { deletionProtection_ = false; onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec applicationLoadBalancerSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder> applicationLoadBalancerSpecBuilder_; /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; * @return Whether the applicationLoadBalancerSpec field is set. */ public boolean hasApplicationLoadBalancerSpec() { return applicationLoadBalancerSpecBuilder_ != null || applicationLoadBalancerSpec_ != null; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; * @return The applicationLoadBalancerSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getApplicationLoadBalancerSpec() { if (applicationLoadBalancerSpecBuilder_ == null) { return applicationLoadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.getDefaultInstance() : applicationLoadBalancerSpec_; } else { return applicationLoadBalancerSpecBuilder_.getMessage(); } } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ public Builder setApplicationLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec value) { if (applicationLoadBalancerSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } applicationLoadBalancerSpec_ = value; onChanged(); } else { applicationLoadBalancerSpecBuilder_.setMessage(value); } return this; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ public Builder setApplicationLoadBalancerSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder builderForValue) { if (applicationLoadBalancerSpecBuilder_ == null) { applicationLoadBalancerSpec_ = builderForValue.build(); onChanged(); } else { applicationLoadBalancerSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ public Builder mergeApplicationLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec value) { if (applicationLoadBalancerSpecBuilder_ == null) { if (applicationLoadBalancerSpec_ != null) { applicationLoadBalancerSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.newBuilder(applicationLoadBalancerSpec_).mergeFrom(value).buildPartial(); } else { applicationLoadBalancerSpec_ = value; } onChanged(); } else { applicationLoadBalancerSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ public Builder clearApplicationLoadBalancerSpec() { if (applicationLoadBalancerSpecBuilder_ == null) { applicationLoadBalancerSpec_ = null; onChanged(); } else { applicationLoadBalancerSpec_ = null; applicationLoadBalancerSpecBuilder_ = null; } return this; } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder getApplicationLoadBalancerSpecBuilder() { onChanged(); return getApplicationLoadBalancerSpecFieldBuilder().getBuilder(); } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder() { if (applicationLoadBalancerSpecBuilder_ != null) { return applicationLoadBalancerSpecBuilder_.getMessageOrBuilder(); } else { return applicationLoadBalancerSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.getDefaultInstance() : applicationLoadBalancerSpec_; } } /** *
       * Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
       * (OSI model layer 7).
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 17; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder> getApplicationLoadBalancerSpecFieldBuilder() { if (applicationLoadBalancerSpecBuilder_ == null) { applicationLoadBalancerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder>( getApplicationLoadBalancerSpec(), getParentForChildren(), isClean()); applicationLoadBalancerSpec_ = null; } return applicationLoadBalancerSpecBuilder_; } @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.instancegroup.UpdateInstanceGroupRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateInstanceGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateInstanceGroupRequest(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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateInstanceGroupFromYamlRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupFromYamlRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to update.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to update.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * [InstanceGroupService.Update] request in YAML format.
     * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The instanceGroupYaml. */ java.lang.String getInstanceGroupYaml(); /** *
     * [InstanceGroupService.Update] request in YAML format.
     * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The bytes for instanceGroupYaml. */ com.google.protobuf.ByteString getInstanceGroupYamlBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupFromYamlRequest} */ public static final class UpdateInstanceGroupFromYamlRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupFromYamlRequest) UpdateInstanceGroupFromYamlRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateInstanceGroupFromYamlRequest.newBuilder() to construct. private UpdateInstanceGroupFromYamlRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateInstanceGroupFromYamlRequest() { instanceGroupId_ = ""; instanceGroupYaml_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateInstanceGroupFromYamlRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateInstanceGroupFromYamlRequest( 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(); instanceGroupId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); instanceGroupYaml_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to update.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to update.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INSTANCE_GROUP_YAML_FIELD_NUMBER = 2; private volatile java.lang.Object instanceGroupYaml_; /** *
     * [InstanceGroupService.Update] request in YAML format.
     * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The instanceGroupYaml. */ @java.lang.Override public java.lang.String getInstanceGroupYaml() { java.lang.Object ref = instanceGroupYaml_; 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(); instanceGroupYaml_ = s; return s; } } /** *
     * [InstanceGroupService.Update] request in YAML format.
     * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The bytes for instanceGroupYaml. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupYamlBytes() { java.lang.Object ref = instanceGroupYaml_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupYaml_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupYaml_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceGroupYaml_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupYaml_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceGroupYaml_); } 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; if (!getInstanceGroupYaml() .equals(other.getInstanceGroupYaml())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (37 * hash) + INSTANCE_GROUP_YAML_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupYaml().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest 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.instancegroup.UpdateInstanceGroupFromYamlRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupFromYamlRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest.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(); instanceGroupId_ = ""; instanceGroupYaml_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest(this); result.instanceGroupId_ = instanceGroupId_; result.instanceGroupYaml_ = instanceGroupYaml_; 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } if (!other.getInstanceGroupYaml().isEmpty()) { instanceGroupYaml_ = other.instanceGroupYaml_; 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to update.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = value; onChanged(); return this; } private java.lang.Object instanceGroupYaml_ = ""; /** *
       * [InstanceGroupService.Update] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The instanceGroupYaml. */ public java.lang.String getInstanceGroupYaml() { java.lang.Object ref = instanceGroupYaml_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupYaml_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * [InstanceGroupService.Update] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return The bytes for instanceGroupYaml. */ public com.google.protobuf.ByteString getInstanceGroupYamlBytes() { java.lang.Object ref = instanceGroupYaml_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupYaml_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * [InstanceGroupService.Update] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @param value The instanceGroupYaml to set. * @return This builder for chaining. */ public Builder setInstanceGroupYaml( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupYaml_ = value; onChanged(); return this; } /** *
       * [InstanceGroupService.Update] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @return This builder for chaining. */ public Builder clearInstanceGroupYaml() { instanceGroupYaml_ = getDefaultInstance().getInstanceGroupYaml(); onChanged(); return this; } /** *
       * [InstanceGroupService.Update] request in YAML format.
       * 
* * string instance_group_yaml = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1048576"]; * @param value The bytes for instanceGroupYaml to set. * @return This builder for chaining. */ public Builder setInstanceGroupYamlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupYaml_ = 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.instancegroup.UpdateInstanceGroupFromYamlRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupFromYamlRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateInstanceGroupFromYamlRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateInstanceGroupFromYamlRequest(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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupFromYamlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateInstanceGroupMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource that is being updated.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource that is being updated.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupMetadata} */ public static final class UpdateInstanceGroupMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupMetadata) UpdateInstanceGroupMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateInstanceGroupMetadata.newBuilder() to construct. private UpdateInstanceGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateInstanceGroupMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateInstanceGroupMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateInstanceGroupMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource that is being updated.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource that is being updated.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata 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.instancegroup.UpdateInstanceGroupMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource that is being updated.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource that is being updated.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource that is being updated.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being updated.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being updated.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.UpdateInstanceGroupMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.UpdateInstanceGroupMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateInstanceGroupMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateInstanceGroupMetadata(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.instancegroup.InstanceGroupServiceOuterClass.UpdateInstanceGroupMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StartInstanceGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.StartInstanceGroupRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to start.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to start.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.StartInstanceGroupRequest} */ public static final class StartInstanceGroupRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.StartInstanceGroupRequest) StartInstanceGroupRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StartInstanceGroupRequest.newBuilder() to construct. private StartInstanceGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StartInstanceGroupRequest() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StartInstanceGroupRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StartInstanceGroupRequest( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to start.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to start.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest 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.instancegroup.StartInstanceGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.StartInstanceGroupRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to start.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to start.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to start.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to start.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to start.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.StartInstanceGroupRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.StartInstanceGroupRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartInstanceGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StartInstanceGroupRequest(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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StartInstanceGroupMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.StartInstanceGroupMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource that is being started.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource that is being started.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.StartInstanceGroupMetadata} */ public static final class StartInstanceGroupMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.StartInstanceGroupMetadata) StartInstanceGroupMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use StartInstanceGroupMetadata.newBuilder() to construct. private StartInstanceGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StartInstanceGroupMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StartInstanceGroupMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StartInstanceGroupMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource that is being started.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource that is being started.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata 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.instancegroup.StartInstanceGroupMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.StartInstanceGroupMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource that is being started.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource that is being started.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource that is being started.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being started.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being started.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.StartInstanceGroupMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.StartInstanceGroupMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartInstanceGroupMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StartInstanceGroupMetadata(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.instancegroup.InstanceGroupServiceOuterClass.StartInstanceGroupMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StopInstanceGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.StopInstanceGroupRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to stop.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to stop.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.StopInstanceGroupRequest} */ public static final class StopInstanceGroupRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.StopInstanceGroupRequest) StopInstanceGroupRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StopInstanceGroupRequest.newBuilder() to construct. private StopInstanceGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StopInstanceGroupRequest() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StopInstanceGroupRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StopInstanceGroupRequest( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to stop.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to stop.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest 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.instancegroup.StopInstanceGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.StopInstanceGroupRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to stop.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to stop.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to stop.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to stop.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to stop.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.StopInstanceGroupRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.StopInstanceGroupRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StopInstanceGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StopInstanceGroupRequest(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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StopInstanceGroupMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.StopInstanceGroupMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource that is being stopped.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource that is being stopped.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.StopInstanceGroupMetadata} */ public static final class StopInstanceGroupMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.StopInstanceGroupMetadata) StopInstanceGroupMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use StopInstanceGroupMetadata.newBuilder() to construct. private StopInstanceGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StopInstanceGroupMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StopInstanceGroupMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StopInstanceGroupMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource that is being stopped.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource that is being stopped.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata 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.instancegroup.StopInstanceGroupMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.StopInstanceGroupMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource that is being stopped.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource that is being stopped.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource that is being stopped.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being stopped.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being stopped.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.StopInstanceGroupMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.StopInstanceGroupMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StopInstanceGroupMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StopInstanceGroupMetadata(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.instancegroup.InstanceGroupServiceOuterClass.StopInstanceGroupMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollingRestartRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.RollingRestartRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to restart instances in.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to restart instances in.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * IDs of managed instances in the group to restart
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @return A list containing the managedInstanceIds. */ java.util.List getManagedInstanceIdsList(); /** *
     * IDs of managed instances in the group to restart
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @return The count of managedInstanceIds. */ int getManagedInstanceIdsCount(); /** *
     * IDs of managed instances in the group to restart
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ java.lang.String getManagedInstanceIds(int index); /** *
     * IDs of managed instances in the group to restart
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.RollingRestartRequest} */ public static final class RollingRestartRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.RollingRestartRequest) RollingRestartRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RollingRestartRequest.newBuilder() to construct. private RollingRestartRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollingRestartRequest() { instanceGroupId_ = ""; managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RollingRestartRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RollingRestartRequest( 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(); instanceGroupId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } managedInstanceIds_.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)) { managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to restart instances in.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to restart instances in.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MANAGED_INSTANCE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList managedInstanceIds_; /** *
     * IDs of managed instances in the group to restart
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @return A list containing the managedInstanceIds. */ public com.google.protobuf.ProtocolStringList getManagedInstanceIdsList() { return managedInstanceIds_; } /** *
     * IDs of managed instances in the group to restart
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @return The count of managedInstanceIds. */ public int getManagedInstanceIdsCount() { return managedInstanceIds_.size(); } /** *
     * IDs of managed instances in the group to restart
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ public java.lang.String getManagedInstanceIds(int index) { return managedInstanceIds_.get(index); } /** *
     * IDs of managed instances in the group to restart
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ public com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index) { return managedInstanceIds_.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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } for (int i = 0; i < managedInstanceIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managedInstanceIds_.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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } { int dataSize = 0; for (int i = 0; i < managedInstanceIds_.size(); i++) { dataSize += computeStringSizeNoTag(managedInstanceIds_.getRaw(i)); } size += dataSize; size += 1 * getManagedInstanceIdsList().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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; if (!getManagedInstanceIdsList() .equals(other.getManagedInstanceIdsList())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); if (getManagedInstanceIdsCount() > 0) { hash = (37 * hash) + MANAGED_INSTANCE_IDS_FIELD_NUMBER; hash = (53 * hash) + getManagedInstanceIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.RollingRestartRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.RollingRestartRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.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(); instanceGroupId_ = ""; managedInstanceIds_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest(this); int from_bitField0_ = bitField0_; result.instanceGroupId_ = instanceGroupId_; if (((bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.managedInstanceIds_ = managedInstanceIds_; 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } if (!other.managedInstanceIds_.isEmpty()) { if (managedInstanceIds_.isEmpty()) { managedInstanceIds_ = other.managedInstanceIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.addAll(other.managedInstanceIds_); } 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to restart instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to restart instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to restart instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to restart instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to restart instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureManagedInstanceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(managedInstanceIds_); bitField0_ |= 0x00000001; } } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @return A list containing the managedInstanceIds. */ public com.google.protobuf.ProtocolStringList getManagedInstanceIdsList() { return managedInstanceIds_.getUnmodifiableView(); } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @return The count of managedInstanceIds. */ public int getManagedInstanceIdsCount() { return managedInstanceIds_.size(); } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ public java.lang.String getManagedInstanceIds(int index) { return managedInstanceIds_.get(index); } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ public com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index) { return managedInstanceIds_.getByteString(index); } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param index The index to set the value at. * @param value The managedInstanceIds to set. * @return This builder for chaining. */ public Builder setManagedInstanceIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.set(index, value); onChanged(); return this; } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param value The managedInstanceIds to add. * @return This builder for chaining. */ public Builder addManagedInstanceIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.add(value); onChanged(); return this; } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param values The managedInstanceIds to add. * @return This builder for chaining. */ public Builder addAllManagedInstanceIds( java.lang.Iterable values) { ensureManagedInstanceIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, managedInstanceIds_); onChanged(); return this; } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @return This builder for chaining. */ public Builder clearManagedInstanceIds() { managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * IDs of managed instances in the group to restart
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param value The bytes of the managedInstanceIds to add. * @return This builder for chaining. */ public Builder addManagedInstanceIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.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.instancegroup.RollingRestartRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.RollingRestartRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RollingRestartRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollingRestartRequest(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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollingRestartMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.RollingRestartMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource that is being rolling restarted.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource that is being rolling restarted.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.RollingRestartMetadata} */ public static final class RollingRestartMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.RollingRestartMetadata) RollingRestartMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RollingRestartMetadata.newBuilder() to construct. private RollingRestartMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollingRestartMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RollingRestartMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RollingRestartMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource that is being rolling restarted.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource that is being rolling restarted.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata 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.instancegroup.RollingRestartMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.RollingRestartMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource that is being rolling restarted.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource that is being rolling restarted.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource that is being rolling restarted.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being rolling restarted.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being rolling restarted.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.RollingRestartMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.RollingRestartMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RollingRestartMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollingRestartMetadata(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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollingRecreateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.RollingRecreateRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to recreate instances in.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to recreate instances in.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * IDs of managed instances in the group to recreate
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @return A list containing the managedInstanceIds. */ java.util.List getManagedInstanceIdsList(); /** *
     * IDs of managed instances in the group to recreate
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @return The count of managedInstanceIds. */ int getManagedInstanceIdsCount(); /** *
     * IDs of managed instances in the group to recreate
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ java.lang.String getManagedInstanceIds(int index); /** *
     * IDs of managed instances in the group to recreate
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.RollingRecreateRequest} */ public static final class RollingRecreateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.RollingRecreateRequest) RollingRecreateRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RollingRecreateRequest.newBuilder() to construct. private RollingRecreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollingRecreateRequest() { instanceGroupId_ = ""; managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RollingRecreateRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RollingRecreateRequest( 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(); instanceGroupId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } managedInstanceIds_.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)) { managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to recreate instances in.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to recreate instances in.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MANAGED_INSTANCE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList managedInstanceIds_; /** *
     * IDs of managed instances in the group to recreate
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @return A list containing the managedInstanceIds. */ public com.google.protobuf.ProtocolStringList getManagedInstanceIdsList() { return managedInstanceIds_; } /** *
     * IDs of managed instances in the group to recreate
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @return The count of managedInstanceIds. */ public int getManagedInstanceIdsCount() { return managedInstanceIds_.size(); } /** *
     * IDs of managed instances in the group to recreate
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ public java.lang.String getManagedInstanceIds(int index) { return managedInstanceIds_.get(index); } /** *
     * IDs of managed instances in the group to recreate
     * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
     * 
* * repeated string managed_instance_ids = 2; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ public com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index) { return managedInstanceIds_.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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } for (int i = 0; i < managedInstanceIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managedInstanceIds_.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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } { int dataSize = 0; for (int i = 0; i < managedInstanceIds_.size(); i++) { dataSize += computeStringSizeNoTag(managedInstanceIds_.getRaw(i)); } size += dataSize; size += 1 * getManagedInstanceIdsList().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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; if (!getManagedInstanceIdsList() .equals(other.getManagedInstanceIdsList())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); if (getManagedInstanceIdsCount() > 0) { hash = (37 * hash) + MANAGED_INSTANCE_IDS_FIELD_NUMBER; hash = (53 * hash) + getManagedInstanceIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.RollingRecreateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.RollingRecreateRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.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(); instanceGroupId_ = ""; managedInstanceIds_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest(this); int from_bitField0_ = bitField0_; result.instanceGroupId_ = instanceGroupId_; if (((bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.managedInstanceIds_ = managedInstanceIds_; 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } if (!other.managedInstanceIds_.isEmpty()) { if (managedInstanceIds_.isEmpty()) { managedInstanceIds_ = other.managedInstanceIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.addAll(other.managedInstanceIds_); } 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to recreate instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to recreate instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to recreate instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to recreate instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to recreate instances in.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureManagedInstanceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(managedInstanceIds_); bitField0_ |= 0x00000001; } } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @return A list containing the managedInstanceIds. */ public com.google.protobuf.ProtocolStringList getManagedInstanceIdsList() { return managedInstanceIds_.getUnmodifiableView(); } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @return The count of managedInstanceIds. */ public int getManagedInstanceIdsCount() { return managedInstanceIds_.size(); } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ public java.lang.String getManagedInstanceIds(int index) { return managedInstanceIds_.get(index); } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ public com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index) { return managedInstanceIds_.getByteString(index); } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param index The index to set the value at. * @param value The managedInstanceIds to set. * @return This builder for chaining. */ public Builder setManagedInstanceIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.set(index, value); onChanged(); return this; } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param value The managedInstanceIds to add. * @return This builder for chaining. */ public Builder addManagedInstanceIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.add(value); onChanged(); return this; } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param values The managedInstanceIds to add. * @return This builder for chaining. */ public Builder addAllManagedInstanceIds( java.lang.Iterable values) { ensureManagedInstanceIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, managedInstanceIds_); onChanged(); return this; } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @return This builder for chaining. */ public Builder clearManagedInstanceIds() { managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * IDs of managed instances in the group to recreate
       * To get instance IDs, use a [InstanceGroupService.ListInstances] request.
       * 
* * repeated string managed_instance_ids = 2; * @param value The bytes of the managedInstanceIds to add. * @return This builder for chaining. */ public Builder addManagedInstanceIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.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.instancegroup.RollingRecreateRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.RollingRecreateRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RollingRecreateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollingRecreateRequest(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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollingRecreateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.RollingRecreateMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource that is being rolling recreated.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource that is being rolling recreated.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.RollingRecreateMetadata} */ public static final class RollingRecreateMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.RollingRecreateMetadata) RollingRecreateMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RollingRecreateMetadata.newBuilder() to construct. private RollingRecreateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollingRecreateMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RollingRecreateMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RollingRecreateMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource that is being rolling recreated.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource that is being rolling recreated.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata 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.instancegroup.RollingRecreateMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.RollingRecreateMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource that is being rolling recreated.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource that is being rolling recreated.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource that is being rolling recreated.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being rolling recreated.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource that is being rolling recreated.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.RollingRecreateMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.RollingRecreateMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RollingRecreateMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollingRecreateMetadata(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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteInstanceGroupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group to delete.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group to delete.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupRequest} */ public static final class DeleteInstanceGroupRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupRequest) DeleteInstanceGroupRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteInstanceGroupRequest.newBuilder() to construct. private DeleteInstanceGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteInstanceGroupRequest() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteInstanceGroupRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteInstanceGroupRequest( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group to delete.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group to delete.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest 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.instancegroup.DeleteInstanceGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group to delete.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group to delete.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group to delete.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group to delete.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group to delete.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.DeleteInstanceGroupRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteInstanceGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteInstanceGroupRequest(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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteInstanceGroupMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group that is being deleted.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group that is being deleted.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupMetadata} */ public static final class DeleteInstanceGroupMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupMetadata) DeleteInstanceGroupMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteInstanceGroupMetadata.newBuilder() to construct. private DeleteInstanceGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteInstanceGroupMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteInstanceGroupMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteInstanceGroupMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group that is being deleted.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group that is being deleted.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata 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.instancegroup.DeleteInstanceGroupMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group that is being deleted.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group that is being deleted.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group that is being deleted.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group that is being deleted.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group that is being deleted.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.DeleteInstanceGroupMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.DeleteInstanceGroupMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteInstanceGroupMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteInstanceGroupMetadata(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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstanceGroupMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteInstancesMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.DeleteInstancesMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group that the instances are being deleted from.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group that the instances are being deleted from.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DeleteInstancesMetadata} */ public static final class DeleteInstancesMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstancesMetadata) DeleteInstancesMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteInstancesMetadata.newBuilder() to construct. private DeleteInstancesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteInstancesMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteInstancesMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteInstancesMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group that the instances are being deleted from.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group that the instances are being deleted from.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata 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.instancegroup.DeleteInstancesMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstancesMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group that the instances are being deleted from.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group that the instances are being deleted from.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group that the instances are being deleted from.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group that the instances are being deleted from.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group that the instances are being deleted from.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.DeleteInstancesMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.DeleteInstancesMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteInstancesMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteInstancesMetadata(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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StopInstancesMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.StopInstancesMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group that the instances are being stopped from.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group that the instances are being stopped from.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.StopInstancesMetadata} */ public static final class StopInstancesMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.StopInstancesMetadata) StopInstancesMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use StopInstancesMetadata.newBuilder() to construct. private StopInstancesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StopInstancesMetadata() { instanceGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StopInstancesMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StopInstancesMetadata( 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(); instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group that the instances are being stopped from.
     * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group that the instances are being stopped from.
     * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata 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.instancegroup.StopInstancesMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.StopInstancesMetadata) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata.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(); instanceGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata(this); result.instanceGroupId_ = instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group that the instances are being stopped from.
       * 
* * string instance_group_id = 1; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group that the instances are being stopped from.
       * 
* * string instance_group_id = 1; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group that the instances are being stopped from.
       * 
* * string instance_group_id = 1; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group that the instances are being stopped from.
       * 
* * string instance_group_id = 1; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group that the instances are being stopped from.
       * 
* * string instance_group_id = 1; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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.instancegroup.StopInstancesMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.StopInstancesMetadata) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StopInstancesMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StopInstancesMetadata(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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceGroupsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the folder to list instance groups in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to list instance groups in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results,
     * set [page_token] to the [ListInstanceGroupsResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); /** *
     * Defines which information about the Instance template should be returned in the server response.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** *
     * Defines which information about the Instance template should be returned in the server response.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @return The view. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest} */ public static final class ListInstanceGroupsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest) ListInstanceGroupsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceGroupsRequest.newBuilder() to construct. private ListInstanceGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceGroupsRequest() { folderId_ = ""; pageToken_ = ""; filter_ = ""; view_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceGroupsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceGroupsRequest( 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 40: { 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.Builder.class); } public static final int FOLDER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object folderId_; /** *
     * ID of the folder to list instance groups in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 instance groups in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupsResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * 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.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * 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 VIEW_FIELD_NUMBER = 5; private int view_; /** *
     * Defines which information about the Instance template should be returned in the server response.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @return The enum numeric value on the wire for view. */ @java.lang.Override public int getViewValue() { return view_; } /** *
     * Defines which information about the Instance template should be returned in the server response.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @return The view. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.valueOf(view_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.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(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 (view_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.BASIC.getNumber()) { output.writeEnum(5, 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(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 (view_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.BASIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest) 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 (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) + 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) + VIEW_FIELD_NUMBER; hash = (53 * hash) + view_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.ListInstanceGroupsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.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_ = ""; view_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest(this); result.folderId_ = folderId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.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.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder to list instance groups in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 instance groups in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 instance groups in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 instance groups in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder to list instance groups in.
       * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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 int view_ = 0; /** *
       * Defines which information about the Instance template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @return The enum numeric value on the wire for view. */ @java.lang.Override public int getViewValue() { return view_; } /** *
       * Defines which information about the Instance template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @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 template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @return The view. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.valueOf(view_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.UNRECOGNIZED : result; } /** *
       * Defines which information about the Instance template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @param value The view to set. * @return This builder for chaining. */ public Builder setView(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView value) { if (value == null) { throw new NullPointerException(); } view_ = value.getNumber(); onChanged(); return this; } /** *
       * Defines which information about the Instance template should be returned in the server response.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5; * @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.instancegroup.ListInstanceGroupsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceGroupsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceGroupsRequest(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceGroupsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ java.util.List getInstanceGroupsList(); /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup getInstanceGroups(int index); /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ int getInstanceGroupsCount(); /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ java.util.List getInstanceGroupsOrBuilderList(); /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder getInstanceGroupsOrBuilder( int index); /** *
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListInstanceGroupsRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupsRequest.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.instancegroup.ListInstanceGroupsResponse} */ public static final class ListInstanceGroupsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsResponse) ListInstanceGroupsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceGroupsResponse.newBuilder() to construct. private ListInstanceGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceGroupsResponse() { instanceGroups_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceGroupsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceGroupsResponse( 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)) { instanceGroups_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } instanceGroups_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.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)) { instanceGroups_ = java.util.Collections.unmodifiableList(instanceGroups_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.Builder.class); } public static final int INSTANCE_GROUPS_FIELD_NUMBER = 1; private java.util.List instanceGroups_; /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ @java.lang.Override public java.util.List getInstanceGroupsList() { return instanceGroups_; } /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ @java.lang.Override public java.util.List getInstanceGroupsOrBuilderList() { return instanceGroups_; } /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ @java.lang.Override public int getInstanceGroupsCount() { return instanceGroups_.size(); } /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup getInstanceGroups(int index) { return instanceGroups_.get(index); } /** *
     * Lists instance groups for the specified folder.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder getInstanceGroupsOrBuilder( int index) { return instanceGroups_.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 [ListInstanceGroupsRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupsRequest.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 < instanceGroups_.size(); i++) { output.writeMessage(1, instanceGroups_.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 < instanceGroups_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, instanceGroups_.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse) obj; if (!getInstanceGroupsList() .equals(other.getInstanceGroupsList())) 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 (getInstanceGroupsCount() > 0) { hash = (37 * hash) + INSTANCE_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupsList().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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.ListInstanceGroupsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsResponse) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInstanceGroupsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (instanceGroupsBuilder_ == null) { instanceGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { instanceGroupsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse(this); int from_bitField0_ = bitField0_; if (instanceGroupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { instanceGroups_ = java.util.Collections.unmodifiableList(instanceGroups_); bitField0_ = (bitField0_ & ~0x00000001); } result.instanceGroups_ = instanceGroups_; } else { result.instanceGroups_ = instanceGroupsBuilder_.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.getDefaultInstance()) return this; if (instanceGroupsBuilder_ == null) { if (!other.instanceGroups_.isEmpty()) { if (instanceGroups_.isEmpty()) { instanceGroups_ = other.instanceGroups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInstanceGroupsIsMutable(); instanceGroups_.addAll(other.instanceGroups_); } onChanged(); } } else { if (!other.instanceGroups_.isEmpty()) { if (instanceGroupsBuilder_.isEmpty()) { instanceGroupsBuilder_.dispose(); instanceGroupsBuilder_ = null; instanceGroups_ = other.instanceGroups_; bitField0_ = (bitField0_ & ~0x00000001); instanceGroupsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstanceGroupsFieldBuilder() : null; } else { instanceGroupsBuilder_.addAllMessages(other.instanceGroups_); } } } 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List instanceGroups_ = java.util.Collections.emptyList(); private void ensureInstanceGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instanceGroups_ = new java.util.ArrayList(instanceGroups_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder> instanceGroupsBuilder_; /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public java.util.List getInstanceGroupsList() { if (instanceGroupsBuilder_ == null) { return java.util.Collections.unmodifiableList(instanceGroups_); } else { return instanceGroupsBuilder_.getMessageList(); } } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public int getInstanceGroupsCount() { if (instanceGroupsBuilder_ == null) { return instanceGroups_.size(); } else { return instanceGroupsBuilder_.getCount(); } } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup getInstanceGroups(int index) { if (instanceGroupsBuilder_ == null) { return instanceGroups_.get(index); } else { return instanceGroupsBuilder_.getMessage(index); } } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder setInstanceGroups( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup value) { if (instanceGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceGroupsIsMutable(); instanceGroups_.set(index, value); onChanged(); } else { instanceGroupsBuilder_.setMessage(index, value); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder setInstanceGroups( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder builderForValue) { if (instanceGroupsBuilder_ == null) { ensureInstanceGroupsIsMutable(); instanceGroups_.set(index, builderForValue.build()); onChanged(); } else { instanceGroupsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder addInstanceGroups(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup value) { if (instanceGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceGroupsIsMutable(); instanceGroups_.add(value); onChanged(); } else { instanceGroupsBuilder_.addMessage(value); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder addInstanceGroups( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup value) { if (instanceGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceGroupsIsMutable(); instanceGroups_.add(index, value); onChanged(); } else { instanceGroupsBuilder_.addMessage(index, value); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder addInstanceGroups( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder builderForValue) { if (instanceGroupsBuilder_ == null) { ensureInstanceGroupsIsMutable(); instanceGroups_.add(builderForValue.build()); onChanged(); } else { instanceGroupsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder addInstanceGroups( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder builderForValue) { if (instanceGroupsBuilder_ == null) { ensureInstanceGroupsIsMutable(); instanceGroups_.add(index, builderForValue.build()); onChanged(); } else { instanceGroupsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder addAllInstanceGroups( java.lang.Iterable values) { if (instanceGroupsBuilder_ == null) { ensureInstanceGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, instanceGroups_); onChanged(); } else { instanceGroupsBuilder_.addAllMessages(values); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder clearInstanceGroups() { if (instanceGroupsBuilder_ == null) { instanceGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { instanceGroupsBuilder_.clear(); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public Builder removeInstanceGroups(int index) { if (instanceGroupsBuilder_ == null) { ensureInstanceGroupsIsMutable(); instanceGroups_.remove(index); onChanged(); } else { instanceGroupsBuilder_.remove(index); } return this; } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder getInstanceGroupsBuilder( int index) { return getInstanceGroupsFieldBuilder().getBuilder(index); } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder getInstanceGroupsOrBuilder( int index) { if (instanceGroupsBuilder_ == null) { return instanceGroups_.get(index); } else { return instanceGroupsBuilder_.getMessageOrBuilder(index); } } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public java.util.List getInstanceGroupsOrBuilderList() { if (instanceGroupsBuilder_ != null) { return instanceGroupsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(instanceGroups_); } } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder addInstanceGroupsBuilder() { return getInstanceGroupsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.getDefaultInstance()); } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder addInstanceGroupsBuilder( int index) { return getInstanceGroupsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.getDefaultInstance()); } /** *
       * Lists instance groups for the specified folder.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1; */ public java.util.List getInstanceGroupsBuilderList() { return getInstanceGroupsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder> getInstanceGroupsFieldBuilder() { if (instanceGroupsBuilder_ == null) { instanceGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder>( instanceGroups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instanceGroups_ = null; } return instanceGroupsBuilder_; } 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 [ListInstanceGroupsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupsRequest.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.instancegroup.ListInstanceGroupsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsResponse) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceGroupsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceGroupsResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceGroupInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource to list instances for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource to list instances for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size],
     * the service returns a [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results,
     * set [page_token] to the [ListInstanceGroupInstancesResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on the [ManagedInstance.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on the [ManagedInstance.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesRequest} */ public static final class ListInstanceGroupInstancesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesRequest) ListInstanceGroupInstancesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceGroupInstancesRequest.newBuilder() to construct. private ListInstanceGroupInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceGroupInstancesRequest() { instanceGroupId_ = ""; pageToken_ = ""; filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceGroupInstancesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceGroupInstancesRequest( 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(); instanceGroupId_ = 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; } 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource to list instances for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource to list instances for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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 [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupInstancesResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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.
     * Currently you can use filtering only on the [ManagedInstance.name] field.
     * 
* * 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.
     * Currently you can use filtering only on the [ManagedInstance.name] field.
     * 
* * 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; } } 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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_); } 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest 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.instancegroup.ListInstanceGroupInstancesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest.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(); instanceGroupId_ = ""; pageSize_ = 0L; pageToken_ = ""; filter_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest(this); result.instanceGroupId_ = instanceGroupId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource to list instances for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource to list instances for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource to list instances for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource to list instances for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource to list instances for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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 [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupInstancesResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupInstancesResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupInstancesResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupInstancesResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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.
       * Currently you can use filtering only on the [ManagedInstance.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [ManagedInstance.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [ManagedInstance.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [ManagedInstance.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [ManagedInstance.name] field.
       * 
* * 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; } @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.instancegroup.ListInstanceGroupInstancesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceGroupInstancesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceGroupInstancesRequest(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceGroupInstancesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ java.util.List getInstancesList(); /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance getInstances(int index); /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ int getInstancesCount(); /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ java.util.List getInstancesOrBuilderList(); /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder getInstancesOrBuilder( int index); /** *
     * This token allows you to get the next page of results for list requests. If the number of results
     * is more than [ListInstanceGroupInstancesRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupInstancesRequest.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 more than [ListInstanceGroupInstancesRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupInstancesRequest.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.instancegroup.ListInstanceGroupInstancesResponse} */ public static final class ListInstanceGroupInstancesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesResponse) ListInstanceGroupInstancesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceGroupInstancesResponse.newBuilder() to construct. private ListInstanceGroupInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceGroupInstancesResponse() { instances_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceGroupInstancesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceGroupInstancesResponse( 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.instancegroup.InstanceGroupOuterClass.ManagedInstance.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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ @java.lang.Override public java.util.List getInstancesList() { return instances_; } /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ @java.lang.Override public java.util.List getInstancesOrBuilderList() { return instances_; } /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ @java.lang.Override public int getInstancesCount() { return instances_.size(); } /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance getInstances(int index) { return instances_.get(index); } /** *
     * Lists instances for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder 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 more than [ListInstanceGroupInstancesRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupInstancesRequest.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 more than [ListInstanceGroupInstancesRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupInstancesRequest.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse) 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.ListInstanceGroupInstancesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesResponse) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse) 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.instancegroup.InstanceGroupOuterClass.ManagedInstance, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder> instancesBuilder_; /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public java.util.List getInstancesList() { if (instancesBuilder_ == null) { return java.util.Collections.unmodifiableList(instances_); } else { return instancesBuilder_.getMessageList(); } } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public int getInstancesCount() { if (instancesBuilder_ == null) { return instances_.size(); } else { return instancesBuilder_.getCount(); } } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance getInstances(int index) { if (instancesBuilder_ == null) { return instances_.get(index); } else { return instancesBuilder_.getMessage(index); } } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public Builder setInstances( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstancesIsMutable(); instances_.set(index, value); onChanged(); } else { instancesBuilder_.setMessage(index, value); } return this; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public Builder setInstances( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.set(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public Builder addInstances(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstancesIsMutable(); instances_.add(value); onChanged(); } else { instancesBuilder_.addMessage(value); } return this; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public Builder addInstances( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstancesIsMutable(); instances_.add(index, value); onChanged(); } else { instancesBuilder_.addMessage(index, value); } return this; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public Builder addInstances( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public Builder addInstances( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(index, builderForValue.build()); onChanged(); } else { instancesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance 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; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public Builder clearInstances() { if (instancesBuilder_ == null) { instances_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { instancesBuilder_.clear(); } return this; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public Builder removeInstances(int index) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.remove(index); onChanged(); } else { instancesBuilder_.remove(index); } return this; } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder getInstancesBuilder( int index) { return getInstancesFieldBuilder().getBuilder(index); } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder getInstancesOrBuilder( int index) { if (instancesBuilder_ == null) { return instances_.get(index); } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public java.util.List getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(instances_); } } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder addInstancesBuilder() { return getInstancesFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.getDefaultInstance()); } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder addInstancesBuilder( int index) { return getInstancesFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.getDefaultInstance()); } /** *
       * Lists instances for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1; */ public java.util.List getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder>( 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 more than [ListInstanceGroupInstancesRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupInstancesRequest.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 more than [ListInstanceGroupInstancesRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupInstancesRequest.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 more than [ListInstanceGroupInstancesRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupInstancesRequest.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 more than [ListInstanceGroupInstancesRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupInstancesRequest.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 more than [ListInstanceGroupInstancesRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupInstancesRequest.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.instancegroup.ListInstanceGroupInstancesResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesResponse) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceGroupInstancesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceGroupInstancesResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group that the instances are being deleted from.
     * To get the ID of the instance group, use the [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group that the instances are being deleted from.
     * To get the ID of the instance group, use the [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return A list containing the managedInstanceIds. */ java.util.List getManagedInstanceIdsList(); /** *
     * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return The count of managedInstanceIds. */ int getManagedInstanceIdsCount(); /** *
     * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ java.lang.String getManagedInstanceIds(int index); /** *
     * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index); /** *
     * If set to true, the target size of instance group will not be reduced and
     * a new instance will be created instead of the deleted one. By default, the target size of instance group
     * will be reduced by the specified number of instance IDs.
     * 
* * bool create_another = 3; * @return The createAnother. */ boolean getCreateAnother(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest} */ public static final class DeleteInstancesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest) DeleteInstancesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteInstancesRequest.newBuilder() to construct. private DeleteInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteInstancesRequest() { instanceGroupId_ = ""; managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteInstancesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteInstancesRequest( 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(); instanceGroupId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } managedInstanceIds_.add(s); break; } case 24: { createAnother_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group that the instances are being deleted from.
     * To get the ID of the instance group, use the [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group that the instances are being deleted from.
     * To get the ID of the instance group, use the [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MANAGED_INSTANCE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList managedInstanceIds_; /** *
     * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return A list containing the managedInstanceIds. */ public com.google.protobuf.ProtocolStringList getManagedInstanceIdsList() { return managedInstanceIds_; } /** *
     * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return The count of managedInstanceIds. */ public int getManagedInstanceIdsCount() { return managedInstanceIds_.size(); } /** *
     * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ public java.lang.String getManagedInstanceIds(int index) { return managedInstanceIds_.get(index); } /** *
     * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ public com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index) { return managedInstanceIds_.getByteString(index); } public static final int CREATE_ANOTHER_FIELD_NUMBER = 3; private boolean createAnother_; /** *
     * If set to true, the target size of instance group will not be reduced and
     * a new instance will be created instead of the deleted one. By default, the target size of instance group
     * will be reduced by the specified number of instance IDs.
     * 
* * bool create_another = 3; * @return The createAnother. */ @java.lang.Override public boolean getCreateAnother() { return createAnother_; } 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } for (int i = 0; i < managedInstanceIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managedInstanceIds_.getRaw(i)); } if (createAnother_ != false) { output.writeBool(3, createAnother_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } { int dataSize = 0; for (int i = 0; i < managedInstanceIds_.size(); i++) { dataSize += computeStringSizeNoTag(managedInstanceIds_.getRaw(i)); } size += dataSize; size += 1 * getManagedInstanceIdsList().size(); } if (createAnother_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, createAnother_); } 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; if (!getManagedInstanceIdsList() .equals(other.getManagedInstanceIdsList())) return false; if (getCreateAnother() != other.getCreateAnother()) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); if (getManagedInstanceIdsCount() > 0) { hash = (37 * hash) + MANAGED_INSTANCE_IDS_FIELD_NUMBER; hash = (53 * hash) + getManagedInstanceIdsList().hashCode(); } hash = (37 * hash) + CREATE_ANOTHER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCreateAnother()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.DeleteInstancesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.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(); instanceGroupId_ = ""; managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); createAnother_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest(this); int from_bitField0_ = bitField0_; result.instanceGroupId_ = instanceGroupId_; if (((bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.managedInstanceIds_ = managedInstanceIds_; result.createAnother_ = createAnother_; 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } if (!other.managedInstanceIds_.isEmpty()) { if (managedInstanceIds_.isEmpty()) { managedInstanceIds_ = other.managedInstanceIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.addAll(other.managedInstanceIds_); } onChanged(); } if (other.getCreateAnother() != false) { setCreateAnother(other.getCreateAnother()); } 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group that the instances are being deleted from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group that the instances are being deleted from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group that the instances are being deleted from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group that the instances are being deleted from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group that the instances are being deleted from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureManagedInstanceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(managedInstanceIds_); bitField0_ |= 0x00000001; } } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return A list containing the managedInstanceIds. */ public com.google.protobuf.ProtocolStringList getManagedInstanceIdsList() { return managedInstanceIds_.getUnmodifiableView(); } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return The count of managedInstanceIds. */ public int getManagedInstanceIdsCount() { return managedInstanceIds_.size(); } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ public java.lang.String getManagedInstanceIds(int index) { return managedInstanceIds_.get(index); } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ public com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index) { return managedInstanceIds_.getByteString(index); } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index to set the value at. * @param value The managedInstanceIds to set. * @return This builder for chaining. */ public Builder setManagedInstanceIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.set(index, value); onChanged(); return this; } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param value The managedInstanceIds to add. * @return This builder for chaining. */ public Builder addManagedInstanceIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.add(value); onChanged(); return this; } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param values The managedInstanceIds to add. * @return This builder for chaining. */ public Builder addAllManagedInstanceIds( java.lang.Iterable values) { ensureManagedInstanceIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, managedInstanceIds_); onChanged(); return this; } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearManagedInstanceIds() { managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * IDs of the instances to delete. Instances will be deleted along with all dependent resources.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param value The bytes of the managedInstanceIds to add. * @return This builder for chaining. */ public Builder addManagedInstanceIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.add(value); onChanged(); return this; } private boolean createAnother_ ; /** *
       * If set to true, the target size of instance group will not be reduced and
       * a new instance will be created instead of the deleted one. By default, the target size of instance group
       * will be reduced by the specified number of instance IDs.
       * 
* * bool create_another = 3; * @return The createAnother. */ @java.lang.Override public boolean getCreateAnother() { return createAnother_; } /** *
       * If set to true, the target size of instance group will not be reduced and
       * a new instance will be created instead of the deleted one. By default, the target size of instance group
       * will be reduced by the specified number of instance IDs.
       * 
* * bool create_another = 3; * @param value The createAnother to set. * @return This builder for chaining. */ public Builder setCreateAnother(boolean value) { createAnother_ = value; onChanged(); return this; } /** *
       * If set to true, the target size of instance group will not be reduced and
       * a new instance will be created instead of the deleted one. By default, the target size of instance group
       * will be reduced by the specified number of instance IDs.
       * 
* * bool create_another = 3; * @return This builder for chaining. */ public Builder clearCreateAnother() { createAnother_ = 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.instancegroup.DeleteInstancesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteInstancesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteInstancesRequest(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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StopInstancesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group that the instances are being stopped from.
     * To get the ID of the instance group, use the [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the instance group that the instances are being stopped from.
     * To get the ID of the instance group, use the [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
     * according to scale and deploy policies.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return A list containing the managedInstanceIds. */ java.util.List getManagedInstanceIdsList(); /** *
     * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
     * according to scale and deploy policies.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return The count of managedInstanceIds. */ int getManagedInstanceIdsCount(); /** *
     * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
     * according to scale and deploy policies.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ java.lang.String getManagedInstanceIds(int index); /** *
     * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
     * according to scale and deploy policies.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.StopInstancesRequest} */ public static final class StopInstancesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest) StopInstancesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StopInstancesRequest.newBuilder() to construct. private StopInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StopInstancesRequest() { instanceGroupId_ = ""; managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StopInstancesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StopInstancesRequest( 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(); instanceGroupId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } managedInstanceIds_.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)) { managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the instance group that the instances are being stopped from.
     * To get the ID of the instance group, use the [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the instance group that the instances are being stopped from.
     * To get the ID of the instance group, use the [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MANAGED_INSTANCE_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList managedInstanceIds_; /** *
     * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
     * according to scale and deploy policies.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return A list containing the managedInstanceIds. */ public com.google.protobuf.ProtocolStringList getManagedInstanceIdsList() { return managedInstanceIds_; } /** *
     * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
     * according to scale and deploy policies.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return The count of managedInstanceIds. */ public int getManagedInstanceIdsCount() { return managedInstanceIds_.size(); } /** *
     * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
     * according to scale and deploy policies.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ public java.lang.String getManagedInstanceIds(int index) { return managedInstanceIds_.get(index); } /** *
     * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
     * according to scale and deploy policies.
     * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
     * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ public com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index) { return managedInstanceIds_.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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } for (int i = 0; i < managedInstanceIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managedInstanceIds_.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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } { int dataSize = 0; for (int i = 0; i < managedInstanceIds_.size(); i++) { dataSize += computeStringSizeNoTag(managedInstanceIds_.getRaw(i)); } size += dataSize; size += 1 * getManagedInstanceIdsList().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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; if (!getManagedInstanceIdsList() .equals(other.getManagedInstanceIdsList())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().hashCode(); if (getManagedInstanceIdsCount() > 0) { hash = (37 * hash) + MANAGED_INSTANCE_IDS_FIELD_NUMBER; hash = (53 * hash) + getManagedInstanceIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.StopInstancesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.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(); instanceGroupId_ = ""; managedInstanceIds_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest(this); int from_bitField0_ = bitField0_; result.instanceGroupId_ = instanceGroupId_; if (((bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.managedInstanceIds_ = managedInstanceIds_; 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } if (!other.managedInstanceIds_.isEmpty()) { if (managedInstanceIds_.isEmpty()) { managedInstanceIds_ = other.managedInstanceIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.addAll(other.managedInstanceIds_); } 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the instance group that the instances are being stopped from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group that the instances are being stopped from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group that the instances are being stopped from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the instance group that the instances are being stopped from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the instance group that the instances are being stopped from.
       * To get the ID of the instance group, use the [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureManagedInstanceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(managedInstanceIds_); bitField0_ |= 0x00000001; } } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return A list containing the managedInstanceIds. */ public com.google.protobuf.ProtocolStringList getManagedInstanceIdsList() { return managedInstanceIds_.getUnmodifiableView(); } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return The count of managedInstanceIds. */ public int getManagedInstanceIdsCount() { return managedInstanceIds_.size(); } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the element to return. * @return The managedInstanceIds at the given index. */ public java.lang.String getManagedInstanceIds(int index) { return managedInstanceIds_.get(index); } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index of the value to return. * @return The bytes of the managedInstanceIds at the given index. */ public com.google.protobuf.ByteString getManagedInstanceIdsBytes(int index) { return managedInstanceIds_.getByteString(index); } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param index The index to set the value at. * @param value The managedInstanceIds to set. * @return This builder for chaining. */ public Builder setManagedInstanceIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.set(index, value); onChanged(); return this; } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param value The managedInstanceIds to add. * @return This builder for chaining. */ public Builder addManagedInstanceIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.add(value); onChanged(); return this; } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param values The managedInstanceIds to add. * @return This builder for chaining. */ public Builder addAllManagedInstanceIds( java.lang.Iterable values) { ensureManagedInstanceIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, managedInstanceIds_); onChanged(); return this; } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearManagedInstanceIds() { managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
       * according to scale and deploy policies.
       * Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
       * 
* * repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"]; * @param value The bytes of the managedInstanceIds to add. * @return This builder for chaining. */ public Builder addManagedInstanceIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureManagedInstanceIdsIsMutable(); managedInstanceIds_.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.instancegroup.StopInstancesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StopInstancesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StopInstancesRequest(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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceGroupOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource to list operations for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource to list operations for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.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) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set [page_token] to the
     * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsRequest} */ public static final class ListInstanceGroupOperationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsRequest) ListInstanceGroupOperationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceGroupOperationsRequest.newBuilder() to construct. private ListInstanceGroupOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceGroupOperationsRequest() { instanceGroupId_ = ""; pageToken_ = ""; filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceGroupOperationsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceGroupOperationsRequest( 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(); instanceGroupId_ = 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; } 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource to list operations for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource to list operations for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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 more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.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) = "0-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
     * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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
     * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * 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.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * 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; } } 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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_); } 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest 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.instancegroup.ListInstanceGroupOperationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest.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(); instanceGroupId_ = ""; pageSize_ = 0L; pageToken_ = ""; filter_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest(this); result.instanceGroupId_ = instanceGroupId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource to list operations for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource to list operations for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource to list operations for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource to list operations for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource to list operations for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available
       * results is more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.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) = "0-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 more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.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) = "0-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 more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.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) = "0-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
       * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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
       * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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
       * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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
       * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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
       * [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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; } @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.instancegroup.ListInstanceGroupOperationsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceGroupOperationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceGroupOperationsRequest(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceGroupOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Lists operations for the specified instance group.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsList(); /** *
     * Lists operations for the specified instance group.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index); /** *
     * Lists operations for the specified instance group.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ int getOperationsCount(); /** *
     * Lists operations for the specified instance group.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsOrBuilderList(); /** *
     * Lists operations for the specified instance group.
     * 
* * 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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
     * for the [ListInstanceGroupOperationsRequest.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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
     * for the [ListInstanceGroupOperationsRequest.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.instancegroup.ListInstanceGroupOperationsResponse} */ public static final class ListInstanceGroupOperationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsResponse) ListInstanceGroupOperationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceGroupOperationsResponse.newBuilder() to construct. private ListInstanceGroupOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceGroupOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceGroupOperationsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceGroupOperationsResponse( 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.Builder.class); } public static final int OPERATIONS_FIELD_NUMBER = 1; private java.util.List operations_; /** *
     * Lists operations for the specified instance group.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsList() { return operations_; } /** *
     * Lists operations for the specified instance group.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsOrBuilderList() { return operations_; } /** *
     * Lists operations for the specified instance group.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public int getOperationsCount() { return operations_.size(); } /** *
     * Lists operations for the specified instance group.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { return operations_.get(index); } /** *
     * Lists operations for the specified instance group.
     * 
* * 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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
     * for the [ListInstanceGroupOperationsRequest.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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
     * for the [ListInstanceGroupOperationsRequest.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse) 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.ListInstanceGroupOperationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsResponse) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse) 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_; /** *
       * Lists operations for the specified instance group.
       * 
* * 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(); } } /** *
       * Lists operations for the specified instance group.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public int getOperationsCount() { if (operationsBuilder_ == null) { return operations_.size(); } else { return operationsBuilder_.getCount(); } } /** *
       * Lists operations for the specified instance group.
       * 
* * 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); } } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * 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; } /** *
       * Lists operations for the specified instance group.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** *
       * Lists operations for the specified instance group.
       * 
* * 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); } } /** *
       * Lists operations for the specified instance group.
       * 
* * 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_); } } /** *
       * Lists operations for the specified instance group.
       * 
* * 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()); } /** *
       * Lists operations for the specified instance group.
       * 
* * 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()); } /** *
       * Lists operations for the specified instance group.
       * 
* * 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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceGroupOperationsRequest.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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceGroupOperationsRequest.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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceGroupOperationsRequest.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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceGroupOperationsRequest.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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
       * for the [ListInstanceGroupOperationsRequest.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.instancegroup.ListInstanceGroupOperationsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsResponse) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceGroupOperationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceGroupOperationsResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceGroupLogRecordsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the InstanceGroup resource to list logs for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @return The instanceGroupId. */ java.lang.String getInstanceGroupId(); /** *
     * ID of the InstanceGroup resource to list logs for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for instanceGroupId. */ com.google.protobuf.ByteString getInstanceGroupIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size],
     * the service returns a [ListInstanceGroupLogRecordsResponse.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) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results,
     * set [page_token] to the [ListInstanceGroupLogRecordsResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results,
     * set [page_token] to the [ListInstanceGroupLogRecordsResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsRequest} */ public static final class ListInstanceGroupLogRecordsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsRequest) ListInstanceGroupLogRecordsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceGroupLogRecordsRequest.newBuilder() to construct. private ListInstanceGroupLogRecordsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceGroupLogRecordsRequest() { instanceGroupId_ = ""; pageToken_ = ""; filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceGroupLogRecordsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceGroupLogRecordsRequest( 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(); instanceGroupId_ = 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; } 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest.Builder.class); } public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceGroupId_; /** *
     * ID of the InstanceGroup resource to list logs for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @return The instanceGroupId. */ @java.lang.Override public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; 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(); instanceGroupId_ = s; return s; } } /** *
     * ID of the InstanceGroup resource to list logs for.
     * To get the instance group ID, use a [InstanceGroupService.List] request.
     * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for instanceGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = 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 [ListInstanceGroupLogRecordsResponse.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) = "0-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 [ListInstanceGroupLogRecordsResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupLogRecordsResponse.next_page_token]
     * returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * 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.
     * Currently you can use filtering only on the [InstanceGroup.name] field.
     * 
* * 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; } } 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(instanceGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_); } 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_); } 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(instanceGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_); } 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_); } 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest) obj; if (!getInstanceGroupId() .equals(other.getInstanceGroupId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) 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_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceGroupId().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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest 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.instancegroup.ListInstanceGroupLogRecordsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsRequest) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest.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(); instanceGroupId_ = ""; pageSize_ = 0L; pageToken_ = ""; filter_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest(this); result.instanceGroupId_ = instanceGroupId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest.getDefaultInstance()) return this; if (!other.getInstanceGroupId().isEmpty()) { instanceGroupId_ = other.instanceGroupId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object instanceGroupId_ = ""; /** *
       * ID of the InstanceGroup resource to list logs for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @return The instanceGroupId. */ public java.lang.String getInstanceGroupId() { java.lang.Object ref = instanceGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the InstanceGroup resource to list logs for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for instanceGroupId. */ public com.google.protobuf.ByteString getInstanceGroupIdBytes() { java.lang.Object ref = instanceGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the InstanceGroup resource to list logs for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @param value The instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceGroupId_ = value; onChanged(); return this; } /** *
       * ID of the InstanceGroup resource to list logs for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearInstanceGroupId() { instanceGroupId_ = getDefaultInstance().getInstanceGroupId(); onChanged(); return this; } /** *
       * ID of the InstanceGroup resource to list logs for.
       * To get the instance group ID, use a [InstanceGroupService.List] request.
       * 
* * string instance_group_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for instanceGroupId to set. * @return This builder for chaining. */ public Builder setInstanceGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceGroupId_ = 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 [ListInstanceGroupLogRecordsResponse.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) = "0-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 [ListInstanceGroupLogRecordsResponse.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) = "0-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 [ListInstanceGroupLogRecordsResponse.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) = "0-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 [ListInstanceGroupLogRecordsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupLogRecordsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupLogRecordsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupLogRecordsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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 [ListInstanceGroupLogRecordsResponse.next_page_token]
       * returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=1000"]; * @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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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.
       * Currently you can use filtering only on the [InstanceGroup.name] field.
       * 
* * 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; } @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.instancegroup.ListInstanceGroupLogRecordsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsRequest) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceGroupLogRecordsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceGroupLogRecordsRequest(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListInstanceGroupLogRecordsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ java.util.List getLogRecordsList(); /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord getLogRecords(int index); /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ int getLogRecordsCount(); /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ java.util.List getLogRecordsOrBuilderList(); /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecordOrBuilder getLogRecordsOrBuilder( int index); /** *
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListInstanceGroupLogRecordsRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupLogRecordsRequest.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 [ListInstanceGroupLogRecordsRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupLogRecordsRequest.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.instancegroup.ListInstanceGroupLogRecordsResponse} */ public static final class ListInstanceGroupLogRecordsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsResponse) ListInstanceGroupLogRecordsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListInstanceGroupLogRecordsResponse.newBuilder() to construct. private ListInstanceGroupLogRecordsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListInstanceGroupLogRecordsResponse() { logRecords_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListInstanceGroupLogRecordsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListInstanceGroupLogRecordsResponse( 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)) { logRecords_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } logRecords_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.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)) { logRecords_ = java.util.Collections.unmodifiableList(logRecords_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.Builder.class); } public static final int LOG_RECORDS_FIELD_NUMBER = 1; private java.util.List logRecords_; /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ @java.lang.Override public java.util.List getLogRecordsList() { return logRecords_; } /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ @java.lang.Override public java.util.List getLogRecordsOrBuilderList() { return logRecords_; } /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ @java.lang.Override public int getLogRecordsCount() { return logRecords_.size(); } /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord getLogRecords(int index) { return logRecords_.get(index); } /** *
     * Lists logs for the specified instance group.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecordOrBuilder getLogRecordsOrBuilder( int index) { return logRecords_.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 [ListInstanceGroupLogRecordsRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupLogRecordsRequest.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 [ListInstanceGroupLogRecordsRequest.page_size], use
     * [next_page_token] as the value
     * for the [ListInstanceGroupLogRecordsRequest.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 < logRecords_.size(); i++) { output.writeMessage(1, logRecords_.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 < logRecords_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, logRecords_.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse) obj; if (!getLogRecordsList() .equals(other.getLogRecordsList())) 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 (getLogRecordsCount() > 0) { hash = (37 * hash) + LOG_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getLogRecordsList().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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse 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.instancegroup.ListInstanceGroupLogRecordsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsResponse) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLogRecordsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (logRecordsBuilder_ == null) { logRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { logRecordsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse(this); int from_bitField0_ = bitField0_; if (logRecordsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { logRecords_ = java.util.Collections.unmodifiableList(logRecords_); bitField0_ = (bitField0_ & ~0x00000001); } result.logRecords_ = logRecords_; } else { result.logRecords_ = logRecordsBuilder_.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.getDefaultInstance()) return this; if (logRecordsBuilder_ == null) { if (!other.logRecords_.isEmpty()) { if (logRecords_.isEmpty()) { logRecords_ = other.logRecords_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLogRecordsIsMutable(); logRecords_.addAll(other.logRecords_); } onChanged(); } } else { if (!other.logRecords_.isEmpty()) { if (logRecordsBuilder_.isEmpty()) { logRecordsBuilder_.dispose(); logRecordsBuilder_ = null; logRecords_ = other.logRecords_; bitField0_ = (bitField0_ & ~0x00000001); logRecordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogRecordsFieldBuilder() : null; } else { logRecordsBuilder_.addAllMessages(other.logRecords_); } } } 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List logRecords_ = java.util.Collections.emptyList(); private void ensureLogRecordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { logRecords_ = new java.util.ArrayList(logRecords_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecordOrBuilder> logRecordsBuilder_; /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public java.util.List getLogRecordsList() { if (logRecordsBuilder_ == null) { return java.util.Collections.unmodifiableList(logRecords_); } else { return logRecordsBuilder_.getMessageList(); } } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public int getLogRecordsCount() { if (logRecordsBuilder_ == null) { return logRecords_.size(); } else { return logRecordsBuilder_.getCount(); } } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord getLogRecords(int index) { if (logRecordsBuilder_ == null) { return logRecords_.get(index); } else { return logRecordsBuilder_.getMessage(index); } } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder setLogRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord value) { if (logRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogRecordsIsMutable(); logRecords_.set(index, value); onChanged(); } else { logRecordsBuilder_.setMessage(index, value); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder setLogRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder builderForValue) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); logRecords_.set(index, builderForValue.build()); onChanged(); } else { logRecordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder addLogRecords(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord value) { if (logRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogRecordsIsMutable(); logRecords_.add(value); onChanged(); } else { logRecordsBuilder_.addMessage(value); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder addLogRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord value) { if (logRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLogRecordsIsMutable(); logRecords_.add(index, value); onChanged(); } else { logRecordsBuilder_.addMessage(index, value); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder addLogRecords( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder builderForValue) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); logRecords_.add(builderForValue.build()); onChanged(); } else { logRecordsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder addLogRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder builderForValue) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); logRecords_.add(index, builderForValue.build()); onChanged(); } else { logRecordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder addAllLogRecords( java.lang.Iterable values) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, logRecords_); onChanged(); } else { logRecordsBuilder_.addAllMessages(values); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder clearLogRecords() { if (logRecordsBuilder_ == null) { logRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { logRecordsBuilder_.clear(); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public Builder removeLogRecords(int index) { if (logRecordsBuilder_ == null) { ensureLogRecordsIsMutable(); logRecords_.remove(index); onChanged(); } else { logRecordsBuilder_.remove(index); } return this; } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder getLogRecordsBuilder( int index) { return getLogRecordsFieldBuilder().getBuilder(index); } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecordOrBuilder getLogRecordsOrBuilder( int index) { if (logRecordsBuilder_ == null) { return logRecords_.get(index); } else { return logRecordsBuilder_.getMessageOrBuilder(index); } } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public java.util.List getLogRecordsOrBuilderList() { if (logRecordsBuilder_ != null) { return logRecordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(logRecords_); } } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder addLogRecordsBuilder() { return getLogRecordsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.getDefaultInstance()); } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder addLogRecordsBuilder( int index) { return getLogRecordsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.getDefaultInstance()); } /** *
       * Lists logs for the specified instance group.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.LogRecord log_records = 1; */ public java.util.List getLogRecordsBuilderList() { return getLogRecordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecordOrBuilder> getLogRecordsFieldBuilder() { if (logRecordsBuilder_ == null) { logRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecordOrBuilder>( logRecords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); logRecords_ = null; } return logRecordsBuilder_; } 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 [ListInstanceGroupLogRecordsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupLogRecordsRequest.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 [ListInstanceGroupLogRecordsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupLogRecordsRequest.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 [ListInstanceGroupLogRecordsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupLogRecordsRequest.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 [ListInstanceGroupLogRecordsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupLogRecordsRequest.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 [ListInstanceGroupLogRecordsRequest.page_size], use
       * [next_page_token] as the value
       * for the [ListInstanceGroupLogRecordsRequest.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.instancegroup.ListInstanceGroupLogRecordsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsResponse) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListInstanceGroupLogRecordsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListInstanceGroupLogRecordsResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\nByandex/cloud/compute/v1/instancegroup/" + "instance_group_service.proto\022%yandex.clo" + "ud.compute.v1.instancegroup\032 google/prot" + "obuf/field_mask.proto\032\034google/api/annota" + "tions.proto\032 yandex/cloud/access/access." + "proto\032 yandex/cloud/api/operation.proto\032" + ":yandex/cloud/compute/v1/instancegroup/i" + "nstance_group.proto\032&yandex/cloud/operat" + "ion/operation.proto\032\035yandex/cloud/valida" + "tion.proto\"J\n#ResumeInstanceGroupProcess" + "esRequest\022#\n\021instance_group_id\030\001 \001(\tB\010\212\310" + "1\004<=50\"?\n\"ResumeInstanceGroupProcessMeta" + "data\022\031\n\021instance_group_id\030\001 \001(\t\"I\n\"Pause" + "InstanceGroupProcessesRequest\022#\n\021instanc" + "e_group_id\030\001 \001(\tB\010\212\3101\004<=50\">\n!PauseInsta" + "nceGroupProcessMetadata\022\031\n\021instance_grou" + "p_id\030\001 \001(\t\"\212\001\n\027GetInstanceGroupRequest\022\'" + "\n\021instance_group_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022" + "F\n\004view\030\002 \001(\01628.yandex.cloud.compute.v1." + "instancegroup.InstanceGroupView\"\312\010\n\032Crea" + "teInstanceGroupRequest\022\027\n\tfolder_id\030\001 \001(" + "\tB\004\350\3071\001\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(\t" + "B\t\212\3101\005<=256\022\246\001\n\006labels\030\005 \003(\0132M.yandex.cl" + "oud.compute.v1.instancegroup.CreateInsta" + "nceGroupRequest.LabelsEntryBG\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]*\022X\n\021instance_templat" + "e\030\006 \001(\01327.yandex.cloud.compute.v1.instan" + "cegroup.InstanceTemplateB\004\350\3071\001\022N\n\014scale_" + "policy\030\007 \001(\01322.yandex.cloud.compute.v1.i" + "nstancegroup.ScalePolicyB\004\350\3071\001\022P\n\rdeploy" + "_policy\030\010 \001(\01323.yandex.cloud.compute.v1." + "instancegroup.DeployPolicyB\004\350\3071\001\022X\n\021allo" + "cation_policy\030\t \001(\01327.yandex.cloud.compu" + "te.v1.instancegroup.AllocationPolicyB\004\350\307" + "1\001\022S\n\022load_balancer_spec\030\n \001(\01327.yandex." + "cloud.compute.v1.instancegroup.LoadBalan" + "cerSpec\022S\n\022health_checks_spec\030\013 \001(\01327.ya" + "ndex.cloud.compute.v1.instancegroup.Heal" + "thChecksSpec\022\032\n\022service_account_id\030\014 \001(\t" + "\022B\n\tvariables\030\r \003(\0132/.yandex.cloud.compu" + "te.v1.instancegroup.Variable\022\033\n\023deletion" + "_protection\030\016 \001(\010\022j\n\036application_load_ba" + "lancer_spec\030\017 \001(\0132B.yandex.cloud.compute" + ".v1.instancegroup.ApplicationLoadBalance" + "rSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + "ue\030\002 \001(\t:\0028\001\"m\n\"CreateInstanceGroupFromY" + "amlRequest\022\027\n\tfolder_id\030\001 \001(\tB\004\350\3071\001\022.\n\023i" + "nstance_group_yaml\030\002 \001(\tB\021\350\3071\001\212\3101\t<=1048" + "576\"B\n\033CreateInstanceGroupMetadata\022#\n\021in" + "stance_group_id\030\001 \001(\tB\010\212\3101\004<=50\"\213\t\n\032Upda" + "teInstanceGroupRequest\022\'\n\021instance_group" + "_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022/\n\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMask\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\246\001\n" + "\006labels\030\005 \003(\0132M.yandex.cloud.compute.v1." + "instancegroup.UpdateInstanceGroupRequest" + ".LabelsEntryBG\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-9" + "a-z]*\022X\n\021instance_template\030\006 \001(\01327.yande" + "x.cloud.compute.v1.instancegroup.Instanc" + "eTemplateB\004\350\3071\001\022N\n\014scale_policy\030\007 \001(\01322." + "yandex.cloud.compute.v1.instancegroup.Sc" + "alePolicyB\004\350\3071\001\022P\n\rdeploy_policy\030\010 \001(\01323" + ".yandex.cloud.compute.v1.instancegroup.D" + "eployPolicyB\004\350\3071\001\022X\n\021allocation_policy\030\t" + " \001(\01327.yandex.cloud.compute.v1.instanceg" + "roup.AllocationPolicyB\004\350\3071\001\022S\n\022health_ch" + "ecks_spec\030\013 \001(\01327.yandex.cloud.compute.v" + "1.instancegroup.HealthChecksSpec\022\032\n\022serv" + "ice_account_id\030\014 \001(\t\022S\n\022load_balancer_sp" + "ec\030\016 \001(\01327.yandex.cloud.compute.v1.insta" + "ncegroup.LoadBalancerSpec\022B\n\tvariables\030\017" + " \003(\0132/.yandex.cloud.compute.v1.instanceg" + "roup.Variable\022\033\n\023deletion_protection\030\020 \001" + "(\010\022j\n\036application_load_balancer_spec\030\021 \001" + "(\0132B.yandex.cloud.compute.v1.instancegro" + "up.ApplicationLoadBalancerSpec\032-\n\013Labels" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"}\n" + "\"UpdateInstanceGroupFromYamlRequest\022\'\n\021i" + "nstance_group_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022.\n\023" + "instance_group_yaml\030\002 \001(\tB\021\350\3071\001\212\3101\t<=104" + "8576\"8\n\033UpdateInstanceGroupMetadata\022\031\n\021i" + "nstance_group_id\030\001 \001(\t\"D\n\031StartInstanceG" + "roupRequest\022\'\n\021instance_group_id\030\001 \001(\tB\014" + "\350\3071\001\212\3101\004<=50\"7\n\032StartInstanceGroupMetada" + "ta\022\031\n\021instance_group_id\030\001 \001(\t\"C\n\030StopIns" + "tanceGroupRequest\022\'\n\021instance_group_id\030\001" + " \001(\tB\014\350\3071\001\212\3101\004<=50\"6\n\031StopInstanceGroupM" + "etadata\022\031\n\021instance_group_id\030\001 \001(\t\"^\n\025Ro" + "llingRestartRequest\022\'\n\021instance_group_id" + "\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022\034\n\024managed_instance" + "_ids\030\002 \003(\t\"3\n\026RollingRestartMetadata\022\031\n\021" + "instance_group_id\030\001 \001(\t\"_\n\026RollingRecrea" + "teRequest\022\'\n\021instance_group_id\030\001 \001(\tB\014\350\307" + "1\001\212\3101\004<=50\022\034\n\024managed_instance_ids\030\002 \003(\t" + "\"4\n\027RollingRecreateMetadata\022\031\n\021instance_" + "group_id\030\001 \001(\t\"E\n\032DeleteInstanceGroupReq" + "uest\022\'\n\021instance_group_id\030\001 \001(\tB\014\350\3071\001\212\3101" + "\004<=50\"8\n\033DeleteInstanceGroupMetadata\022\031\n\021" + "instance_group_id\030\001 \001(\t\"4\n\027DeleteInstanc" + "esMetadata\022\031\n\021instance_group_id\030\001 \001(\t\"2\n" + "\025StopInstancesMetadata\022\031\n\021instance_group" + "_id\030\001 \001(\t\"\327\001\n\031ListInstanceGroupsRequest\022" + "\027\n\tfolder_id\030\001 \001(\tB\004\350\3071\001\022\035\n\tpage_size\030\002 " + "\001(\003B\n\372\3071\006<=1000\022\036\n\npage_token\030\003 \001(\tB\n\212\3101" + "\006<=1000\022\032\n\006filter\030\004 \001(\tB\n\212\3101\006<=1000\022F\n\004v" + "iew\030\005 \001(\01628.yandex.cloud.compute.v1.inst" + "ancegroup.InstanceGroupView\"\204\001\n\032ListInst" + "anceGroupsResponse\022M\n\017instance_groups\030\001 " + "\003(\01324.yandex.cloud.compute.v1.instancegr" + "oup.InstanceGroup\022\027\n\017next_page_token\030\002 \001" + "(\t\"\247\001\n!ListInstanceGroupInstancesRequest" + "\022\'\n\021instance_group_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=5" + "0\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006<=1000\022\036\n\npage" + "_token\030\003 \001(\tB\n\212\3101\006<=1000\022\032\n\006filter\030\004 \001(\t" + "B\n\212\3101\006<=1000\"\210\001\n\"ListInstanceGroupInstan" + "cesResponse\022I\n\tinstances\030\001 \003(\01326.yandex." + "cloud.compute.v1.instancegroup.ManagedIn" + "stance\022\027\n\017next_page_token\030\002 \001(\t\"\210\001\n\026Dele" + "teInstancesRequest\022\'\n\021instance_group_id\030" + "\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022-\n\024managed_instance_" + "ids\030\002 \003(\tB\017\202\3101\003>=1\212\3101\004<=50\022\026\n\016create_ano" + "ther\030\003 \001(\010\"n\n\024StopInstancesRequest\022\'\n\021in" + "stance_group_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022-\n\024m" + "anaged_instance_ids\030\002 \003(\tB\017\202\3101\003>=1\212\3101\004<=" + "50\"\250\001\n\"ListInstanceGroupOperationsReques" + "t\022\'\n\021instance_group_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=" + "50\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\0060-1000\022\036\n\npag" + "e_token\030\003 \001(\tB\n\212\3101\006<=1000\022\032\n\006filter\030\004 \001(" + "\tB\n\212\3101\006<=1000\"u\n#ListInstanceGroupOperat" + "ionsResponse\0225\n\noperations\030\001 \003(\0132!.yande" + "x.cloud.operation.Operation\022\027\n\017next_page" + "_token\030\002 \001(\t\"\240\001\n\"ListInstanceGroupLogRec" + "ordsRequest\022\037\n\021instance_group_id\030\001 \001(\tB\004" + "\350\3071\001\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\0060-1000\022\036\n\np" + "age_token\030\003 \001(\tB\n\212\3101\006<=1000\022\032\n\006filter\030\004 " + "\001(\tB\n\212\3101\006<=1000\"\205\001\n#ListInstanceGroupLog" + "RecordsResponse\022E\n\013log_records\030\001 \003(\01320.y" + "andex.cloud.compute.v1.instancegroup.Log" + "Record\022\027\n\017next_page_token\030\002 \001(\t*(\n\021Insta" + "nceGroupView\022\t\n\005BASIC\020\000\022\010\n\004FULL\020\0012\204$\n\024In" + "stanceGroupService\022\263\001\n\003Get\022>.yandex.clou" + "d.compute.v1.instancegroup.GetInstanceGr" + "oupRequest\0324.yandex.cloud.compute.v1.ins" + "tancegroup.InstanceGroup\"6\202\323\344\223\0020\022./compu" + "te/v1/instanceGroups/{instance_group_id}" + "\022\257\001\n\004List\[email protected]" + "ancegroup.ListInstanceGroupsRequest\032A.ya" + "ndex.cloud.compute.v1.instancegroup.List" + "InstanceGroupsResponse\"\"\202\323\344\223\002\034\022\032/compute" + "/v1/instanceGroups\022\305\001\n\006Create\022A.yandex.c" + "loud.compute.v1.instancegroup.CreateInst" + "anceGroupRequest\032!.yandex.cloud.operatio" + "n.Operation\"U\202\323\344\223\002\037\"\032/compute/v1/instanc" + "eGroups:\001*\262\322*,\n\033CreateInstanceGroupMetad" + "ata\022\rInstanceGroup\022\332\001\n\016CreateFromYaml\022I." + "yandex.cloud.compute.v1.instancegroup.Cr" + "eateInstanceGroupFromYamlRequest\032!.yande" + "x.cloud.operation.Operation\"Z\202\323\344\223\002$\"\037/co" + "mpute/v1/instanceGroups:yaml:\001*\262\322*,\n\033Cre" + "ateInstanceGroupMetadata\022\rInstanceGroup\022" + "\331\001\n\006Update\022A.yandex.cloud.compute.v1.ins" + "tancegroup.UpdateInstanceGroupRequest\032!." + "yandex.cloud.operation.Operation\"i\202\323\344\223\0023" + "2./compute/v1/instanceGroups/{instance_g" + "roup_id}:\001*\262\322*,\n\033UpdateInstanceGroupMeta" + "data\022\rInstanceGroup\022\356\001\n\016UpdateFromYaml\022I" + ".yandex.cloud.compute.v1.instancegroup.U" + "pdateInstanceGroupFromYamlRequest\032!.yand" + "ex.cloud.operation.Operation\"n\202\323\344\223\002823/c" + "ompute/v1/instanceGroups/{instance_group" + "_id}:yaml:\001*\262\322*,\n\033UpdateInstanceGroupMet" + "adata\022\rInstanceGroup\022\325\001\n\004Stop\022?.yandex.c" + "loud.compute.v1.instancegroup.StopInstan" + "ceGroupRequest\032!.yandex.cloud.operation." + "Operation\"i\202\323\344\223\0025\"3/compute/v1/instanceG" + "roups/{instance_group_id}:stop\262\322**\n\031Stop" + "InstanceGroupMetadata\022\rInstanceGroup\022\346\001\n" + "\016RollingRestart\022<.yandex.cloud.compute.v" + "1.instancegroup.RollingRestartRequest\032!." + "yandex.cloud.operation.Operation\"s\202\323\344\223\002B" + "\"=/compute/v1/instanceGroups/{instance_g" + "roup_id}:rollingRestart:\001*\262\322*\'\n\026RollingR" + "estartMetadata\022\rInstanceGroup\022\352\001\n\017Rollin" + "gRecreate\022=.yandex.cloud.compute.v1.inst" + "ancegroup.RollingRecreateRequest\032!.yande" + "x.cloud.operation.Operation\"u\202\323\344\223\002C\">/co" + "mpute/v1/instanceGroups/{instance_group_" + "id}:rollingRecreate:\001*\262\322*(\n\027RollingRecre" + "ateMetadata\022\rInstanceGroup\022\331\001\n\005Start\[email protected]" + "andex.cloud.compute.v1.instancegroup.Sta" + "rtInstanceGroupRequest\032!.yandex.cloud.op" + "eration.Operation\"k\202\323\344\223\0026\"4/compute/v1/i" + "nstanceGroups/{instance_group_id}:start\262" + "\322*+\n\032StartInstanceGroupMetadata\022\rInstanc" + "eGroup\022\336\001\n\006Delete\022A.yandex.cloud.compute" + ".v1.instancegroup.DeleteInstanceGroupReq" + "uest\032!.yandex.cloud.operation.Operation\"" + "n\202\323\344\223\0020*./compute/v1/instanceGroups/{ins" + "tance_group_id}\262\322*4\n\033DeleteInstanceGroup" + "Metadata\022\025google.protobuf.Empty\022\346\001\n\rList" + "Instances\022H.yandex.cloud.compute.v1.inst" + "ancegroup.ListInstanceGroupInstancesRequ" + "est\032I.yandex.cloud.compute.v1.instancegr" + "oup.ListInstanceGroupInstancesResponse\"@" + "\202\323\344\223\002:\0228/compute/v1/instanceGroups/{inst" + "ance_group_id}/instances\022\241\001\n\017DeleteInsta" + "nces\022=.yandex.cloud.compute.v1.instanceg" + "roup.DeleteInstancesRequest\032!.yandex.clo" + "ud.operation.Operation\",\262\322*(\n\027DeleteInst" + "ancesMetadata\022\rInstanceGroup\022\233\001\n\rStopIns" + "tances\022;.yandex.cloud.compute.v1.instanc" + "egroup.StopInstancesRequest\032!.yandex.clo" + "ud.operation.Operation\"*\262\322*&\n\025StopInstan" + "cesMetadata\022\rInstanceGroup\022\352\001\n\016ListOpera" + "tions\022I.yandex.cloud.compute.v1.instance" + "group.ListInstanceGroupOperationsRequest" + "\032J.yandex.cloud.compute.v1.instancegroup" + ".ListInstanceGroupOperationsResponse\"A\202\323" + "\344\223\002;\0229/compute/v1/instanceGroups/{instan" + "ce_group_id}/operations\022\344\001\n\016ListLogRecor" + "ds\022I.yandex.cloud.compute.v1.instancegro" + "up.ListInstanceGroupLogRecordsRequest\032J." + "yandex.cloud.compute.v1.instancegroup.Li" + "stInstanceGroupLogRecordsResponse\";\202\323\344\223\002" + "5\0223/compute/v1/instanceGroups/{instance_" + "group_id}:logs\022\272\001\n\022ListAccessBindings\022.." + "yandex.cloud.access.ListAccessBindingsRe" + "quest\032/.yandex.cloud.access.ListAccessBi" + "ndingsResponse\"C\202\323\344\223\002=\022;/compute/v1/inst" + "anceGroups/{resource_id}:listAccessBindi" + "ngs\022\352\001\n\021SetAccessBindings\022-.yandex.cloud" + ".access.SetAccessBindingsRequest\032!.yande" + "x.cloud.operation.Operation\"\202\001\202\323\344\223\002?\":/c" + "ompute/v1/instanceGroups/{resource_id}:s" + "etAccessBindings:\001*\262\322*9\n access.SetAcces" + "sBindingsMetadata\022\025google.protobuf.Empty" + "\022\366\001\n\024UpdateAccessBindings\0220.yandex.cloud" + ".access.UpdateAccessBindingsRequest\032!.ya" + "ndex.cloud.operation.Operation\"\210\001\202\323\344\223\002B\"" + "=/compute/v1/instanceGroups/{resource_id" + "}:updateAccessBindings:\001*\262\322*<\n#access.Up" + "dateAccessBindingsMetadata\022\025google.proto" + "buf.Empty\022\203\002\n\017ResumeProcesses\022J.yandex.c" + "loud.compute.v1.instancegroup.ResumeInst" + "anceGroupProcessesRequest\032!.yandex.cloud" + ".operation.Operation\"\200\001\202\323\344\223\002C\">/compute/" + "v1/instanceGroups/{instance_group_id}:re" + "sumeProcesses:\001*\262\322*3\n\"ResumeInstanceGrou" + "pProcessMetadata\022\rInstanceGroup\022\376\001\n\016Paus" + "eProcesses\022I.yandex.cloud.compute.v1.ins" + "tancegroup.PauseInstanceGroupProcessesRe" + "quest\032!.yandex.cloud.operation.Operation" + "\"~\202\323\344\223\002B\"=/compute/v1/instanceGroups/{in" + "stance_group_id}:pauseProcesses:\001*\262\322*2\n!" + "PauseInstanceGroupProcessMetadata\022\rInsta" + "nceGroupB\204\001\n)yandex.cloud.api.compute.v1" + ".instancegroupZWgithub.com/yandex-cloud/" + "go-genproto/yandex/cloud/compute/v1/inst" + "ancegroup;instancegroupb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), yandex.cloud.api.access.Access.getDescriptor(), yandex.cloud.api.OperationOuterClass.getDescriptor(), yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.getDescriptor(), yandex.cloud.api.operation.OperationOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "View", }); internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_descriptor, new java.lang.String[] { "FolderId", "Name", "Description", "Labels", "InstanceTemplate", "ScalePolicy", "DeployPolicy", "AllocationPolicy", "LoadBalancerSpec", "HealthChecksSpec", "ServiceAccountId", "Variables", "DeletionProtection", "ApplicationLoadBalancerSpec", }); internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupFromYamlRequest_descriptor, new java.lang.String[] { "FolderId", "InstanceGroupYaml", }); internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "UpdateMask", "Name", "Description", "Labels", "InstanceTemplate", "ScalePolicy", "DeployPolicy", "AllocationPolicy", "HealthChecksSpec", "ServiceAccountId", "LoadBalancerSpec", "Variables", "DeletionProtection", "ApplicationLoadBalancerSpec", }); internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupFromYamlRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "InstanceGroupYaml", }); internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_UpdateInstanceGroupMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupRequest_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_StartInstanceGroupMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupRequest_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_StopInstanceGroupMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "ManagedInstanceIds", }); internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "ManagedInstanceIds", }); internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupRequest_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstanceGroupMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesMetadata_descriptor, new java.lang.String[] { "InstanceGroupId", }); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor, new java.lang.String[] { "FolderId", "PageSize", "PageToken", "Filter", "View", }); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor, new java.lang.String[] { "InstanceGroups", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "PageSize", "PageToken", "Filter", }); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor, new java.lang.String[] { "Instances", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "ManagedInstanceIds", "CreateAnother", }); internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "ManagedInstanceIds", }); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "PageSize", "PageToken", "Filter", }); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor, new java.lang.String[] { "Operations", "NextPageToken", }); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsRequest_descriptor, new java.lang.String[] { "InstanceGroupId", "PageSize", "PageToken", "Filter", }); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_descriptor, new java.lang.String[] { "LogRecords", "NextPageToken", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); registry.add(yandex.cloud.api.OperationOuterClass.operation); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.mapKey); registry.add(yandex.cloud.api.Validation.pattern); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.size); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); yandex.cloud.api.access.Access.getDescriptor(); yandex.cloud.api.OperationOuterClass.getDescriptor(); yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.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