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

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

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

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

public final class InstanceGroupOuterClass {
  private InstanceGroupOuterClass() {}
  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.IpVersion}
   */
  public enum IpVersion
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * IP_VERSION_UNSPECIFIED = 0;
     */
    IP_VERSION_UNSPECIFIED(0),
    /**
     * 
     * IPv4 address, for example 192.168.0.0.
     * 
* * IPV4 = 1; */ IPV4(1), /** *
     * IPv6 address, not available yet.
     * 
* * IPV6 = 2; */ IPV6(2), UNRECOGNIZED(-1), ; /** * IP_VERSION_UNSPECIFIED = 0; */ public static final int IP_VERSION_UNSPECIFIED_VALUE = 0; /** *
     * IPv4 address, for example 192.168.0.0.
     * 
* * IPV4 = 1; */ public static final int IPV4_VALUE = 1; /** *
     * IPv6 address, not available yet.
     * 
* * IPV6 = 2; */ public static final int IPV6_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IpVersion 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 IpVersion forNumber(int value) { switch (value) { case 0: return IP_VERSION_UNSPECIFIED; case 1: return IPV4; case 2: return IPV6; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IpVersion> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IpVersion findValueByNumber(int number) { return IpVersion.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.InstanceGroupOuterClass.getDescriptor().getEnumTypes().get(0); } private static final IpVersion[] VALUES = values(); public static IpVersion 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 IpVersion(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.IpVersion) } public interface InstanceGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.InstanceGroup) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the instance group.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the instance group.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the instance group belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the instance group belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the instance group.
     * The name is unique within the folder.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the instance group.
     * The name is unique within the folder.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the instance group.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the instance group.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Instance template for creating the instance group.
     * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; * @return Whether the instanceTemplate field is set. */ boolean hasInstanceTemplate(); /** *
     * Instance template for creating the instance group.
     * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; * @return The instanceTemplate. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getInstanceTemplate(); /** *
     * Instance template for creating the instance group.
     * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ 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 = 8; * @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 = 8; * @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 = 8; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder(); /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 9; * @return Whether the deployPolicy field is set. */ boolean hasDeployPolicy(); /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 9; * @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 = 9; */ 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 = 10; * @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 = 10; * @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 = 10; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder(); /** *
     * Status of the Network Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; * @return Whether the loadBalancerState field is set. */ boolean hasLoadBalancerState(); /** *
     * Status of the Network Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; * @return The loadBalancerState. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState getLoadBalancerState(); /** *
     * Status of the Network Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerStateOrBuilder getLoadBalancerStateOrBuilder(); /** *
     * States of instances for this instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; * @return Whether the managedInstancesState field is set. */ boolean hasManagedInstancesState(); /** *
     * States of instances for this instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; * @return The managedInstancesState. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState getManagedInstancesState(); /** *
     * States of instances for this instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesStateOrBuilder getManagedInstancesStateOrBuilder(); /** *
     * 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(); /** *
     * 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 = 15; * @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 = 15; * @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 = 15; */ 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 = 16; * @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 = 16; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Status of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @return The status. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status getStatus(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ java.util.List getVariablesList(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getVariables(int index); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ int getVariablesCount(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ java.util.List getVariablesOrBuilderList(); /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ 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 = 19; * @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 = 20; * @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 = 20; * @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 = 20; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder(); /** *
     * Status of the Application Load Balancer target group attributed to the instance group.
     * Returned if there is a working load balancer that the target group is connected to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; * @return Whether the applicationLoadBalancerState field is set. */ boolean hasApplicationLoadBalancerState(); /** *
     * Status of the Application Load Balancer target group attributed to the instance group.
     * Returned if there is a working load balancer that the target group is connected to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; * @return The applicationLoadBalancerState. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState getApplicationLoadBalancerState(); /** *
     * Status of the Application Load Balancer target group attributed to the instance group.
     * Returned if there is a working load balancer that the target group is connected to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerStateOrBuilder getApplicationLoadBalancerStateOrBuilder(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.InstanceGroup} */ public static final class InstanceGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.InstanceGroup) InstanceGroupOrBuilder { private static final long serialVersionUID = 0L; // Use InstanceGroup.newBuilder() to construct. private InstanceGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InstanceGroup() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; serviceAccountId_ = ""; status_ = 0; variables_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InstanceGroup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InstanceGroup( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 58: { 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 66: { 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 74: { 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 82: { 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.LoadBalancerState.Builder subBuilder = null; if (loadBalancerState_ != null) { subBuilder = loadBalancerState_.toBuilder(); } loadBalancerState_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(loadBalancerState_); loadBalancerState_ = subBuilder.buildPartial(); } break; } case 98: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Builder subBuilder = null; if (managedInstancesState_ != null) { subBuilder = managedInstancesState_.toBuilder(); } managedInstancesState_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(managedInstancesState_); managedInstancesState_ = subBuilder.buildPartial(); } 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: { 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 130: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 136: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 146: { 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 152: { deletionProtection_ = input.readBool(); break; } case 162: { 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; } case 170: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.Builder subBuilder = null; if (applicationLoadBalancerState_ != null) { subBuilder = applicationLoadBalancerState_.toBuilder(); } applicationLoadBalancerState_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(applicationLoadBalancerState_); applicationLoadBalancerState_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * Instance group is being started and will become active soon.
       * 
* * STARTING = 1; */ STARTING(1), /** *
       * Instance group is active.
       * In this state the group manages its instances and monitors their health,
       * creating, deleting, stopping, updating and starting instances as needed.
       * To stop the instance group, call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.Stop].
       * To pause the processes in the instance group, i.e. scaling, checking instances' health,
       * auto-healing and updating them, without stopping the instances,
       * call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.PauseProcesses].
       * 
* * ACTIVE = 2; */ ACTIVE(2), /** *
       * Instance group is being stopped.
       * Group's instances stop receiving traffic from the load balancer (if any) and are then stopped.
       * 
* * STOPPING = 3; */ STOPPING(3), /** *
       * Instance group is stopped.
       * In this state the group cannot be updated and does not react to any changes made to its instances.
       * To start the instance group, call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.Start].
       * 
* * STOPPED = 4; */ STOPPED(4), /** *
       * Instance group is being deleted.
       * 
* * DELETING = 5; */ DELETING(5), /** *
       * Instance group is paused.
       * In this state all the processes regarding the group management, i.e. scaling, checking instances' health,
       * auto-healing and updating them, are paused. The instances that were running prior to pausing the group, however,
       * may still be running.
       * To resume the processes in the instance group,
       * call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.ResumeProcesses].
       * The group status will change to `ACTIVE`.
       * 
* * PAUSED = 6; */ PAUSED(6), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * Instance group is being started and will become active soon.
       * 
* * STARTING = 1; */ public static final int STARTING_VALUE = 1; /** *
       * Instance group is active.
       * In this state the group manages its instances and monitors their health,
       * creating, deleting, stopping, updating and starting instances as needed.
       * To stop the instance group, call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.Stop].
       * To pause the processes in the instance group, i.e. scaling, checking instances' health,
       * auto-healing and updating them, without stopping the instances,
       * call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.PauseProcesses].
       * 
* * ACTIVE = 2; */ public static final int ACTIVE_VALUE = 2; /** *
       * Instance group is being stopped.
       * Group's instances stop receiving traffic from the load balancer (if any) and are then stopped.
       * 
* * STOPPING = 3; */ public static final int STOPPING_VALUE = 3; /** *
       * Instance group is stopped.
       * In this state the group cannot be updated and does not react to any changes made to its instances.
       * To start the instance group, call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.Start].
       * 
* * STOPPED = 4; */ public static final int STOPPED_VALUE = 4; /** *
       * Instance group is being deleted.
       * 
* * DELETING = 5; */ public static final int DELETING_VALUE = 5; /** *
       * Instance group is paused.
       * In this state all the processes regarding the group management, i.e. scaling, checking instances' health,
       * auto-healing and updating them, are paused. The instances that were running prior to pausing the group, however,
       * may still be running.
       * To resume the processes in the instance group,
       * call [yandex.cloud.compute.v1.instancegroup.InstanceGroupService.ResumeProcesses].
       * The group status will change to `ACTIVE`.
       * 
* * PAUSED = 6; */ public static final int PAUSED_VALUE = 6; 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 Status 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 Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return STARTING; case 2: return ACTIVE; case 3: return STOPPING; case 4: return STOPPED; case 5: return DELETING; case 6: return PAUSED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.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.InstanceGroupOuterClass.InstanceGroup.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status 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 Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the instance group.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * ID of the instance group.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the instance group belongs to.
     * 
* * string folder_id = 2; * @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 that the instance group belongs to.
     * 
* * string folder_id = 2; * @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 CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the instance group.
     * The name is unique within the folder.
     * 
* * string name = 4; * @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.
     * The name is unique within the folder.
     * 
* * string name = 4; * @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 = 5; private volatile java.lang.Object description_; /** *
     * Description of the instance group.
     * 
* * string description = 5; * @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 = 5; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6; */ @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 = 7; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate instanceTemplate_; /** *
     * Instance template for creating the instance group.
     * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; * @return Whether the instanceTemplate field is set. */ @java.lang.Override public boolean hasInstanceTemplate() { return instanceTemplate_ != null; } /** *
     * Instance template for creating the instance group.
     * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; * @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 for creating the instance group.
     * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder getInstanceTemplateOrBuilder() { return getInstanceTemplate(); } public static final int SCALE_POLICY_FIELD_NUMBER = 8; 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 = 8; * @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 = 8; * @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 = 8; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() { return getScalePolicy(); } public static final int DEPLOY_POLICY_FIELD_NUMBER = 9; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy deployPolicy_; /** *
     * Deployment policy of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy deploy_policy = 9; * @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 = 9; * @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 = 9; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder getDeployPolicyOrBuilder() { return getDeployPolicy(); } public static final int ALLOCATION_POLICY_FIELD_NUMBER = 10; 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 = 10; * @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 = 10; * @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 = 10; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() { return getAllocationPolicy(); } public static final int LOAD_BALANCER_STATE_FIELD_NUMBER = 11; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState loadBalancerState_; /** *
     * Status of the Network Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; * @return Whether the loadBalancerState field is set. */ @java.lang.Override public boolean hasLoadBalancerState() { return loadBalancerState_ != null; } /** *
     * Status of the Network Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; * @return The loadBalancerState. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState getLoadBalancerState() { return loadBalancerState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.getDefaultInstance() : loadBalancerState_; } /** *
     * Status of the Network Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerStateOrBuilder getLoadBalancerStateOrBuilder() { return getLoadBalancerState(); } public static final int MANAGED_INSTANCES_STATE_FIELD_NUMBER = 12; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState managedInstancesState_; /** *
     * States of instances for this instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; * @return Whether the managedInstancesState field is set. */ @java.lang.Override public boolean hasManagedInstancesState() { return managedInstancesState_ != null; } /** *
     * States of instances for this instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; * @return The managedInstancesState. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState getManagedInstancesState() { return managedInstancesState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.getDefaultInstance() : managedInstancesState_; } /** *
     * States of instances for this instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesStateOrBuilder getManagedInstancesStateOrBuilder() { return getManagedInstancesState(); } 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 HEALTH_CHECKS_SPEC_FIELD_NUMBER = 15; 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 = 15; * @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 = 15; * @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 = 15; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder() { return getHealthChecksSpec(); } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 16; 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 = 16; * @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 = 16; * @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 STATUS_FIELD_NUMBER = 17; private int status_; /** *
     * Status of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @return The status. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status.valueOf(status_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status.UNRECOGNIZED : result; } public static final int VARIABLES_FIELD_NUMBER = 18; private java.util.List variables_; /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ @java.lang.Override public java.util.List getVariablesList() { return variables_; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ @java.lang.Override public java.util.List getVariablesOrBuilderList() { return variables_; } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ @java.lang.Override public int getVariablesCount() { return variables_.size(); } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ @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 = 18; */ @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 = 19; 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 = 19; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } public static final int APPLICATION_LOAD_BALANCER_SPEC_FIELD_NUMBER = 20; 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 = 20; * @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 = 20; * @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 = 20; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder() { return getApplicationLoadBalancerSpec(); } public static final int APPLICATION_LOAD_BALANCER_STATE_FIELD_NUMBER = 21; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState applicationLoadBalancerState_; /** *
     * Status of the Application Load Balancer target group attributed to the instance group.
     * Returned if there is a working load balancer that the target group is connected to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; * @return Whether the applicationLoadBalancerState field is set. */ @java.lang.Override public boolean hasApplicationLoadBalancerState() { return applicationLoadBalancerState_ != null; } /** *
     * Status of the Application Load Balancer target group attributed to the instance group.
     * Returned if there is a working load balancer that the target group is connected to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; * @return The applicationLoadBalancerState. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState getApplicationLoadBalancerState() { return applicationLoadBalancerState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.getDefaultInstance() : applicationLoadBalancerState_; } /** *
     * Status of the Application Load Balancer target group attributed to the instance group.
     * Returned if there is a working load balancer that the target group is connected to.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerStateOrBuilder getApplicationLoadBalancerStateOrBuilder() { return getApplicationLoadBalancerState(); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (instanceTemplate_ != null) { output.writeMessage(7, getInstanceTemplate()); } if (scalePolicy_ != null) { output.writeMessage(8, getScalePolicy()); } if (deployPolicy_ != null) { output.writeMessage(9, getDeployPolicy()); } if (allocationPolicy_ != null) { output.writeMessage(10, getAllocationPolicy()); } if (loadBalancerState_ != null) { output.writeMessage(11, getLoadBalancerState()); } if (managedInstancesState_ != null) { output.writeMessage(12, getManagedInstancesState()); } if (loadBalancerSpec_ != null) { output.writeMessage(14, getLoadBalancerSpec()); } if (healthChecksSpec_ != null) { output.writeMessage(15, getHealthChecksSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, serviceAccountId_); } if (status_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(17, status_); } for (int i = 0; i < variables_.size(); i++) { output.writeMessage(18, variables_.get(i)); } if (deletionProtection_ != false) { output.writeBool(19, deletionProtection_); } if (applicationLoadBalancerSpec_ != null) { output.writeMessage(20, getApplicationLoadBalancerSpec()); } if (applicationLoadBalancerState_ != null) { output.writeMessage(21, getApplicationLoadBalancerState()); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, labels__); } if (instanceTemplate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getInstanceTemplate()); } if (scalePolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getScalePolicy()); } if (deployPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getDeployPolicy()); } if (allocationPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAllocationPolicy()); } if (loadBalancerState_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getLoadBalancerState()); } if (managedInstancesState_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getManagedInstancesState()); } if (loadBalancerSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getLoadBalancerSpec()); } if (healthChecksSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getHealthChecksSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, serviceAccountId_); } if (status_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(17, status_); } for (int i = 0; i < variables_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, variables_.get(i)); } if (deletionProtection_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(19, deletionProtection_); } if (applicationLoadBalancerSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getApplicationLoadBalancerSpec()); } if (applicationLoadBalancerState_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, getApplicationLoadBalancerState()); } 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.InstanceGroupOuterClass.InstanceGroup)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) 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 (hasLoadBalancerState() != other.hasLoadBalancerState()) return false; if (hasLoadBalancerState()) { if (!getLoadBalancerState() .equals(other.getLoadBalancerState())) return false; } if (hasManagedInstancesState() != other.hasManagedInstancesState()) return false; if (hasManagedInstancesState()) { if (!getManagedInstancesState() .equals(other.getManagedInstancesState())) 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 (status_ != other.status_) 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 (hasApplicationLoadBalancerState() != other.hasApplicationLoadBalancerState()) return false; if (hasApplicationLoadBalancerState()) { if (!getApplicationLoadBalancerState() .equals(other.getApplicationLoadBalancerState())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().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 (hasLoadBalancerState()) { hash = (37 * hash) + LOAD_BALANCER_STATE_FIELD_NUMBER; hash = (53 * hash) + getLoadBalancerState().hashCode(); } if (hasManagedInstancesState()) { hash = (37 * hash) + MANAGED_INSTANCES_STATE_FIELD_NUMBER; hash = (53 * hash) + getManagedInstancesState().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(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; 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(); } if (hasApplicationLoadBalancerState()) { hash = (37 * hash) + APPLICATION_LOAD_BALANCER_STATE_FIELD_NUMBER; hash = (53 * hash) + getApplicationLoadBalancerState().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroupOuterClass.InstanceGroup 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.InstanceGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.InstanceGroup) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.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(); id_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = 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 (loadBalancerStateBuilder_ == null) { loadBalancerState_ = null; } else { loadBalancerState_ = null; loadBalancerStateBuilder_ = null; } if (managedInstancesStateBuilder_ == null) { managedInstancesState_ = null; } else { managedInstancesState_ = null; managedInstancesStateBuilder_ = null; } if (loadBalancerSpecBuilder_ == null) { loadBalancerSpec_ = null; } else { loadBalancerSpec_ = null; loadBalancerSpecBuilder_ = null; } if (healthChecksSpecBuilder_ == null) { healthChecksSpec_ = null; } else { healthChecksSpec_ = null; healthChecksSpecBuilder_ = null; } serviceAccountId_ = ""; status_ = 0; 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; } if (applicationLoadBalancerStateBuilder_ == null) { applicationLoadBalancerState_ = null; } else { applicationLoadBalancerState_ = null; applicationLoadBalancerStateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.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 (loadBalancerStateBuilder_ == null) { result.loadBalancerState_ = loadBalancerState_; } else { result.loadBalancerState_ = loadBalancerStateBuilder_.build(); } if (managedInstancesStateBuilder_ == null) { result.managedInstancesState_ = managedInstancesState_; } else { result.managedInstancesState_ = managedInstancesStateBuilder_.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_; result.status_ = status_; 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(); } if (applicationLoadBalancerStateBuilder_ == null) { result.applicationLoadBalancerState_ = applicationLoadBalancerState_; } else { result.applicationLoadBalancerState_ = applicationLoadBalancerStateBuilder_.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.InstanceGroupOuterClass.InstanceGroup) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } 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.hasLoadBalancerState()) { mergeLoadBalancerState(other.getLoadBalancerState()); } if (other.hasManagedInstancesState()) { mergeManagedInstancesState(other.getManagedInstancesState()); } if (other.hasLoadBalancerSpec()) { mergeLoadBalancerSpec(other.getLoadBalancerSpec()); } if (other.hasHealthChecksSpec()) { mergeHealthChecksSpec(other.getHealthChecksSpec()); } if (!other.getServiceAccountId().isEmpty()) { serviceAccountId_ = other.serviceAccountId_; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } 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()); } if (other.hasApplicationLoadBalancerState()) { mergeApplicationLoadBalancerState(other.getApplicationLoadBalancerState()); } 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.InstanceGroupOuterClass.InstanceGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the instance group.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance group.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance group.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the instance group.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the instance group.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the instance group belongs to.
       * 
* * string folder_id = 2; * @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 that the instance group belongs to.
       * 
* * string folder_id = 2; * @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 that the instance group belongs to.
       * 
* * string folder_id = 2; * @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 that the instance group belongs to.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the instance group belongs to.
       * 
* * string folder_id = 2; * @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 com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the instance group.
       * The name is unique within the folder.
       * 
* * string name = 4; * @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.
       * The name is unique within the folder.
       * 
* * string name = 4; * @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.
       * The name is unique within the folder.
       * 
* * string name = 4; * @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.
       * The name is unique within the folder.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the instance group.
       * The name is unique within the folder.
       * 
* * string name = 4; * @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 = 5; * @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 = 5; * @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 = 5; * @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 = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the instance group.
       * 
* * string description = 5; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6; */ 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 for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; * @return Whether the instanceTemplate field is set. */ public boolean hasInstanceTemplate() { return instanceTemplateBuilder_ != null || instanceTemplate_ != null; } /** *
       * Instance template for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; * @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 for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ 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 for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ 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 for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ 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 for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ public Builder clearInstanceTemplate() { if (instanceTemplateBuilder_ == null) { instanceTemplate_ = null; onChanged(); } else { instanceTemplate_ = null; instanceTemplateBuilder_ = null; } return this; } /** *
       * Instance template for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder getInstanceTemplateBuilder() { onChanged(); return getInstanceTemplateFieldBuilder().getBuilder(); } /** *
       * Instance template for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ 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 for creating the instance group.
       * For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceTemplate instance_template = 7; */ 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 = 8; * @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 = 8; * @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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 9; * @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 = 9; * @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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 10; * @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 = 10; * @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 = 10; */ 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 = 10; */ 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 = 10; */ 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 = 10; */ 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 = 10; */ 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 = 10; */ 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 = 10; */ 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.LoadBalancerState loadBalancerState_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerStateOrBuilder> loadBalancerStateBuilder_; /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; * @return Whether the loadBalancerState field is set. */ public boolean hasLoadBalancerState() { return loadBalancerStateBuilder_ != null || loadBalancerState_ != null; } /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; * @return The loadBalancerState. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState getLoadBalancerState() { if (loadBalancerStateBuilder_ == null) { return loadBalancerState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.getDefaultInstance() : loadBalancerState_; } else { return loadBalancerStateBuilder_.getMessage(); } } /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ public Builder setLoadBalancerState(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState value) { if (loadBalancerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } loadBalancerState_ = value; onChanged(); } else { loadBalancerStateBuilder_.setMessage(value); } return this; } /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ public Builder setLoadBalancerState( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.Builder builderForValue) { if (loadBalancerStateBuilder_ == null) { loadBalancerState_ = builderForValue.build(); onChanged(); } else { loadBalancerStateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ public Builder mergeLoadBalancerState(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState value) { if (loadBalancerStateBuilder_ == null) { if (loadBalancerState_ != null) { loadBalancerState_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.newBuilder(loadBalancerState_).mergeFrom(value).buildPartial(); } else { loadBalancerState_ = value; } onChanged(); } else { loadBalancerStateBuilder_.mergeFrom(value); } return this; } /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ public Builder clearLoadBalancerState() { if (loadBalancerStateBuilder_ == null) { loadBalancerState_ = null; onChanged(); } else { loadBalancerState_ = null; loadBalancerStateBuilder_ = null; } return this; } /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.Builder getLoadBalancerStateBuilder() { onChanged(); return getLoadBalancerStateFieldBuilder().getBuilder(); } /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerStateOrBuilder getLoadBalancerStateOrBuilder() { if (loadBalancerStateBuilder_ != null) { return loadBalancerStateBuilder_.getMessageOrBuilder(); } else { return loadBalancerState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.getDefaultInstance() : loadBalancerState_; } } /** *
       * Status of the Network Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.LoadBalancerState load_balancer_state = 11; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerStateOrBuilder> getLoadBalancerStateFieldBuilder() { if (loadBalancerStateBuilder_ == null) { loadBalancerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerStateOrBuilder>( getLoadBalancerState(), getParentForChildren(), isClean()); loadBalancerState_ = null; } return loadBalancerStateBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState managedInstancesState_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesStateOrBuilder> managedInstancesStateBuilder_; /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; * @return Whether the managedInstancesState field is set. */ public boolean hasManagedInstancesState() { return managedInstancesStateBuilder_ != null || managedInstancesState_ != null; } /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; * @return The managedInstancesState. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState getManagedInstancesState() { if (managedInstancesStateBuilder_ == null) { return managedInstancesState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.getDefaultInstance() : managedInstancesState_; } else { return managedInstancesStateBuilder_.getMessage(); } } /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ public Builder setManagedInstancesState(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState value) { if (managedInstancesStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } managedInstancesState_ = value; onChanged(); } else { managedInstancesStateBuilder_.setMessage(value); } return this; } /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ public Builder setManagedInstancesState( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Builder builderForValue) { if (managedInstancesStateBuilder_ == null) { managedInstancesState_ = builderForValue.build(); onChanged(); } else { managedInstancesStateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ public Builder mergeManagedInstancesState(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState value) { if (managedInstancesStateBuilder_ == null) { if (managedInstancesState_ != null) { managedInstancesState_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.newBuilder(managedInstancesState_).mergeFrom(value).buildPartial(); } else { managedInstancesState_ = value; } onChanged(); } else { managedInstancesStateBuilder_.mergeFrom(value); } return this; } /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ public Builder clearManagedInstancesState() { if (managedInstancesStateBuilder_ == null) { managedInstancesState_ = null; onChanged(); } else { managedInstancesState_ = null; managedInstancesStateBuilder_ = null; } return this; } /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Builder getManagedInstancesStateBuilder() { onChanged(); return getManagedInstancesStateFieldBuilder().getBuilder(); } /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesStateOrBuilder getManagedInstancesStateOrBuilder() { if (managedInstancesStateBuilder_ != null) { return managedInstancesStateBuilder_.getMessageOrBuilder(); } else { return managedInstancesState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.getDefaultInstance() : managedInstancesState_; } } /** *
       * States of instances for this instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstancesState managed_instances_state = 12; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesStateOrBuilder> getManagedInstancesStateFieldBuilder() { if (managedInstancesStateBuilder_ == null) { managedInstancesStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesStateOrBuilder>( getManagedInstancesState(), getParentForChildren(), isClean()); managedInstancesState_ = null; } return managedInstancesStateBuilder_; } 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 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 = 15; * @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 = 15; * @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 = 15; */ 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 = 15; */ 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 = 15; */ 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 = 15; */ 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 = 15; */ 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 = 15; */ 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 = 15; */ 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 = 16; * @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 = 16; * @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 = 16; * @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 = 16; * @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 = 16; * @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 int status_ = 0; /** *
       * Status of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @return The status. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status.valueOf(status_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status.UNRECOGNIZED : result; } /** *
       * Status of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.InstanceGroup.Status status = 17; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; 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 = 18; */ 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 = 18; */ public int getVariablesCount() { if (variablesBuilder_ == null) { return variables_.size(); } else { return variablesBuilder_.getCount(); } } /** * repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 19; * @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 = 19; * @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 = 19; * @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 = 20; * @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 = 20; * @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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 20; */ 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_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState applicationLoadBalancerState_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerStateOrBuilder> applicationLoadBalancerStateBuilder_; /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; * @return Whether the applicationLoadBalancerState field is set. */ public boolean hasApplicationLoadBalancerState() { return applicationLoadBalancerStateBuilder_ != null || applicationLoadBalancerState_ != null; } /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; * @return The applicationLoadBalancerState. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState getApplicationLoadBalancerState() { if (applicationLoadBalancerStateBuilder_ == null) { return applicationLoadBalancerState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.getDefaultInstance() : applicationLoadBalancerState_; } else { return applicationLoadBalancerStateBuilder_.getMessage(); } } /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ public Builder setApplicationLoadBalancerState(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState value) { if (applicationLoadBalancerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } applicationLoadBalancerState_ = value; onChanged(); } else { applicationLoadBalancerStateBuilder_.setMessage(value); } return this; } /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ public Builder setApplicationLoadBalancerState( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.Builder builderForValue) { if (applicationLoadBalancerStateBuilder_ == null) { applicationLoadBalancerState_ = builderForValue.build(); onChanged(); } else { applicationLoadBalancerStateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ public Builder mergeApplicationLoadBalancerState(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState value) { if (applicationLoadBalancerStateBuilder_ == null) { if (applicationLoadBalancerState_ != null) { applicationLoadBalancerState_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.newBuilder(applicationLoadBalancerState_).mergeFrom(value).buildPartial(); } else { applicationLoadBalancerState_ = value; } onChanged(); } else { applicationLoadBalancerStateBuilder_.mergeFrom(value); } return this; } /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ public Builder clearApplicationLoadBalancerState() { if (applicationLoadBalancerStateBuilder_ == null) { applicationLoadBalancerState_ = null; onChanged(); } else { applicationLoadBalancerState_ = null; applicationLoadBalancerStateBuilder_ = null; } return this; } /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.Builder getApplicationLoadBalancerStateBuilder() { onChanged(); return getApplicationLoadBalancerStateFieldBuilder().getBuilder(); } /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerStateOrBuilder getApplicationLoadBalancerStateOrBuilder() { if (applicationLoadBalancerStateBuilder_ != null) { return applicationLoadBalancerStateBuilder_.getMessageOrBuilder(); } else { return applicationLoadBalancerState_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.getDefaultInstance() : applicationLoadBalancerState_; } } /** *
       * Status of the Application Load Balancer target group attributed to the instance group.
       * Returned if there is a working load balancer that the target group is connected to.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState application_load_balancer_state = 21; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerStateOrBuilder> getApplicationLoadBalancerStateFieldBuilder() { if (applicationLoadBalancerStateBuilder_ == null) { applicationLoadBalancerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerStateOrBuilder>( getApplicationLoadBalancerState(), getParentForChildren(), isClean()); applicationLoadBalancerState_ = null; } return applicationLoadBalancerStateBuilder_; } @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.InstanceGroup) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.InstanceGroup) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InstanceGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InstanceGroup(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.InstanceGroupOuterClass.InstanceGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApplicationLoadBalancerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the Application Load Balancer target group attributed to the instance group.
     * 
* * string target_group_id = 1; * @return The targetGroupId. */ java.lang.String getTargetGroupId(); /** *
     * ID of the Application Load Balancer target group attributed to the instance group.
     * 
* * string target_group_id = 1; * @return The bytes for targetGroupId. */ com.google.protobuf.ByteString getTargetGroupIdBytes(); /** *
     * Status message of the target group.
     * 
* * string status_message = 2; * @return The statusMessage. */ java.lang.String getStatusMessage(); /** *
     * Status message of the target group.
     * 
* * string status_message = 2; * @return The bytes for statusMessage. */ com.google.protobuf.ByteString getStatusMessageBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState} */ public static final class ApplicationLoadBalancerState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState) ApplicationLoadBalancerStateOrBuilder { private static final long serialVersionUID = 0L; // Use ApplicationLoadBalancerState.newBuilder() to construct. private ApplicationLoadBalancerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApplicationLoadBalancerState() { targetGroupId_ = ""; statusMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ApplicationLoadBalancerState(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApplicationLoadBalancerState( 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(); targetGroupId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); statusMessage_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.Builder.class); } public static final int TARGET_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object targetGroupId_; /** *
     * ID of the Application Load Balancer target group attributed to the instance group.
     * 
* * string target_group_id = 1; * @return The targetGroupId. */ @java.lang.Override public java.lang.String getTargetGroupId() { java.lang.Object ref = targetGroupId_; 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(); targetGroupId_ = s; return s; } } /** *
     * ID of the Application Load Balancer target group attributed to the instance group.
     * 
* * string target_group_id = 1; * @return The bytes for targetGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getTargetGroupIdBytes() { java.lang.Object ref = targetGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object statusMessage_; /** *
     * Status message of the target group.
     * 
* * string status_message = 2; * @return The statusMessage. */ @java.lang.Override public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; 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(); statusMessage_ = s; return s; } } /** *
     * Status message of the target group.
     * 
* * string status_message = 2; * @return The bytes for statusMessage. */ @java.lang.Override public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statusMessage_ = 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(targetGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, statusMessage_); } 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(targetGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, statusMessage_); } 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.InstanceGroupOuterClass.ApplicationLoadBalancerState)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState) obj; if (!getTargetGroupId() .equals(other.getTargetGroupId())) return false; if (!getStatusMessage() .equals(other.getStatusMessage())) 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) + TARGET_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getTargetGroupId().hashCode(); hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.InstanceGroupOuterClass.ApplicationLoadBalancerState 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.ApplicationLoadBalancerState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.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(); targetGroupId_ = ""; statusMessage_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState(this); result.targetGroupId_ = targetGroupId_; result.statusMessage_ = statusMessage_; 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.InstanceGroupOuterClass.ApplicationLoadBalancerState) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState.getDefaultInstance()) return this; if (!other.getTargetGroupId().isEmpty()) { targetGroupId_ = other.targetGroupId_; onChanged(); } if (!other.getStatusMessage().isEmpty()) { statusMessage_ = other.statusMessage_; 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.InstanceGroupOuterClass.ApplicationLoadBalancerState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object targetGroupId_ = ""; /** *
       * ID of the Application Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @return The targetGroupId. */ public java.lang.String getTargetGroupId() { java.lang.Object ref = targetGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the Application Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @return The bytes for targetGroupId. */ public com.google.protobuf.ByteString getTargetGroupIdBytes() { java.lang.Object ref = targetGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the Application Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @param value The targetGroupId to set. * @return This builder for chaining. */ public Builder setTargetGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } targetGroupId_ = value; onChanged(); return this; } /** *
       * ID of the Application Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @return This builder for chaining. */ public Builder clearTargetGroupId() { targetGroupId_ = getDefaultInstance().getTargetGroupId(); onChanged(); return this; } /** *
       * ID of the Application Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @param value The bytes for targetGroupId to set. * @return This builder for chaining. */ public Builder setTargetGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetGroupId_ = value; onChanged(); return this; } private java.lang.Object statusMessage_ = ""; /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statusMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @param value The statusMessage to set. * @return This builder for chaining. */ public Builder setStatusMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } statusMessage_ = value; onChanged(); return this; } /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @return This builder for chaining. */ public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ public Builder setStatusMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = 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.ApplicationLoadBalancerState) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerState) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApplicationLoadBalancerState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplicationLoadBalancerState(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.InstanceGroupOuterClass.ApplicationLoadBalancerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VariableOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.Variable) com.google.protobuf.MessageOrBuilder { /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @return The key. */ java.lang.String getKey(); /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @return The value. */ java.lang.String getValue(); /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.Variable} */ public static final class Variable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.Variable) VariableOrBuilder { private static final long serialVersionUID = 0L; // Use Variable.newBuilder() to construct. private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Variable() { key_ = ""; value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Variable(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Variable( 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(); key_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); value_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_Variable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_Variable_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = 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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } 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(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } 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.InstanceGroupOuterClass.Variable)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable) obj; if (!getKey() .equals(other.getKey())) return false; if (!getValue() .equals(other.getValue())) 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable 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.InstanceGroupOuterClass.Variable 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.Variable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.Variable) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_Variable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_Variable_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.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(); key_ = ""; value_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_Variable_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable(this); result.key_ = key_; result.value_ = value_; 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.InstanceGroupOuterClass.Variable) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; 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.InstanceGroupOuterClass.Variable parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object key_ = ""; /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9._-]*", (.yandex.cloud.length) = "1-128"]; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * string value = 2 [(.yandex.cloud.length) = "<=128"]; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = 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.Variable) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.Variable) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Variable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Variable(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.InstanceGroupOuterClass.Variable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoadBalancerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.LoadBalancerState) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the Network Load Balancer target group attributed to the instance group.
     * 
* * string target_group_id = 1; * @return The targetGroupId. */ java.lang.String getTargetGroupId(); /** *
     * ID of the Network Load Balancer target group attributed to the instance group.
     * 
* * string target_group_id = 1; * @return The bytes for targetGroupId. */ com.google.protobuf.ByteString getTargetGroupIdBytes(); /** *
     * Status message of the target group.
     * 
* * string status_message = 2; * @return The statusMessage. */ java.lang.String getStatusMessage(); /** *
     * Status message of the target group.
     * 
* * string status_message = 2; * @return The bytes for statusMessage. */ com.google.protobuf.ByteString getStatusMessageBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.LoadBalancerState} */ public static final class LoadBalancerState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.LoadBalancerState) LoadBalancerStateOrBuilder { private static final long serialVersionUID = 0L; // Use LoadBalancerState.newBuilder() to construct. private LoadBalancerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoadBalancerState() { targetGroupId_ = ""; statusMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LoadBalancerState(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LoadBalancerState( 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(); targetGroupId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); statusMessage_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.Builder.class); } public static final int TARGET_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object targetGroupId_; /** *
     * ID of the Network Load Balancer target group attributed to the instance group.
     * 
* * string target_group_id = 1; * @return The targetGroupId. */ @java.lang.Override public java.lang.String getTargetGroupId() { java.lang.Object ref = targetGroupId_; 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(); targetGroupId_ = s; return s; } } /** *
     * ID of the Network Load Balancer target group attributed to the instance group.
     * 
* * string target_group_id = 1; * @return The bytes for targetGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getTargetGroupIdBytes() { java.lang.Object ref = targetGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object statusMessage_; /** *
     * Status message of the target group.
     * 
* * string status_message = 2; * @return The statusMessage. */ @java.lang.Override public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; 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(); statusMessage_ = s; return s; } } /** *
     * Status message of the target group.
     * 
* * string status_message = 2; * @return The bytes for statusMessage. */ @java.lang.Override public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statusMessage_ = 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(targetGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, statusMessage_); } 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(targetGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, statusMessage_); } 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.InstanceGroupOuterClass.LoadBalancerState)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState) obj; if (!getTargetGroupId() .equals(other.getTargetGroupId())) return false; if (!getStatusMessage() .equals(other.getStatusMessage())) 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) + TARGET_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getTargetGroupId().hashCode(); hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState 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.InstanceGroupOuterClass.LoadBalancerState 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.LoadBalancerState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.LoadBalancerState) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.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(); targetGroupId_ = ""; statusMessage_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState(this); result.targetGroupId_ = targetGroupId_; result.statusMessage_ = statusMessage_; 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.InstanceGroupOuterClass.LoadBalancerState) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState.getDefaultInstance()) return this; if (!other.getTargetGroupId().isEmpty()) { targetGroupId_ = other.targetGroupId_; onChanged(); } if (!other.getStatusMessage().isEmpty()) { statusMessage_ = other.statusMessage_; 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.InstanceGroupOuterClass.LoadBalancerState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object targetGroupId_ = ""; /** *
       * ID of the Network Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @return The targetGroupId. */ public java.lang.String getTargetGroupId() { java.lang.Object ref = targetGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the Network Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @return The bytes for targetGroupId. */ public com.google.protobuf.ByteString getTargetGroupIdBytes() { java.lang.Object ref = targetGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the Network Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @param value The targetGroupId to set. * @return This builder for chaining. */ public Builder setTargetGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } targetGroupId_ = value; onChanged(); return this; } /** *
       * ID of the Network Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @return This builder for chaining. */ public Builder clearTargetGroupId() { targetGroupId_ = getDefaultInstance().getTargetGroupId(); onChanged(); return this; } /** *
       * ID of the Network Load Balancer target group attributed to the instance group.
       * 
* * string target_group_id = 1; * @param value The bytes for targetGroupId to set. * @return This builder for chaining. */ public Builder setTargetGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetGroupId_ = value; onChanged(); return this; } private java.lang.Object statusMessage_ = ""; /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statusMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @param value The statusMessage to set. * @return This builder for chaining. */ public Builder setStatusMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } statusMessage_ = value; onChanged(); return this; } /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @return This builder for chaining. */ public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** *
       * Status message of the target group.
       * 
* * string status_message = 2; * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ public Builder setStatusMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = 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.LoadBalancerState) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.LoadBalancerState) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoadBalancerState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LoadBalancerState(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.InstanceGroupOuterClass.LoadBalancerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ManagedInstancesStateOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState) com.google.protobuf.MessageOrBuilder { /** *
     * Target number of instances for this instance group.
     * 
* * int64 target_size = 1; * @return The targetSize. */ long getTargetSize(); /** *
     * The number of running instances that match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_ACTUAL].
     * 
* * int64 running_actual_count = 4; * @return The runningActualCount. */ long getRunningActualCount(); /** *
     * The number of running instances that does not match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_OUTDATED].
     * 
* * int64 running_outdated_count = 5; * @return The runningOutdatedCount. */ long getRunningOutdatedCount(); /** *
     * The number of instances in flight (for example, updating, starting, deleting). For more information, see [ManagedInstance.Status].
     * 
* * int64 processing_count = 6; * @return The processingCount. */ long getProcessingCount(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ManagedInstancesState} */ public static final class ManagedInstancesState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState) ManagedInstancesStateOrBuilder { private static final long serialVersionUID = 0L; // Use ManagedInstancesState.newBuilder() to construct. private ManagedInstancesState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ManagedInstancesState() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ManagedInstancesState(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ManagedInstancesState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { targetSize_ = input.readInt64(); break; } case 32: { runningActualCount_ = input.readInt64(); break; } case 40: { runningOutdatedCount_ = input.readInt64(); break; } case 48: { processingCount_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Builder.class); } public interface StatusesOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState.Statuses) com.google.protobuf.MessageOrBuilder { /** *
       * Instance is being created.
       * 
* * int64 creating = 1; * @return The creating. */ long getCreating(); /** *
       * Instance is being started.
       * 
* * int64 starting = 2; * @return The starting. */ long getStarting(); /** *
       * Instance is being opened to receive traffic.
       * 
* * int64 opening = 3; * @return The opening. */ long getOpening(); /** *
       * Instance is being warmed.
       * 
* * int64 warming = 4; * @return The warming. */ long getWarming(); /** *
       * Instance is running normally.
       * 
* * int64 running = 5; * @return The running. */ long getRunning(); /** *
       * Instance is being closed to traffic.
       * 
* * int64 closing = 6; * @return The closing. */ long getClosing(); /** *
       * Instance is being stopped.
       * 
* * int64 stopping = 7; * @return The stopping. */ long getStopping(); /** *
       * Instance is being updated.
       * 
* * int64 updating = 8; * @return The updating. */ long getUpdating(); /** *
       * Instance is being deleted.
       * 
* * int64 deleting = 9; * @return The deleting. */ long getDeleting(); /** *
       * Instance failed and needs to be recreated.
       * 
* * int64 failed = 10; * @return The failed. */ long getFailed(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ManagedInstancesState.Statuses} */ public static final class Statuses extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState.Statuses) StatusesOrBuilder { private static final long serialVersionUID = 0L; // Use Statuses.newBuilder() to construct. private Statuses(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Statuses() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Statuses(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Statuses( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { creating_ = input.readInt64(); break; } case 16: { starting_ = input.readInt64(); break; } case 24: { opening_ = input.readInt64(); break; } case 32: { warming_ = input.readInt64(); break; } case 40: { running_ = input.readInt64(); break; } case 48: { closing_ = input.readInt64(); break; } case 56: { stopping_ = input.readInt64(); break; } case 64: { updating_ = input.readInt64(); break; } case 72: { deleting_ = input.readInt64(); break; } case 80: { failed_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses.Builder.class); } public static final int CREATING_FIELD_NUMBER = 1; private long creating_; /** *
       * Instance is being created.
       * 
* * int64 creating = 1; * @return The creating. */ @java.lang.Override public long getCreating() { return creating_; } public static final int STARTING_FIELD_NUMBER = 2; private long starting_; /** *
       * Instance is being started.
       * 
* * int64 starting = 2; * @return The starting. */ @java.lang.Override public long getStarting() { return starting_; } public static final int OPENING_FIELD_NUMBER = 3; private long opening_; /** *
       * Instance is being opened to receive traffic.
       * 
* * int64 opening = 3; * @return The opening. */ @java.lang.Override public long getOpening() { return opening_; } public static final int WARMING_FIELD_NUMBER = 4; private long warming_; /** *
       * Instance is being warmed.
       * 
* * int64 warming = 4; * @return The warming. */ @java.lang.Override public long getWarming() { return warming_; } public static final int RUNNING_FIELD_NUMBER = 5; private long running_; /** *
       * Instance is running normally.
       * 
* * int64 running = 5; * @return The running. */ @java.lang.Override public long getRunning() { return running_; } public static final int CLOSING_FIELD_NUMBER = 6; private long closing_; /** *
       * Instance is being closed to traffic.
       * 
* * int64 closing = 6; * @return The closing. */ @java.lang.Override public long getClosing() { return closing_; } public static final int STOPPING_FIELD_NUMBER = 7; private long stopping_; /** *
       * Instance is being stopped.
       * 
* * int64 stopping = 7; * @return The stopping. */ @java.lang.Override public long getStopping() { return stopping_; } public static final int UPDATING_FIELD_NUMBER = 8; private long updating_; /** *
       * Instance is being updated.
       * 
* * int64 updating = 8; * @return The updating. */ @java.lang.Override public long getUpdating() { return updating_; } public static final int DELETING_FIELD_NUMBER = 9; private long deleting_; /** *
       * Instance is being deleted.
       * 
* * int64 deleting = 9; * @return The deleting. */ @java.lang.Override public long getDeleting() { return deleting_; } public static final int FAILED_FIELD_NUMBER = 10; private long failed_; /** *
       * Instance failed and needs to be recreated.
       * 
* * int64 failed = 10; * @return The failed. */ @java.lang.Override public long getFailed() { return failed_; } 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 (creating_ != 0L) { output.writeInt64(1, creating_); } if (starting_ != 0L) { output.writeInt64(2, starting_); } if (opening_ != 0L) { output.writeInt64(3, opening_); } if (warming_ != 0L) { output.writeInt64(4, warming_); } if (running_ != 0L) { output.writeInt64(5, running_); } if (closing_ != 0L) { output.writeInt64(6, closing_); } if (stopping_ != 0L) { output.writeInt64(7, stopping_); } if (updating_ != 0L) { output.writeInt64(8, updating_); } if (deleting_ != 0L) { output.writeInt64(9, deleting_); } if (failed_ != 0L) { output.writeInt64(10, failed_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (creating_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, creating_); } if (starting_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, starting_); } if (opening_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, opening_); } if (warming_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, warming_); } if (running_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, running_); } if (closing_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, closing_); } if (stopping_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, stopping_); } if (updating_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, updating_); } if (deleting_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, deleting_); } if (failed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, failed_); } 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses) obj; if (getCreating() != other.getCreating()) return false; if (getStarting() != other.getStarting()) return false; if (getOpening() != other.getOpening()) return false; if (getWarming() != other.getWarming()) return false; if (getRunning() != other.getRunning()) return false; if (getClosing() != other.getClosing()) return false; if (getStopping() != other.getStopping()) return false; if (getUpdating() != other.getUpdating()) return false; if (getDeleting() != other.getDeleting()) return false; if (getFailed() != other.getFailed()) 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) + CREATING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCreating()); hash = (37 * hash) + STARTING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStarting()); hash = (37 * hash) + OPENING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOpening()); hash = (37 * hash) + WARMING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWarming()); hash = (37 * hash) + RUNNING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRunning()); hash = (37 * hash) + CLOSING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getClosing()); hash = (37 * hash) + STOPPING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStopping()); hash = (37 * hash) + UPDATING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUpdating()); hash = (37 * hash) + DELETING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDeleting()); hash = (37 * hash) + FAILED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFailed()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses 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.ManagedInstancesState.Statuses} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState.Statuses) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.StatusesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses.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(); creating_ = 0L; starting_ = 0L; opening_ = 0L; warming_ = 0L; running_ = 0L; closing_ = 0L; stopping_ = 0L; updating_ = 0L; deleting_ = 0L; failed_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses(this); result.creating_ = creating_; result.starting_ = starting_; result.opening_ = opening_; result.warming_ = warming_; result.running_ = running_; result.closing_ = closing_; result.stopping_ = stopping_; result.updating_ = updating_; result.deleting_ = deleting_; result.failed_ = failed_; 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses.getDefaultInstance()) return this; if (other.getCreating() != 0L) { setCreating(other.getCreating()); } if (other.getStarting() != 0L) { setStarting(other.getStarting()); } if (other.getOpening() != 0L) { setOpening(other.getOpening()); } if (other.getWarming() != 0L) { setWarming(other.getWarming()); } if (other.getRunning() != 0L) { setRunning(other.getRunning()); } if (other.getClosing() != 0L) { setClosing(other.getClosing()); } if (other.getStopping() != 0L) { setStopping(other.getStopping()); } if (other.getUpdating() != 0L) { setUpdating(other.getUpdating()); } if (other.getDeleting() != 0L) { setDeleting(other.getDeleting()); } if (other.getFailed() != 0L) { setFailed(other.getFailed()); } 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.InstanceGroupOuterClass.ManagedInstancesState.Statuses parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long creating_ ; /** *
         * Instance is being created.
         * 
* * int64 creating = 1; * @return The creating. */ @java.lang.Override public long getCreating() { return creating_; } /** *
         * Instance is being created.
         * 
* * int64 creating = 1; * @param value The creating to set. * @return This builder for chaining. */ public Builder setCreating(long value) { creating_ = value; onChanged(); return this; } /** *
         * Instance is being created.
         * 
* * int64 creating = 1; * @return This builder for chaining. */ public Builder clearCreating() { creating_ = 0L; onChanged(); return this; } private long starting_ ; /** *
         * Instance is being started.
         * 
* * int64 starting = 2; * @return The starting. */ @java.lang.Override public long getStarting() { return starting_; } /** *
         * Instance is being started.
         * 
* * int64 starting = 2; * @param value The starting to set. * @return This builder for chaining. */ public Builder setStarting(long value) { starting_ = value; onChanged(); return this; } /** *
         * Instance is being started.
         * 
* * int64 starting = 2; * @return This builder for chaining. */ public Builder clearStarting() { starting_ = 0L; onChanged(); return this; } private long opening_ ; /** *
         * Instance is being opened to receive traffic.
         * 
* * int64 opening = 3; * @return The opening. */ @java.lang.Override public long getOpening() { return opening_; } /** *
         * Instance is being opened to receive traffic.
         * 
* * int64 opening = 3; * @param value The opening to set. * @return This builder for chaining. */ public Builder setOpening(long value) { opening_ = value; onChanged(); return this; } /** *
         * Instance is being opened to receive traffic.
         * 
* * int64 opening = 3; * @return This builder for chaining. */ public Builder clearOpening() { opening_ = 0L; onChanged(); return this; } private long warming_ ; /** *
         * Instance is being warmed.
         * 
* * int64 warming = 4; * @return The warming. */ @java.lang.Override public long getWarming() { return warming_; } /** *
         * Instance is being warmed.
         * 
* * int64 warming = 4; * @param value The warming to set. * @return This builder for chaining. */ public Builder setWarming(long value) { warming_ = value; onChanged(); return this; } /** *
         * Instance is being warmed.
         * 
* * int64 warming = 4; * @return This builder for chaining. */ public Builder clearWarming() { warming_ = 0L; onChanged(); return this; } private long running_ ; /** *
         * Instance is running normally.
         * 
* * int64 running = 5; * @return The running. */ @java.lang.Override public long getRunning() { return running_; } /** *
         * Instance is running normally.
         * 
* * int64 running = 5; * @param value The running to set. * @return This builder for chaining. */ public Builder setRunning(long value) { running_ = value; onChanged(); return this; } /** *
         * Instance is running normally.
         * 
* * int64 running = 5; * @return This builder for chaining. */ public Builder clearRunning() { running_ = 0L; onChanged(); return this; } private long closing_ ; /** *
         * Instance is being closed to traffic.
         * 
* * int64 closing = 6; * @return The closing. */ @java.lang.Override public long getClosing() { return closing_; } /** *
         * Instance is being closed to traffic.
         * 
* * int64 closing = 6; * @param value The closing to set. * @return This builder for chaining. */ public Builder setClosing(long value) { closing_ = value; onChanged(); return this; } /** *
         * Instance is being closed to traffic.
         * 
* * int64 closing = 6; * @return This builder for chaining. */ public Builder clearClosing() { closing_ = 0L; onChanged(); return this; } private long stopping_ ; /** *
         * Instance is being stopped.
         * 
* * int64 stopping = 7; * @return The stopping. */ @java.lang.Override public long getStopping() { return stopping_; } /** *
         * Instance is being stopped.
         * 
* * int64 stopping = 7; * @param value The stopping to set. * @return This builder for chaining. */ public Builder setStopping(long value) { stopping_ = value; onChanged(); return this; } /** *
         * Instance is being stopped.
         * 
* * int64 stopping = 7; * @return This builder for chaining. */ public Builder clearStopping() { stopping_ = 0L; onChanged(); return this; } private long updating_ ; /** *
         * Instance is being updated.
         * 
* * int64 updating = 8; * @return The updating. */ @java.lang.Override public long getUpdating() { return updating_; } /** *
         * Instance is being updated.
         * 
* * int64 updating = 8; * @param value The updating to set. * @return This builder for chaining. */ public Builder setUpdating(long value) { updating_ = value; onChanged(); return this; } /** *
         * Instance is being updated.
         * 
* * int64 updating = 8; * @return This builder for chaining. */ public Builder clearUpdating() { updating_ = 0L; onChanged(); return this; } private long deleting_ ; /** *
         * Instance is being deleted.
         * 
* * int64 deleting = 9; * @return The deleting. */ @java.lang.Override public long getDeleting() { return deleting_; } /** *
         * Instance is being deleted.
         * 
* * int64 deleting = 9; * @param value The deleting to set. * @return This builder for chaining. */ public Builder setDeleting(long value) { deleting_ = value; onChanged(); return this; } /** *
         * Instance is being deleted.
         * 
* * int64 deleting = 9; * @return This builder for chaining. */ public Builder clearDeleting() { deleting_ = 0L; onChanged(); return this; } private long failed_ ; /** *
         * Instance failed and needs to be recreated.
         * 
* * int64 failed = 10; * @return The failed. */ @java.lang.Override public long getFailed() { return failed_; } /** *
         * Instance failed and needs to be recreated.
         * 
* * int64 failed = 10; * @param value The failed to set. * @return This builder for chaining. */ public Builder setFailed(long value) { failed_ = value; onChanged(); return this; } /** *
         * Instance failed and needs to be recreated.
         * 
* * int64 failed = 10; * @return This builder for chaining. */ public Builder clearFailed() { failed_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState.Statuses) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState.Statuses) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Statuses getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Statuses parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Statuses(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.InstanceGroupOuterClass.ManagedInstancesState.Statuses getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int TARGET_SIZE_FIELD_NUMBER = 1; private long targetSize_; /** *
     * Target number of instances for this instance group.
     * 
* * int64 target_size = 1; * @return The targetSize. */ @java.lang.Override public long getTargetSize() { return targetSize_; } public static final int RUNNING_ACTUAL_COUNT_FIELD_NUMBER = 4; private long runningActualCount_; /** *
     * The number of running instances that match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_ACTUAL].
     * 
* * int64 running_actual_count = 4; * @return The runningActualCount. */ @java.lang.Override public long getRunningActualCount() { return runningActualCount_; } public static final int RUNNING_OUTDATED_COUNT_FIELD_NUMBER = 5; private long runningOutdatedCount_; /** *
     * The number of running instances that does not match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_OUTDATED].
     * 
* * int64 running_outdated_count = 5; * @return The runningOutdatedCount. */ @java.lang.Override public long getRunningOutdatedCount() { return runningOutdatedCount_; } public static final int PROCESSING_COUNT_FIELD_NUMBER = 6; private long processingCount_; /** *
     * The number of instances in flight (for example, updating, starting, deleting). For more information, see [ManagedInstance.Status].
     * 
* * int64 processing_count = 6; * @return The processingCount. */ @java.lang.Override public long getProcessingCount() { return processingCount_; } 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 (targetSize_ != 0L) { output.writeInt64(1, targetSize_); } if (runningActualCount_ != 0L) { output.writeInt64(4, runningActualCount_); } if (runningOutdatedCount_ != 0L) { output.writeInt64(5, runningOutdatedCount_); } if (processingCount_ != 0L) { output.writeInt64(6, processingCount_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (targetSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, targetSize_); } if (runningActualCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, runningActualCount_); } if (runningOutdatedCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, runningOutdatedCount_); } if (processingCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, processingCount_); } 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.InstanceGroupOuterClass.ManagedInstancesState)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState) obj; if (getTargetSize() != other.getTargetSize()) return false; if (getRunningActualCount() != other.getRunningActualCount()) return false; if (getRunningOutdatedCount() != other.getRunningOutdatedCount()) return false; if (getProcessingCount() != other.getProcessingCount()) 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) + TARGET_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTargetSize()); hash = (37 * hash) + RUNNING_ACTUAL_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRunningActualCount()); hash = (37 * hash) + RUNNING_OUTDATED_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRunningOutdatedCount()); hash = (37 * hash) + PROCESSING_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProcessingCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState 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.InstanceGroupOuterClass.ManagedInstancesState 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.ManagedInstancesState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.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(); targetSize_ = 0L; runningActualCount_ = 0L; runningOutdatedCount_ = 0L; processingCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState(this); result.targetSize_ = targetSize_; result.runningActualCount_ = runningActualCount_; result.runningOutdatedCount_ = runningOutdatedCount_; result.processingCount_ = processingCount_; 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.InstanceGroupOuterClass.ManagedInstancesState) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState.getDefaultInstance()) return this; if (other.getTargetSize() != 0L) { setTargetSize(other.getTargetSize()); } if (other.getRunningActualCount() != 0L) { setRunningActualCount(other.getRunningActualCount()); } if (other.getRunningOutdatedCount() != 0L) { setRunningOutdatedCount(other.getRunningOutdatedCount()); } if (other.getProcessingCount() != 0L) { setProcessingCount(other.getProcessingCount()); } 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.InstanceGroupOuterClass.ManagedInstancesState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long targetSize_ ; /** *
       * Target number of instances for this instance group.
       * 
* * int64 target_size = 1; * @return The targetSize. */ @java.lang.Override public long getTargetSize() { return targetSize_; } /** *
       * Target number of instances for this instance group.
       * 
* * int64 target_size = 1; * @param value The targetSize to set. * @return This builder for chaining. */ public Builder setTargetSize(long value) { targetSize_ = value; onChanged(); return this; } /** *
       * Target number of instances for this instance group.
       * 
* * int64 target_size = 1; * @return This builder for chaining. */ public Builder clearTargetSize() { targetSize_ = 0L; onChanged(); return this; } private long runningActualCount_ ; /** *
       * The number of running instances that match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_ACTUAL].
       * 
* * int64 running_actual_count = 4; * @return The runningActualCount. */ @java.lang.Override public long getRunningActualCount() { return runningActualCount_; } /** *
       * The number of running instances that match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_ACTUAL].
       * 
* * int64 running_actual_count = 4; * @param value The runningActualCount to set. * @return This builder for chaining. */ public Builder setRunningActualCount(long value) { runningActualCount_ = value; onChanged(); return this; } /** *
       * The number of running instances that match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_ACTUAL].
       * 
* * int64 running_actual_count = 4; * @return This builder for chaining. */ public Builder clearRunningActualCount() { runningActualCount_ = 0L; onChanged(); return this; } private long runningOutdatedCount_ ; /** *
       * The number of running instances that does not match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_OUTDATED].
       * 
* * int64 running_outdated_count = 5; * @return The runningOutdatedCount. */ @java.lang.Override public long getRunningOutdatedCount() { return runningOutdatedCount_; } /** *
       * The number of running instances that does not match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_OUTDATED].
       * 
* * int64 running_outdated_count = 5; * @param value The runningOutdatedCount to set. * @return This builder for chaining. */ public Builder setRunningOutdatedCount(long value) { runningOutdatedCount_ = value; onChanged(); return this; } /** *
       * The number of running instances that does not match the current instance template. For more information, see [ManagedInstance.Status.RUNNING_OUTDATED].
       * 
* * int64 running_outdated_count = 5; * @return This builder for chaining. */ public Builder clearRunningOutdatedCount() { runningOutdatedCount_ = 0L; onChanged(); return this; } private long processingCount_ ; /** *
       * The number of instances in flight (for example, updating, starting, deleting). For more information, see [ManagedInstance.Status].
       * 
* * int64 processing_count = 6; * @return The processingCount. */ @java.lang.Override public long getProcessingCount() { return processingCount_; } /** *
       * The number of instances in flight (for example, updating, starting, deleting). For more information, see [ManagedInstance.Status].
       * 
* * int64 processing_count = 6; * @param value The processingCount to set. * @return This builder for chaining. */ public Builder setProcessingCount(long value) { processingCount_ = value; onChanged(); return this; } /** *
       * The number of instances in flight (for example, updating, starting, deleting). For more information, see [ManagedInstance.Status].
       * 
* * int64 processing_count = 6; * @return This builder for chaining. */ public Builder clearProcessingCount() { processingCount_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ManagedInstancesState) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstancesState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ManagedInstancesState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ManagedInstancesState(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.InstanceGroupOuterClass.ManagedInstancesState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScalePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ScalePolicy) com.google.protobuf.MessageOrBuilder { /** *
     * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; * @return Whether the fixedScale field is set. */ boolean hasFixedScale(); /** *
     * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; * @return The fixedScale. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale getFixedScale(); /** *
     * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScaleOrBuilder getFixedScaleOrBuilder(); /** *
     * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; * @return Whether the autoScale field is set. */ boolean hasAutoScale(); /** *
     * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; * @return The autoScale. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale getAutoScale(); /** *
     * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getAutoScaleOrBuilder(); /** *
     * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; * @return Whether the testAutoScale field is set. */ boolean hasTestAutoScale(); /** *
     * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; * @return The testAutoScale. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale getTestAutoScale(); /** *
     * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getTestAutoScaleOrBuilder(); public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.ScaleTypeCase getScaleTypeCase(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ScalePolicy} */ public static final class ScalePolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy) ScalePolicyOrBuilder { private static final long serialVersionUID = 0L; // Use ScalePolicy.newBuilder() to construct. private ScalePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScalePolicy() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalePolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScalePolicy( 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: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.Builder subBuilder = null; if (scaleTypeCase_ == 1) { subBuilder = ((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_).toBuilder(); } scaleType_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_); scaleType_ = subBuilder.buildPartial(); } scaleTypeCase_ = 1; break; } case 18: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder subBuilder = null; if (scaleTypeCase_ == 2) { subBuilder = ((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_).toBuilder(); } scaleType_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_); scaleType_ = subBuilder.buildPartial(); } scaleTypeCase_ = 2; break; } case 26: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder subBuilder = null; if (testAutoScale_ != null) { subBuilder = testAutoScale_.toBuilder(); } testAutoScale_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(testAutoScale_); testAutoScale_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder.class); } public interface AutoScaleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale) com.google.protobuf.MessageOrBuilder { /** *
       * Lower limit for instance count in each zone.
       * 
* * int64 min_zone_size = 1 [(.yandex.cloud.value) = "0-100"]; * @return The minZoneSize. */ long getMinZoneSize(); /** *
       * Upper limit for total instance count (across all zones).
       * 0 means maximum limit = 100.
       * 
* * int64 max_size = 2 [(.yandex.cloud.value) = "0-100"]; * @return The maxSize. */ long getMaxSize(); /** *
       * Time in seconds allotted for averaging metrics.
       * 1 minute by default.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; * @return Whether the measurementDuration field is set. */ boolean hasMeasurementDuration(); /** *
       * Time in seconds allotted for averaging metrics.
       * 1 minute by default.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; * @return The measurementDuration. */ com.google.protobuf.Duration getMeasurementDuration(); /** *
       * Time in seconds allotted for averaging metrics.
       * 1 minute by default.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ com.google.protobuf.DurationOrBuilder getMeasurementDurationOrBuilder(); /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return Whether the warmupDuration field is set. */ boolean hasWarmupDuration(); /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return The warmupDuration. */ com.google.protobuf.Duration getWarmupDuration(); /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ com.google.protobuf.DurationOrBuilder getWarmupDurationOrBuilder(); /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return Whether the stabilizationDuration field is set. */ boolean hasStabilizationDuration(); /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return The stabilizationDuration. */ com.google.protobuf.Duration getStabilizationDuration(); /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ com.google.protobuf.DurationOrBuilder getStabilizationDurationOrBuilder(); /** *
       * Target group size.
       * 
* * int64 initial_size = 6 [(.yandex.cloud.value) = ">=1"]; * @return The initialSize. */ long getInitialSize(); /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
       * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; * @return Whether the cpuUtilizationRule field is set. */ boolean hasCpuUtilizationRule(); /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
       * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; * @return The cpuUtilizationRule. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule getCpuUtilizationRule(); /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
       * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRuleOrBuilder getCpuUtilizationRuleOrBuilder(); /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ java.util.List getCustomRulesList(); /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule getCustomRules(int index); /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ int getCustomRulesCount(); /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ java.util.List getCustomRulesOrBuilderList(); /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRuleOrBuilder getCustomRulesOrBuilder( int index); /** *
       * Autoscaling type.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @return The enum numeric value on the wire for autoScaleType. */ int getAutoScaleTypeValue(); /** *
       * Autoscaling type.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @return The autoScaleType. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType getAutoScaleType(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale} */ public static final class AutoScale extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale) AutoScaleOrBuilder { private static final long serialVersionUID = 0L; // Use AutoScale.newBuilder() to construct. private AutoScale(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AutoScale() { customRules_ = java.util.Collections.emptyList(); autoScaleType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AutoScale(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AutoScale( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { minZoneSize_ = input.readInt64(); break; } case 16: { maxSize_ = input.readInt64(); break; } case 26: { com.google.protobuf.Duration.Builder subBuilder = null; if (measurementDuration_ != null) { subBuilder = measurementDuration_.toBuilder(); } measurementDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(measurementDuration_); measurementDuration_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Duration.Builder subBuilder = null; if (warmupDuration_ != null) { subBuilder = warmupDuration_.toBuilder(); } warmupDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(warmupDuration_); warmupDuration_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Duration.Builder subBuilder = null; if (stabilizationDuration_ != null) { subBuilder = stabilizationDuration_.toBuilder(); } stabilizationDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stabilizationDuration_); stabilizationDuration_ = subBuilder.buildPartial(); } break; } case 48: { initialSize_ = input.readInt64(); break; } case 58: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.Builder subBuilder = null; if (cpuUtilizationRule_ != null) { subBuilder = cpuUtilizationRule_.toBuilder(); } cpuUtilizationRule_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cpuUtilizationRule_); cpuUtilizationRule_ = subBuilder.buildPartial(); } break; } case 66: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { customRules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } customRules_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.parser(), extensionRegistry)); break; } case 72: { int rawValue = input.readEnum(); autoScaleType_ = 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { customRules_ = java.util.Collections.unmodifiableList(customRules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType} */ public enum AutoScaleType implements com.google.protobuf.ProtocolMessageEnum { /** * AUTO_SCALE_TYPE_UNSPECIFIED = 0; */ AUTO_SCALE_TYPE_UNSPECIFIED(0), /** *
         * Scale each zone independently. This is the default.
         * 
* * ZONAL = 1; */ ZONAL(1), /** *
         * Scale group as a whole.
         * 
* * REGIONAL = 2; */ REGIONAL(2), UNRECOGNIZED(-1), ; /** * AUTO_SCALE_TYPE_UNSPECIFIED = 0; */ public static final int AUTO_SCALE_TYPE_UNSPECIFIED_VALUE = 0; /** *
         * Scale each zone independently. This is the default.
         * 
* * ZONAL = 1; */ public static final int ZONAL_VALUE = 1; /** *
         * Scale group as a whole.
         * 
* * REGIONAL = 2; */ public static final int REGIONAL_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AutoScaleType 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 AutoScaleType forNumber(int value) { switch (value) { case 0: return AUTO_SCALE_TYPE_UNSPECIFIED; case 1: return ZONAL; case 2: return REGIONAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AutoScaleType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AutoScaleType findValueByNumber(int number) { return AutoScaleType.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.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDescriptor().getEnumTypes().get(0); } private static final AutoScaleType[] VALUES = values(); public static AutoScaleType 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 AutoScaleType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType) } public static final int MIN_ZONE_SIZE_FIELD_NUMBER = 1; private long minZoneSize_; /** *
       * Lower limit for instance count in each zone.
       * 
* * int64 min_zone_size = 1 [(.yandex.cloud.value) = "0-100"]; * @return The minZoneSize. */ @java.lang.Override public long getMinZoneSize() { return minZoneSize_; } public static final int MAX_SIZE_FIELD_NUMBER = 2; private long maxSize_; /** *
       * Upper limit for total instance count (across all zones).
       * 0 means maximum limit = 100.
       * 
* * int64 max_size = 2 [(.yandex.cloud.value) = "0-100"]; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } public static final int MEASUREMENT_DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration measurementDuration_; /** *
       * Time in seconds allotted for averaging metrics.
       * 1 minute by default.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; * @return Whether the measurementDuration field is set. */ @java.lang.Override public boolean hasMeasurementDuration() { return measurementDuration_ != null; } /** *
       * Time in seconds allotted for averaging metrics.
       * 1 minute by default.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; * @return The measurementDuration. */ @java.lang.Override public com.google.protobuf.Duration getMeasurementDuration() { return measurementDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : measurementDuration_; } /** *
       * Time in seconds allotted for averaging metrics.
       * 1 minute by default.
       * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMeasurementDurationOrBuilder() { return getMeasurementDuration(); } public static final int WARMUP_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration warmupDuration_; /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return Whether the warmupDuration field is set. */ @java.lang.Override public boolean hasWarmupDuration() { return warmupDuration_ != null; } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return The warmupDuration. */ @java.lang.Override public com.google.protobuf.Duration getWarmupDuration() { return warmupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : warmupDuration_; } /** *
       * The warmup time of the instance in seconds. During this time,
       * traffic is sent to the instance, but instance metrics are not collected.
       * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getWarmupDurationOrBuilder() { return getWarmupDuration(); } public static final int STABILIZATION_DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration stabilizationDuration_; /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return Whether the stabilizationDuration field is set. */ @java.lang.Override public boolean hasStabilizationDuration() { return stabilizationDuration_ != null; } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return The stabilizationDuration. */ @java.lang.Override public com.google.protobuf.Duration getStabilizationDuration() { return stabilizationDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : stabilizationDuration_; } /** *
       * Minimum amount of time in seconds allotted for monitoring before
       * Instance Groups can reduce the number of instances in the group.
       * During this time, the group size doesn't decrease, even if the new metric values
       * indicate that it should.
       * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getStabilizationDurationOrBuilder() { return getStabilizationDuration(); } public static final int INITIAL_SIZE_FIELD_NUMBER = 6; private long initialSize_; /** *
       * Target group size.
       * 
* * int64 initial_size = 6 [(.yandex.cloud.value) = ">=1"]; * @return The initialSize. */ @java.lang.Override public long getInitialSize() { return initialSize_; } public static final int CPU_UTILIZATION_RULE_FIELD_NUMBER = 7; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule cpuUtilizationRule_; /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
       * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; * @return Whether the cpuUtilizationRule field is set. */ @java.lang.Override public boolean hasCpuUtilizationRule() { return cpuUtilizationRule_ != null; } /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
       * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; * @return The cpuUtilizationRule. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule getCpuUtilizationRule() { return cpuUtilizationRule_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.getDefaultInstance() : cpuUtilizationRule_; } /** *
       * Defines an autoscaling rule based on the average CPU utilization of the instance group.
       * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
       * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRuleOrBuilder getCpuUtilizationRuleOrBuilder() { return getCpuUtilizationRule(); } public static final int CUSTOM_RULES_FIELD_NUMBER = 8; private java.util.List customRules_; /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public java.util.List getCustomRulesList() { return customRules_; } /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public java.util.List getCustomRulesOrBuilderList() { return customRules_; } /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public int getCustomRulesCount() { return customRules_.size(); } /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule getCustomRules(int index) { return customRules_.get(index); } /** *
       * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
       * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
       * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRuleOrBuilder getCustomRulesOrBuilder( int index) { return customRules_.get(index); } public static final int AUTO_SCALE_TYPE_FIELD_NUMBER = 9; private int autoScaleType_; /** *
       * Autoscaling type.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @return The enum numeric value on the wire for autoScaleType. */ @java.lang.Override public int getAutoScaleTypeValue() { return autoScaleType_; } /** *
       * Autoscaling type.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @return The autoScaleType. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType getAutoScaleType() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType.valueOf(autoScaleType_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType.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 (minZoneSize_ != 0L) { output.writeInt64(1, minZoneSize_); } if (maxSize_ != 0L) { output.writeInt64(2, maxSize_); } if (measurementDuration_ != null) { output.writeMessage(3, getMeasurementDuration()); } if (warmupDuration_ != null) { output.writeMessage(4, getWarmupDuration()); } if (stabilizationDuration_ != null) { output.writeMessage(5, getStabilizationDuration()); } if (initialSize_ != 0L) { output.writeInt64(6, initialSize_); } if (cpuUtilizationRule_ != null) { output.writeMessage(7, getCpuUtilizationRule()); } for (int i = 0; i < customRules_.size(); i++) { output.writeMessage(8, customRules_.get(i)); } if (autoScaleType_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType.AUTO_SCALE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(9, autoScaleType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (minZoneSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, minZoneSize_); } if (maxSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, maxSize_); } if (measurementDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMeasurementDuration()); } if (warmupDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getWarmupDuration()); } if (stabilizationDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getStabilizationDuration()); } if (initialSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, initialSize_); } if (cpuUtilizationRule_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCpuUtilizationRule()); } for (int i = 0; i < customRules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, customRules_.get(i)); } if (autoScaleType_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType.AUTO_SCALE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, autoScaleType_); } 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.InstanceGroupOuterClass.ScalePolicy.AutoScale)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) obj; if (getMinZoneSize() != other.getMinZoneSize()) return false; if (getMaxSize() != other.getMaxSize()) return false; if (hasMeasurementDuration() != other.hasMeasurementDuration()) return false; if (hasMeasurementDuration()) { if (!getMeasurementDuration() .equals(other.getMeasurementDuration())) return false; } if (hasWarmupDuration() != other.hasWarmupDuration()) return false; if (hasWarmupDuration()) { if (!getWarmupDuration() .equals(other.getWarmupDuration())) return false; } if (hasStabilizationDuration() != other.hasStabilizationDuration()) return false; if (hasStabilizationDuration()) { if (!getStabilizationDuration() .equals(other.getStabilizationDuration())) return false; } if (getInitialSize() != other.getInitialSize()) return false; if (hasCpuUtilizationRule() != other.hasCpuUtilizationRule()) return false; if (hasCpuUtilizationRule()) { if (!getCpuUtilizationRule() .equals(other.getCpuUtilizationRule())) return false; } if (!getCustomRulesList() .equals(other.getCustomRulesList())) return false; if (autoScaleType_ != other.autoScaleType_) 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) + MIN_ZONE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinZoneSize()); hash = (37 * hash) + MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxSize()); if (hasMeasurementDuration()) { hash = (37 * hash) + MEASUREMENT_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMeasurementDuration().hashCode(); } if (hasWarmupDuration()) { hash = (37 * hash) + WARMUP_DURATION_FIELD_NUMBER; hash = (53 * hash) + getWarmupDuration().hashCode(); } if (hasStabilizationDuration()) { hash = (37 * hash) + STABILIZATION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getStabilizationDuration().hashCode(); } hash = (37 * hash) + INITIAL_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getInitialSize()); if (hasCpuUtilizationRule()) { hash = (37 * hash) + CPU_UTILIZATION_RULE_FIELD_NUMBER; hash = (53 * hash) + getCpuUtilizationRule().hashCode(); } if (getCustomRulesCount() > 0) { hash = (37 * hash) + CUSTOM_RULES_FIELD_NUMBER; hash = (53 * hash) + getCustomRulesList().hashCode(); } hash = (37 * hash) + AUTO_SCALE_TYPE_FIELD_NUMBER; hash = (53 * hash) + autoScaleType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.InstanceGroupOuterClass.ScalePolicy.AutoScale 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.ScalePolicy.AutoScale} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCustomRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); minZoneSize_ = 0L; maxSize_ = 0L; if (measurementDurationBuilder_ == null) { measurementDuration_ = null; } else { measurementDuration_ = null; measurementDurationBuilder_ = null; } if (warmupDurationBuilder_ == null) { warmupDuration_ = null; } else { warmupDuration_ = null; warmupDurationBuilder_ = null; } if (stabilizationDurationBuilder_ == null) { stabilizationDuration_ = null; } else { stabilizationDuration_ = null; stabilizationDurationBuilder_ = null; } initialSize_ = 0L; if (cpuUtilizationRuleBuilder_ == null) { cpuUtilizationRule_ = null; } else { cpuUtilizationRule_ = null; cpuUtilizationRuleBuilder_ = null; } if (customRulesBuilder_ == null) { customRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { customRulesBuilder_.clear(); } autoScaleType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale(this); int from_bitField0_ = bitField0_; result.minZoneSize_ = minZoneSize_; result.maxSize_ = maxSize_; if (measurementDurationBuilder_ == null) { result.measurementDuration_ = measurementDuration_; } else { result.measurementDuration_ = measurementDurationBuilder_.build(); } if (warmupDurationBuilder_ == null) { result.warmupDuration_ = warmupDuration_; } else { result.warmupDuration_ = warmupDurationBuilder_.build(); } if (stabilizationDurationBuilder_ == null) { result.stabilizationDuration_ = stabilizationDuration_; } else { result.stabilizationDuration_ = stabilizationDurationBuilder_.build(); } result.initialSize_ = initialSize_; if (cpuUtilizationRuleBuilder_ == null) { result.cpuUtilizationRule_ = cpuUtilizationRule_; } else { result.cpuUtilizationRule_ = cpuUtilizationRuleBuilder_.build(); } if (customRulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customRules_ = java.util.Collections.unmodifiableList(customRules_); bitField0_ = (bitField0_ & ~0x00000001); } result.customRules_ = customRules_; } else { result.customRules_ = customRulesBuilder_.build(); } result.autoScaleType_ = autoScaleType_; 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.InstanceGroupOuterClass.ScalePolicy.AutoScale) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance()) return this; if (other.getMinZoneSize() != 0L) { setMinZoneSize(other.getMinZoneSize()); } if (other.getMaxSize() != 0L) { setMaxSize(other.getMaxSize()); } if (other.hasMeasurementDuration()) { mergeMeasurementDuration(other.getMeasurementDuration()); } if (other.hasWarmupDuration()) { mergeWarmupDuration(other.getWarmupDuration()); } if (other.hasStabilizationDuration()) { mergeStabilizationDuration(other.getStabilizationDuration()); } if (other.getInitialSize() != 0L) { setInitialSize(other.getInitialSize()); } if (other.hasCpuUtilizationRule()) { mergeCpuUtilizationRule(other.getCpuUtilizationRule()); } if (customRulesBuilder_ == null) { if (!other.customRules_.isEmpty()) { if (customRules_.isEmpty()) { customRules_ = other.customRules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCustomRulesIsMutable(); customRules_.addAll(other.customRules_); } onChanged(); } } else { if (!other.customRules_.isEmpty()) { if (customRulesBuilder_.isEmpty()) { customRulesBuilder_.dispose(); customRulesBuilder_ = null; customRules_ = other.customRules_; bitField0_ = (bitField0_ & ~0x00000001); customRulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomRulesFieldBuilder() : null; } else { customRulesBuilder_.addAllMessages(other.customRules_); } } } if (other.autoScaleType_ != 0) { setAutoScaleTypeValue(other.getAutoScaleTypeValue()); } 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.InstanceGroupOuterClass.ScalePolicy.AutoScale parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long minZoneSize_ ; /** *
         * Lower limit for instance count in each zone.
         * 
* * int64 min_zone_size = 1 [(.yandex.cloud.value) = "0-100"]; * @return The minZoneSize. */ @java.lang.Override public long getMinZoneSize() { return minZoneSize_; } /** *
         * Lower limit for instance count in each zone.
         * 
* * int64 min_zone_size = 1 [(.yandex.cloud.value) = "0-100"]; * @param value The minZoneSize to set. * @return This builder for chaining. */ public Builder setMinZoneSize(long value) { minZoneSize_ = value; onChanged(); return this; } /** *
         * Lower limit for instance count in each zone.
         * 
* * int64 min_zone_size = 1 [(.yandex.cloud.value) = "0-100"]; * @return This builder for chaining. */ public Builder clearMinZoneSize() { minZoneSize_ = 0L; onChanged(); return this; } private long maxSize_ ; /** *
         * Upper limit for total instance count (across all zones).
         * 0 means maximum limit = 100.
         * 
* * int64 max_size = 2 [(.yandex.cloud.value) = "0-100"]; * @return The maxSize. */ @java.lang.Override public long getMaxSize() { return maxSize_; } /** *
         * Upper limit for total instance count (across all zones).
         * 0 means maximum limit = 100.
         * 
* * int64 max_size = 2 [(.yandex.cloud.value) = "0-100"]; * @param value The maxSize to set. * @return This builder for chaining. */ public Builder setMaxSize(long value) { maxSize_ = value; onChanged(); return this; } /** *
         * Upper limit for total instance count (across all zones).
         * 0 means maximum limit = 100.
         * 
* * int64 max_size = 2 [(.yandex.cloud.value) = "0-100"]; * @return This builder for chaining. */ public Builder clearMaxSize() { maxSize_ = 0L; onChanged(); return this; } private com.google.protobuf.Duration measurementDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> measurementDurationBuilder_; /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; * @return Whether the measurementDuration field is set. */ public boolean hasMeasurementDuration() { return measurementDurationBuilder_ != null || measurementDuration_ != null; } /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; * @return The measurementDuration. */ public com.google.protobuf.Duration getMeasurementDuration() { if (measurementDurationBuilder_ == null) { return measurementDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : measurementDuration_; } else { return measurementDurationBuilder_.getMessage(); } } /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ public Builder setMeasurementDuration(com.google.protobuf.Duration value) { if (measurementDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } measurementDuration_ = value; onChanged(); } else { measurementDurationBuilder_.setMessage(value); } return this; } /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ public Builder setMeasurementDuration( com.google.protobuf.Duration.Builder builderForValue) { if (measurementDurationBuilder_ == null) { measurementDuration_ = builderForValue.build(); onChanged(); } else { measurementDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ public Builder mergeMeasurementDuration(com.google.protobuf.Duration value) { if (measurementDurationBuilder_ == null) { if (measurementDuration_ != null) { measurementDuration_ = com.google.protobuf.Duration.newBuilder(measurementDuration_).mergeFrom(value).buildPartial(); } else { measurementDuration_ = value; } onChanged(); } else { measurementDurationBuilder_.mergeFrom(value); } return this; } /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ public Builder clearMeasurementDuration() { if (measurementDurationBuilder_ == null) { measurementDuration_ = null; onChanged(); } else { measurementDuration_ = null; measurementDurationBuilder_ = null; } return this; } /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ public com.google.protobuf.Duration.Builder getMeasurementDurationBuilder() { onChanged(); return getMeasurementDurationFieldBuilder().getBuilder(); } /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ public com.google.protobuf.DurationOrBuilder getMeasurementDurationOrBuilder() { if (measurementDurationBuilder_ != null) { return measurementDurationBuilder_.getMessageOrBuilder(); } else { return measurementDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : measurementDuration_; } } /** *
         * Time in seconds allotted for averaging metrics.
         * 1 minute by default.
         * 
* * .google.protobuf.Duration measurement_duration = 3 [(.yandex.cloud.value) = "1m-10m"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMeasurementDurationFieldBuilder() { if (measurementDurationBuilder_ == null) { measurementDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMeasurementDuration(), getParentForChildren(), isClean()); measurementDuration_ = null; } return measurementDurationBuilder_; } private com.google.protobuf.Duration warmupDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> warmupDurationBuilder_; /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return Whether the warmupDuration field is set. */ public boolean hasWarmupDuration() { return warmupDurationBuilder_ != null || warmupDuration_ != null; } /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; * @return The warmupDuration. */ public com.google.protobuf.Duration getWarmupDuration() { if (warmupDurationBuilder_ == null) { return warmupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : warmupDuration_; } else { return warmupDurationBuilder_.getMessage(); } } /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public Builder setWarmupDuration(com.google.protobuf.Duration value) { if (warmupDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } warmupDuration_ = value; onChanged(); } else { warmupDurationBuilder_.setMessage(value); } return this; } /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public Builder setWarmupDuration( com.google.protobuf.Duration.Builder builderForValue) { if (warmupDurationBuilder_ == null) { warmupDuration_ = builderForValue.build(); onChanged(); } else { warmupDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public Builder mergeWarmupDuration(com.google.protobuf.Duration value) { if (warmupDurationBuilder_ == null) { if (warmupDuration_ != null) { warmupDuration_ = com.google.protobuf.Duration.newBuilder(warmupDuration_).mergeFrom(value).buildPartial(); } else { warmupDuration_ = value; } onChanged(); } else { warmupDurationBuilder_.mergeFrom(value); } return this; } /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public Builder clearWarmupDuration() { if (warmupDurationBuilder_ == null) { warmupDuration_ = null; onChanged(); } else { warmupDuration_ = null; warmupDurationBuilder_ = null; } return this; } /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public com.google.protobuf.Duration.Builder getWarmupDurationBuilder() { onChanged(); return getWarmupDurationFieldBuilder().getBuilder(); } /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ public com.google.protobuf.DurationOrBuilder getWarmupDurationOrBuilder() { if (warmupDurationBuilder_ != null) { return warmupDurationBuilder_.getMessageOrBuilder(); } else { return warmupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : warmupDuration_; } } /** *
         * The warmup time of the instance in seconds. During this time,
         * traffic is sent to the instance, but instance metrics are not collected.
         * 
* * .google.protobuf.Duration warmup_duration = 4 [(.yandex.cloud.value) = "<=10m"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWarmupDurationFieldBuilder() { if (warmupDurationBuilder_ == null) { warmupDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWarmupDuration(), getParentForChildren(), isClean()); warmupDuration_ = null; } return warmupDurationBuilder_; } private com.google.protobuf.Duration stabilizationDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> stabilizationDurationBuilder_; /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return Whether the stabilizationDuration field is set. */ public boolean hasStabilizationDuration() { return stabilizationDurationBuilder_ != null || stabilizationDuration_ != null; } /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; * @return The stabilizationDuration. */ public com.google.protobuf.Duration getStabilizationDuration() { if (stabilizationDurationBuilder_ == null) { return stabilizationDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : stabilizationDuration_; } else { return stabilizationDurationBuilder_.getMessage(); } } /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public Builder setStabilizationDuration(com.google.protobuf.Duration value) { if (stabilizationDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stabilizationDuration_ = value; onChanged(); } else { stabilizationDurationBuilder_.setMessage(value); } return this; } /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public Builder setStabilizationDuration( com.google.protobuf.Duration.Builder builderForValue) { if (stabilizationDurationBuilder_ == null) { stabilizationDuration_ = builderForValue.build(); onChanged(); } else { stabilizationDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public Builder mergeStabilizationDuration(com.google.protobuf.Duration value) { if (stabilizationDurationBuilder_ == null) { if (stabilizationDuration_ != null) { stabilizationDuration_ = com.google.protobuf.Duration.newBuilder(stabilizationDuration_).mergeFrom(value).buildPartial(); } else { stabilizationDuration_ = value; } onChanged(); } else { stabilizationDurationBuilder_.mergeFrom(value); } return this; } /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public Builder clearStabilizationDuration() { if (stabilizationDurationBuilder_ == null) { stabilizationDuration_ = null; onChanged(); } else { stabilizationDuration_ = null; stabilizationDurationBuilder_ = null; } return this; } /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public com.google.protobuf.Duration.Builder getStabilizationDurationBuilder() { onChanged(); return getStabilizationDurationFieldBuilder().getBuilder(); } /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ public com.google.protobuf.DurationOrBuilder getStabilizationDurationOrBuilder() { if (stabilizationDurationBuilder_ != null) { return stabilizationDurationBuilder_.getMessageOrBuilder(); } else { return stabilizationDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : stabilizationDuration_; } } /** *
         * Minimum amount of time in seconds allotted for monitoring before
         * Instance Groups can reduce the number of instances in the group.
         * During this time, the group size doesn't decrease, even if the new metric values
         * indicate that it should.
         * 
* * .google.protobuf.Duration stabilization_duration = 5 [(.yandex.cloud.value) = "1m-30m"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getStabilizationDurationFieldBuilder() { if (stabilizationDurationBuilder_ == null) { stabilizationDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getStabilizationDuration(), getParentForChildren(), isClean()); stabilizationDuration_ = null; } return stabilizationDurationBuilder_; } private long initialSize_ ; /** *
         * Target group size.
         * 
* * int64 initial_size = 6 [(.yandex.cloud.value) = ">=1"]; * @return The initialSize. */ @java.lang.Override public long getInitialSize() { return initialSize_; } /** *
         * Target group size.
         * 
* * int64 initial_size = 6 [(.yandex.cloud.value) = ">=1"]; * @param value The initialSize to set. * @return This builder for chaining. */ public Builder setInitialSize(long value) { initialSize_ = value; onChanged(); return this; } /** *
         * Target group size.
         * 
* * int64 initial_size = 6 [(.yandex.cloud.value) = ">=1"]; * @return This builder for chaining. */ public Builder clearInitialSize() { initialSize_ = 0L; onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule cpuUtilizationRule_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRuleOrBuilder> cpuUtilizationRuleBuilder_; /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; * @return Whether the cpuUtilizationRule field is set. */ public boolean hasCpuUtilizationRule() { return cpuUtilizationRuleBuilder_ != null || cpuUtilizationRule_ != null; } /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; * @return The cpuUtilizationRule. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule getCpuUtilizationRule() { if (cpuUtilizationRuleBuilder_ == null) { return cpuUtilizationRule_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.getDefaultInstance() : cpuUtilizationRule_; } else { return cpuUtilizationRuleBuilder_.getMessage(); } } /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ public Builder setCpuUtilizationRule(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule value) { if (cpuUtilizationRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cpuUtilizationRule_ = value; onChanged(); } else { cpuUtilizationRuleBuilder_.setMessage(value); } return this; } /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ public Builder setCpuUtilizationRule( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.Builder builderForValue) { if (cpuUtilizationRuleBuilder_ == null) { cpuUtilizationRule_ = builderForValue.build(); onChanged(); } else { cpuUtilizationRuleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ public Builder mergeCpuUtilizationRule(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule value) { if (cpuUtilizationRuleBuilder_ == null) { if (cpuUtilizationRule_ != null) { cpuUtilizationRule_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.newBuilder(cpuUtilizationRule_).mergeFrom(value).buildPartial(); } else { cpuUtilizationRule_ = value; } onChanged(); } else { cpuUtilizationRuleBuilder_.mergeFrom(value); } return this; } /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ public Builder clearCpuUtilizationRule() { if (cpuUtilizationRuleBuilder_ == null) { cpuUtilizationRule_ = null; onChanged(); } else { cpuUtilizationRule_ = null; cpuUtilizationRuleBuilder_ = null; } return this; } /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.Builder getCpuUtilizationRuleBuilder() { onChanged(); return getCpuUtilizationRuleFieldBuilder().getBuilder(); } /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRuleOrBuilder getCpuUtilizationRuleOrBuilder() { if (cpuUtilizationRuleBuilder_ != null) { return cpuUtilizationRuleBuilder_.getMessageOrBuilder(); } else { return cpuUtilizationRule_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.getDefaultInstance() : cpuUtilizationRule_; } } /** *
         * Defines an autoscaling rule based on the average CPU utilization of the instance group.
         * If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics ([custom_rules]),
         * the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule cpu_utilization_rule = 7; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRuleOrBuilder> getCpuUtilizationRuleFieldBuilder() { if (cpuUtilizationRuleBuilder_ == null) { cpuUtilizationRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRuleOrBuilder>( getCpuUtilizationRule(), getParentForChildren(), isClean()); cpuUtilizationRule_ = null; } return cpuUtilizationRuleBuilder_; } private java.util.List customRules_ = java.util.Collections.emptyList(); private void ensureCustomRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { customRules_ = new java.util.ArrayList(customRules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRuleOrBuilder> customRulesBuilder_; /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public java.util.List getCustomRulesList() { if (customRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(customRules_); } else { return customRulesBuilder_.getMessageList(); } } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public int getCustomRulesCount() { if (customRulesBuilder_ == null) { return customRules_.size(); } else { return customRulesBuilder_.getCount(); } } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule getCustomRules(int index) { if (customRulesBuilder_ == null) { return customRules_.get(index); } else { return customRulesBuilder_.getMessage(index); } } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder setCustomRules( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule value) { if (customRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomRulesIsMutable(); customRules_.set(index, value); onChanged(); } else { customRulesBuilder_.setMessage(index, value); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder setCustomRules( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder builderForValue) { if (customRulesBuilder_ == null) { ensureCustomRulesIsMutable(); customRules_.set(index, builderForValue.build()); onChanged(); } else { customRulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder addCustomRules(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule value) { if (customRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomRulesIsMutable(); customRules_.add(value); onChanged(); } else { customRulesBuilder_.addMessage(value); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder addCustomRules( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule value) { if (customRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCustomRulesIsMutable(); customRules_.add(index, value); onChanged(); } else { customRulesBuilder_.addMessage(index, value); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder addCustomRules( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder builderForValue) { if (customRulesBuilder_ == null) { ensureCustomRulesIsMutable(); customRules_.add(builderForValue.build()); onChanged(); } else { customRulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder addCustomRules( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder builderForValue) { if (customRulesBuilder_ == null) { ensureCustomRulesIsMutable(); customRules_.add(index, builderForValue.build()); onChanged(); } else { customRulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder addAllCustomRules( java.lang.Iterable values) { if (customRulesBuilder_ == null) { ensureCustomRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, customRules_); onChanged(); } else { customRulesBuilder_.addAllMessages(values); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder clearCustomRules() { if (customRulesBuilder_ == null) { customRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { customRulesBuilder_.clear(); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public Builder removeCustomRules(int index) { if (customRulesBuilder_ == null) { ensureCustomRulesIsMutable(); customRules_.remove(index); onChanged(); } else { customRulesBuilder_.remove(index); } return this; } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder getCustomRulesBuilder( int index) { return getCustomRulesFieldBuilder().getBuilder(index); } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRuleOrBuilder getCustomRulesOrBuilder( int index) { if (customRulesBuilder_ == null) { return customRules_.get(index); } else { return customRulesBuilder_.getMessageOrBuilder(index); } } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public java.util.List getCustomRulesOrBuilderList() { if (customRulesBuilder_ != null) { return customRulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(customRules_); } } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder addCustomRulesBuilder() { return getCustomRulesFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.getDefaultInstance()); } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder addCustomRulesBuilder( int index) { return getCustomRulesFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.getDefaultInstance()); } /** *
         * Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
         * If more than one rule is specified, e.g. CPU utilization ([cpu_utilization_rule]) and one or more Monitoring
         * metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
         * 
* * repeated .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule custom_rules = 8 [(.yandex.cloud.size) = "<=3"]; */ public java.util.List getCustomRulesBuilderList() { return getCustomRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRuleOrBuilder> getCustomRulesFieldBuilder() { if (customRulesBuilder_ == null) { customRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRuleOrBuilder>( customRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); customRules_ = null; } return customRulesBuilder_; } private int autoScaleType_ = 0; /** *
         * Autoscaling type.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @return The enum numeric value on the wire for autoScaleType. */ @java.lang.Override public int getAutoScaleTypeValue() { return autoScaleType_; } /** *
         * Autoscaling type.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @param value The enum numeric value on the wire for autoScaleType to set. * @return This builder for chaining. */ public Builder setAutoScaleTypeValue(int value) { autoScaleType_ = value; onChanged(); return this; } /** *
         * Autoscaling type.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @return The autoScaleType. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType getAutoScaleType() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType.valueOf(autoScaleType_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType.UNRECOGNIZED : result; } /** *
         * Autoscaling type.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @param value The autoScaleType to set. * @return This builder for chaining. */ public Builder setAutoScaleType(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.AutoScaleType value) { if (value == null) { throw new NullPointerException(); } autoScaleType_ = value.getNumber(); onChanged(); return this; } /** *
         * Autoscaling type.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale.AutoScaleType auto_scale_type = 9; * @return This builder for chaining. */ public Builder clearAutoScaleType() { autoScaleType_ = 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.ScalePolicy.AutoScale) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AutoScale parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AutoScale(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.InstanceGroupOuterClass.ScalePolicy.AutoScale getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CpuUtilizationRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule) com.google.protobuf.MessageOrBuilder { /** *
       * Target CPU utilization level. Instance Groups maintains this level for each availability zone.
       * 
* * double utilization_target = 1 [(.yandex.cloud.value) = "10-100"]; * @return The utilizationTarget. */ double getUtilizationTarget(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule} */ public static final class CpuUtilizationRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule) CpuUtilizationRuleOrBuilder { private static final long serialVersionUID = 0L; // Use CpuUtilizationRule.newBuilder() to construct. private CpuUtilizationRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CpuUtilizationRule() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CpuUtilizationRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CpuUtilizationRule( 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 9: { utilizationTarget_ = input.readDouble(); 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.Builder.class); } public static final int UTILIZATION_TARGET_FIELD_NUMBER = 1; private double utilizationTarget_; /** *
       * Target CPU utilization level. Instance Groups maintains this level for each availability zone.
       * 
* * double utilization_target = 1 [(.yandex.cloud.value) = "10-100"]; * @return The utilizationTarget. */ @java.lang.Override public double getUtilizationTarget() { return utilizationTarget_; } 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 (java.lang.Double.doubleToRawLongBits(utilizationTarget_) != 0) { output.writeDouble(1, utilizationTarget_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(utilizationTarget_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, utilizationTarget_); } 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule) obj; if (java.lang.Double.doubleToLongBits(getUtilizationTarget()) != java.lang.Double.doubleToLongBits( other.getUtilizationTarget())) 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) + UTILIZATION_TARGET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getUtilizationTarget())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule 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.ScalePolicy.CpuUtilizationRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.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(); utilizationTarget_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule(this); result.utilizationTarget_ = utilizationTarget_; 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule.getDefaultInstance()) return this; if (other.getUtilizationTarget() != 0D) { setUtilizationTarget(other.getUtilizationTarget()); } 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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private double utilizationTarget_ ; /** *
         * Target CPU utilization level. Instance Groups maintains this level for each availability zone.
         * 
* * double utilization_target = 1 [(.yandex.cloud.value) = "10-100"]; * @return The utilizationTarget. */ @java.lang.Override public double getUtilizationTarget() { return utilizationTarget_; } /** *
         * Target CPU utilization level. Instance Groups maintains this level for each availability zone.
         * 
* * double utilization_target = 1 [(.yandex.cloud.value) = "10-100"]; * @param value The utilizationTarget to set. * @return This builder for chaining. */ public Builder setUtilizationTarget(double value) { utilizationTarget_ = value; onChanged(); return this; } /** *
         * Target CPU utilization level. Instance Groups maintains this level for each availability zone.
         * 
* * double utilization_target = 1 [(.yandex.cloud.value) = "10-100"]; * @return This builder for chaining. */ public Builder clearUtilizationTarget() { utilizationTarget_ = 0D; 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.ScalePolicy.CpuUtilizationRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CpuUtilizationRule) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CpuUtilizationRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CpuUtilizationRule(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.InstanceGroupOuterClass.ScalePolicy.CpuUtilizationRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CustomRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule) com.google.protobuf.MessageOrBuilder { /** *
       * Custom metric rule type. This field affects which label from
       * the custom metric should be used: `zone_id` or `instance_id`.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for ruleType. */ int getRuleTypeValue(); /** *
       * Custom metric rule type. This field affects which label from
       * the custom metric should be used: `zone_id` or `instance_id`.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @return The ruleType. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType getRuleType(); /** *
       * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for metricType. */ int getMetricTypeValue(); /** *
       * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @return The metricType. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType getMetricType(); /** *
       * Name of custom metric in Monitoring that should be used for scaling.
       * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @return The metricName. */ java.lang.String getMetricName(); /** *
       * Name of custom metric in Monitoring that should be used for scaling.
       * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @return The bytes for metricName. */ com.google.protobuf.ByteString getMetricNameBytes(); /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.yandex.cloud.map_key) = { ... } */ int getLabelsCount(); /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.yandex.cloud.map_key) = { ... } */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.yandex.cloud.map_key) = { ... } */ java.util.Map getLabelsMap(); /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.yandex.cloud.map_key) = { ... } */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.yandex.cloud.map_key) = { ... } */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
       * Target value for the custom metric. Instance Groups maintains this level for each availability zone.
       * 
* * double target = 4 [(.yandex.cloud.value) = ">0"]; * @return The target. */ double getTarget(); /** *
       * Folder id of custom metric in Monitoring that should be used for scaling.
       * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ java.lang.String getFolderId(); /** *
       * Folder id of custom metric in Monitoring that should be used for scaling.
       * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
       * Service of custom metric in Monitoring that should be used for scaling.
       * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @return The service. */ java.lang.String getService(); /** *
       * Service of custom metric in Monitoring that should be used for scaling.
       * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule} */ public static final class CustomRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule) CustomRuleOrBuilder { private static final long serialVersionUID = 0L; // Use CustomRule.newBuilder() to construct. private CustomRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CustomRule() { ruleType_ = 0; metricType_ = 0; metricName_ = ""; folderId_ = ""; service_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CustomRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CustomRule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); ruleType_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); metricType_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); metricName_ = s; break; } case 33: { target_ = input.readDouble(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); service_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType} */ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { /** * RULE_TYPE_UNSPECIFIED = 0; */ RULE_TYPE_UNSPECIFIED(0), /** *
         * This type means that the metric applies to one instance.
         * First, Instance Groups calculates the average metric value for each instance,
         * then averages the values for instances in one availability zone or in whole group depends on autoscaling type.
         * This type of metric must have the `instance_id` label.
         * 
* * UTILIZATION = 1; */ UTILIZATION(1), /** *
         * This type means that the metric applies to instances in one availability zone or to whole group depends on autoscaling type.
         * This type of metric must have the `zone_id` label if ZONAL autoscaling type is chosen.
         * 
* * WORKLOAD = 2; */ WORKLOAD(2), UNRECOGNIZED(-1), ; /** * RULE_TYPE_UNSPECIFIED = 0; */ public static final int RULE_TYPE_UNSPECIFIED_VALUE = 0; /** *
         * This type means that the metric applies to one instance.
         * First, Instance Groups calculates the average metric value for each instance,
         * then averages the values for instances in one availability zone or in whole group depends on autoscaling type.
         * This type of metric must have the `instance_id` label.
         * 
* * UTILIZATION = 1; */ public static final int UTILIZATION_VALUE = 1; /** *
         * This type means that the metric applies to instances in one availability zone or to whole group depends on autoscaling type.
         * This type of metric must have the `zone_id` label if ZONAL autoscaling type is chosen.
         * 
* * WORKLOAD = 2; */ public static final int WORKLOAD_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RuleType 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 RuleType forNumber(int value) { switch (value) { case 0: return RULE_TYPE_UNSPECIFIED; case 1: return UTILIZATION; case 2: return WORKLOAD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< RuleType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RuleType findValueByNumber(int number) { return RuleType.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.InstanceGroupOuterClass.ScalePolicy.CustomRule.getDescriptor().getEnumTypes().get(0); } private static final RuleType[] VALUES = values(); public static RuleType 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 RuleType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType) } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType} */ public enum MetricType implements com.google.protobuf.ProtocolMessageEnum { /** * METRIC_TYPE_UNSPECIFIED = 0; */ METRIC_TYPE_UNSPECIFIED(0), /** *
         * This type is used for metrics that show the metric value at a certain point in time,
         * such as requests per second to the server on an instance.
         * Instance Groups calculates the average metric value for the period
         * specified in the [AutoScale.measurement_duration] field.
         * 
* * GAUGE = 1; */ GAUGE(1), /** *
         * This type is used for metrics that monotonically increase over time,
         * such as the total number of requests to the server on an instance.
         * Instance Groups calculates the average value increase for the period
         * specified in the [AutoScale.measurement_duration] field.
         * 
* * COUNTER = 2; */ COUNTER(2), UNRECOGNIZED(-1), ; /** * METRIC_TYPE_UNSPECIFIED = 0; */ public static final int METRIC_TYPE_UNSPECIFIED_VALUE = 0; /** *
         * This type is used for metrics that show the metric value at a certain point in time,
         * such as requests per second to the server on an instance.
         * Instance Groups calculates the average metric value for the period
         * specified in the [AutoScale.measurement_duration] field.
         * 
* * GAUGE = 1; */ public static final int GAUGE_VALUE = 1; /** *
         * This type is used for metrics that monotonically increase over time,
         * such as the total number of requests to the server on an instance.
         * Instance Groups calculates the average value increase for the period
         * specified in the [AutoScale.measurement_duration] field.
         * 
* * COUNTER = 2; */ public static final int COUNTER_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MetricType 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 MetricType forNumber(int value) { switch (value) { case 0: return METRIC_TYPE_UNSPECIFIED; case 1: return GAUGE; case 2: return COUNTER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MetricType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MetricType findValueByNumber(int number) { return MetricType.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.InstanceGroupOuterClass.ScalePolicy.CustomRule.getDescriptor().getEnumTypes().get(1); } private static final MetricType[] VALUES = values(); public static MetricType 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 MetricType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType) } public static final int RULE_TYPE_FIELD_NUMBER = 1; private int ruleType_; /** *
       * Custom metric rule type. This field affects which label from
       * the custom metric should be used: `zone_id` or `instance_id`.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for ruleType. */ @java.lang.Override public int getRuleTypeValue() { return ruleType_; } /** *
       * Custom metric rule type. This field affects which label from
       * the custom metric should be used: `zone_id` or `instance_id`.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @return The ruleType. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType getRuleType() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType.valueOf(ruleType_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType.UNRECOGNIZED : result; } public static final int METRIC_TYPE_FIELD_NUMBER = 2; private int metricType_; /** *
       * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for metricType. */ @java.lang.Override public int getMetricTypeValue() { return metricType_; } /** *
       * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @return The metricType. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType getMetricType() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType.valueOf(metricType_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType.UNRECOGNIZED : result; } public static final int METRIC_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object metricName_; /** *
       * Name of custom metric in Monitoring that should be used for scaling.
       * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @return The metricName. */ @java.lang.Override public java.lang.String getMetricName() { java.lang.Object ref = metricName_; 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(); metricName_ = s; return s; } } /** *
       * Name of custom metric in Monitoring that should be used for scaling.
       * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @return The bytes for metricName. */ @java.lang.Override public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); metricName_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_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(); } /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.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(); } /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.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; } /** *
       * Labels of custom metric in Monitoring that should be used for scaling.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.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 TARGET_FIELD_NUMBER = 4; private double target_; /** *
       * Target value for the custom metric. Instance Groups maintains this level for each availability zone.
       * 
* * double target = 4 [(.yandex.cloud.value) = ">0"]; * @return The target. */ @java.lang.Override public double getTarget() { return target_; } public static final int FOLDER_ID_FIELD_NUMBER = 6; private volatile java.lang.Object folderId_; /** *
       * Folder id of custom metric in Monitoring that should be used for scaling.
       * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** *
       * Folder id of custom metric in Monitoring that should be used for scaling.
       * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_FIELD_NUMBER = 7; private volatile java.lang.Object service_; /** *
       * Service of custom metric in Monitoring that should be used for scaling.
       * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @return The service. */ @java.lang.Override public java.lang.String getService() { java.lang.Object ref = service_; 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(); service_ = s; return s; } } /** *
       * Service of custom metric in Monitoring that should be used for scaling.
       * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @return The bytes for service. */ @java.lang.Override public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = 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 (ruleType_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType.RULE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, ruleType_); } if (metricType_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, metricType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metricName_); } if (java.lang.Double.doubleToRawLongBits(target_) != 0) { output.writeDouble(4, target_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, service_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ruleType_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType.RULE_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ruleType_); } if (metricType_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, metricType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, metricName_); } if (java.lang.Double.doubleToRawLongBits(target_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, target_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, service_); } 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.InstanceGroupOuterClass.ScalePolicy.CustomRule)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule) obj; if (ruleType_ != other.ruleType_) return false; if (metricType_ != other.metricType_) return false; if (!getMetricName() .equals(other.getMetricName())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (java.lang.Double.doubleToLongBits(getTarget()) != java.lang.Double.doubleToLongBits( other.getTarget())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getService() .equals(other.getService())) 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) + RULE_TYPE_FIELD_NUMBER; hash = (53 * hash) + ruleType_; hash = (37 * hash) + METRIC_TYPE_FIELD_NUMBER; hash = (53 * hash) + metricType_; hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; hash = (53 * hash) + getMetricName().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTarget())); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.InstanceGroupOuterClass.ScalePolicy.CustomRule 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.ScalePolicy.CustomRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.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(); ruleType_ = 0; metricType_ = 0; metricName_ = ""; internalGetMutableLabels().clear(); target_ = 0D; folderId_ = ""; service_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule(this); int from_bitField0_ = bitField0_; result.ruleType_ = ruleType_; result.metricType_ = metricType_; result.metricName_ = metricName_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.target_ = target_; result.folderId_ = folderId_; result.service_ = service_; 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.InstanceGroupOuterClass.ScalePolicy.CustomRule) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.getDefaultInstance()) return this; if (other.ruleType_ != 0) { setRuleTypeValue(other.getRuleTypeValue()); } if (other.metricType_ != 0) { setMetricTypeValue(other.getMetricTypeValue()); } if (!other.getMetricName().isEmpty()) { metricName_ = other.metricName_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.getTarget() != 0D) { setTarget(other.getTarget()); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getService().isEmpty()) { service_ = other.service_; 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.InstanceGroupOuterClass.ScalePolicy.CustomRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int ruleType_ = 0; /** *
         * Custom metric rule type. This field affects which label from
         * the custom metric should be used: `zone_id` or `instance_id`.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for ruleType. */ @java.lang.Override public int getRuleTypeValue() { return ruleType_; } /** *
         * Custom metric rule type. This field affects which label from
         * the custom metric should be used: `zone_id` or `instance_id`.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @param value The enum numeric value on the wire for ruleType to set. * @return This builder for chaining. */ public Builder setRuleTypeValue(int value) { ruleType_ = value; onChanged(); return this; } /** *
         * Custom metric rule type. This field affects which label from
         * the custom metric should be used: `zone_id` or `instance_id`.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @return The ruleType. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType getRuleType() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType.valueOf(ruleType_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType.UNRECOGNIZED : result; } /** *
         * Custom metric rule type. This field affects which label from
         * the custom metric should be used: `zone_id` or `instance_id`.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @param value The ruleType to set. * @return This builder for chaining. */ public Builder setRuleType(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.RuleType value) { if (value == null) { throw new NullPointerException(); } ruleType_ = value.getNumber(); onChanged(); return this; } /** *
         * Custom metric rule type. This field affects which label from
         * the custom metric should be used: `zone_id` or `instance_id`.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.RuleType rule_type = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearRuleType() { ruleType_ = 0; onChanged(); return this; } private int metricType_ = 0; /** *
         * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for metricType. */ @java.lang.Override public int getMetricTypeValue() { return metricType_; } /** *
         * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @param value The enum numeric value on the wire for metricType to set. * @return This builder for chaining. */ public Builder setMetricTypeValue(int value) { metricType_ = value; onChanged(); return this; } /** *
         * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @return The metricType. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType getMetricType() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType.valueOf(metricType_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType.UNRECOGNIZED : result; } /** *
         * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @param value The metricType to set. * @return This builder for chaining. */ public Builder setMetricType(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule.MetricType value) { if (value == null) { throw new NullPointerException(); } metricType_ = value.getNumber(); onChanged(); return this; } /** *
         * Type of custom metric. This field affects how Instance Groups calculates the average metric value.
         * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule.MetricType metric_type = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearMetricType() { metricType_ = 0; onChanged(); return this; } private java.lang.Object metricName_ = ""; /** *
         * Name of custom metric in Monitoring that should be used for scaling.
         * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @return The metricName. */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Name of custom metric in Monitoring that should be used for scaling.
         * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @return The bytes for metricName. */ public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); metricName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Name of custom metric in Monitoring that should be used for scaling.
         * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @param value The metricName to set. * @return This builder for chaining. */ public Builder setMetricName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } metricName_ = value; onChanged(); return this; } /** *
         * Name of custom metric in Monitoring that should be used for scaling.
         * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @return This builder for chaining. */ public Builder clearMetricName() { metricName_ = getDefaultInstance().getMetricName(); onChanged(); return this; } /** *
         * Name of custom metric in Monitoring that should be used for scaling.
         * 
* * string metric_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}"]; * @param value The bytes for metricName to set. * @return This builder for chaining. */ public Builder setMetricNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metricName_ = 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(); } /** *
         * Labels of custom metric in Monitoring that should be used for scaling.
         * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.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(); } /** *
         * Labels of custom metric in Monitoring that should be used for scaling.
         * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
         * Labels of custom metric in Monitoring that should be used for scaling.
         * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.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; } /** *
         * Labels of custom metric in Monitoring that should be used for scaling.
         * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.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; } /** *
         * Labels of custom metric in Monitoring that should be used for scaling.
         * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.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(); } /** *
         * Labels of custom metric in Monitoring that should be used for scaling.
         * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.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; } /** *
         * Labels of custom metric in Monitoring that should be used for scaling.
         * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[a-zA-Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}", (.yandex.cloud.map_key) = { ... } */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private double target_ ; /** *
         * Target value for the custom metric. Instance Groups maintains this level for each availability zone.
         * 
* * double target = 4 [(.yandex.cloud.value) = ">0"]; * @return The target. */ @java.lang.Override public double getTarget() { return target_; } /** *
         * Target value for the custom metric. Instance Groups maintains this level for each availability zone.
         * 
* * double target = 4 [(.yandex.cloud.value) = ">0"]; * @param value The target to set. * @return This builder for chaining. */ public Builder setTarget(double value) { target_ = value; onChanged(); return this; } /** *
         * Target value for the custom metric. Instance Groups maintains this level for each availability zone.
         * 
* * double target = 4 [(.yandex.cloud.value) = ">0"]; * @return This builder for chaining. */ public Builder clearTarget() { target_ = 0D; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
         * Folder id of custom metric in Monitoring that should be used for scaling.
         * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Folder id of custom metric in Monitoring that should be used for scaling.
         * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Folder id of custom metric in Monitoring that should be used for scaling.
         * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
         * Folder id of custom metric in Monitoring that should be used for scaling.
         * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
         * Folder id of custom metric in Monitoring that should be used for scaling.
         * 
* * string folder_id = 6 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private java.lang.Object service_ = ""; /** *
         * Service of custom metric in Monitoring that should be used for scaling.
         * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Service of custom metric in Monitoring that should be used for scaling.
         * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @return The bytes for service. */ public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Service of custom metric in Monitoring that should be used for scaling.
         * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @param value The service to set. * @return This builder for chaining. */ public Builder setService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); return this; } /** *
         * Service of custom metric in Monitoring that should be used for scaling.
         * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** *
         * Service of custom metric in Monitoring that should be used for scaling.
         * 
* * string service = 7 [(.yandex.cloud.length) = "<=200"]; * @param value The bytes for service to set. * @return This builder for chaining. */ public Builder setServiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); service_ = 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.ScalePolicy.CustomRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy.CustomRule) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.CustomRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CustomRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CustomRule(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.InstanceGroupOuterClass.ScalePolicy.CustomRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FixedScaleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale) com.google.protobuf.MessageOrBuilder { /** *
       * Number of instances in the instance group.
       * 
* * int64 size = 1 [(.yandex.cloud.value) = "1-100"]; * @return The size. */ long getSize(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale} */ public static final class FixedScale extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale) FixedScaleOrBuilder { private static final long serialVersionUID = 0L; // Use FixedScale.newBuilder() to construct. private FixedScale(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FixedScale() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FixedScale(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FixedScale( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { size_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.Builder.class); } public static final int SIZE_FIELD_NUMBER = 1; private long size_; /** *
       * Number of instances in the instance group.
       * 
* * int64 size = 1 [(.yandex.cloud.value) = "1-100"]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (size_ != 0L) { output.writeInt64(1, size_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, size_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) obj; if (getSize() != other.getSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.InstanceGroupOuterClass.ScalePolicy.FixedScale 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.ScalePolicy.FixedScale} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScaleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); size_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale(this); result.size_ = size_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance()) return this; if (other.getSize() != 0L) { setSize(other.getSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long size_ ; /** *
         * Number of instances in the instance group.
         * 
* * int64 size = 1 [(.yandex.cloud.value) = "1-100"]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
         * Number of instances in the instance group.
         * 
* * int64 size = 1 [(.yandex.cloud.value) = "1-100"]; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
         * Number of instances in the instance group.
         * 
* * int64 size = 1 [(.yandex.cloud.value) = "1-100"]; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FixedScale parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FixedScale(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.InstanceGroupOuterClass.ScalePolicy.FixedScale getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int scaleTypeCase_ = 0; private java.lang.Object scaleType_; public enum ScaleTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FIXED_SCALE(1), AUTO_SCALE(2), SCALETYPE_NOT_SET(0); private final int value; private ScaleTypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ScaleTypeCase valueOf(int value) { return forNumber(value); } public static ScaleTypeCase forNumber(int value) { switch (value) { case 1: return FIXED_SCALE; case 2: return AUTO_SCALE; case 0: return SCALETYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ScaleTypeCase getScaleTypeCase() { return ScaleTypeCase.forNumber( scaleTypeCase_); } public static final int FIXED_SCALE_FIELD_NUMBER = 1; /** *
     * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; * @return Whether the fixedScale field is set. */ @java.lang.Override public boolean hasFixedScale() { return scaleTypeCase_ == 1; } /** *
     * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; * @return The fixedScale. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale getFixedScale() { if (scaleTypeCase_ == 1) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance(); } /** *
     * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScaleOrBuilder getFixedScaleOrBuilder() { if (scaleTypeCase_ == 1) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance(); } public static final int AUTO_SCALE_FIELD_NUMBER = 2; /** *
     * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; * @return Whether the autoScale field is set. */ @java.lang.Override public boolean hasAutoScale() { return scaleTypeCase_ == 2; } /** *
     * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; * @return The autoScale. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale getAutoScale() { if (scaleTypeCase_ == 2) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance(); } /** *
     * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getAutoScaleOrBuilder() { if (scaleTypeCase_ == 2) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance(); } public static final int TEST_AUTO_SCALE_FIELD_NUMBER = 3; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale testAutoScale_; /** *
     * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; * @return Whether the testAutoScale field is set. */ @java.lang.Override public boolean hasTestAutoScale() { return testAutoScale_ != null; } /** *
     * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; * @return The testAutoScale. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale getTestAutoScale() { return testAutoScale_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance() : testAutoScale_; } /** *
     * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getTestAutoScaleOrBuilder() { return getTestAutoScale(); } 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 (scaleTypeCase_ == 1) { output.writeMessage(1, (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_); } if (scaleTypeCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_); } if (testAutoScale_ != null) { output.writeMessage(3, getTestAutoScale()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (scaleTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_); } if (scaleTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_); } if (testAutoScale_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTestAutoScale()); } 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.InstanceGroupOuterClass.ScalePolicy)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy) obj; if (hasTestAutoScale() != other.hasTestAutoScale()) return false; if (hasTestAutoScale()) { if (!getTestAutoScale() .equals(other.getTestAutoScale())) return false; } if (!getScaleTypeCase().equals(other.getScaleTypeCase())) return false; switch (scaleTypeCase_) { case 1: if (!getFixedScale() .equals(other.getFixedScale())) return false; break; case 2: if (!getAutoScale() .equals(other.getAutoScale())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTestAutoScale()) { hash = (37 * hash) + TEST_AUTO_SCALE_FIELD_NUMBER; hash = (53 * hash) + getTestAutoScale().hashCode(); } switch (scaleTypeCase_) { case 1: hash = (37 * hash) + FIXED_SCALE_FIELD_NUMBER; hash = (53 * hash) + getFixedScale().hashCode(); break; case 2: hash = (37 * hash) + AUTO_SCALE_FIELD_NUMBER; hash = (53 * hash) + getAutoScale().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy 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.InstanceGroupOuterClass.ScalePolicy 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.ScalePolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ScalePolicy) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.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(); if (testAutoScaleBuilder_ == null) { testAutoScale_ = null; } else { testAutoScale_ = null; testAutoScaleBuilder_ = null; } scaleTypeCase_ = 0; scaleType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy(this); if (scaleTypeCase_ == 1) { if (fixedScaleBuilder_ == null) { result.scaleType_ = scaleType_; } else { result.scaleType_ = fixedScaleBuilder_.build(); } } if (scaleTypeCase_ == 2) { if (autoScaleBuilder_ == null) { result.scaleType_ = scaleType_; } else { result.scaleType_ = autoScaleBuilder_.build(); } } if (testAutoScaleBuilder_ == null) { result.testAutoScale_ = testAutoScale_; } else { result.testAutoScale_ = testAutoScaleBuilder_.build(); } result.scaleTypeCase_ = scaleTypeCase_; 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.InstanceGroupOuterClass.ScalePolicy) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.getDefaultInstance()) return this; if (other.hasTestAutoScale()) { mergeTestAutoScale(other.getTestAutoScale()); } switch (other.getScaleTypeCase()) { case FIXED_SCALE: { mergeFixedScale(other.getFixedScale()); break; } case AUTO_SCALE: { mergeAutoScale(other.getAutoScale()); break; } case SCALETYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int scaleTypeCase_ = 0; private java.lang.Object scaleType_; public ScaleTypeCase getScaleTypeCase() { return ScaleTypeCase.forNumber( scaleTypeCase_); } public Builder clearScaleType() { scaleTypeCase_ = 0; scaleType_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScaleOrBuilder> fixedScaleBuilder_; /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; * @return Whether the fixedScale field is set. */ @java.lang.Override public boolean hasFixedScale() { return scaleTypeCase_ == 1; } /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; * @return The fixedScale. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale getFixedScale() { if (fixedScaleBuilder_ == null) { if (scaleTypeCase_ == 1) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance(); } else { if (scaleTypeCase_ == 1) { return fixedScaleBuilder_.getMessage(); } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance(); } } /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ public Builder setFixedScale(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale value) { if (fixedScaleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scaleType_ = value; onChanged(); } else { fixedScaleBuilder_.setMessage(value); } scaleTypeCase_ = 1; return this; } /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ public Builder setFixedScale( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.Builder builderForValue) { if (fixedScaleBuilder_ == null) { scaleType_ = builderForValue.build(); onChanged(); } else { fixedScaleBuilder_.setMessage(builderForValue.build()); } scaleTypeCase_ = 1; return this; } /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ public Builder mergeFixedScale(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale value) { if (fixedScaleBuilder_ == null) { if (scaleTypeCase_ == 1 && scaleType_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance()) { scaleType_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.newBuilder((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_) .mergeFrom(value).buildPartial(); } else { scaleType_ = value; } onChanged(); } else { if (scaleTypeCase_ == 1) { fixedScaleBuilder_.mergeFrom(value); } fixedScaleBuilder_.setMessage(value); } scaleTypeCase_ = 1; return this; } /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ public Builder clearFixedScale() { if (fixedScaleBuilder_ == null) { if (scaleTypeCase_ == 1) { scaleTypeCase_ = 0; scaleType_ = null; onChanged(); } } else { if (scaleTypeCase_ == 1) { scaleTypeCase_ = 0; scaleType_ = null; } fixedScaleBuilder_.clear(); } return this; } /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.Builder getFixedScaleBuilder() { return getFixedScaleFieldBuilder().getBuilder(); } /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScaleOrBuilder getFixedScaleOrBuilder() { if ((scaleTypeCase_ == 1) && (fixedScaleBuilder_ != null)) { return fixedScaleBuilder_.getMessageOrBuilder(); } else { if (scaleTypeCase_ == 1) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance(); } } /** *
       * [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.FixedScale fixed_scale = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScaleOrBuilder> getFixedScaleFieldBuilder() { if (fixedScaleBuilder_ == null) { if (!(scaleTypeCase_ == 1)) { scaleType_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.getDefaultInstance(); } fixedScaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScaleOrBuilder>( (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.FixedScale) scaleType_, getParentForChildren(), isClean()); scaleType_ = null; } scaleTypeCase_ = 1; onChanged();; return fixedScaleBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder> autoScaleBuilder_; /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; * @return Whether the autoScale field is set. */ @java.lang.Override public boolean hasAutoScale() { return scaleTypeCase_ == 2; } /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; * @return The autoScale. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale getAutoScale() { if (autoScaleBuilder_ == null) { if (scaleTypeCase_ == 2) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance(); } else { if (scaleTypeCase_ == 2) { return autoScaleBuilder_.getMessage(); } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance(); } } /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ public Builder setAutoScale(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale value) { if (autoScaleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scaleType_ = value; onChanged(); } else { autoScaleBuilder_.setMessage(value); } scaleTypeCase_ = 2; return this; } /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ public Builder setAutoScale( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder builderForValue) { if (autoScaleBuilder_ == null) { scaleType_ = builderForValue.build(); onChanged(); } else { autoScaleBuilder_.setMessage(builderForValue.build()); } scaleTypeCase_ = 2; return this; } /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ public Builder mergeAutoScale(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale value) { if (autoScaleBuilder_ == null) { if (scaleTypeCase_ == 2 && scaleType_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance()) { scaleType_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.newBuilder((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_) .mergeFrom(value).buildPartial(); } else { scaleType_ = value; } onChanged(); } else { if (scaleTypeCase_ == 2) { autoScaleBuilder_.mergeFrom(value); } autoScaleBuilder_.setMessage(value); } scaleTypeCase_ = 2; return this; } /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ public Builder clearAutoScale() { if (autoScaleBuilder_ == null) { if (scaleTypeCase_ == 2) { scaleTypeCase_ = 0; scaleType_ = null; onChanged(); } } else { if (scaleTypeCase_ == 2) { scaleTypeCase_ = 0; scaleType_ = null; } autoScaleBuilder_.clear(); } return this; } /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder getAutoScaleBuilder() { return getAutoScaleFieldBuilder().getBuilder(); } /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getAutoScaleOrBuilder() { if ((scaleTypeCase_ == 2) && (autoScaleBuilder_ != null)) { return autoScaleBuilder_.getMessageOrBuilder(); } else { if (scaleTypeCase_ == 2) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance(); } } /** *
       * [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale auto_scale = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder> getAutoScaleFieldBuilder() { if (autoScaleBuilder_ == null) { if (!(scaleTypeCase_ == 2)) { scaleType_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance(); } autoScaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder>( (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale) scaleType_, getParentForChildren(), isClean()); scaleType_ = null; } scaleTypeCase_ = 2; onChanged();; return autoScaleBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale testAutoScale_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder> testAutoScaleBuilder_; /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; * @return Whether the testAutoScale field is set. */ public boolean hasTestAutoScale() { return testAutoScaleBuilder_ != null || testAutoScale_ != null; } /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; * @return The testAutoScale. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale getTestAutoScale() { if (testAutoScaleBuilder_ == null) { return testAutoScale_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance() : testAutoScale_; } else { return testAutoScaleBuilder_.getMessage(); } } /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ public Builder setTestAutoScale(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale value) { if (testAutoScaleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } testAutoScale_ = value; onChanged(); } else { testAutoScaleBuilder_.setMessage(value); } return this; } /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ public Builder setTestAutoScale( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder builderForValue) { if (testAutoScaleBuilder_ == null) { testAutoScale_ = builderForValue.build(); onChanged(); } else { testAutoScaleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ public Builder mergeTestAutoScale(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale value) { if (testAutoScaleBuilder_ == null) { if (testAutoScale_ != null) { testAutoScale_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.newBuilder(testAutoScale_).mergeFrom(value).buildPartial(); } else { testAutoScale_ = value; } onChanged(); } else { testAutoScaleBuilder_.mergeFrom(value); } return this; } /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ public Builder clearTestAutoScale() { if (testAutoScaleBuilder_ == null) { testAutoScale_ = null; onChanged(); } else { testAutoScale_ = null; testAutoScaleBuilder_ = null; } return this; } /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder getTestAutoScaleBuilder() { onChanged(); return getTestAutoScaleFieldBuilder().getBuilder(); } /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder getTestAutoScaleOrBuilder() { if (testAutoScaleBuilder_ != null) { return testAutoScaleBuilder_.getMessageOrBuilder(); } else { return testAutoScale_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.getDefaultInstance() : testAutoScale_; } } /** *
       * Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ScalePolicy.AutoScale test_auto_scale = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder> getTestAutoScaleFieldBuilder() { if (testAutoScaleBuilder_ == null) { testAutoScaleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScale.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.AutoScaleOrBuilder>( getTestAutoScale(), getParentForChildren(), isClean()); testAutoScale_ = null; } return testAutoScaleBuilder_; } @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.ScalePolicy) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ScalePolicy) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScalePolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScalePolicy(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.InstanceGroupOuterClass.ScalePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeployPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.DeployPolicy) com.google.protobuf.MessageOrBuilder { /** *
     * The maximum number of running instances that can be taken offline (i.e., stopped or deleted) at the same time
     * during the update process.
     * If [max_expansion] is not specified or set to zero, [max_unavailable] must be set to a non-zero value.
     * 
* * int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"]; * @return The maxUnavailable. */ long getMaxUnavailable(); /** *
     * The maximum number of instances that can be deleted at the same time.
     *The value 0 is any number of virtual machines within the allowed values.
     * 
* * int64 max_deleting = 2 [(.yandex.cloud.value) = "0-100"]; * @return The maxDeleting. */ long getMaxDeleting(); /** *
     * The maximum number of instances that can be created at the same time.
     *The value 0 is any number of virtual machines within the allowed values.
     * 
* * int64 max_creating = 3 [(.yandex.cloud.value) = "0-100"]; * @return The maxCreating. */ long getMaxCreating(); /** *
     * The maximum number of instances that can be temporarily allocated above the group's target size
     * during the update process.
     * If [max_unavailable] is not specified or set to zero, [max_expansion] must be set to a non-zero value.
     * 
* * int64 max_expansion = 6 [(.yandex.cloud.value) = "0-100"]; * @return The maxExpansion. */ long getMaxExpansion(); /** *
     * Instance startup duration.
     * Instance will be considered up and running (and start receiving traffic) only after startup_duration
     * has elapsed and all health checks are passed.
     * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
     * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; * @return Whether the startupDuration field is set. */ boolean hasStartupDuration(); /** *
     * Instance startup duration.
     * Instance will be considered up and running (and start receiving traffic) only after startup_duration
     * has elapsed and all health checks are passed.
     * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
     * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; * @return The startupDuration. */ com.google.protobuf.Duration getStartupDuration(); /** *
     * Instance startup duration.
     * Instance will be considered up and running (and start receiving traffic) only after startup_duration
     * has elapsed and all health checks are passed.
     * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
     * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ com.google.protobuf.DurationOrBuilder getStartupDurationOrBuilder(); /** *
     * Affects the lifecycle of the instance during deployment.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @return The enum numeric value on the wire for strategy. */ int getStrategyValue(); /** *
     * Affects the lifecycle of the instance during deployment.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @return The strategy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy getStrategy(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DeployPolicy} */ public static final class DeployPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.DeployPolicy) DeployPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use DeployPolicy.newBuilder() to construct. private DeployPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeployPolicy() { strategy_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeployPolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeployPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { maxUnavailable_ = input.readInt64(); break; } case 16: { maxDeleting_ = input.readInt64(); break; } case 24: { maxCreating_ = input.readInt64(); break; } case 48: { maxExpansion_ = input.readInt64(); break; } case 58: { com.google.protobuf.Duration.Builder subBuilder = null; if (startupDuration_ != null) { subBuilder = startupDuration_.toBuilder(); } startupDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startupDuration_); startupDuration_ = subBuilder.buildPartial(); } break; } case 64: { int rawValue = input.readEnum(); strategy_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy} */ public enum Strategy implements com.google.protobuf.ProtocolMessageEnum { /** * STRATEGY_UNSPECIFIED = 0; */ STRATEGY_UNSPECIFIED(0), /** *
       * Instance Groups can forcefully stop a running instance. This is the default.
       * 
* * PROACTIVE = 1; */ PROACTIVE(1), /** *
       * Instance Groups does not stop a running instance.
       * Instead, it will wait until the instance stops itself or becomes unhealthy.
       * 
* * OPPORTUNISTIC = 2; */ OPPORTUNISTIC(2), UNRECOGNIZED(-1), ; /** * STRATEGY_UNSPECIFIED = 0; */ public static final int STRATEGY_UNSPECIFIED_VALUE = 0; /** *
       * Instance Groups can forcefully stop a running instance. This is the default.
       * 
* * PROACTIVE = 1; */ public static final int PROACTIVE_VALUE = 1; /** *
       * Instance Groups does not stop a running instance.
       * Instead, it will wait until the instance stops itself or becomes unhealthy.
       * 
* * OPPORTUNISTIC = 2; */ public static final int OPPORTUNISTIC_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Strategy 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 Strategy forNumber(int value) { switch (value) { case 0: return STRATEGY_UNSPECIFIED; case 1: return PROACTIVE; case 2: return OPPORTUNISTIC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Strategy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Strategy findValueByNumber(int number) { return Strategy.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.InstanceGroupOuterClass.DeployPolicy.getDescriptor().getEnumTypes().get(0); } private static final Strategy[] VALUES = values(); public static Strategy 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 Strategy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy) } public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 1; private long maxUnavailable_; /** *
     * The maximum number of running instances that can be taken offline (i.e., stopped or deleted) at the same time
     * during the update process.
     * If [max_expansion] is not specified or set to zero, [max_unavailable] must be set to a non-zero value.
     * 
* * int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"]; * @return The maxUnavailable. */ @java.lang.Override public long getMaxUnavailable() { return maxUnavailable_; } public static final int MAX_DELETING_FIELD_NUMBER = 2; private long maxDeleting_; /** *
     * The maximum number of instances that can be deleted at the same time.
     *The value 0 is any number of virtual machines within the allowed values.
     * 
* * int64 max_deleting = 2 [(.yandex.cloud.value) = "0-100"]; * @return The maxDeleting. */ @java.lang.Override public long getMaxDeleting() { return maxDeleting_; } public static final int MAX_CREATING_FIELD_NUMBER = 3; private long maxCreating_; /** *
     * The maximum number of instances that can be created at the same time.
     *The value 0 is any number of virtual machines within the allowed values.
     * 
* * int64 max_creating = 3 [(.yandex.cloud.value) = "0-100"]; * @return The maxCreating. */ @java.lang.Override public long getMaxCreating() { return maxCreating_; } public static final int MAX_EXPANSION_FIELD_NUMBER = 6; private long maxExpansion_; /** *
     * The maximum number of instances that can be temporarily allocated above the group's target size
     * during the update process.
     * If [max_unavailable] is not specified or set to zero, [max_expansion] must be set to a non-zero value.
     * 
* * int64 max_expansion = 6 [(.yandex.cloud.value) = "0-100"]; * @return The maxExpansion. */ @java.lang.Override public long getMaxExpansion() { return maxExpansion_; } public static final int STARTUP_DURATION_FIELD_NUMBER = 7; private com.google.protobuf.Duration startupDuration_; /** *
     * Instance startup duration.
     * Instance will be considered up and running (and start receiving traffic) only after startup_duration
     * has elapsed and all health checks are passed.
     * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
     * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; * @return Whether the startupDuration field is set. */ @java.lang.Override public boolean hasStartupDuration() { return startupDuration_ != null; } /** *
     * Instance startup duration.
     * Instance will be considered up and running (and start receiving traffic) only after startup_duration
     * has elapsed and all health checks are passed.
     * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
     * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; * @return The startupDuration. */ @java.lang.Override public com.google.protobuf.Duration getStartupDuration() { return startupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startupDuration_; } /** *
     * Instance startup duration.
     * Instance will be considered up and running (and start receiving traffic) only after startup_duration
     * has elapsed and all health checks are passed.
     * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
     * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getStartupDurationOrBuilder() { return getStartupDuration(); } public static final int STRATEGY_FIELD_NUMBER = 8; private int strategy_; /** *
     * Affects the lifecycle of the instance during deployment.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @return The enum numeric value on the wire for strategy. */ @java.lang.Override public int getStrategyValue() { return strategy_; } /** *
     * Affects the lifecycle of the instance during deployment.
     * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @return The strategy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy getStrategy() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy.valueOf(strategy_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy.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 (maxUnavailable_ != 0L) { output.writeInt64(1, maxUnavailable_); } if (maxDeleting_ != 0L) { output.writeInt64(2, maxDeleting_); } if (maxCreating_ != 0L) { output.writeInt64(3, maxCreating_); } if (maxExpansion_ != 0L) { output.writeInt64(6, maxExpansion_); } if (startupDuration_ != null) { output.writeMessage(7, getStartupDuration()); } if (strategy_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy.STRATEGY_UNSPECIFIED.getNumber()) { output.writeEnum(8, strategy_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxUnavailable_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, maxUnavailable_); } if (maxDeleting_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, maxDeleting_); } if (maxCreating_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, maxCreating_); } if (maxExpansion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, maxExpansion_); } if (startupDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getStartupDuration()); } if (strategy_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy.STRATEGY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, strategy_); } 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.InstanceGroupOuterClass.DeployPolicy)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy) obj; if (getMaxUnavailable() != other.getMaxUnavailable()) return false; if (getMaxDeleting() != other.getMaxDeleting()) return false; if (getMaxCreating() != other.getMaxCreating()) return false; if (getMaxExpansion() != other.getMaxExpansion()) return false; if (hasStartupDuration() != other.hasStartupDuration()) return false; if (hasStartupDuration()) { if (!getStartupDuration() .equals(other.getStartupDuration())) return false; } if (strategy_ != other.strategy_) 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) + MAX_UNAVAILABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxUnavailable()); hash = (37 * hash) + MAX_DELETING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxDeleting()); hash = (37 * hash) + MAX_CREATING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxCreating()); hash = (37 * hash) + MAX_EXPANSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxExpansion()); if (hasStartupDuration()) { hash = (37 * hash) + STARTUP_DURATION_FIELD_NUMBER; hash = (53 * hash) + getStartupDuration().hashCode(); } hash = (37 * hash) + STRATEGY_FIELD_NUMBER; hash = (53 * hash) + strategy_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy 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.InstanceGroupOuterClass.DeployPolicy 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.DeployPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.DeployPolicy) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.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(); maxUnavailable_ = 0L; maxDeleting_ = 0L; maxCreating_ = 0L; maxExpansion_ = 0L; if (startupDurationBuilder_ == null) { startupDuration_ = null; } else { startupDuration_ = null; startupDurationBuilder_ = null; } strategy_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy(this); result.maxUnavailable_ = maxUnavailable_; result.maxDeleting_ = maxDeleting_; result.maxCreating_ = maxCreating_; result.maxExpansion_ = maxExpansion_; if (startupDurationBuilder_ == null) { result.startupDuration_ = startupDuration_; } else { result.startupDuration_ = startupDurationBuilder_.build(); } result.strategy_ = strategy_; 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.InstanceGroupOuterClass.DeployPolicy) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.getDefaultInstance()) return this; if (other.getMaxUnavailable() != 0L) { setMaxUnavailable(other.getMaxUnavailable()); } if (other.getMaxDeleting() != 0L) { setMaxDeleting(other.getMaxDeleting()); } if (other.getMaxCreating() != 0L) { setMaxCreating(other.getMaxCreating()); } if (other.getMaxExpansion() != 0L) { setMaxExpansion(other.getMaxExpansion()); } if (other.hasStartupDuration()) { mergeStartupDuration(other.getStartupDuration()); } if (other.strategy_ != 0) { setStrategyValue(other.getStrategyValue()); } 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.InstanceGroupOuterClass.DeployPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long maxUnavailable_ ; /** *
       * The maximum number of running instances that can be taken offline (i.e., stopped or deleted) at the same time
       * during the update process.
       * If [max_expansion] is not specified or set to zero, [max_unavailable] must be set to a non-zero value.
       * 
* * int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"]; * @return The maxUnavailable. */ @java.lang.Override public long getMaxUnavailable() { return maxUnavailable_; } /** *
       * The maximum number of running instances that can be taken offline (i.e., stopped or deleted) at the same time
       * during the update process.
       * If [max_expansion] is not specified or set to zero, [max_unavailable] must be set to a non-zero value.
       * 
* * int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"]; * @param value The maxUnavailable to set. * @return This builder for chaining. */ public Builder setMaxUnavailable(long value) { maxUnavailable_ = value; onChanged(); return this; } /** *
       * The maximum number of running instances that can be taken offline (i.e., stopped or deleted) at the same time
       * during the update process.
       * If [max_expansion] is not specified or set to zero, [max_unavailable] must be set to a non-zero value.
       * 
* * int64 max_unavailable = 1 [(.yandex.cloud.value) = "0-100"]; * @return This builder for chaining. */ public Builder clearMaxUnavailable() { maxUnavailable_ = 0L; onChanged(); return this; } private long maxDeleting_ ; /** *
       * The maximum number of instances that can be deleted at the same time.
       *The value 0 is any number of virtual machines within the allowed values.
       * 
* * int64 max_deleting = 2 [(.yandex.cloud.value) = "0-100"]; * @return The maxDeleting. */ @java.lang.Override public long getMaxDeleting() { return maxDeleting_; } /** *
       * The maximum number of instances that can be deleted at the same time.
       *The value 0 is any number of virtual machines within the allowed values.
       * 
* * int64 max_deleting = 2 [(.yandex.cloud.value) = "0-100"]; * @param value The maxDeleting to set. * @return This builder for chaining. */ public Builder setMaxDeleting(long value) { maxDeleting_ = value; onChanged(); return this; } /** *
       * The maximum number of instances that can be deleted at the same time.
       *The value 0 is any number of virtual machines within the allowed values.
       * 
* * int64 max_deleting = 2 [(.yandex.cloud.value) = "0-100"]; * @return This builder for chaining. */ public Builder clearMaxDeleting() { maxDeleting_ = 0L; onChanged(); return this; } private long maxCreating_ ; /** *
       * The maximum number of instances that can be created at the same time.
       *The value 0 is any number of virtual machines within the allowed values.
       * 
* * int64 max_creating = 3 [(.yandex.cloud.value) = "0-100"]; * @return The maxCreating. */ @java.lang.Override public long getMaxCreating() { return maxCreating_; } /** *
       * The maximum number of instances that can be created at the same time.
       *The value 0 is any number of virtual machines within the allowed values.
       * 
* * int64 max_creating = 3 [(.yandex.cloud.value) = "0-100"]; * @param value The maxCreating to set. * @return This builder for chaining. */ public Builder setMaxCreating(long value) { maxCreating_ = value; onChanged(); return this; } /** *
       * The maximum number of instances that can be created at the same time.
       *The value 0 is any number of virtual machines within the allowed values.
       * 
* * int64 max_creating = 3 [(.yandex.cloud.value) = "0-100"]; * @return This builder for chaining. */ public Builder clearMaxCreating() { maxCreating_ = 0L; onChanged(); return this; } private long maxExpansion_ ; /** *
       * The maximum number of instances that can be temporarily allocated above the group's target size
       * during the update process.
       * If [max_unavailable] is not specified or set to zero, [max_expansion] must be set to a non-zero value.
       * 
* * int64 max_expansion = 6 [(.yandex.cloud.value) = "0-100"]; * @return The maxExpansion. */ @java.lang.Override public long getMaxExpansion() { return maxExpansion_; } /** *
       * The maximum number of instances that can be temporarily allocated above the group's target size
       * during the update process.
       * If [max_unavailable] is not specified or set to zero, [max_expansion] must be set to a non-zero value.
       * 
* * int64 max_expansion = 6 [(.yandex.cloud.value) = "0-100"]; * @param value The maxExpansion to set. * @return This builder for chaining. */ public Builder setMaxExpansion(long value) { maxExpansion_ = value; onChanged(); return this; } /** *
       * The maximum number of instances that can be temporarily allocated above the group's target size
       * during the update process.
       * If [max_unavailable] is not specified or set to zero, [max_expansion] must be set to a non-zero value.
       * 
* * int64 max_expansion = 6 [(.yandex.cloud.value) = "0-100"]; * @return This builder for chaining. */ public Builder clearMaxExpansion() { maxExpansion_ = 0L; onChanged(); return this; } private com.google.protobuf.Duration startupDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startupDurationBuilder_; /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; * @return Whether the startupDuration field is set. */ public boolean hasStartupDuration() { return startupDurationBuilder_ != null || startupDuration_ != null; } /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; * @return The startupDuration. */ public com.google.protobuf.Duration getStartupDuration() { if (startupDurationBuilder_ == null) { return startupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startupDuration_; } else { return startupDurationBuilder_.getMessage(); } } /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ public Builder setStartupDuration(com.google.protobuf.Duration value) { if (startupDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startupDuration_ = value; onChanged(); } else { startupDurationBuilder_.setMessage(value); } return this; } /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ public Builder setStartupDuration( com.google.protobuf.Duration.Builder builderForValue) { if (startupDurationBuilder_ == null) { startupDuration_ = builderForValue.build(); onChanged(); } else { startupDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ public Builder mergeStartupDuration(com.google.protobuf.Duration value) { if (startupDurationBuilder_ == null) { if (startupDuration_ != null) { startupDuration_ = com.google.protobuf.Duration.newBuilder(startupDuration_).mergeFrom(value).buildPartial(); } else { startupDuration_ = value; } onChanged(); } else { startupDurationBuilder_.mergeFrom(value); } return this; } /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ public Builder clearStartupDuration() { if (startupDurationBuilder_ == null) { startupDuration_ = null; onChanged(); } else { startupDuration_ = null; startupDurationBuilder_ = null; } return this; } /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ public com.google.protobuf.Duration.Builder getStartupDurationBuilder() { onChanged(); return getStartupDurationFieldBuilder().getBuilder(); } /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ public com.google.protobuf.DurationOrBuilder getStartupDurationOrBuilder() { if (startupDurationBuilder_ != null) { return startupDurationBuilder_.getMessageOrBuilder(); } else { return startupDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startupDuration_; } } /** *
       * Instance startup duration.
       * Instance will be considered up and running (and start receiving traffic) only after startup_duration
       * has elapsed and all health checks are passed.
       * See [yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status] for more information.
       * 
* * .google.protobuf.Duration startup_duration = 7 [(.yandex.cloud.value) = "0m-1h"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getStartupDurationFieldBuilder() { if (startupDurationBuilder_ == null) { startupDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getStartupDuration(), getParentForChildren(), isClean()); startupDuration_ = null; } return startupDurationBuilder_; } private int strategy_ = 0; /** *
       * Affects the lifecycle of the instance during deployment.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @return The enum numeric value on the wire for strategy. */ @java.lang.Override public int getStrategyValue() { return strategy_; } /** *
       * Affects the lifecycle of the instance during deployment.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @param value The enum numeric value on the wire for strategy to set. * @return This builder for chaining. */ public Builder setStrategyValue(int value) { strategy_ = value; onChanged(); return this; } /** *
       * Affects the lifecycle of the instance during deployment.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @return The strategy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy getStrategy() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy.valueOf(strategy_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy.UNRECOGNIZED : result; } /** *
       * Affects the lifecycle of the instance during deployment.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @param value The strategy to set. * @return This builder for chaining. */ public Builder setStrategy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Strategy value) { if (value == null) { throw new NullPointerException(); } strategy_ = value.getNumber(); onChanged(); return this; } /** *
       * Affects the lifecycle of the instance during deployment.
       * 
* * .yandex.cloud.compute.v1.instancegroup.DeployPolicy.Strategy strategy = 8; * @return This builder for chaining. */ public Builder clearStrategy() { strategy_ = 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.DeployPolicy) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.DeployPolicy) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeployPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeployPolicy(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.InstanceGroupOuterClass.DeployPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AllocationPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.AllocationPolicy) com.google.protobuf.MessageOrBuilder { /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ java.util.List getZonesList(); /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone getZones(int index); /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ int getZonesCount(); /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ java.util.List getZonesOrBuilderList(); /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.ZoneOrBuilder getZonesOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.AllocationPolicy} */ public static final class AllocationPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.AllocationPolicy) AllocationPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use AllocationPolicy.newBuilder() to construct. private AllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AllocationPolicy() { zones_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AllocationPolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AllocationPolicy( 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)) { zones_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } zones_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { zones_ = java.util.Collections.unmodifiableList(zones_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder.class); } public interface ZoneOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone) com.google.protobuf.MessageOrBuilder { /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @return The zoneId. */ java.lang.String getZoneId(); /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for zoneId. */ com.google.protobuf.ByteString getZoneIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone} */ public static final class Zone extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone) ZoneOrBuilder { private static final long serialVersionUID = 0L; // Use Zone.newBuilder() to construct. private Zone(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Zone() { zoneId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Zone(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Zone( 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(); zoneId_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder.class); } public static final int ZONE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object zoneId_; /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @return The zoneId. */ @java.lang.Override public java.lang.String getZoneId() { java.lang.Object ref = zoneId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneId_ = s; return s; } } /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for zoneId. */ @java.lang.Override public com.google.protobuf.ByteString getZoneIdBytes() { java.lang.Object ref = zoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); zoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(zoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zoneId_); } 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(zoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zoneId_); } 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.InstanceGroupOuterClass.AllocationPolicy.Zone)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone) obj; if (!getZoneId() .equals(other.getZoneId())) 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) + ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getZoneId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone 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.InstanceGroupOuterClass.AllocationPolicy.Zone 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.AllocationPolicy.Zone} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.ZoneOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.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(); zoneId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone(this); result.zoneId_ = zoneId_; 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.InstanceGroupOuterClass.AllocationPolicy.Zone) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.getDefaultInstance()) return this; if (!other.getZoneId().isEmpty()) { zoneId_ = other.zoneId_; 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.InstanceGroupOuterClass.AllocationPolicy.Zone parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object zoneId_ = ""; /** *
         * ID of the availability zone where the instance resides.
         * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @return The zoneId. */ public java.lang.String getZoneId() { java.lang.Object ref = zoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the availability zone where the instance resides.
         * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for zoneId. */ public com.google.protobuf.ByteString getZoneIdBytes() { java.lang.Object ref = zoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); zoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the availability zone where the instance resides.
         * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @param value The zoneId to set. * @return This builder for chaining. */ public Builder setZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } zoneId_ = value; onChanged(); return this; } /** *
         * ID of the availability zone where the instance resides.
         * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearZoneId() { zoneId_ = getDefaultInstance().getZoneId(); onChanged(); return this; } /** *
         * ID of the availability zone where the instance resides.
         * 
* * string zone_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for zoneId to set. * @return This builder for chaining. */ public Builder setZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); zoneId_ = value; onChanged(); return this; } @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.AllocationPolicy.Zone) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Zone parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Zone(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.InstanceGroupOuterClass.AllocationPolicy.Zone getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ZONES_FIELD_NUMBER = 1; private java.util.List zones_; /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public java.util.List getZonesList() { return zones_; } /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public java.util.List getZonesOrBuilderList() { return zones_; } /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public int getZonesCount() { return zones_.size(); } /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone getZones(int index) { return zones_.get(index); } /** *
     * List of availability zones.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.ZoneOrBuilder getZonesOrBuilder( int index) { return zones_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < zones_.size(); i++) { output.writeMessage(1, zones_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < zones_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, zones_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy) obj; if (!getZonesList() .equals(other.getZonesList())) 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 (getZonesCount() > 0) { hash = (37 * hash) + ZONES_FIELD_NUMBER; hash = (53 * hash) + getZonesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy 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.InstanceGroupOuterClass.AllocationPolicy 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.AllocationPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.AllocationPolicy) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getZonesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (zonesBuilder_ == null) { zones_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { zonesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy(this); int from_bitField0_ = bitField0_; if (zonesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { zones_ = java.util.Collections.unmodifiableList(zones_); bitField0_ = (bitField0_ & ~0x00000001); } result.zones_ = zones_; } else { result.zones_ = zonesBuilder_.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.InstanceGroupOuterClass.AllocationPolicy) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.getDefaultInstance()) return this; if (zonesBuilder_ == null) { if (!other.zones_.isEmpty()) { if (zones_.isEmpty()) { zones_ = other.zones_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureZonesIsMutable(); zones_.addAll(other.zones_); } onChanged(); } } else { if (!other.zones_.isEmpty()) { if (zonesBuilder_.isEmpty()) { zonesBuilder_.dispose(); zonesBuilder_ = null; zones_ = other.zones_; bitField0_ = (bitField0_ & ~0x00000001); zonesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getZonesFieldBuilder() : null; } else { zonesBuilder_.addAllMessages(other.zones_); } } } 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.InstanceGroupOuterClass.AllocationPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List zones_ = java.util.Collections.emptyList(); private void ensureZonesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { zones_ = new java.util.ArrayList(zones_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.ZoneOrBuilder> zonesBuilder_; /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public java.util.List getZonesList() { if (zonesBuilder_ == null) { return java.util.Collections.unmodifiableList(zones_); } else { return zonesBuilder_.getMessageList(); } } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public int getZonesCount() { if (zonesBuilder_ == null) { return zones_.size(); } else { return zonesBuilder_.getCount(); } } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone getZones(int index) { if (zonesBuilder_ == null) { return zones_.get(index); } else { return zonesBuilder_.getMessage(index); } } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder setZones( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone value) { if (zonesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureZonesIsMutable(); zones_.set(index, value); onChanged(); } else { zonesBuilder_.setMessage(index, value); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder setZones( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder builderForValue) { if (zonesBuilder_ == null) { ensureZonesIsMutable(); zones_.set(index, builderForValue.build()); onChanged(); } else { zonesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addZones(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone value) { if (zonesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureZonesIsMutable(); zones_.add(value); onChanged(); } else { zonesBuilder_.addMessage(value); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addZones( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone value) { if (zonesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureZonesIsMutable(); zones_.add(index, value); onChanged(); } else { zonesBuilder_.addMessage(index, value); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addZones( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder builderForValue) { if (zonesBuilder_ == null) { ensureZonesIsMutable(); zones_.add(builderForValue.build()); onChanged(); } else { zonesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addZones( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder builderForValue) { if (zonesBuilder_ == null) { ensureZonesIsMutable(); zones_.add(index, builderForValue.build()); onChanged(); } else { zonesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addAllZones( java.lang.Iterable values) { if (zonesBuilder_ == null) { ensureZonesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, zones_); onChanged(); } else { zonesBuilder_.addAllMessages(values); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder clearZones() { if (zonesBuilder_ == null) { zones_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { zonesBuilder_.clear(); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder removeZones(int index) { if (zonesBuilder_ == null) { ensureZonesIsMutable(); zones_.remove(index); onChanged(); } else { zonesBuilder_.remove(index); } return this; } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder getZonesBuilder( int index) { return getZonesFieldBuilder().getBuilder(index); } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.ZoneOrBuilder getZonesOrBuilder( int index) { if (zonesBuilder_ == null) { return zones_.get(index); } else { return zonesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public java.util.List getZonesOrBuilderList() { if (zonesBuilder_ != null) { return zonesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(zones_); } } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder addZonesBuilder() { return getZonesFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.getDefaultInstance()); } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder addZonesBuilder( int index) { return getZonesFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.getDefaultInstance()); } /** *
       * List of availability zones.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AllocationPolicy.Zone zones = 1 [(.yandex.cloud.size) = ">=1"]; */ public java.util.List getZonesBuilderList() { return getZonesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.ZoneOrBuilder> getZonesFieldBuilder() { if (zonesBuilder_ == null) { zonesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Zone.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.ZoneOrBuilder>( zones_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); zones_ = null; } return zonesBuilder_; } @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.AllocationPolicy) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.AllocationPolicy) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AllocationPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AllocationPolicy(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.InstanceGroupOuterClass.AllocationPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InstanceTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.InstanceTemplate) com.google.protobuf.MessageOrBuilder { /** *
     * Description of the instance template.
     * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the instance template.
     * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.yandex.cloud.map_key) = { ... } */ int getLabelsCount(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.yandex.cloud.map_key) = { ... } */ java.util.Map getLabelsMap(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.yandex.cloud.map_key) = { ... } */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * ID of the hardware platform configuration for the instance.
     * Platforms allows you to create various types of instances: with a large amount of memory,
     * with a large number of cores, with a burstable performance.
     * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
     * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @return The platformId. */ java.lang.String getPlatformId(); /** *
     * ID of the hardware platform configuration for the instance.
     * Platforms allows you to create various types of instances: with a large amount of memory,
     * with a large number of cores, with a burstable performance.
     * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
     * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @return The bytes for platformId. */ com.google.protobuf.ByteString getPlatformIdBytes(); /** *
     * Computing resources of the instance such as the amount of memory and number of cores.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; * @return Whether the resourcesSpec field is set. */ boolean hasResourcesSpec(); /** *
     * Computing resources of the instance such as the amount of memory and number of cores.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; * @return The resourcesSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec getResourcesSpec(); /** *
     * Computing resources of the instance such as the amount of memory and number of cores.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder(); /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ int getMetadataCount(); /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map getMetadata(); /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ java.util.Map getMetadataMap(); /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ java.lang.String getMetadataOrThrow( java.lang.String key); /** *
     * Boot disk specification that will be attached to the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; * @return Whether the bootDiskSpec field is set. */ boolean hasBootDiskSpec(); /** *
     * Boot disk specification that will be attached to the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; * @return The bootDiskSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getBootDiskSpec(); /** *
     * Boot disk specification that will be attached to the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder getBootDiskSpecOrBuilder(); /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ java.util.List getSecondaryDiskSpecsList(); /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getSecondaryDiskSpecs(int index); /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ int getSecondaryDiskSpecsCount(); /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ java.util.List getSecondaryDiskSpecsOrBuilderList(); /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder getSecondaryDiskSpecsOrBuilder( int index); /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ java.util.List getNetworkInterfaceSpecsList(); /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec getNetworkInterfaceSpecs(int index); /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ int getNetworkInterfaceSpecsCount(); /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ java.util.List getNetworkInterfaceSpecsOrBuilderList(); /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpecOrBuilder getNetworkInterfaceSpecsOrBuilder( int index); /** *
     * Scheduling policy for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; * @return Whether the schedulingPolicy field is set. */ boolean hasSchedulingPolicy(); /** *
     * Scheduling policy for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; * @return The schedulingPolicy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy getSchedulingPolicy(); /** *
     * Scheduling policy for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder(); /** *
     * Service account ID for the instance.
     * 
* * string service_account_id = 10; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * Service account ID for the instance.
     * 
* * string service_account_id = 10; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Network settings for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; * @return Whether the networkSettings field is set. */ boolean hasNetworkSettings(); /** *
     * Network settings for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; * @return The networkSettings. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings getNetworkSettings(); /** *
     * Network settings for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder(); /** *
     * Name of the instance.
     * In order to be unique it must contain at least on of instance unique placeholders:
     *   {instance.short_id}
     *   {instance.index}
     *   combination of {instance.zone_id} and {instance.index_in_zone}
     * Example: my-instance-{instance.index}
     * If not set, default is used: {instance_group.id}-{instance.short_id}
     * It may also contain another placeholders, see metadata doc for full list.
     * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the instance.
     * In order to be unique it must contain at least on of instance unique placeholders:
     *   {instance.short_id}
     *   {instance.index}
     *   combination of {instance.zone_id} and {instance.index_in_zone}
     * Example: my-instance-{instance.index}
     * If not set, default is used: {instance_group.id}-{instance.short_id}
     * It may also contain another placeholders, see metadata doc for full list.
     * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Host name for the instance.
     * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
     * The host name must be unique within the network and region.
     * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
     * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
     * In order to be unique it must contain at least on of instance unique placeholders:
     *   {instance.short_id}
     *   {instance.index}
     *   combination of {instance.zone_id} and {instance.index_in_zone}
     * Example: my-instance-{instance.index}
     * If not set, `name` value will be used
     * It may also contain another placeholders, see metadata doc for full list.
     * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @return The hostname. */ java.lang.String getHostname(); /** *
     * Host name for the instance.
     * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
     * The host name must be unique within the network and region.
     * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
     * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
     * In order to be unique it must contain at least on of instance unique placeholders:
     *   {instance.short_id}
     *   {instance.index}
     *   combination of {instance.zone_id} and {instance.index_in_zone}
     * Example: my-instance-{instance.index}
     * If not set, `name` value will be used
     * It may also contain another placeholders, see metadata doc for full list.
     * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @return The bytes for hostname. */ com.google.protobuf.ByteString getHostnameBytes(); /** *
     * Placement Group
     * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; * @return Whether the placementPolicy field is set. */ boolean hasPlacementPolicy(); /** *
     * Placement Group
     * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; * @return The placementPolicy. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy getPlacementPolicy(); /** *
     * Placement Group
     * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder(); /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ java.util.List getFilesystemSpecsList(); /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec getFilesystemSpecs(int index); /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ int getFilesystemSpecsCount(); /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ java.util.List getFilesystemSpecsOrBuilderList(); /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpecOrBuilder getFilesystemSpecsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.InstanceTemplate} */ public static final class InstanceTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.InstanceTemplate) InstanceTemplateOrBuilder { private static final long serialVersionUID = 0L; // Use InstanceTemplate.newBuilder() to construct. private InstanceTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InstanceTemplate() { description_ = ""; platformId_ = ""; secondaryDiskSpecs_ = java.util.Collections.emptyList(); networkInterfaceSpecs_ = java.util.Collections.emptyList(); serviceAccountId_ = ""; name_ = ""; hostname_ = ""; filesystemSpecs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InstanceTemplate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InstanceTemplate( 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(); description_ = s; break; } case 18: { 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 26: { java.lang.String s = input.readStringRequireUtf8(); platformId_ = s; break; } case 34: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.Builder subBuilder = null; if (resourcesSpec_ != null) { subBuilder = resourcesSpec_.toBuilder(); } resourcesSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resourcesSpec_); resourcesSpec_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); metadata_.getMutableMap().put( metadata__.getKey(), metadata__.getValue()); break; } case 50: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder subBuilder = null; if (bootDiskSpec_ != null) { subBuilder = bootDiskSpec_.toBuilder(); } bootDiskSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bootDiskSpec_); bootDiskSpec_ = subBuilder.buildPartial(); } break; } case 58: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { secondaryDiskSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } secondaryDiskSpecs_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.parser(), extensionRegistry)); break; } case 66: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { networkInterfaceSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } networkInterfaceSpecs_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.parser(), extensionRegistry)); break; } case 74: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.Builder subBuilder = null; if (schedulingPolicy_ != null) { subBuilder = schedulingPolicy_.toBuilder(); } schedulingPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schedulingPolicy_); schedulingPolicy_ = subBuilder.buildPartial(); } break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 90: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Builder subBuilder = null; if (networkSettings_ != null) { subBuilder = networkSettings_.toBuilder(); } networkSettings_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(networkSettings_); networkSettings_ = subBuilder.buildPartial(); } break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 106: { java.lang.String s = input.readStringRequireUtf8(); hostname_ = s; break; } case 114: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.Builder subBuilder = null; if (placementPolicy_ != null) { subBuilder = placementPolicy_.toBuilder(); } placementPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(placementPolicy_); placementPolicy_ = subBuilder.buildPartial(); } break; } case 122: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { filesystemSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } filesystemSpecs_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { secondaryDiskSpecs_ = java.util.Collections.unmodifiableList(secondaryDiskSpecs_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { networkInterfaceSpecs_ = java.util.Collections.unmodifiableList(networkInterfaceSpecs_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { filesystemSpecs_ = java.util.Collections.unmodifiableList(filesystemSpecs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetLabels(); case 5: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** *
     * Description of the instance template.
     * 
* * string description = 1 [(.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 template.
     * 
* * string description = 1 [(.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 = 2; 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PLATFORM_ID_FIELD_NUMBER = 3; private volatile java.lang.Object platformId_; /** *
     * ID of the hardware platform configuration for the instance.
     * Platforms allows you to create various types of instances: with a large amount of memory,
     * with a large number of cores, with a burstable performance.
     * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
     * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @return The platformId. */ @java.lang.Override public java.lang.String getPlatformId() { java.lang.Object ref = platformId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); platformId_ = s; return s; } } /** *
     * ID of the hardware platform configuration for the instance.
     * Platforms allows you to create various types of instances: with a large amount of memory,
     * with a large number of cores, with a burstable performance.
     * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
     * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @return The bytes for platformId. */ @java.lang.Override public com.google.protobuf.ByteString getPlatformIdBytes() { java.lang.Object ref = platformId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); platformId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCES_SPEC_FIELD_NUMBER = 4; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec resourcesSpec_; /** *
     * Computing resources of the instance such as the amount of memory and number of cores.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; * @return Whether the resourcesSpec field is set. */ @java.lang.Override public boolean hasResourcesSpec() { return resourcesSpec_ != null; } /** *
     * Computing resources of the instance such as the amount of memory and number of cores.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; * @return The resourcesSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec getResourcesSpec() { return resourcesSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_; } /** *
     * Computing resources of the instance such as the amount of memory and number of cores.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder() { return getResourcesSpec(); } public static final int METADATA_FIELD_NUMBER = 5; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
     * Metadata values may contain one of the supported placeholders:
     *   {instance_group.id}
     *   {instance.short_id}
     *   {instance.index}
     *   {instance.index_in_zone}
     *   {instance.zone_id}
     * InstanceGroup and Instance labels may be copied to metadata following way:
     *   {instance_group.labels.some_label_key}
     *   {instance.labels.another_label_key}
     * These placeholders will be substituted for each created instance anywhere in the value text.
     * In the rare case the value requires to contain this placeholder explicitly,
     * it must be escaped with double brackets, in example {instance.index}.
     * For example, you may use the metadata in order to provide your public SSH key to the instance.
     * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
     * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int BOOT_DISK_SPEC_FIELD_NUMBER = 6; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec bootDiskSpec_; /** *
     * Boot disk specification that will be attached to the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; * @return Whether the bootDiskSpec field is set. */ @java.lang.Override public boolean hasBootDiskSpec() { return bootDiskSpec_ != null; } /** *
     * Boot disk specification that will be attached to the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; * @return The bootDiskSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getBootDiskSpec() { return bootDiskSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.getDefaultInstance() : bootDiskSpec_; } /** *
     * Boot disk specification that will be attached to the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder getBootDiskSpecOrBuilder() { return getBootDiskSpec(); } public static final int SECONDARY_DISK_SPECS_FIELD_NUMBER = 7; private java.util.List secondaryDiskSpecs_; /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public java.util.List getSecondaryDiskSpecsList() { return secondaryDiskSpecs_; } /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public java.util.List getSecondaryDiskSpecsOrBuilderList() { return secondaryDiskSpecs_; } /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public int getSecondaryDiskSpecsCount() { return secondaryDiskSpecs_.size(); } /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getSecondaryDiskSpecs(int index) { return secondaryDiskSpecs_.get(index); } /** *
     * Array of secondary disks that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder getSecondaryDiskSpecsOrBuilder( int index) { return secondaryDiskSpecs_.get(index); } public static final int NETWORK_INTERFACE_SPECS_FIELD_NUMBER = 8; private java.util.List networkInterfaceSpecs_; /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ @java.lang.Override public java.util.List getNetworkInterfaceSpecsList() { return networkInterfaceSpecs_; } /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ @java.lang.Override public java.util.List getNetworkInterfaceSpecsOrBuilderList() { return networkInterfaceSpecs_; } /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ @java.lang.Override public int getNetworkInterfaceSpecsCount() { return networkInterfaceSpecs_.size(); } /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec getNetworkInterfaceSpecs(int index) { return networkInterfaceSpecs_.get(index); } /** *
     * Array of network interfaces that will be attached to the instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpecOrBuilder getNetworkInterfaceSpecsOrBuilder( int index) { return networkInterfaceSpecs_.get(index); } public static final int SCHEDULING_POLICY_FIELD_NUMBER = 9; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy schedulingPolicy_; /** *
     * Scheduling policy for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; * @return Whether the schedulingPolicy field is set. */ @java.lang.Override public boolean hasSchedulingPolicy() { return schedulingPolicy_ != null; } /** *
     * Scheduling policy for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; * @return The schedulingPolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy getSchedulingPolicy() { return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_; } /** *
     * Scheduling policy for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder() { return getSchedulingPolicy(); } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 10; private volatile java.lang.Object serviceAccountId_; /** *
     * Service account ID for the instance.
     * 
* * string service_account_id = 10; * @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; } } /** *
     * Service account ID for the instance.
     * 
* * string service_account_id = 10; * @return The bytes for serviceAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NETWORK_SETTINGS_FIELD_NUMBER = 11; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings networkSettings_; /** *
     * Network settings for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; * @return Whether the networkSettings field is set. */ @java.lang.Override public boolean hasNetworkSettings() { return networkSettings_ != null; } /** *
     * Network settings for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; * @return The networkSettings. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings getNetworkSettings() { return networkSettings_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_; } /** *
     * Network settings for the instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() { return getNetworkSettings(); } public static final int NAME_FIELD_NUMBER = 12; private volatile java.lang.Object name_; /** *
     * Name of the instance.
     * In order to be unique it must contain at least on of instance unique placeholders:
     *   {instance.short_id}
     *   {instance.index}
     *   combination of {instance.zone_id} and {instance.index_in_zone}
     * Example: my-instance-{instance.index}
     * If not set, default is used: {instance_group.id}-{instance.short_id}
     * It may also contain another placeholders, see metadata doc for full list.
     * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @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.
     * In order to be unique it must contain at least on of instance unique placeholders:
     *   {instance.short_id}
     *   {instance.index}
     *   combination of {instance.zone_id} and {instance.index_in_zone}
     * Example: my-instance-{instance.index}
     * If not set, default is used: {instance_group.id}-{instance.short_id}
     * It may also contain another placeholders, see metadata doc for full list.
     * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @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 HOSTNAME_FIELD_NUMBER = 13; private volatile java.lang.Object hostname_; /** *
     * Host name for the instance.
     * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
     * The host name must be unique within the network and region.
     * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
     * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
     * In order to be unique it must contain at least on of instance unique placeholders:
     *   {instance.short_id}
     *   {instance.index}
     *   combination of {instance.zone_id} and {instance.index_in_zone}
     * Example: my-instance-{instance.index}
     * If not set, `name` value will be used
     * It may also contain another placeholders, see metadata doc for full list.
     * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @return The hostname. */ @java.lang.Override public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** *
     * Host name for the instance.
     * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
     * The host name must be unique within the network and region.
     * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
     * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
     * In order to be unique it must contain at least on of instance unique placeholders:
     *   {instance.short_id}
     *   {instance.index}
     *   combination of {instance.zone_id} and {instance.index_in_zone}
     * Example: my-instance-{instance.index}
     * If not set, `name` value will be used
     * It may also contain another placeholders, see metadata doc for full list.
     * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @return The bytes for hostname. */ @java.lang.Override public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLACEMENT_POLICY_FIELD_NUMBER = 14; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy placementPolicy_; /** *
     * Placement Group
     * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; * @return Whether the placementPolicy field is set. */ @java.lang.Override public boolean hasPlacementPolicy() { return placementPolicy_ != null; } /** *
     * Placement Group
     * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; * @return The placementPolicy. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy getPlacementPolicy() { return placementPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_; } /** *
     * Placement Group
     * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { return getPlacementPolicy(); } public static final int FILESYSTEM_SPECS_FIELD_NUMBER = 15; private java.util.List filesystemSpecs_; /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ @java.lang.Override public java.util.List getFilesystemSpecsList() { return filesystemSpecs_; } /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ @java.lang.Override public java.util.List getFilesystemSpecsOrBuilderList() { return filesystemSpecs_; } /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ @java.lang.Override public int getFilesystemSpecsCount() { return filesystemSpecs_.size(); } /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec getFilesystemSpecs(int index) { return filesystemSpecs_.get(index); } /** *
     * Array of filesystems to attach to the instance.
     * The filesystems must reside in the same availability zone as the instance.
     * To use the instance with an attached filesystem, the latter must be mounted.
     * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpecOrBuilder getFilesystemSpecsOrBuilder( int index) { return filesystemSpecs_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, platformId_); } if (resourcesSpec_ != null) { output.writeMessage(4, getResourcesSpec()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 5); if (bootDiskSpec_ != null) { output.writeMessage(6, getBootDiskSpec()); } for (int i = 0; i < secondaryDiskSpecs_.size(); i++) { output.writeMessage(7, secondaryDiskSpecs_.get(i)); } for (int i = 0; i < networkInterfaceSpecs_.size(); i++) { output.writeMessage(8, networkInterfaceSpecs_.get(i)); } if (schedulingPolicy_ != null) { output.writeMessage(9, getSchedulingPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, serviceAccountId_); } if (networkSettings_ != null) { output.writeMessage(11, getNetworkSettings()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, hostname_); } if (placementPolicy_ != null) { output.writeMessage(14, getPlacementPolicy()); } for (int i = 0; i < filesystemSpecs_.size(); i++) { output.writeMessage(15, filesystemSpecs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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(2, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, platformId_); } if (resourcesSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResourcesSpec()); } for (java.util.Map.Entry entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, metadata__); } if (bootDiskSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getBootDiskSpec()); } for (int i = 0; i < secondaryDiskSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, secondaryDiskSpecs_.get(i)); } for (int i = 0; i < networkInterfaceSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, networkInterfaceSpecs_.get(i)); } if (schedulingPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getSchedulingPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccountId_); } if (networkSettings_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getNetworkSettings()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, hostname_); } if (placementPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getPlacementPolicy()); } for (int i = 0; i < filesystemSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, filesystemSpecs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate) obj; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getPlatformId() .equals(other.getPlatformId())) return false; if (hasResourcesSpec() != other.hasResourcesSpec()) return false; if (hasResourcesSpec()) { if (!getResourcesSpec() .equals(other.getResourcesSpec())) return false; } if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; if (hasBootDiskSpec() != other.hasBootDiskSpec()) return false; if (hasBootDiskSpec()) { if (!getBootDiskSpec() .equals(other.getBootDiskSpec())) return false; } if (!getSecondaryDiskSpecsList() .equals(other.getSecondaryDiskSpecsList())) return false; if (!getNetworkInterfaceSpecsList() .equals(other.getNetworkInterfaceSpecsList())) return false; if (hasSchedulingPolicy() != other.hasSchedulingPolicy()) return false; if (hasSchedulingPolicy()) { if (!getSchedulingPolicy() .equals(other.getSchedulingPolicy())) return false; } if (!getServiceAccountId() .equals(other.getServiceAccountId())) return false; if (hasNetworkSettings() != other.hasNetworkSettings()) return false; if (hasNetworkSettings()) { if (!getNetworkSettings() .equals(other.getNetworkSettings())) return false; } if (!getName() .equals(other.getName())) return false; if (!getHostname() .equals(other.getHostname())) return false; if (hasPlacementPolicy() != other.hasPlacementPolicy()) return false; if (hasPlacementPolicy()) { if (!getPlacementPolicy() .equals(other.getPlacementPolicy())) return false; } if (!getFilesystemSpecsList() .equals(other.getFilesystemSpecsList())) 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) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + PLATFORM_ID_FIELD_NUMBER; hash = (53 * hash) + getPlatformId().hashCode(); if (hasResourcesSpec()) { hash = (37 * hash) + RESOURCES_SPEC_FIELD_NUMBER; hash = (53 * hash) + getResourcesSpec().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } if (hasBootDiskSpec()) { hash = (37 * hash) + BOOT_DISK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getBootDiskSpec().hashCode(); } if (getSecondaryDiskSpecsCount() > 0) { hash = (37 * hash) + SECONDARY_DISK_SPECS_FIELD_NUMBER; hash = (53 * hash) + getSecondaryDiskSpecsList().hashCode(); } if (getNetworkInterfaceSpecsCount() > 0) { hash = (37 * hash) + NETWORK_INTERFACE_SPECS_FIELD_NUMBER; hash = (53 * hash) + getNetworkInterfaceSpecsList().hashCode(); } if (hasSchedulingPolicy()) { hash = (37 * hash) + SCHEDULING_POLICY_FIELD_NUMBER; hash = (53 * hash) + getSchedulingPolicy().hashCode(); } hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountId().hashCode(); if (hasNetworkSettings()) { hash = (37 * hash) + NETWORK_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getNetworkSettings().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getHostname().hashCode(); if (hasPlacementPolicy()) { hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER; hash = (53 * hash) + getPlacementPolicy().hashCode(); } if (getFilesystemSpecsCount() > 0) { hash = (37 * hash) + FILESYSTEM_SPECS_FIELD_NUMBER; hash = (53 * hash) + getFilesystemSpecsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate 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.InstanceGroupOuterClass.InstanceTemplate 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.InstanceTemplate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.InstanceTemplate) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetLabels(); case 5: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableLabels(); case 5: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSecondaryDiskSpecsFieldBuilder(); getNetworkInterfaceSpecsFieldBuilder(); getFilesystemSpecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); description_ = ""; internalGetMutableLabels().clear(); platformId_ = ""; if (resourcesSpecBuilder_ == null) { resourcesSpec_ = null; } else { resourcesSpec_ = null; resourcesSpecBuilder_ = null; } internalGetMutableMetadata().clear(); if (bootDiskSpecBuilder_ == null) { bootDiskSpec_ = null; } else { bootDiskSpec_ = null; bootDiskSpecBuilder_ = null; } if (secondaryDiskSpecsBuilder_ == null) { secondaryDiskSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { secondaryDiskSpecsBuilder_.clear(); } if (networkInterfaceSpecsBuilder_ == null) { networkInterfaceSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { networkInterfaceSpecsBuilder_.clear(); } if (schedulingPolicyBuilder_ == null) { schedulingPolicy_ = null; } else { schedulingPolicy_ = null; schedulingPolicyBuilder_ = null; } serviceAccountId_ = ""; if (networkSettingsBuilder_ == null) { networkSettings_ = null; } else { networkSettings_ = null; networkSettingsBuilder_ = null; } name_ = ""; hostname_ = ""; if (placementPolicyBuilder_ == null) { placementPolicy_ = null; } else { placementPolicy_ = null; placementPolicyBuilder_ = null; } if (filesystemSpecsBuilder_ == null) { filesystemSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { filesystemSpecsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate(this); int from_bitField0_ = bitField0_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.platformId_ = platformId_; if (resourcesSpecBuilder_ == null) { result.resourcesSpec_ = resourcesSpec_; } else { result.resourcesSpec_ = resourcesSpecBuilder_.build(); } result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); if (bootDiskSpecBuilder_ == null) { result.bootDiskSpec_ = bootDiskSpec_; } else { result.bootDiskSpec_ = bootDiskSpecBuilder_.build(); } if (secondaryDiskSpecsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { secondaryDiskSpecs_ = java.util.Collections.unmodifiableList(secondaryDiskSpecs_); bitField0_ = (bitField0_ & ~0x00000004); } result.secondaryDiskSpecs_ = secondaryDiskSpecs_; } else { result.secondaryDiskSpecs_ = secondaryDiskSpecsBuilder_.build(); } if (networkInterfaceSpecsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { networkInterfaceSpecs_ = java.util.Collections.unmodifiableList(networkInterfaceSpecs_); bitField0_ = (bitField0_ & ~0x00000008); } result.networkInterfaceSpecs_ = networkInterfaceSpecs_; } else { result.networkInterfaceSpecs_ = networkInterfaceSpecsBuilder_.build(); } if (schedulingPolicyBuilder_ == null) { result.schedulingPolicy_ = schedulingPolicy_; } else { result.schedulingPolicy_ = schedulingPolicyBuilder_.build(); } result.serviceAccountId_ = serviceAccountId_; if (networkSettingsBuilder_ == null) { result.networkSettings_ = networkSettings_; } else { result.networkSettings_ = networkSettingsBuilder_.build(); } result.name_ = name_; result.hostname_ = hostname_; if (placementPolicyBuilder_ == null) { result.placementPolicy_ = placementPolicy_; } else { result.placementPolicy_ = placementPolicyBuilder_.build(); } if (filesystemSpecsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { filesystemSpecs_ = java.util.Collections.unmodifiableList(filesystemSpecs_); bitField0_ = (bitField0_ & ~0x00000010); } result.filesystemSpecs_ = filesystemSpecs_; } else { result.filesystemSpecs_ = filesystemSpecsBuilder_.build(); } 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.InstanceGroupOuterClass.InstanceTemplate) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (!other.getPlatformId().isEmpty()) { platformId_ = other.platformId_; onChanged(); } if (other.hasResourcesSpec()) { mergeResourcesSpec(other.getResourcesSpec()); } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); if (other.hasBootDiskSpec()) { mergeBootDiskSpec(other.getBootDiskSpec()); } if (secondaryDiskSpecsBuilder_ == null) { if (!other.secondaryDiskSpecs_.isEmpty()) { if (secondaryDiskSpecs_.isEmpty()) { secondaryDiskSpecs_ = other.secondaryDiskSpecs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSecondaryDiskSpecsIsMutable(); secondaryDiskSpecs_.addAll(other.secondaryDiskSpecs_); } onChanged(); } } else { if (!other.secondaryDiskSpecs_.isEmpty()) { if (secondaryDiskSpecsBuilder_.isEmpty()) { secondaryDiskSpecsBuilder_.dispose(); secondaryDiskSpecsBuilder_ = null; secondaryDiskSpecs_ = other.secondaryDiskSpecs_; bitField0_ = (bitField0_ & ~0x00000004); secondaryDiskSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecondaryDiskSpecsFieldBuilder() : null; } else { secondaryDiskSpecsBuilder_.addAllMessages(other.secondaryDiskSpecs_); } } } if (networkInterfaceSpecsBuilder_ == null) { if (!other.networkInterfaceSpecs_.isEmpty()) { if (networkInterfaceSpecs_.isEmpty()) { networkInterfaceSpecs_ = other.networkInterfaceSpecs_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureNetworkInterfaceSpecsIsMutable(); networkInterfaceSpecs_.addAll(other.networkInterfaceSpecs_); } onChanged(); } } else { if (!other.networkInterfaceSpecs_.isEmpty()) { if (networkInterfaceSpecsBuilder_.isEmpty()) { networkInterfaceSpecsBuilder_.dispose(); networkInterfaceSpecsBuilder_ = null; networkInterfaceSpecs_ = other.networkInterfaceSpecs_; bitField0_ = (bitField0_ & ~0x00000008); networkInterfaceSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNetworkInterfaceSpecsFieldBuilder() : null; } else { networkInterfaceSpecsBuilder_.addAllMessages(other.networkInterfaceSpecs_); } } } if (other.hasSchedulingPolicy()) { mergeSchedulingPolicy(other.getSchedulingPolicy()); } if (!other.getServiceAccountId().isEmpty()) { serviceAccountId_ = other.serviceAccountId_; onChanged(); } if (other.hasNetworkSettings()) { mergeNetworkSettings(other.getNetworkSettings()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; onChanged(); } if (other.hasPlacementPolicy()) { mergePlacementPolicy(other.getPlacementPolicy()); } if (filesystemSpecsBuilder_ == null) { if (!other.filesystemSpecs_.isEmpty()) { if (filesystemSpecs_.isEmpty()) { filesystemSpecs_ = other.filesystemSpecs_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFilesystemSpecsIsMutable(); filesystemSpecs_.addAll(other.filesystemSpecs_); } onChanged(); } } else { if (!other.filesystemSpecs_.isEmpty()) { if (filesystemSpecsBuilder_.isEmpty()) { filesystemSpecsBuilder_.dispose(); filesystemSpecsBuilder_ = null; filesystemSpecs_ = other.filesystemSpecs_; bitField0_ = (bitField0_ & ~0x00000010); filesystemSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFilesystemSpecsFieldBuilder() : null; } else { filesystemSpecsBuilder_.addAllMessages(other.filesystemSpecs_); } } } 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.InstanceGroupOuterClass.InstanceTemplate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object description_ = ""; /** *
       * Description of the instance template.
       * 
* * string description = 1 [(.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 template.
       * 
* * string description = 1 [(.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 template.
       * 
* * string description = 1 [(.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 template.
       * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the instance template.
       * 
* * string description = 1 [(.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.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 = 2 [(.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=128", (.yandex.cloud.map_key) = { ... } */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.lang.Object platformId_ = ""; /** *
       * ID of the hardware platform configuration for the instance.
       * Platforms allows you to create various types of instances: with a large amount of memory,
       * with a large number of cores, with a burstable performance.
       * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
       * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @return The platformId. */ public java.lang.String getPlatformId() { java.lang.Object ref = platformId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); platformId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the hardware platform configuration for the instance.
       * Platforms allows you to create various types of instances: with a large amount of memory,
       * with a large number of cores, with a burstable performance.
       * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
       * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @return The bytes for platformId. */ public com.google.protobuf.ByteString getPlatformIdBytes() { java.lang.Object ref = platformId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); platformId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the hardware platform configuration for the instance.
       * Platforms allows you to create various types of instances: with a large amount of memory,
       * with a large number of cores, with a burstable performance.
       * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
       * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @param value The platformId to set. * @return This builder for chaining. */ public Builder setPlatformId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } platformId_ = value; onChanged(); return this; } /** *
       * ID of the hardware platform configuration for the instance.
       * Platforms allows you to create various types of instances: with a large amount of memory,
       * with a large number of cores, with a burstable performance.
       * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
       * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearPlatformId() { platformId_ = getDefaultInstance().getPlatformId(); onChanged(); return this; } /** *
       * ID of the hardware platform configuration for the instance.
       * Platforms allows you to create various types of instances: with a large amount of memory,
       * with a large number of cores, with a burstable performance.
       * For more information, see [Platforms](/docs/compute/concepts/vm-platforms).
       * 
* * string platform_id = 3 [(.yandex.cloud.required) = true]; * @param value The bytes for platformId to set. * @return This builder for chaining. */ public Builder setPlatformIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); platformId_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec resourcesSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpecOrBuilder> resourcesSpecBuilder_; /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; * @return Whether the resourcesSpec field is set. */ public boolean hasResourcesSpec() { return resourcesSpecBuilder_ != null || resourcesSpec_ != null; } /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; * @return The resourcesSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec getResourcesSpec() { if (resourcesSpecBuilder_ == null) { return resourcesSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_; } else { return resourcesSpecBuilder_.getMessage(); } } /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ public Builder setResourcesSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec value) { if (resourcesSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourcesSpec_ = value; onChanged(); } else { resourcesSpecBuilder_.setMessage(value); } return this; } /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ public Builder setResourcesSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.Builder builderForValue) { if (resourcesSpecBuilder_ == null) { resourcesSpec_ = builderForValue.build(); onChanged(); } else { resourcesSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ public Builder mergeResourcesSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec value) { if (resourcesSpecBuilder_ == null) { if (resourcesSpec_ != null) { resourcesSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.newBuilder(resourcesSpec_).mergeFrom(value).buildPartial(); } else { resourcesSpec_ = value; } onChanged(); } else { resourcesSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ public Builder clearResourcesSpec() { if (resourcesSpecBuilder_ == null) { resourcesSpec_ = null; onChanged(); } else { resourcesSpec_ = null; resourcesSpecBuilder_ = null; } return this; } /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.Builder getResourcesSpecBuilder() { onChanged(); return getResourcesSpecFieldBuilder().getBuilder(); } /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpecOrBuilder getResourcesSpecOrBuilder() { if (resourcesSpecBuilder_ != null) { return resourcesSpecBuilder_.getMessageOrBuilder(); } else { return resourcesSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.getDefaultInstance() : resourcesSpec_; } } /** *
       * Computing resources of the instance such as the amount of memory and number of cores.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ResourcesSpec resources_spec = 4 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpecOrBuilder> getResourcesSpecFieldBuilder() { if (resourcesSpecBuilder_ == null) { resourcesSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpecOrBuilder>( getResourcesSpec(), getParentForChildren(), isClean()); resourcesSpec_ = null; } return resourcesSpecBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField internalGetMutableMetadata() { onChanged();; if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
       * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
       * Metadata values may contain one of the supported placeholders:
       *   {instance_group.id}
       *   {instance.short_id}
       *   {instance.index}
       *   {instance.index_in_zone}
       *   {instance.zone_id}
       * InstanceGroup and Instance labels may be copied to metadata following way:
       *   {instance_group.labels.some_label_key}
       *   {instance.labels.another_label_key}
       * These placeholders will be substituted for each created instance anywhere in the value text.
       * In the rare case the value requires to contain this placeholder explicitly,
       * it must be escaped with double brackets, in example {instance.index}.
       * For example, you may use the metadata in order to provide your public SSH key to the instance.
       * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
       * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
       * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
       * Metadata values may contain one of the supported placeholders:
       *   {instance_group.id}
       *   {instance.short_id}
       *   {instance.index}
       *   {instance.index_in_zone}
       *   {instance.zone_id}
       * InstanceGroup and Instance labels may be copied to metadata following way:
       *   {instance_group.labels.some_label_key}
       *   {instance.labels.another_label_key}
       * These placeholders will be substituted for each created instance anywhere in the value text.
       * In the rare case the value requires to contain this placeholder explicitly,
       * it must be escaped with double brackets, in example {instance.index}.
       * For example, you may use the metadata in order to provide your public SSH key to the instance.
       * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
       * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
       * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
       * Metadata values may contain one of the supported placeholders:
       *   {instance_group.id}
       *   {instance.short_id}
       *   {instance.index}
       *   {instance.index_in_zone}
       *   {instance.zone_id}
       * InstanceGroup and Instance labels may be copied to metadata following way:
       *   {instance_group.labels.some_label_key}
       *   {instance.labels.another_label_key}
       * These placeholders will be substituted for each created instance anywhere in the value text.
       * In the rare case the value requires to contain this placeholder explicitly,
       * it must be escaped with double brackets, in example {instance.index}.
       * For example, you may use the metadata in order to provide your public SSH key to the instance.
       * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
       * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
       * Metadata values may contain one of the supported placeholders:
       *   {instance_group.id}
       *   {instance.short_id}
       *   {instance.index}
       *   {instance.index_in_zone}
       *   {instance.zone_id}
       * InstanceGroup and Instance labels may be copied to metadata following way:
       *   {instance_group.labels.some_label_key}
       *   {instance.labels.another_label_key}
       * These placeholders will be substituted for each created instance anywhere in the value text.
       * In the rare case the value requires to contain this placeholder explicitly,
       * it must be escaped with double brackets, in example {instance.index}.
       * For example, you may use the metadata in order to provide your public SSH key to the instance.
       * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
       * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { internalGetMutableMetadata().getMutableMap() .clear(); return this; } /** *
       * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
       * Metadata values may contain one of the supported placeholders:
       *   {instance_group.id}
       *   {instance.short_id}
       *   {instance.index}
       *   {instance.index_in_zone}
       *   {instance.zone_id}
       * InstanceGroup and Instance labels may be copied to metadata following way:
       *   {instance_group.labels.some_label_key}
       *   {instance.labels.another_label_key}
       * These placeholders will be substituted for each created instance anywhere in the value text.
       * In the rare case the value requires to contain this placeholder explicitly,
       * it must be escaped with double brackets, in example {instance.index}.
       * For example, you may use the metadata in order to provide your public SSH key to the instance.
       * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
       * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMetadata().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** *
       * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
       * Metadata values may contain one of the supported placeholders:
       *   {instance_group.id}
       *   {instance.short_id}
       *   {instance.index}
       *   {instance.index_in_zone}
       *   {instance.zone_id}
       * InstanceGroup and Instance labels may be copied to metadata following way:
       *   {instance_group.labels.some_label_key}
       *   {instance.labels.another_label_key}
       * These placeholders will be substituted for each created instance anywhere in the value text.
       * In the rare case the value requires to contain this placeholder explicitly,
       * it must be escaped with double brackets, in example {instance.index}.
       * For example, you may use the metadata in order to provide your public SSH key to the instance.
       * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
       * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); return this; } /** *
       * The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
       * Metadata values may contain one of the supported placeholders:
       *   {instance_group.id}
       *   {instance.short_id}
       *   {instance.index}
       *   {instance.index_in_zone}
       *   {instance.zone_id}
       * InstanceGroup and Instance labels may be copied to metadata following way:
       *   {instance_group.labels.some_label_key}
       *   {instance.labels.another_label_key}
       * These placeholders will be substituted for each created instance anywhere in the value text.
       * In the rare case the value requires to contain this placeholder explicitly,
       * it must be escaped with double brackets, in example {instance.index}.
       * For example, you may use the metadata in order to provide your public SSH key to the instance.
       * For more information, see [Metadata](/docs/compute/concepts/vm-metadata).
       * 
* * map<string, string> metadata = 5 [(.yandex.cloud.size) = "<=128", (.yandex.cloud.length) = "<=262144", (.yandex.cloud.map_key) = { ... } */ public Builder putAllMetadata( java.util.Map values) { internalGetMutableMetadata().getMutableMap() .putAll(values); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec bootDiskSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder> bootDiskSpecBuilder_; /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; * @return Whether the bootDiskSpec field is set. */ public boolean hasBootDiskSpec() { return bootDiskSpecBuilder_ != null || bootDiskSpec_ != null; } /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; * @return The bootDiskSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getBootDiskSpec() { if (bootDiskSpecBuilder_ == null) { return bootDiskSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.getDefaultInstance() : bootDiskSpec_; } else { return bootDiskSpecBuilder_.getMessage(); } } /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ public Builder setBootDiskSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec value) { if (bootDiskSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bootDiskSpec_ = value; onChanged(); } else { bootDiskSpecBuilder_.setMessage(value); } return this; } /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ public Builder setBootDiskSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder builderForValue) { if (bootDiskSpecBuilder_ == null) { bootDiskSpec_ = builderForValue.build(); onChanged(); } else { bootDiskSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ public Builder mergeBootDiskSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec value) { if (bootDiskSpecBuilder_ == null) { if (bootDiskSpec_ != null) { bootDiskSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.newBuilder(bootDiskSpec_).mergeFrom(value).buildPartial(); } else { bootDiskSpec_ = value; } onChanged(); } else { bootDiskSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ public Builder clearBootDiskSpec() { if (bootDiskSpecBuilder_ == null) { bootDiskSpec_ = null; onChanged(); } else { bootDiskSpec_ = null; bootDiskSpecBuilder_ = null; } return this; } /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder getBootDiskSpecBuilder() { onChanged(); return getBootDiskSpecFieldBuilder().getBuilder(); } /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder getBootDiskSpecOrBuilder() { if (bootDiskSpecBuilder_ != null) { return bootDiskSpecBuilder_.getMessageOrBuilder(); } else { return bootDiskSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.getDefaultInstance() : bootDiskSpec_; } } /** *
       * Boot disk specification that will be attached to the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec boot_disk_spec = 6 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder> getBootDiskSpecFieldBuilder() { if (bootDiskSpecBuilder_ == null) { bootDiskSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder>( getBootDiskSpec(), getParentForChildren(), isClean()); bootDiskSpec_ = null; } return bootDiskSpecBuilder_; } private java.util.List secondaryDiskSpecs_ = java.util.Collections.emptyList(); private void ensureSecondaryDiskSpecsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { secondaryDiskSpecs_ = new java.util.ArrayList(secondaryDiskSpecs_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder> secondaryDiskSpecsBuilder_; /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public java.util.List getSecondaryDiskSpecsList() { if (secondaryDiskSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(secondaryDiskSpecs_); } else { return secondaryDiskSpecsBuilder_.getMessageList(); } } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public int getSecondaryDiskSpecsCount() { if (secondaryDiskSpecsBuilder_ == null) { return secondaryDiskSpecs_.size(); } else { return secondaryDiskSpecsBuilder_.getCount(); } } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getSecondaryDiskSpecs(int index) { if (secondaryDiskSpecsBuilder_ == null) { return secondaryDiskSpecs_.get(index); } else { return secondaryDiskSpecsBuilder_.getMessage(index); } } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder setSecondaryDiskSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec value) { if (secondaryDiskSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecondaryDiskSpecsIsMutable(); secondaryDiskSpecs_.set(index, value); onChanged(); } else { secondaryDiskSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder setSecondaryDiskSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder builderForValue) { if (secondaryDiskSpecsBuilder_ == null) { ensureSecondaryDiskSpecsIsMutable(); secondaryDiskSpecs_.set(index, builderForValue.build()); onChanged(); } else { secondaryDiskSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder addSecondaryDiskSpecs(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec value) { if (secondaryDiskSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecondaryDiskSpecsIsMutable(); secondaryDiskSpecs_.add(value); onChanged(); } else { secondaryDiskSpecsBuilder_.addMessage(value); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder addSecondaryDiskSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec value) { if (secondaryDiskSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecondaryDiskSpecsIsMutable(); secondaryDiskSpecs_.add(index, value); onChanged(); } else { secondaryDiskSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder addSecondaryDiskSpecs( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder builderForValue) { if (secondaryDiskSpecsBuilder_ == null) { ensureSecondaryDiskSpecsIsMutable(); secondaryDiskSpecs_.add(builderForValue.build()); onChanged(); } else { secondaryDiskSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder addSecondaryDiskSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder builderForValue) { if (secondaryDiskSpecsBuilder_ == null) { ensureSecondaryDiskSpecsIsMutable(); secondaryDiskSpecs_.add(index, builderForValue.build()); onChanged(); } else { secondaryDiskSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder addAllSecondaryDiskSpecs( java.lang.Iterable values) { if (secondaryDiskSpecsBuilder_ == null) { ensureSecondaryDiskSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, secondaryDiskSpecs_); onChanged(); } else { secondaryDiskSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder clearSecondaryDiskSpecs() { if (secondaryDiskSpecsBuilder_ == null) { secondaryDiskSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { secondaryDiskSpecsBuilder_.clear(); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public Builder removeSecondaryDiskSpecs(int index) { if (secondaryDiskSpecsBuilder_ == null) { ensureSecondaryDiskSpecsIsMutable(); secondaryDiskSpecs_.remove(index); onChanged(); } else { secondaryDiskSpecsBuilder_.remove(index); } return this; } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder getSecondaryDiskSpecsBuilder( int index) { return getSecondaryDiskSpecsFieldBuilder().getBuilder(index); } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder getSecondaryDiskSpecsOrBuilder( int index) { if (secondaryDiskSpecsBuilder_ == null) { return secondaryDiskSpecs_.get(index); } else { return secondaryDiskSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public java.util.List getSecondaryDiskSpecsOrBuilderList() { if (secondaryDiskSpecsBuilder_ != null) { return secondaryDiskSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(secondaryDiskSpecs_); } } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder addSecondaryDiskSpecsBuilder() { return getSecondaryDiskSpecsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.getDefaultInstance()); } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder addSecondaryDiskSpecsBuilder( int index) { return getSecondaryDiskSpecsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.getDefaultInstance()); } /** *
       * Array of secondary disks that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec secondary_disk_specs = 7 [(.yandex.cloud.size) = "<=3"]; */ public java.util.List getSecondaryDiskSpecsBuilderList() { return getSecondaryDiskSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder> getSecondaryDiskSpecsFieldBuilder() { if (secondaryDiskSpecsBuilder_ == null) { secondaryDiskSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder>( secondaryDiskSpecs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); secondaryDiskSpecs_ = null; } return secondaryDiskSpecsBuilder_; } private java.util.List networkInterfaceSpecs_ = java.util.Collections.emptyList(); private void ensureNetworkInterfaceSpecsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { networkInterfaceSpecs_ = new java.util.ArrayList(networkInterfaceSpecs_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpecOrBuilder> networkInterfaceSpecsBuilder_; /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public java.util.List getNetworkInterfaceSpecsList() { if (networkInterfaceSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(networkInterfaceSpecs_); } else { return networkInterfaceSpecsBuilder_.getMessageList(); } } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public int getNetworkInterfaceSpecsCount() { if (networkInterfaceSpecsBuilder_ == null) { return networkInterfaceSpecs_.size(); } else { return networkInterfaceSpecsBuilder_.getCount(); } } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec getNetworkInterfaceSpecs(int index) { if (networkInterfaceSpecsBuilder_ == null) { return networkInterfaceSpecs_.get(index); } else { return networkInterfaceSpecsBuilder_.getMessage(index); } } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder setNetworkInterfaceSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec value) { if (networkInterfaceSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInterfaceSpecsIsMutable(); networkInterfaceSpecs_.set(index, value); onChanged(); } else { networkInterfaceSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder setNetworkInterfaceSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder builderForValue) { if (networkInterfaceSpecsBuilder_ == null) { ensureNetworkInterfaceSpecsIsMutable(); networkInterfaceSpecs_.set(index, builderForValue.build()); onChanged(); } else { networkInterfaceSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder addNetworkInterfaceSpecs(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec value) { if (networkInterfaceSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInterfaceSpecsIsMutable(); networkInterfaceSpecs_.add(value); onChanged(); } else { networkInterfaceSpecsBuilder_.addMessage(value); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder addNetworkInterfaceSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec value) { if (networkInterfaceSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInterfaceSpecsIsMutable(); networkInterfaceSpecs_.add(index, value); onChanged(); } else { networkInterfaceSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder addNetworkInterfaceSpecs( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder builderForValue) { if (networkInterfaceSpecsBuilder_ == null) { ensureNetworkInterfaceSpecsIsMutable(); networkInterfaceSpecs_.add(builderForValue.build()); onChanged(); } else { networkInterfaceSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder addNetworkInterfaceSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder builderForValue) { if (networkInterfaceSpecsBuilder_ == null) { ensureNetworkInterfaceSpecsIsMutable(); networkInterfaceSpecs_.add(index, builderForValue.build()); onChanged(); } else { networkInterfaceSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder addAllNetworkInterfaceSpecs( java.lang.Iterable values) { if (networkInterfaceSpecsBuilder_ == null) { ensureNetworkInterfaceSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, networkInterfaceSpecs_); onChanged(); } else { networkInterfaceSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder clearNetworkInterfaceSpecs() { if (networkInterfaceSpecsBuilder_ == null) { networkInterfaceSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { networkInterfaceSpecsBuilder_.clear(); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public Builder removeNetworkInterfaceSpecs(int index) { if (networkInterfaceSpecsBuilder_ == null) { ensureNetworkInterfaceSpecsIsMutable(); networkInterfaceSpecs_.remove(index); onChanged(); } else { networkInterfaceSpecsBuilder_.remove(index); } return this; } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder getNetworkInterfaceSpecsBuilder( int index) { return getNetworkInterfaceSpecsFieldBuilder().getBuilder(index); } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpecOrBuilder getNetworkInterfaceSpecsOrBuilder( int index) { if (networkInterfaceSpecsBuilder_ == null) { return networkInterfaceSpecs_.get(index); } else { return networkInterfaceSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public java.util.List getNetworkInterfaceSpecsOrBuilderList() { if (networkInterfaceSpecsBuilder_ != null) { return networkInterfaceSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(networkInterfaceSpecs_); } } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder addNetworkInterfaceSpecsBuilder() { return getNetworkInterfaceSpecsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.getDefaultInstance()); } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder addNetworkInterfaceSpecsBuilder( int index) { return getNetworkInterfaceSpecsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.getDefaultInstance()); } /** *
       * Array of network interfaces that will be attached to the instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec network_interface_specs = 8 [(.yandex.cloud.size) = "1"]; */ public java.util.List getNetworkInterfaceSpecsBuilderList() { return getNetworkInterfaceSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpecOrBuilder> getNetworkInterfaceSpecsFieldBuilder() { if (networkInterfaceSpecsBuilder_ == null) { networkInterfaceSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpecOrBuilder>( networkInterfaceSpecs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); networkInterfaceSpecs_ = null; } return networkInterfaceSpecsBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy schedulingPolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicyOrBuilder> schedulingPolicyBuilder_; /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; * @return Whether the schedulingPolicy field is set. */ public boolean hasSchedulingPolicy() { return schedulingPolicyBuilder_ != null || schedulingPolicy_ != null; } /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; * @return The schedulingPolicy. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy getSchedulingPolicy() { if (schedulingPolicyBuilder_ == null) { return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_; } else { return schedulingPolicyBuilder_.getMessage(); } } /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ public Builder setSchedulingPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy value) { if (schedulingPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schedulingPolicy_ = value; onChanged(); } else { schedulingPolicyBuilder_.setMessage(value); } return this; } /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ public Builder setSchedulingPolicy( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.Builder builderForValue) { if (schedulingPolicyBuilder_ == null) { schedulingPolicy_ = builderForValue.build(); onChanged(); } else { schedulingPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ public Builder mergeSchedulingPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy value) { if (schedulingPolicyBuilder_ == null) { if (schedulingPolicy_ != null) { schedulingPolicy_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.newBuilder(schedulingPolicy_).mergeFrom(value).buildPartial(); } else { schedulingPolicy_ = value; } onChanged(); } else { schedulingPolicyBuilder_.mergeFrom(value); } return this; } /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ public Builder clearSchedulingPolicy() { if (schedulingPolicyBuilder_ == null) { schedulingPolicy_ = null; onChanged(); } else { schedulingPolicy_ = null; schedulingPolicyBuilder_ = null; } return this; } /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.Builder getSchedulingPolicyBuilder() { onChanged(); return getSchedulingPolicyFieldBuilder().getBuilder(); } /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder() { if (schedulingPolicyBuilder_ != null) { return schedulingPolicyBuilder_.getMessageOrBuilder(); } else { return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_; } } /** *
       * Scheduling policy for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.SchedulingPolicy scheduling_policy = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicyOrBuilder> getSchedulingPolicyFieldBuilder() { if (schedulingPolicyBuilder_ == null) { schedulingPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicyOrBuilder>( getSchedulingPolicy(), getParentForChildren(), isClean()); schedulingPolicy_ = null; } return schedulingPolicyBuilder_; } private java.lang.Object serviceAccountId_ = ""; /** *
       * Service account ID for the instance.
       * 
* * string service_account_id = 10; * @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; } } /** *
       * Service account ID for the instance.
       * 
* * string service_account_id = 10; * @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; } } /** *
       * Service account ID for the instance.
       * 
* * string service_account_id = 10; * @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; } /** *
       * Service account ID for the instance.
       * 
* * string service_account_id = 10; * @return This builder for chaining. */ public Builder clearServiceAccountId() { serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** *
       * Service account ID for the instance.
       * 
* * string service_account_id = 10; * @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.NetworkSettings networkSettings_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettingsOrBuilder> networkSettingsBuilder_; /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; * @return Whether the networkSettings field is set. */ public boolean hasNetworkSettings() { return networkSettingsBuilder_ != null || networkSettings_ != null; } /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; * @return The networkSettings. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings getNetworkSettings() { if (networkSettingsBuilder_ == null) { return networkSettings_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_; } else { return networkSettingsBuilder_.getMessage(); } } /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ public Builder setNetworkSettings(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings value) { if (networkSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } networkSettings_ = value; onChanged(); } else { networkSettingsBuilder_.setMessage(value); } return this; } /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ public Builder setNetworkSettings( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Builder builderForValue) { if (networkSettingsBuilder_ == null) { networkSettings_ = builderForValue.build(); onChanged(); } else { networkSettingsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ public Builder mergeNetworkSettings(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings value) { if (networkSettingsBuilder_ == null) { if (networkSettings_ != null) { networkSettings_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.newBuilder(networkSettings_).mergeFrom(value).buildPartial(); } else { networkSettings_ = value; } onChanged(); } else { networkSettingsBuilder_.mergeFrom(value); } return this; } /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ public Builder clearNetworkSettings() { if (networkSettingsBuilder_ == null) { networkSettings_ = null; onChanged(); } else { networkSettings_ = null; networkSettingsBuilder_ = null; } return this; } /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Builder getNetworkSettingsBuilder() { onChanged(); return getNetworkSettingsFieldBuilder().getBuilder(); } /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() { if (networkSettingsBuilder_ != null) { return networkSettingsBuilder_.getMessageOrBuilder(); } else { return networkSettings_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_; } } /** *
       * Network settings for the instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings network_settings = 11; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettingsOrBuilder> getNetworkSettingsFieldBuilder() { if (networkSettingsBuilder_ == null) { networkSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettingsOrBuilder>( getNetworkSettings(), getParentForChildren(), isClean()); networkSettings_ = null; } return networkSettingsBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the instance.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, default is used: {instance_group.id}-{instance.short_id}
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @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.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, default is used: {instance_group.id}-{instance.short_id}
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @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.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, default is used: {instance_group.id}-{instance.short_id}
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @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.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, default is used: {instance_group.id}-{instance.short_id}
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the instance.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, default is used: {instance_group.id}-{instance.short_id}
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string name = 12 [(.yandex.cloud.length) = "<=128"]; * @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 hostname_ = ""; /** *
       * Host name for the instance.
       * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
       * The host name must be unique within the network and region.
       * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
       * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, `name` value will be used
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Host name for the instance.
       * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
       * The host name must be unique within the network and region.
       * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
       * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, `name` value will be used
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @return The bytes for hostname. */ public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Host name for the instance.
       * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
       * The host name must be unique within the network and region.
       * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
       * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, `name` value will be used
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @param value The hostname to set. * @return This builder for chaining. */ public Builder setHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } hostname_ = value; onChanged(); return this; } /** *
       * Host name for the instance.
       * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
       * The host name must be unique within the network and region.
       * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
       * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, `name` value will be used
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @return This builder for chaining. */ public Builder clearHostname() { hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /** *
       * Host name for the instance.
       * This field is used to generate the [yandex.cloud.compute.v1.Instance.fqdn] value.
       * The host name must be unique within the network and region.
       * If not specified, the host name will be equal to [yandex.cloud.compute.v1.Instance.id] of the instance
       * and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
       * In order to be unique it must contain at least on of instance unique placeholders:
       *   {instance.short_id}
       *   {instance.index}
       *   combination of {instance.zone_id} and {instance.index_in_zone}
       * Example: my-instance-{instance.index}
       * If not set, `name` value will be used
       * It may also contain another placeholders, see metadata doc for full list.
       * 
* * string hostname = 13 [(.yandex.cloud.length) = "<=128"]; * @param value The bytes for hostname to set. * @return This builder for chaining. */ public Builder setHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy placementPolicy_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicyOrBuilder> placementPolicyBuilder_; /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; * @return Whether the placementPolicy field is set. */ public boolean hasPlacementPolicy() { return placementPolicyBuilder_ != null || placementPolicy_ != null; } /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; * @return The placementPolicy. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy getPlacementPolicy() { if (placementPolicyBuilder_ == null) { return placementPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_; } else { return placementPolicyBuilder_.getMessage(); } } /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ public Builder setPlacementPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy value) { if (placementPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } placementPolicy_ = value; onChanged(); } else { placementPolicyBuilder_.setMessage(value); } return this; } /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ public Builder setPlacementPolicy( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.Builder builderForValue) { if (placementPolicyBuilder_ == null) { placementPolicy_ = builderForValue.build(); onChanged(); } else { placementPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ public Builder mergePlacementPolicy(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy value) { if (placementPolicyBuilder_ == null) { if (placementPolicy_ != null) { placementPolicy_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.newBuilder(placementPolicy_).mergeFrom(value).buildPartial(); } else { placementPolicy_ = value; } onChanged(); } else { placementPolicyBuilder_.mergeFrom(value); } return this; } /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ public Builder clearPlacementPolicy() { if (placementPolicyBuilder_ == null) { placementPolicy_ = null; onChanged(); } else { placementPolicy_ = null; placementPolicyBuilder_ = null; } return this; } /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.Builder getPlacementPolicyBuilder() { onChanged(); return getPlacementPolicyFieldBuilder().getBuilder(); } /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() { if (placementPolicyBuilder_ != null) { return placementPolicyBuilder_.getMessageOrBuilder(); } else { return placementPolicy_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_; } } /** *
       * Placement Group
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy placement_policy = 14; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicyOrBuilder> getPlacementPolicyFieldBuilder() { if (placementPolicyBuilder_ == null) { placementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicyOrBuilder>( getPlacementPolicy(), getParentForChildren(), isClean()); placementPolicy_ = null; } return placementPolicyBuilder_; } private java.util.List filesystemSpecs_ = java.util.Collections.emptyList(); private void ensureFilesystemSpecsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { filesystemSpecs_ = new java.util.ArrayList(filesystemSpecs_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpecOrBuilder> filesystemSpecsBuilder_; /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public java.util.List getFilesystemSpecsList() { if (filesystemSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(filesystemSpecs_); } else { return filesystemSpecsBuilder_.getMessageList(); } } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public int getFilesystemSpecsCount() { if (filesystemSpecsBuilder_ == null) { return filesystemSpecs_.size(); } else { return filesystemSpecsBuilder_.getCount(); } } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec getFilesystemSpecs(int index) { if (filesystemSpecsBuilder_ == null) { return filesystemSpecs_.get(index); } else { return filesystemSpecsBuilder_.getMessage(index); } } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder setFilesystemSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec value) { if (filesystemSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesystemSpecsIsMutable(); filesystemSpecs_.set(index, value); onChanged(); } else { filesystemSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder setFilesystemSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder builderForValue) { if (filesystemSpecsBuilder_ == null) { ensureFilesystemSpecsIsMutable(); filesystemSpecs_.set(index, builderForValue.build()); onChanged(); } else { filesystemSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder addFilesystemSpecs(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec value) { if (filesystemSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesystemSpecsIsMutable(); filesystemSpecs_.add(value); onChanged(); } else { filesystemSpecsBuilder_.addMessage(value); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder addFilesystemSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec value) { if (filesystemSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesystemSpecsIsMutable(); filesystemSpecs_.add(index, value); onChanged(); } else { filesystemSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder addFilesystemSpecs( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder builderForValue) { if (filesystemSpecsBuilder_ == null) { ensureFilesystemSpecsIsMutable(); filesystemSpecs_.add(builderForValue.build()); onChanged(); } else { filesystemSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder addFilesystemSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder builderForValue) { if (filesystemSpecsBuilder_ == null) { ensureFilesystemSpecsIsMutable(); filesystemSpecs_.add(index, builderForValue.build()); onChanged(); } else { filesystemSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder addAllFilesystemSpecs( java.lang.Iterable values) { if (filesystemSpecsBuilder_ == null) { ensureFilesystemSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, filesystemSpecs_); onChanged(); } else { filesystemSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder clearFilesystemSpecs() { if (filesystemSpecsBuilder_ == null) { filesystemSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { filesystemSpecsBuilder_.clear(); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public Builder removeFilesystemSpecs(int index) { if (filesystemSpecsBuilder_ == null) { ensureFilesystemSpecsIsMutable(); filesystemSpecs_.remove(index); onChanged(); } else { filesystemSpecsBuilder_.remove(index); } return this; } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder getFilesystemSpecsBuilder( int index) { return getFilesystemSpecsFieldBuilder().getBuilder(index); } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpecOrBuilder getFilesystemSpecsOrBuilder( int index) { if (filesystemSpecsBuilder_ == null) { return filesystemSpecs_.get(index); } else { return filesystemSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public java.util.List getFilesystemSpecsOrBuilderList() { if (filesystemSpecsBuilder_ != null) { return filesystemSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(filesystemSpecs_); } } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder addFilesystemSpecsBuilder() { return getFilesystemSpecsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.getDefaultInstance()); } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder addFilesystemSpecsBuilder( int index) { return getFilesystemSpecsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.getDefaultInstance()); } /** *
       * Array of filesystems to attach to the instance.
       * The filesystems must reside in the same availability zone as the instance.
       * To use the instance with an attached filesystem, the latter must be mounted.
       * For details, see [documentation](/docs/compute/operations/filesystem/attach-to-vm).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec filesystem_specs = 15; */ public java.util.List getFilesystemSpecsBuilderList() { return getFilesystemSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpecOrBuilder> getFilesystemSpecsFieldBuilder() { if (filesystemSpecsBuilder_ == null) { filesystemSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpecOrBuilder>( filesystemSpecs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); filesystemSpecs_ = null; } return filesystemSpecsBuilder_; } @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.InstanceTemplate) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.InstanceTemplate) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InstanceTemplate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InstanceTemplate(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.InstanceGroupOuterClass.InstanceTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttachedFilesystemSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Mode of access to the filesystem that should be attached.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** *
     * Mode of access to the filesystem that should be attached.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @return The mode. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode getMode(); /** *
     * Name of the device representing the filesystem on the instance.
     * The name should be used for referencing the filesystem from within the instance
     * when it's being mounted, resized etc.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The deviceName. */ java.lang.String getDeviceName(); /** *
     * Name of the device representing the filesystem on the instance.
     * The name should be used for referencing the filesystem from within the instance
     * when it's being mounted, resized etc.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); /** *
     * ID of the filesystem that should be attached.
     * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The filesystemId. */ java.lang.String getFilesystemId(); /** *
     * ID of the filesystem that should be attached.
     * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The bytes for filesystemId. */ com.google.protobuf.ByteString getFilesystemIdBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec} */ public static final class AttachedFilesystemSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec) AttachedFilesystemSpecOrBuilder { private static final long serialVersionUID = 0L; // Use AttachedFilesystemSpec.newBuilder() to construct. private AttachedFilesystemSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttachedFilesystemSpec() { mode_ = 0; deviceName_ = ""; filesystemId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AttachedFilesystemSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachedFilesystemSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); mode_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); deviceName_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); filesystemId_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), /** *
       * Read-only access.
       * 
* * READ_ONLY = 1; */ READ_ONLY(1), /** *
       * Read/Write access. Default value.
       * 
* * READ_WRITE = 2; */ READ_WRITE(2), UNRECOGNIZED(-1), ; /** * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** *
       * Read-only access.
       * 
* * READ_ONLY = 1; */ public static final int READ_ONLY_VALUE = 1; /** *
       * Read/Write access. Default value.
       * 
* * READ_WRITE = 2; */ public static final int READ_WRITE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Mode forNumber(int value) { switch (value) { case 0: return MODE_UNSPECIFIED; case 1: return READ_ONLY; case 2: return READ_WRITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode) } public static final int MODE_FIELD_NUMBER = 1; private int mode_; /** *
     * Mode of access to the filesystem that should be attached.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** *
     * Mode of access to the filesystem that should be attached.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @return The mode. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode.UNRECOGNIZED : result; } public static final int DEVICE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object deviceName_; /** *
     * Name of the device representing the filesystem on the instance.
     * The name should be used for referencing the filesystem from within the instance
     * when it's being mounted, resized etc.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The deviceName. */ @java.lang.Override public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; } } /** *
     * Name of the device representing the filesystem on the instance.
     * The name should be used for referencing the filesystem from within the instance
     * when it's being mounted, resized etc.
     * If not specified, a random value will be generated.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The bytes for deviceName. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILESYSTEM_ID_FIELD_NUMBER = 3; private volatile java.lang.Object filesystemId_; /** *
     * ID of the filesystem that should be attached.
     * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The filesystemId. */ @java.lang.Override public java.lang.String getFilesystemId() { java.lang.Object ref = filesystemId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filesystemId_ = s; return s; } } /** *
     * ID of the filesystem that should be attached.
     * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The bytes for filesystemId. */ @java.lang.Override public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = filesystemId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filesystemId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (mode_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filesystemId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filesystemId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mode_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode.MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, mode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filesystemId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filesystemId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec) obj; if (mode_ != other.mode_) return false; if (!getDeviceName() .equals(other.getDeviceName())) return false; if (!getFilesystemId() .equals(other.getFilesystemId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDeviceName().hashCode(); hash = (37 * hash) + FILESYSTEM_ID_FIELD_NUMBER; hash = (53 * hash) + getFilesystemId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); mode_ = 0; deviceName_ = ""; filesystemId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec(this); result.mode_ = mode_; result.deviceName_ = deviceName_; result.filesystemId_ = filesystemId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } if (!other.getDeviceName().isEmpty()) { deviceName_ = other.deviceName_; onChanged(); } if (!other.getFilesystemId().isEmpty()) { filesystemId_ = other.filesystemId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int mode_ = 0; /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { mode_ = value; onChanged(); return this; } /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @return The mode. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode.UNRECOGNIZED : result; } /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec.Mode value) { if (value == null) { throw new NullPointerException(); } mode_ = value.getNumber(); onChanged(); return this; } /** *
       * Mode of access to the filesystem that should be attached.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec.Mode mode = 1; * @return This builder for chaining. */ public Builder clearMode() { mode_ = 0; onChanged(); return this; } private java.lang.Object deviceName_ = ""; /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @param value The deviceName to set. * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceName_ = value; onChanged(); return this; } /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return This builder for chaining. */ public Builder clearDeviceName() { deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** *
       * Name of the device representing the filesystem on the instance.
       * The name should be used for referencing the filesystem from within the instance
       * when it's being mounted, resized etc.
       * If not specified, a random value will be generated.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @param value The bytes for deviceName to set. * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceName_ = value; onChanged(); return this; } private java.lang.Object filesystemId_ = ""; /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The filesystemId. */ public java.lang.String getFilesystemId() { java.lang.Object ref = filesystemId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filesystemId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The bytes for filesystemId. */ public com.google.protobuf.ByteString getFilesystemIdBytes() { java.lang.Object ref = filesystemId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filesystemId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @param value The filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filesystemId_ = value; onChanged(); return this; } /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return This builder for chaining. */ public Builder clearFilesystemId() { filesystemId_ = getDefaultInstance().getFilesystemId(); onChanged(); return this; } /** *
       * ID of the filesystem that should be attached.
       * 
* * string filesystem_id = 3 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @param value The bytes for filesystemId to set. * @return This builder for chaining. */ public Builder setFilesystemIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filesystemId_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.AttachedFilesystemSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttachedFilesystemSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachedFilesystemSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedFilesystemSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlacementPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.PlacementPolicy) com.google.protobuf.MessageOrBuilder { /** *
     * Identifier of placement group
     * 
* * string placement_group_id = 1; * @return The placementGroupId. */ java.lang.String getPlacementGroupId(); /** *
     * Identifier of placement group
     * 
* * string placement_group_id = 1; * @return The bytes for placementGroupId. */ com.google.protobuf.ByteString getPlacementGroupIdBytes(); /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ java.util.List getHostAffinityRulesList(); /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule getHostAffinityRules(int index); /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ int getHostAffinityRulesCount(); /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ java.util.List getHostAffinityRulesOrBuilderList(); /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder getHostAffinityRulesOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PlacementPolicy} */ public static final class PlacementPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.PlacementPolicy) PlacementPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use PlacementPolicy.newBuilder() to construct. private PlacementPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlacementPolicy() { placementGroupId_ = ""; hostAffinityRules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlacementPolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PlacementPolicy( 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(); placementGroupId_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { hostAffinityRules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } hostAffinityRules_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { hostAffinityRules_ = java.util.Collections.unmodifiableList(hostAffinityRules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.Builder.class); } public interface HostAffinityRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule) com.google.protobuf.MessageOrBuilder { /** *
       * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
       * 
* * string key = 1; * @return The key. */ java.lang.String getKey(); /** *
       * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
       * 
* * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** *
       * Include or exclude action
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @return The enum numeric value on the wire for op. */ int getOpValue(); /** *
       * Include or exclude action
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @return The op. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator getOp(); /** *
       * Affinity value or host ID or host group ID
       * 
* * repeated string values = 3; * @return A list containing the values. */ java.util.List getValuesList(); /** *
       * Affinity value or host ID or host group ID
       * 
* * repeated string values = 3; * @return The count of values. */ int getValuesCount(); /** *
       * Affinity value or host ID or host group ID
       * 
* * repeated string values = 3; * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** *
       * Affinity value or host ID or host group ID
       * 
* * repeated string values = 3; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); } /** *
     * Affinity definition
     * 
* * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule} */ public static final class HostAffinityRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule) HostAffinityRuleOrBuilder { private static final long serialVersionUID = 0L; // Use HostAffinityRule.newBuilder() to construct. private HostAffinityRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HostAffinityRule() { key_ = ""; op_ = 0; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HostAffinityRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HostAffinityRule( 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(); key_ = s; break; } case 16: { int rawValue = input.readEnum(); op_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } values_.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)) { values_ = values_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator} */ public enum Operator implements com.google.protobuf.ProtocolMessageEnum { /** * OPERATOR_UNSPECIFIED = 0; */ OPERATOR_UNSPECIFIED(0), /** * IN = 1; */ IN(1), /** * NOT_IN = 2; */ NOT_IN(2), UNRECOGNIZED(-1), ; /** * OPERATOR_UNSPECIFIED = 0; */ public static final int OPERATOR_UNSPECIFIED_VALUE = 0; /** * IN = 1; */ public static final int IN_VALUE = 1; /** * NOT_IN = 2; */ public static final int NOT_IN_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Operator 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 Operator forNumber(int value) { switch (value) { case 0: return OPERATOR_UNSPECIFIED; case 1: return IN; case 2: return NOT_IN; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Operator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Operator findValueByNumber(int number) { return Operator.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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.getDescriptor().getEnumTypes().get(0); } private static final Operator[] VALUES = values(); public static Operator 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 Operator(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator) } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** *
       * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
       * 
* * string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** *
       * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
       * 
* * string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OP_FIELD_NUMBER = 2; private int op_; /** *
       * Include or exclude action
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** *
       * Include or exclude action
       * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @return The op. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator getOp() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator.valueOf(op_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator.UNRECOGNIZED : result; } public static final int VALUES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList values_; /** *
       * Affinity value or host ID or host group ID
       * 
* * repeated string values = 3; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** *
       * Affinity value or host ID or host group ID
       * 
* * repeated string values = 3; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** *
       * Affinity value or host ID or host group ID
       * 
* * repeated string values = 3; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** *
       * Affinity value or host ID or host group ID
       * 
* * repeated string values = 3; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (op_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator.OPERATOR_UNSPECIFIED.getNumber()) { output.writeEnum(2, op_); } for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, values_.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(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (op_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator.OPERATOR_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, op_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule) obj; if (!getKey() .equals(other.getKey())) return false; if (op_ != other.op_) return false; if (!getValuesList() .equals(other.getValuesList())) 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule 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; } /** *
       * Affinity definition
       * 
* * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.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(); key_ = ""; op_ = 0; values_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule(this); int from_bitField0_ = bitField0_; result.key_ = key_; result.op_ = op_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (other.op_ != 0) { setOpValue(other.getOpValue()); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } 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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** *
         * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
         * 
* * string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
         * 
* * string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
         * 
* * string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
         * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
         * 
* * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
         * Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
         * 
* * string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private int op_ = 0; /** *
         * Include or exclude action
         * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @return The enum numeric value on the wire for op. */ @java.lang.Override public int getOpValue() { return op_; } /** *
         * Include or exclude action
         * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @param value The enum numeric value on the wire for op to set. * @return This builder for chaining. */ public Builder setOpValue(int value) { op_ = value; onChanged(); return this; } /** *
         * Include or exclude action
         * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @return The op. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator getOp() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator.valueOf(op_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator.UNRECOGNIZED : result; } /** *
         * Include or exclude action
         * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @param value The op to set. * @return This builder for chaining. */ public Builder setOp(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Operator value) { if (value == null) { throw new NullPointerException(); } op_ = value.getNumber(); onChanged(); return this; } /** *
         * Include or exclude action
         * 
* * .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule.Operator op = 2; * @return This builder for chaining. */ public Builder clearOp() { op_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; } } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @param value The values to add. * @return This builder for chaining. */ public Builder addValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * Affinity value or host ID or host group ID
         * 
* * repeated string values = 3; * @param value The bytes of the values to add. * @return This builder for chaining. */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.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.PlacementPolicy.HostAffinityRule) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HostAffinityRule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HostAffinityRule(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.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PLACEMENT_GROUP_ID_FIELD_NUMBER = 1; private volatile java.lang.Object placementGroupId_; /** *
     * Identifier of placement group
     * 
* * string placement_group_id = 1; * @return The placementGroupId. */ @java.lang.Override public java.lang.String getPlacementGroupId() { java.lang.Object ref = placementGroupId_; 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(); placementGroupId_ = s; return s; } } /** *
     * Identifier of placement group
     * 
* * string placement_group_id = 1; * @return The bytes for placementGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getPlacementGroupIdBytes() { java.lang.Object ref = placementGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); placementGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_AFFINITY_RULES_FIELD_NUMBER = 2; private java.util.List hostAffinityRules_; /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ @java.lang.Override public java.util.List getHostAffinityRulesList() { return hostAffinityRules_; } /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ @java.lang.Override public java.util.List getHostAffinityRulesOrBuilderList() { return hostAffinityRules_; } /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ @java.lang.Override public int getHostAffinityRulesCount() { return hostAffinityRules_.size(); } /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule getHostAffinityRules(int index) { return hostAffinityRules_.get(index); } /** *
     * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder getHostAffinityRulesOrBuilder( int index) { return hostAffinityRules_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placementGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, placementGroupId_); } for (int i = 0; i < hostAffinityRules_.size(); i++) { output.writeMessage(2, hostAffinityRules_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placementGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, placementGroupId_); } for (int i = 0; i < hostAffinityRules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, hostAffinityRules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy) obj; if (!getPlacementGroupId() .equals(other.getPlacementGroupId())) return false; if (!getHostAffinityRulesList() .equals(other.getHostAffinityRulesList())) 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) + PLACEMENT_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getPlacementGroupId().hashCode(); if (getHostAffinityRulesCount() > 0) { hash = (37 * hash) + HOST_AFFINITY_RULES_FIELD_NUMBER; hash = (53 * hash) + getHostAffinityRulesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy 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.InstanceGroupOuterClass.PlacementPolicy 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.PlacementPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.PlacementPolicy) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHostAffinityRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); placementGroupId_ = ""; if (hostAffinityRulesBuilder_ == null) { hostAffinityRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { hostAffinityRulesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy(this); int from_bitField0_ = bitField0_; result.placementGroupId_ = placementGroupId_; if (hostAffinityRulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { hostAffinityRules_ = java.util.Collections.unmodifiableList(hostAffinityRules_); bitField0_ = (bitField0_ & ~0x00000001); } result.hostAffinityRules_ = hostAffinityRules_; } else { result.hostAffinityRules_ = hostAffinityRulesBuilder_.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.InstanceGroupOuterClass.PlacementPolicy) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.getDefaultInstance()) return this; if (!other.getPlacementGroupId().isEmpty()) { placementGroupId_ = other.placementGroupId_; onChanged(); } if (hostAffinityRulesBuilder_ == null) { if (!other.hostAffinityRules_.isEmpty()) { if (hostAffinityRules_.isEmpty()) { hostAffinityRules_ = other.hostAffinityRules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHostAffinityRulesIsMutable(); hostAffinityRules_.addAll(other.hostAffinityRules_); } onChanged(); } } else { if (!other.hostAffinityRules_.isEmpty()) { if (hostAffinityRulesBuilder_.isEmpty()) { hostAffinityRulesBuilder_.dispose(); hostAffinityRulesBuilder_ = null; hostAffinityRules_ = other.hostAffinityRules_; bitField0_ = (bitField0_ & ~0x00000001); hostAffinityRulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHostAffinityRulesFieldBuilder() : null; } else { hostAffinityRulesBuilder_.addAllMessages(other.hostAffinityRules_); } } } 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.InstanceGroupOuterClass.PlacementPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object placementGroupId_ = ""; /** *
       * Identifier of placement group
       * 
* * string placement_group_id = 1; * @return The placementGroupId. */ public java.lang.String getPlacementGroupId() { java.lang.Object ref = placementGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); placementGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Identifier of placement group
       * 
* * string placement_group_id = 1; * @return The bytes for placementGroupId. */ public com.google.protobuf.ByteString getPlacementGroupIdBytes() { java.lang.Object ref = placementGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); placementGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Identifier of placement group
       * 
* * string placement_group_id = 1; * @param value The placementGroupId to set. * @return This builder for chaining. */ public Builder setPlacementGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } placementGroupId_ = value; onChanged(); return this; } /** *
       * Identifier of placement group
       * 
* * string placement_group_id = 1; * @return This builder for chaining. */ public Builder clearPlacementGroupId() { placementGroupId_ = getDefaultInstance().getPlacementGroupId(); onChanged(); return this; } /** *
       * Identifier of placement group
       * 
* * string placement_group_id = 1; * @param value The bytes for placementGroupId to set. * @return This builder for chaining. */ public Builder setPlacementGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); placementGroupId_ = value; onChanged(); return this; } private java.util.List hostAffinityRules_ = java.util.Collections.emptyList(); private void ensureHostAffinityRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hostAffinityRules_ = new java.util.ArrayList(hostAffinityRules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder> hostAffinityRulesBuilder_; /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public java.util.List getHostAffinityRulesList() { if (hostAffinityRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(hostAffinityRules_); } else { return hostAffinityRulesBuilder_.getMessageList(); } } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public int getHostAffinityRulesCount() { if (hostAffinityRulesBuilder_ == null) { return hostAffinityRules_.size(); } else { return hostAffinityRulesBuilder_.getCount(); } } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule getHostAffinityRules(int index) { if (hostAffinityRulesBuilder_ == null) { return hostAffinityRules_.get(index); } else { return hostAffinityRulesBuilder_.getMessage(index); } } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder setHostAffinityRules( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule value) { if (hostAffinityRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostAffinityRulesIsMutable(); hostAffinityRules_.set(index, value); onChanged(); } else { hostAffinityRulesBuilder_.setMessage(index, value); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder setHostAffinityRules( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder builderForValue) { if (hostAffinityRulesBuilder_ == null) { ensureHostAffinityRulesIsMutable(); hostAffinityRules_.set(index, builderForValue.build()); onChanged(); } else { hostAffinityRulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder addHostAffinityRules(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule value) { if (hostAffinityRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostAffinityRulesIsMutable(); hostAffinityRules_.add(value); onChanged(); } else { hostAffinityRulesBuilder_.addMessage(value); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder addHostAffinityRules( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule value) { if (hostAffinityRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHostAffinityRulesIsMutable(); hostAffinityRules_.add(index, value); onChanged(); } else { hostAffinityRulesBuilder_.addMessage(index, value); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder addHostAffinityRules( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder builderForValue) { if (hostAffinityRulesBuilder_ == null) { ensureHostAffinityRulesIsMutable(); hostAffinityRules_.add(builderForValue.build()); onChanged(); } else { hostAffinityRulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder addHostAffinityRules( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder builderForValue) { if (hostAffinityRulesBuilder_ == null) { ensureHostAffinityRulesIsMutable(); hostAffinityRules_.add(index, builderForValue.build()); onChanged(); } else { hostAffinityRulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder addAllHostAffinityRules( java.lang.Iterable values) { if (hostAffinityRulesBuilder_ == null) { ensureHostAffinityRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hostAffinityRules_); onChanged(); } else { hostAffinityRulesBuilder_.addAllMessages(values); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder clearHostAffinityRules() { if (hostAffinityRulesBuilder_ == null) { hostAffinityRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { hostAffinityRulesBuilder_.clear(); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public Builder removeHostAffinityRules(int index) { if (hostAffinityRulesBuilder_ == null) { ensureHostAffinityRulesIsMutable(); hostAffinityRules_.remove(index); onChanged(); } else { hostAffinityRulesBuilder_.remove(index); } return this; } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder getHostAffinityRulesBuilder( int index) { return getHostAffinityRulesFieldBuilder().getBuilder(index); } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder getHostAffinityRulesOrBuilder( int index) { if (hostAffinityRulesBuilder_ == null) { return hostAffinityRules_.get(index); } else { return hostAffinityRulesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public java.util.List getHostAffinityRulesOrBuilderList() { if (hostAffinityRulesBuilder_ != null) { return hostAffinityRulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hostAffinityRules_); } } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder addHostAffinityRulesBuilder() { return getHostAffinityRulesFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.getDefaultInstance()); } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder addHostAffinityRulesBuilder( int index) { return getHostAffinityRulesFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.getDefaultInstance()); } /** *
       * List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.PlacementPolicy.HostAffinityRule host_affinity_rules = 2; */ public java.util.List getHostAffinityRulesBuilderList() { return getHostAffinityRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder> getHostAffinityRulesFieldBuilder() { if (hostAffinityRulesBuilder_ == null) { hostAffinityRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRule.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder>( hostAffinityRules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); hostAffinityRules_ = null; } return hostAffinityRulesBuilder_; } @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.PlacementPolicy) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.PlacementPolicy) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PlacementPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlacementPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PlacementPolicy(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.InstanceGroupOuterClass.PlacementPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourcesSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ResourcesSpec) com.google.protobuf.MessageOrBuilder { /** *
     * The amount of memory available to the instance, specified in bytes.
     * 
* * int64 memory = 1 [(.yandex.cloud.value) = "<=824633720832"]; * @return The memory. */ long getMemory(); /** *
     * The number of cores available to the instance.
     * 
* * int64 cores = 2 [(.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @return The cores. */ long getCores(); /** *
     * Baseline level of CPU performance with the ability to burst performance above that baseline level.
     * This field sets baseline performance for each core.
     * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @return The coreFraction. */ long getCoreFraction(); /** *
     * The number of GPUs available to the instance.
     * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @return The gpus. */ long getGpus(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ResourcesSpec} */ public static final class ResourcesSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ResourcesSpec) ResourcesSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ResourcesSpec.newBuilder() to construct. private ResourcesSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourcesSpec() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResourcesSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourcesSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { memory_ = input.readInt64(); break; } case 16: { cores_ = input.readInt64(); break; } case 24: { coreFraction_ = input.readInt64(); break; } case 32: { gpus_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.Builder.class); } public static final int MEMORY_FIELD_NUMBER = 1; private long memory_; /** *
     * The amount of memory available to the instance, specified in bytes.
     * 
* * int64 memory = 1 [(.yandex.cloud.value) = "<=824633720832"]; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } public static final int CORES_FIELD_NUMBER = 2; private long cores_; /** *
     * The number of cores available to the instance.
     * 
* * int64 cores = 2 [(.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @return The cores. */ @java.lang.Override public long getCores() { return cores_; } public static final int CORE_FRACTION_FIELD_NUMBER = 3; private long coreFraction_; /** *
     * Baseline level of CPU performance with the ability to burst performance above that baseline level.
     * This field sets baseline performance for each core.
     * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @return The coreFraction. */ @java.lang.Override public long getCoreFraction() { return coreFraction_; } public static final int GPUS_FIELD_NUMBER = 4; private long gpus_; /** *
     * The number of GPUs available to the instance.
     * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @return The gpus. */ @java.lang.Override public long getGpus() { return gpus_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (memory_ != 0L) { output.writeInt64(1, memory_); } if (cores_ != 0L) { output.writeInt64(2, cores_); } if (coreFraction_ != 0L) { output.writeInt64(3, coreFraction_); } if (gpus_ != 0L) { output.writeInt64(4, gpus_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (memory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, memory_); } if (cores_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, cores_); } if (coreFraction_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, coreFraction_); } if (gpus_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, gpus_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec) obj; if (getMemory() != other.getMemory()) return false; if (getCores() != other.getCores()) return false; if (getCoreFraction() != other.getCoreFraction()) return false; if (getGpus() != other.getGpus()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemory()); hash = (37 * hash) + CORES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCores()); hash = (37 * hash) + CORE_FRACTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCoreFraction()); hash = (37 * hash) + GPUS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGpus()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ResourcesSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ResourcesSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); memory_ = 0L; cores_ = 0L; coreFraction_ = 0L; gpus_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec(this); result.memory_ = memory_; result.cores_ = cores_; result.coreFraction_ = coreFraction_; result.gpus_ = gpus_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec.getDefaultInstance()) return this; if (other.getMemory() != 0L) { setMemory(other.getMemory()); } if (other.getCores() != 0L) { setCores(other.getCores()); } if (other.getCoreFraction() != 0L) { setCoreFraction(other.getCoreFraction()); } if (other.getGpus() != 0L) { setGpus(other.getGpus()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long memory_ ; /** *
       * The amount of memory available to the instance, specified in bytes.
       * 
* * int64 memory = 1 [(.yandex.cloud.value) = "<=824633720832"]; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } /** *
       * The amount of memory available to the instance, specified in bytes.
       * 
* * int64 memory = 1 [(.yandex.cloud.value) = "<=824633720832"]; * @param value The memory to set. * @return This builder for chaining. */ public Builder setMemory(long value) { memory_ = value; onChanged(); return this; } /** *
       * The amount of memory available to the instance, specified in bytes.
       * 
* * int64 memory = 1 [(.yandex.cloud.value) = "<=824633720832"]; * @return This builder for chaining. */ public Builder clearMemory() { memory_ = 0L; onChanged(); return this; } private long cores_ ; /** *
       * The number of cores available to the instance.
       * 
* * int64 cores = 2 [(.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @return The cores. */ @java.lang.Override public long getCores() { return cores_; } /** *
       * The number of cores available to the instance.
       * 
* * int64 cores = 2 [(.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @param value The cores to set. * @return This builder for chaining. */ public Builder setCores(long value) { cores_ = value; onChanged(); return this; } /** *
       * The number of cores available to the instance.
       * 
* * int64 cores = 2 [(.yandex.cloud.value) = "2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,40,44,48,52,56,60,64,68,72,76,80"]; * @return This builder for chaining. */ public Builder clearCores() { cores_ = 0L; onChanged(); return this; } private long coreFraction_ ; /** *
       * Baseline level of CPU performance with the ability to burst performance above that baseline level.
       * This field sets baseline performance for each core.
       * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @return The coreFraction. */ @java.lang.Override public long getCoreFraction() { return coreFraction_; } /** *
       * Baseline level of CPU performance with the ability to burst performance above that baseline level.
       * This field sets baseline performance for each core.
       * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @param value The coreFraction to set. * @return This builder for chaining. */ public Builder setCoreFraction(long value) { coreFraction_ = value; onChanged(); return this; } /** *
       * Baseline level of CPU performance with the ability to burst performance above that baseline level.
       * This field sets baseline performance for each core.
       * 
* * int64 core_fraction = 3 [(.yandex.cloud.value) = "0,5,20,50,100"]; * @return This builder for chaining. */ public Builder clearCoreFraction() { coreFraction_ = 0L; onChanged(); return this; } private long gpus_ ; /** *
       * The number of GPUs available to the instance.
       * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @return The gpus. */ @java.lang.Override public long getGpus() { return gpus_; } /** *
       * The number of GPUs available to the instance.
       * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @param value The gpus to set. * @return This builder for chaining. */ public Builder setGpus(long value) { gpus_ = value; onChanged(); return this; } /** *
       * The number of GPUs available to the instance.
       * 
* * int64 gpus = 4 [(.yandex.cloud.value) = "0,1,2,4"]; * @return This builder for chaining. */ public Builder clearGpus() { gpus_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.ResourcesSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ResourcesSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourcesSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourcesSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ResourcesSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttachedDiskSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Access mode to the Disk resource.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** *
     * Access mode to the Disk resource.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @return The mode. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode getMode(); /** *
     * Serial number that is reflected in the /dev/disk/by-id/ tree
     * of a Linux operating system running within the instance.
     * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The deviceName. */ java.lang.String getDeviceName(); /** *
     * Serial number that is reflected in the /dev/disk/by-id/ tree
     * of a Linux operating system running within the instance.
     * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); /** *
     *oneof disk_spec or disk_id
     * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; * @return Whether the diskSpec field is set. */ boolean hasDiskSpec(); /** *
     *oneof disk_spec or disk_id
     * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; * @return The diskSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec getDiskSpec(); /** *
     *oneof disk_spec or disk_id
     * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpecOrBuilder getDiskSpecOrBuilder(); /** *
     * Set to use an existing disk. To set use variables.
     * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The diskId. */ java.lang.String getDiskId(); /** *
     * Set to use an existing disk. To set use variables.
     * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The bytes for diskId. */ com.google.protobuf.ByteString getDiskIdBytes(); /** *
     * When set can be later used to change DiskSpec of actual disk.
     * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @return The name. */ java.lang.String getName(); /** *
     * When set can be later used to change DiskSpec of actual disk.
     * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec} */ public static final class AttachedDiskSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec) AttachedDiskSpecOrBuilder { private static final long serialVersionUID = 0L; // Use AttachedDiskSpec.newBuilder() to construct. private AttachedDiskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AttachedDiskSpec() { mode_ = 0; deviceName_ = ""; diskId_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AttachedDiskSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachedDiskSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); mode_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); deviceName_ = s; break; } case 26: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.Builder subBuilder = null; if (diskSpec_ != null) { subBuilder = diskSpec_.toBuilder(); } diskSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(diskSpec_); diskSpec_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); diskId_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); name_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode} */ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), /** *
       * Read-only access.
       * 
* * READ_ONLY = 1; */ READ_ONLY(1), /** *
       * Read/Write access.
       * 
* * READ_WRITE = 2; */ READ_WRITE(2), UNRECOGNIZED(-1), ; /** * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; /** *
       * Read-only access.
       * 
* * READ_ONLY = 1; */ public static final int READ_ONLY_VALUE = 1; /** *
       * Read/Write access.
       * 
* * READ_WRITE = 2; */ public static final int READ_WRITE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Mode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Mode forNumber(int value) { switch (value) { case 0: return MODE_UNSPECIFIED; case 1: return READ_ONLY; case 2: return READ_WRITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Mode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Mode findValueByNumber(int number) { return Mode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.getDescriptor().getEnumTypes().get(0); } private static final Mode[] VALUES = values(); public static Mode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Mode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode) } public interface DiskSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec) com.google.protobuf.MessageOrBuilder { /** *
       * Description of the disk.
       * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
       * Description of the disk.
       * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
       * ID of the disk type.
       * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @return The typeId. */ java.lang.String getTypeId(); /** *
       * ID of the disk type.
       * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @return The bytes for typeId. */ com.google.protobuf.ByteString getTypeIdBytes(); /** *
       * Size of the disk, specified in bytes.
       * 
* * int64 size = 3 [(.yandex.cloud.value) = "4194304-28587302322176"]; * @return The size. */ long getSize(); /** *
       * ID of the image that will be used for disk creation.
       * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return Whether the imageId field is set. */ boolean hasImageId(); /** *
       * ID of the image that will be used for disk creation.
       * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return The imageId. */ java.lang.String getImageId(); /** *
       * ID of the image that will be used for disk creation.
       * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for imageId. */ com.google.protobuf.ByteString getImageIdBytes(); /** *
       * ID of the snapshot that will be used for disk creation.
       * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the snapshotId field is set. */ boolean hasSnapshotId(); /** *
       * ID of the snapshot that will be used for disk creation.
       * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The snapshotId. */ java.lang.String getSnapshotId(); /** *
       * ID of the snapshot that will be used for disk creation.
       * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for snapshotId. */ com.google.protobuf.ByteString getSnapshotIdBytes(); /** *
       * When set to true, disk will not be deleted even after managed instance is deleted.
       * It will be a user's responsibility to delete such disks.
       * 
* * bool preserve_after_instance_delete = 6; * @return The preserveAfterInstanceDelete. */ boolean getPreserveAfterInstanceDelete(); public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.SourceOneofCase getSourceOneofCase(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec} */ public static final class DiskSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec) DiskSpecOrBuilder { private static final long serialVersionUID = 0L; // Use DiskSpec.newBuilder() to construct. private DiskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiskSpec() { description_ = ""; typeId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiskSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiskSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); typeId_ = s; break; } case 24: { size_ = input.readInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); sourceOneofCase_ = 4; sourceOneof_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); sourceOneofCase_ = 5; sourceOneof_ = s; break; } case 48: { preserveAfterInstanceDelete_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.Builder.class); } private int sourceOneofCase_ = 0; private java.lang.Object sourceOneof_; public enum SourceOneofCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_ID(4), SNAPSHOT_ID(5), SOURCEONEOF_NOT_SET(0); private final int value; private SourceOneofCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SourceOneofCase valueOf(int value) { return forNumber(value); } public static SourceOneofCase forNumber(int value) { switch (value) { case 4: return IMAGE_ID; case 5: return SNAPSHOT_ID; case 0: return SOURCEONEOF_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SourceOneofCase getSourceOneofCase() { return SourceOneofCase.forNumber( sourceOneofCase_); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** *
       * Description of the disk.
       * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
       * Description of the disk.
       * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object typeId_; /** *
       * ID of the disk type.
       * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @return The typeId. */ @java.lang.Override public java.lang.String getTypeId() { java.lang.Object ref = typeId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeId_ = s; return s; } } /** *
       * ID of the disk type.
       * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @return The bytes for typeId. */ @java.lang.Override public com.google.protobuf.ByteString getTypeIdBytes() { java.lang.Object ref = typeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIZE_FIELD_NUMBER = 3; private long size_; /** *
       * Size of the disk, specified in bytes.
       * 
* * int64 size = 3 [(.yandex.cloud.value) = "4194304-28587302322176"]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int IMAGE_ID_FIELD_NUMBER = 4; /** *
       * ID of the image that will be used for disk creation.
       * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return Whether the imageId field is set. */ public boolean hasImageId() { return sourceOneofCase_ == 4; } /** *
       * ID of the image that will be used for disk creation.
       * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return The imageId. */ public java.lang.String getImageId() { java.lang.Object ref = ""; if (sourceOneofCase_ == 4) { ref = sourceOneof_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceOneofCase_ == 4) { sourceOneof_ = s; } return s; } } /** *
       * ID of the image that will be used for disk creation.
       * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for imageId. */ public com.google.protobuf.ByteString getImageIdBytes() { java.lang.Object ref = ""; if (sourceOneofCase_ == 4) { ref = sourceOneof_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceOneofCase_ == 4) { sourceOneof_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SNAPSHOT_ID_FIELD_NUMBER = 5; /** *
       * ID of the snapshot that will be used for disk creation.
       * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the snapshotId field is set. */ public boolean hasSnapshotId() { return sourceOneofCase_ == 5; } /** *
       * ID of the snapshot that will be used for disk creation.
       * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The snapshotId. */ public java.lang.String getSnapshotId() { java.lang.Object ref = ""; if (sourceOneofCase_ == 5) { ref = sourceOneof_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceOneofCase_ == 5) { sourceOneof_ = s; } return s; } } /** *
       * ID of the snapshot that will be used for disk creation.
       * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for snapshotId. */ public com.google.protobuf.ByteString getSnapshotIdBytes() { java.lang.Object ref = ""; if (sourceOneofCase_ == 5) { ref = sourceOneof_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceOneofCase_ == 5) { sourceOneof_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRESERVE_AFTER_INSTANCE_DELETE_FIELD_NUMBER = 6; private boolean preserveAfterInstanceDelete_; /** *
       * When set to true, disk will not be deleted even after managed instance is deleted.
       * It will be a user's responsibility to delete such disks.
       * 
* * bool preserve_after_instance_delete = 6; * @return The preserveAfterInstanceDelete. */ @java.lang.Override public boolean getPreserveAfterInstanceDelete() { return preserveAfterInstanceDelete_; } 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(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, typeId_); } if (size_ != 0L) { output.writeInt64(3, size_); } if (sourceOneofCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceOneof_); } if (sourceOneofCase_ == 5) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceOneof_); } if (preserveAfterInstanceDelete_ != false) { output.writeBool(6, preserveAfterInstanceDelete_); } 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(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, typeId_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, size_); } if (sourceOneofCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceOneof_); } if (sourceOneofCase_ == 5) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceOneof_); } if (preserveAfterInstanceDelete_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, preserveAfterInstanceDelete_); } 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.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec) obj; if (!getDescription() .equals(other.getDescription())) return false; if (!getTypeId() .equals(other.getTypeId())) return false; if (getSize() != other.getSize()) return false; if (getPreserveAfterInstanceDelete() != other.getPreserveAfterInstanceDelete()) return false; if (!getSourceOneofCase().equals(other.getSourceOneofCase())) return false; switch (sourceOneofCase_) { case 4: if (!getImageId() .equals(other.getImageId())) return false; break; case 5: if (!getSnapshotId() .equals(other.getSnapshotId())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + TYPE_ID_FIELD_NUMBER; hash = (53 * hash) + getTypeId().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (37 * hash) + PRESERVE_AFTER_INSTANCE_DELETE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPreserveAfterInstanceDelete()); switch (sourceOneofCase_) { case 4: hash = (37 * hash) + IMAGE_ID_FIELD_NUMBER; hash = (53 * hash) + getImageId().hashCode(); break; case 5: hash = (37 * hash) + SNAPSHOT_ID_FIELD_NUMBER; hash = (53 * hash) + getSnapshotId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); description_ = ""; typeId_ = ""; size_ = 0L; preserveAfterInstanceDelete_ = false; sourceOneofCase_ = 0; sourceOneof_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec(this); result.description_ = description_; result.typeId_ = typeId_; result.size_ = size_; if (sourceOneofCase_ == 4) { result.sourceOneof_ = sourceOneof_; } if (sourceOneofCase_ == 5) { result.sourceOneof_ = sourceOneof_; } result.preserveAfterInstanceDelete_ = preserveAfterInstanceDelete_; result.sourceOneofCase_ = sourceOneofCase_; 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.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getTypeId().isEmpty()) { typeId_ = other.typeId_; onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); } if (other.getPreserveAfterInstanceDelete() != false) { setPreserveAfterInstanceDelete(other.getPreserveAfterInstanceDelete()); } switch (other.getSourceOneofCase()) { case IMAGE_ID: { sourceOneofCase_ = 4; sourceOneof_ = other.sourceOneof_; onChanged(); break; } case SNAPSHOT_ID: { sourceOneofCase_ = 5; sourceOneof_ = other.sourceOneof_; onChanged(); break; } case SOURCEONEOF_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sourceOneofCase_ = 0; private java.lang.Object sourceOneof_; public SourceOneofCase getSourceOneofCase() { return SourceOneofCase.forNumber( sourceOneofCase_); } public Builder clearSourceOneof() { sourceOneofCase_ = 0; sourceOneof_ = null; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
         * Description of the disk.
         * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Description of the disk.
         * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Description of the disk.
         * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
         * Description of the disk.
         * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
         * Description of the disk.
         * 
* * string description = 1 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object typeId_ = ""; /** *
         * ID of the disk type.
         * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @return The typeId. */ public java.lang.String getTypeId() { java.lang.Object ref = typeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the disk type.
         * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @return The bytes for typeId. */ public com.google.protobuf.ByteString getTypeIdBytes() { java.lang.Object ref = typeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the disk type.
         * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @param value The typeId to set. * @return This builder for chaining. */ public Builder setTypeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeId_ = value; onChanged(); return this; } /** *
         * ID of the disk type.
         * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearTypeId() { typeId_ = getDefaultInstance().getTypeId(); onChanged(); return this; } /** *
         * ID of the disk type.
         * 
* * string type_id = 2 [(.yandex.cloud.required) = true]; * @param value The bytes for typeId to set. * @return This builder for chaining. */ public Builder setTypeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeId_ = value; onChanged(); return this; } private long size_ ; /** *
         * Size of the disk, specified in bytes.
         * 
* * int64 size = 3 [(.yandex.cloud.value) = "4194304-28587302322176"]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
         * Size of the disk, specified in bytes.
         * 
* * int64 size = 3 [(.yandex.cloud.value) = "4194304-28587302322176"]; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** *
         * Size of the disk, specified in bytes.
         * 
* * int64 size = 3 [(.yandex.cloud.value) = "4194304-28587302322176"]; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } /** *
         * ID of the image that will be used for disk creation.
         * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return Whether the imageId field is set. */ @java.lang.Override public boolean hasImageId() { return sourceOneofCase_ == 4; } /** *
         * ID of the image that will be used for disk creation.
         * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return The imageId. */ @java.lang.Override public java.lang.String getImageId() { java.lang.Object ref = ""; if (sourceOneofCase_ == 4) { ref = sourceOneof_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceOneofCase_ == 4) { sourceOneof_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the image that will be used for disk creation.
         * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for imageId. */ @java.lang.Override public com.google.protobuf.ByteString getImageIdBytes() { java.lang.Object ref = ""; if (sourceOneofCase_ == 4) { ref = sourceOneof_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceOneofCase_ == 4) { sourceOneof_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the image that will be used for disk creation.
         * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @param value The imageId to set. * @return This builder for chaining. */ public Builder setImageId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceOneofCase_ = 4; sourceOneof_ = value; onChanged(); return this; } /** *
         * ID of the image that will be used for disk creation.
         * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearImageId() { if (sourceOneofCase_ == 4) { sourceOneofCase_ = 0; sourceOneof_ = null; onChanged(); } return this; } /** *
         * ID of the image that will be used for disk creation.
         * 
* * string image_id = 4 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for imageId to set. * @return This builder for chaining. */ public Builder setImageIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceOneofCase_ = 4; sourceOneof_ = value; onChanged(); return this; } /** *
         * ID of the snapshot that will be used for disk creation.
         * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return Whether the snapshotId field is set. */ @java.lang.Override public boolean hasSnapshotId() { return sourceOneofCase_ == 5; } /** *
         * ID of the snapshot that will be used for disk creation.
         * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The snapshotId. */ @java.lang.Override public java.lang.String getSnapshotId() { java.lang.Object ref = ""; if (sourceOneofCase_ == 5) { ref = sourceOneof_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceOneofCase_ == 5) { sourceOneof_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the snapshot that will be used for disk creation.
         * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for snapshotId. */ @java.lang.Override public com.google.protobuf.ByteString getSnapshotIdBytes() { java.lang.Object ref = ""; if (sourceOneofCase_ == 5) { ref = sourceOneof_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (sourceOneofCase_ == 5) { sourceOneof_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the snapshot that will be used for disk creation.
         * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @param value The snapshotId to set. * @return This builder for chaining. */ public Builder setSnapshotId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceOneofCase_ = 5; sourceOneof_ = value; onChanged(); return this; } /** *
         * ID of the snapshot that will be used for disk creation.
         * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearSnapshotId() { if (sourceOneofCase_ == 5) { sourceOneofCase_ = 0; sourceOneof_ = null; onChanged(); } return this; } /** *
         * ID of the snapshot that will be used for disk creation.
         * 
* * string snapshot_id = 5 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for snapshotId to set. * @return This builder for chaining. */ public Builder setSnapshotIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceOneofCase_ = 5; sourceOneof_ = value; onChanged(); return this; } private boolean preserveAfterInstanceDelete_ ; /** *
         * When set to true, disk will not be deleted even after managed instance is deleted.
         * It will be a user's responsibility to delete such disks.
         * 
* * bool preserve_after_instance_delete = 6; * @return The preserveAfterInstanceDelete. */ @java.lang.Override public boolean getPreserveAfterInstanceDelete() { return preserveAfterInstanceDelete_; } /** *
         * When set to true, disk will not be deleted even after managed instance is deleted.
         * It will be a user's responsibility to delete such disks.
         * 
* * bool preserve_after_instance_delete = 6; * @param value The preserveAfterInstanceDelete to set. * @return This builder for chaining. */ public Builder setPreserveAfterInstanceDelete(boolean value) { preserveAfterInstanceDelete_ = value; onChanged(); return this; } /** *
         * When set to true, disk will not be deleted even after managed instance is deleted.
         * It will be a user's responsibility to delete such disks.
         * 
* * bool preserve_after_instance_delete = 6; * @return This builder for chaining. */ public Builder clearPreserveAfterInstanceDelete() { preserveAfterInstanceDelete_ = 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.AttachedDiskSpec.DiskSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiskSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiskSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int MODE_FIELD_NUMBER = 1; private int mode_; /** *
     * Access mode to the Disk resource.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** *
     * Access mode to the Disk resource.
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @return The mode. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode.UNRECOGNIZED : result; } public static final int DEVICE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object deviceName_; /** *
     * Serial number that is reflected in the /dev/disk/by-id/ tree
     * of a Linux operating system running within the instance.
     * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The deviceName. */ @java.lang.Override public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; } } /** *
     * Serial number that is reflected in the /dev/disk/by-id/ tree
     * of a Linux operating system running within the instance.
     * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
     * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The bytes for deviceName. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISK_SPEC_FIELD_NUMBER = 3; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec diskSpec_; /** *
     *oneof disk_spec or disk_id
     * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; * @return Whether the diskSpec field is set. */ @java.lang.Override public boolean hasDiskSpec() { return diskSpec_ != null; } /** *
     *oneof disk_spec or disk_id
     * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; * @return The diskSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec getDiskSpec() { return diskSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance() : diskSpec_; } /** *
     *oneof disk_spec or disk_id
     * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
     * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpecOrBuilder getDiskSpecOrBuilder() { return getDiskSpec(); } public static final int DISK_ID_FIELD_NUMBER = 4; private volatile java.lang.Object diskId_; /** *
     * Set to use an existing disk. To set use variables.
     * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The diskId. */ @java.lang.Override public java.lang.String getDiskId() { java.lang.Object ref = diskId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskId_ = s; return s; } } /** *
     * Set to use an existing disk. To set use variables.
     * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The bytes for diskId. */ @java.lang.Override public com.google.protobuf.ByteString getDiskIdBytes() { java.lang.Object ref = diskId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); diskId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 7; private volatile java.lang.Object name_; /** *
     * When set can be later used to change DiskSpec of actual disk.
     * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @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; } } /** *
     * When set can be later used to change DiskSpec of actual disk.
     * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @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; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (mode_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, mode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_); } if (diskSpec_ != null) { output.writeMessage(3, getDiskSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, diskId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mode_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode.MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, mode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_); } if (diskSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDiskSpec()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, diskId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); } 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.InstanceGroupOuterClass.AttachedDiskSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec) obj; if (mode_ != other.mode_) return false; if (!getDeviceName() .equals(other.getDeviceName())) return false; if (hasDiskSpec() != other.hasDiskSpec()) return false; if (hasDiskSpec()) { if (!getDiskSpec() .equals(other.getDiskSpec())) return false; } if (!getDiskId() .equals(other.getDiskId())) return false; if (!getName() .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDeviceName().hashCode(); if (hasDiskSpec()) { hash = (37 * hash) + DISK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getDiskSpec().hashCode(); } hash = (37 * hash) + DISK_ID_FIELD_NUMBER; hash = (53 * hash) + getDiskId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); mode_ = 0; deviceName_ = ""; if (diskSpecBuilder_ == null) { diskSpec_ = null; } else { diskSpec_ = null; diskSpecBuilder_ = null; } diskId_ = ""; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec(this); result.mode_ = mode_; result.deviceName_ = deviceName_; if (diskSpecBuilder_ == null) { result.diskSpec_ = diskSpec_; } else { result.diskSpec_ = diskSpecBuilder_.build(); } result.diskId_ = diskId_; result.name_ = name_; 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.InstanceGroupOuterClass.AttachedDiskSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.getDefaultInstance()) return this; if (other.mode_ != 0) { setModeValue(other.getModeValue()); } if (!other.getDeviceName().isEmpty()) { deviceName_ = other.deviceName_; onChanged(); } if (other.hasDiskSpec()) { mergeDiskSpec(other.getDiskSpec()); } if (!other.getDiskId().isEmpty()) { diskId_ = other.diskId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; 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.InstanceGroupOuterClass.AttachedDiskSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int mode_ = 0; /** *
       * Access mode to the Disk resource.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @return The enum numeric value on the wire for mode. */ @java.lang.Override public int getModeValue() { return mode_; } /** *
       * Access mode to the Disk resource.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ public Builder setModeValue(int value) { mode_ = value; onChanged(); return this; } /** *
       * Access mode to the Disk resource.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @return The mode. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode getMode() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode.valueOf(mode_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode.UNRECOGNIZED : result; } /** *
       * Access mode to the Disk resource.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @param value The mode to set. * @return This builder for chaining. */ public Builder setMode(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.Mode value) { if (value == null) { throw new NullPointerException(); } mode_ = value.getNumber(); onChanged(); return this; } /** *
       * Access mode to the Disk resource.
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.Mode mode = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearMode() { mode_ = 0; onChanged(); return this; } private java.lang.Object deviceName_ = ""; /** *
       * Serial number that is reflected in the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Serial number that is reflected in the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Serial number that is reflected in the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @param value The deviceName to set. * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceName_ = value; onChanged(); return this; } /** *
       * Serial number that is reflected in the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @return This builder for chaining. */ public Builder clearDeviceName() { deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** *
       * Serial number that is reflected in the /dev/disk/by-id/ tree
       * of a Linux operating system running within the instance.
       * This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
       * 
* * string device_name = 2 [(.yandex.cloud.pattern) = "|[a-z][-_0-9a-z]{0,19}"]; * @param value The bytes for deviceName to set. * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceName_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec diskSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpecOrBuilder> diskSpecBuilder_; /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; * @return Whether the diskSpec field is set. */ public boolean hasDiskSpec() { return diskSpecBuilder_ != null || diskSpec_ != null; } /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; * @return The diskSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec getDiskSpec() { if (diskSpecBuilder_ == null) { return diskSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance() : diskSpec_; } else { return diskSpecBuilder_.getMessage(); } } /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ public Builder setDiskSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec value) { if (diskSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } diskSpec_ = value; onChanged(); } else { diskSpecBuilder_.setMessage(value); } return this; } /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ public Builder setDiskSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.Builder builderForValue) { if (diskSpecBuilder_ == null) { diskSpec_ = builderForValue.build(); onChanged(); } else { diskSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ public Builder mergeDiskSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec value) { if (diskSpecBuilder_ == null) { if (diskSpec_ != null) { diskSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.newBuilder(diskSpec_).mergeFrom(value).buildPartial(); } else { diskSpec_ = value; } onChanged(); } else { diskSpecBuilder_.mergeFrom(value); } return this; } /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ public Builder clearDiskSpec() { if (diskSpecBuilder_ == null) { diskSpec_ = null; onChanged(); } else { diskSpec_ = null; diskSpecBuilder_ = null; } return this; } /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.Builder getDiskSpecBuilder() { onChanged(); return getDiskSpecFieldBuilder().getBuilder(); } /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpecOrBuilder getDiskSpecOrBuilder() { if (diskSpecBuilder_ != null) { return diskSpecBuilder_.getMessageOrBuilder(); } else { return diskSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.getDefaultInstance() : diskSpec_; } } /** *
       *oneof disk_spec or disk_id
       * Disk specification that is attached to the instance. For more information, see [Disks](/docs/compute/concepts/disk).
       * 
* * .yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec.DiskSpec disk_spec = 3 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpecOrBuilder> getDiskSpecFieldBuilder() { if (diskSpecBuilder_ == null) { diskSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec.DiskSpecOrBuilder>( getDiskSpec(), getParentForChildren(), isClean()); diskSpec_ = null; } return diskSpecBuilder_; } private java.lang.Object diskId_ = ""; /** *
       * Set to use an existing disk. To set use variables.
       * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The diskId. */ public java.lang.String getDiskId() { java.lang.Object ref = diskId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Set to use an existing disk. To set use variables.
       * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return The bytes for diskId. */ public com.google.protobuf.ByteString getDiskIdBytes() { java.lang.Object ref = diskId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); diskId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Set to use an existing disk. To set use variables.
       * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @param value The diskId to set. * @return This builder for chaining. */ public Builder setDiskId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } diskId_ = value; onChanged(); return this; } /** *
       * Set to use an existing disk. To set use variables.
       * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @return This builder for chaining. */ public Builder clearDiskId() { diskId_ = getDefaultInstance().getDiskId(); onChanged(); return this; } /** *
       * Set to use an existing disk. To set use variables.
       * 
* * string disk_id = 4 [(.yandex.cloud.pattern) = "[-a-zA-Z0-9._{}]*", (.yandex.cloud.length) = "<=128"]; * @param value The bytes for diskId to set. * @return This builder for chaining. */ public Builder setDiskIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); diskId_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * When set can be later used to change DiskSpec of actual disk.
       * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @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; } } /** *
       * When set can be later used to change DiskSpec of actual disk.
       * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @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; } } /** *
       * When set can be later used to change DiskSpec of actual disk.
       * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @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; } /** *
       * When set can be later used to change DiskSpec of actual disk.
       * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * When set can be later used to change DiskSpec of actual disk.
       * 
* * string name = 7 [(.yandex.cloud.length) = "<=128"]; * @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; } @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.AttachedDiskSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.AttachedDiskSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AttachedDiskSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachedDiskSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AttachedDiskSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NetworkInterfaceSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the network.
     * 
* * string network_id = 1; * @return The networkId. */ java.lang.String getNetworkId(); /** *
     * ID of the network.
     * 
* * string network_id = 1; * @return The bytes for networkId. */ com.google.protobuf.ByteString getNetworkIdBytes(); /** *
     * IDs of the subnets.
     * 
* * repeated string subnet_ids = 2; * @return A list containing the subnetIds. */ java.util.List getSubnetIdsList(); /** *
     * IDs of the subnets.
     * 
* * repeated string subnet_ids = 2; * @return The count of subnetIds. */ int getSubnetIdsCount(); /** *
     * IDs of the subnets.
     * 
* * repeated string subnet_ids = 2; * @param index The index of the element to return. * @return The subnetIds at the given index. */ java.lang.String getSubnetIds(int index); /** *
     * IDs of the subnets.
     * 
* * repeated string subnet_ids = 2; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ com.google.protobuf.ByteString getSubnetIdsBytes(int index); /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; * @return Whether the primaryV4AddressSpec field is set. */ boolean hasPrimaryV4AddressSpec(); /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; * @return The primaryV4AddressSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec(); /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder(); /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; * @return Whether the primaryV6AddressSpec field is set. */ boolean hasPrimaryV6AddressSpec(); /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; * @return The primaryV6AddressSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec(); /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder(); /** *
     * IDs of security groups.
     * 
* * repeated string security_group_ids = 5; * @return A list containing the securityGroupIds. */ java.util.List getSecurityGroupIdsList(); /** *
     * IDs of security groups.
     * 
* * repeated string security_group_ids = 5; * @return The count of securityGroupIds. */ int getSecurityGroupIdsCount(); /** *
     * IDs of security groups.
     * 
* * repeated string security_group_ids = 5; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ java.lang.String getSecurityGroupIds(int index); /** *
     * IDs of security groups.
     * 
* * repeated string security_group_ids = 5; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec} */ public static final class NetworkInterfaceSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec) NetworkInterfaceSpecOrBuilder { private static final long serialVersionUID = 0L; // Use NetworkInterfaceSpec.newBuilder() to construct. private NetworkInterfaceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NetworkInterfaceSpec() { networkId_ = ""; subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NetworkInterfaceSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NetworkInterfaceSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); networkId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { subnetIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } subnetIds_.add(s); break; } case 26: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder subBuilder = null; if (primaryV4AddressSpec_ != null) { subBuilder = primaryV4AddressSpec_.toBuilder(); } primaryV4AddressSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(primaryV4AddressSpec_); primaryV4AddressSpec_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder subBuilder = null; if (primaryV6AddressSpec_ != null) { subBuilder = primaryV6AddressSpec_.toBuilder(); } primaryV6AddressSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(primaryV6AddressSpec_); primaryV6AddressSpec_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } securityGroupIds_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { subnetIds_ = subnetIds_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder.class); } public static final int NETWORK_ID_FIELD_NUMBER = 1; private volatile java.lang.Object networkId_; /** *
     * ID of the network.
     * 
* * string network_id = 1; * @return The networkId. */ @java.lang.Override public java.lang.String getNetworkId() { java.lang.Object ref = networkId_; 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(); networkId_ = s; return s; } } /** *
     * ID of the network.
     * 
* * string network_id = 1; * @return The bytes for networkId. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkIdBytes() { java.lang.Object ref = networkId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBNET_IDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList subnetIds_; /** *
     * IDs of the subnets.
     * 
* * repeated string subnet_ids = 2; * @return A list containing the subnetIds. */ public com.google.protobuf.ProtocolStringList getSubnetIdsList() { return subnetIds_; } /** *
     * IDs of the subnets.
     * 
* * repeated string subnet_ids = 2; * @return The count of subnetIds. */ public int getSubnetIdsCount() { return subnetIds_.size(); } /** *
     * IDs of the subnets.
     * 
* * repeated string subnet_ids = 2; * @param index The index of the element to return. * @return The subnetIds at the given index. */ public java.lang.String getSubnetIds(int index) { return subnetIds_.get(index); } /** *
     * IDs of the subnets.
     * 
* * repeated string subnet_ids = 2; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ public com.google.protobuf.ByteString getSubnetIdsBytes(int index) { return subnetIds_.getByteString(index); } public static final int PRIMARY_V4_ADDRESS_SPEC_FIELD_NUMBER = 3; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec primaryV4AddressSpec_; /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; * @return Whether the primaryV4AddressSpec field is set. */ @java.lang.Override public boolean hasPrimaryV4AddressSpec() { return primaryV4AddressSpec_ != null; } /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; * @return The primaryV4AddressSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec() { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder() { return getPrimaryV4AddressSpec(); } public static final int PRIMARY_V6_ADDRESS_SPEC_FIELD_NUMBER = 4; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec primaryV6AddressSpec_; /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; * @return Whether the primaryV6AddressSpec field is set. */ @java.lang.Override public boolean hasPrimaryV6AddressSpec() { return primaryV6AddressSpec_ != null; } /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; * @return The primaryV6AddressSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec() { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder() { return getPrimaryV6AddressSpec(); } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList securityGroupIds_; /** *
     * IDs of security groups.
     * 
* * repeated string security_group_ids = 5; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_; } /** *
     * IDs of security groups.
     * 
* * repeated string security_group_ids = 5; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
     * IDs of security groups.
     * 
* * repeated string security_group_ids = 5; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
     * IDs of security groups.
     * 
* * repeated string security_group_ids = 5; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkId_); } for (int i = 0; i < subnetIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetIds_.getRaw(i)); } if (primaryV4AddressSpec_ != null) { output.writeMessage(3, getPrimaryV4AddressSpec()); } if (primaryV6AddressSpec_ != null) { output.writeMessage(4, getPrimaryV6AddressSpec()); } for (int i = 0; i < securityGroupIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, securityGroupIds_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkId_); } { int dataSize = 0; for (int i = 0; i < subnetIds_.size(); i++) { dataSize += computeStringSizeNoTag(subnetIds_.getRaw(i)); } size += dataSize; size += 1 * getSubnetIdsList().size(); } if (primaryV4AddressSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPrimaryV4AddressSpec()); } if (primaryV6AddressSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPrimaryV6AddressSpec()); } { int dataSize = 0; for (int i = 0; i < securityGroupIds_.size(); i++) { dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); } size += dataSize; size += 1 * getSecurityGroupIdsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec) obj; if (!getNetworkId() .equals(other.getNetworkId())) return false; if (!getSubnetIdsList() .equals(other.getSubnetIdsList())) return false; if (hasPrimaryV4AddressSpec() != other.hasPrimaryV4AddressSpec()) return false; if (hasPrimaryV4AddressSpec()) { if (!getPrimaryV4AddressSpec() .equals(other.getPrimaryV4AddressSpec())) return false; } if (hasPrimaryV6AddressSpec() != other.hasPrimaryV6AddressSpec()) return false; if (hasPrimaryV6AddressSpec()) { if (!getPrimaryV6AddressSpec() .equals(other.getPrimaryV6AddressSpec())) return false; } if (!getSecurityGroupIdsList() .equals(other.getSecurityGroupIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getNetworkId().hashCode(); if (getSubnetIdsCount() > 0) { hash = (37 * hash) + SUBNET_IDS_FIELD_NUMBER; hash = (53 * hash) + getSubnetIdsList().hashCode(); } if (hasPrimaryV4AddressSpec()) { hash = (37 * hash) + PRIMARY_V4_ADDRESS_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPrimaryV4AddressSpec().hashCode(); } if (hasPrimaryV6AddressSpec()) { hash = (37 * hash) + PRIMARY_V6_ADDRESS_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPrimaryV6AddressSpec().hashCode(); } if (getSecurityGroupIdsCount() > 0) { hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); networkId_ = ""; subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = null; } else { primaryV4AddressSpec_ = null; primaryV4AddressSpecBuilder_ = null; } if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = null; } else { primaryV6AddressSpec_ = null; primaryV6AddressSpecBuilder_ = null; } securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec(this); int from_bitField0_ = bitField0_; result.networkId_ = networkId_; if (((bitField0_ & 0x00000001) != 0)) { subnetIds_ = subnetIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.subnetIds_ = subnetIds_; if (primaryV4AddressSpecBuilder_ == null) { result.primaryV4AddressSpec_ = primaryV4AddressSpec_; } else { result.primaryV4AddressSpec_ = primaryV4AddressSpecBuilder_.build(); } if (primaryV6AddressSpecBuilder_ == null) { result.primaryV6AddressSpec_ = primaryV6AddressSpec_; } else { result.primaryV6AddressSpec_ = primaryV6AddressSpecBuilder_.build(); } if (((bitField0_ & 0x00000002) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.securityGroupIds_ = securityGroupIds_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec.getDefaultInstance()) return this; if (!other.getNetworkId().isEmpty()) { networkId_ = other.networkId_; onChanged(); } if (!other.subnetIds_.isEmpty()) { if (subnetIds_.isEmpty()) { subnetIds_ = other.subnetIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSubnetIdsIsMutable(); subnetIds_.addAll(other.subnetIds_); } onChanged(); } if (other.hasPrimaryV4AddressSpec()) { mergePrimaryV4AddressSpec(other.getPrimaryV4AddressSpec()); } if (other.hasPrimaryV6AddressSpec()) { mergePrimaryV6AddressSpec(other.getPrimaryV6AddressSpec()); } if (!other.securityGroupIds_.isEmpty()) { if (securityGroupIds_.isEmpty()) { securityGroupIds_ = other.securityGroupIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.addAll(other.securityGroupIds_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object networkId_ = ""; /** *
       * ID of the network.
       * 
* * string network_id = 1; * @return The networkId. */ public java.lang.String getNetworkId() { java.lang.Object ref = networkId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the network.
       * 
* * string network_id = 1; * @return The bytes for networkId. */ public com.google.protobuf.ByteString getNetworkIdBytes() { java.lang.Object ref = networkId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the network.
       * 
* * string network_id = 1; * @param value The networkId to set. * @return This builder for chaining. */ public Builder setNetworkId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkId_ = value; onChanged(); return this; } /** *
       * ID of the network.
       * 
* * string network_id = 1; * @return This builder for chaining. */ public Builder clearNetworkId() { networkId_ = getDefaultInstance().getNetworkId(); onChanged(); return this; } /** *
       * ID of the network.
       * 
* * string network_id = 1; * @param value The bytes for networkId to set. * @return This builder for chaining. */ public Builder setNetworkIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubnetIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { subnetIds_ = new com.google.protobuf.LazyStringArrayList(subnetIds_); bitField0_ |= 0x00000001; } } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @return A list containing the subnetIds. */ public com.google.protobuf.ProtocolStringList getSubnetIdsList() { return subnetIds_.getUnmodifiableView(); } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @return The count of subnetIds. */ public int getSubnetIdsCount() { return subnetIds_.size(); } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @param index The index of the element to return. * @return The subnetIds at the given index. */ public java.lang.String getSubnetIds(int index) { return subnetIds_.get(index); } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ public com.google.protobuf.ByteString getSubnetIdsBytes(int index) { return subnetIds_.getByteString(index); } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @param index The index to set the value at. * @param value The subnetIds to set. * @return This builder for chaining. */ public Builder setSubnetIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubnetIdsIsMutable(); subnetIds_.set(index, value); onChanged(); return this; } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @param value The subnetIds to add. * @return This builder for chaining. */ public Builder addSubnetIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubnetIdsIsMutable(); subnetIds_.add(value); onChanged(); return this; } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @param values The subnetIds to add. * @return This builder for chaining. */ public Builder addAllSubnetIds( java.lang.Iterable values) { ensureSubnetIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subnetIds_); onChanged(); return this; } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @return This builder for chaining. */ public Builder clearSubnetIds() { subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * IDs of the subnets.
       * 
* * repeated string subnet_ids = 2; * @param value The bytes of the subnetIds to add. * @return This builder for chaining. */ public Builder addSubnetIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubnetIdsIsMutable(); subnetIds_.add(value); onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec primaryV4AddressSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder> primaryV4AddressSpecBuilder_; /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; * @return Whether the primaryV4AddressSpec field is set. */ public boolean hasPrimaryV4AddressSpec() { return primaryV4AddressSpecBuilder_ != null || primaryV4AddressSpec_ != null; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; * @return The primaryV4AddressSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getPrimaryV4AddressSpec() { if (primaryV4AddressSpecBuilder_ == null) { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } else { return primaryV4AddressSpecBuilder_.getMessage(); } } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ public Builder setPrimaryV4AddressSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec value) { if (primaryV4AddressSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryV4AddressSpec_ = value; onChanged(); } else { primaryV4AddressSpecBuilder_.setMessage(value); } return this; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ public Builder setPrimaryV4AddressSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder builderForValue) { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = builderForValue.build(); onChanged(); } else { primaryV4AddressSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ public Builder mergePrimaryV4AddressSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec value) { if (primaryV4AddressSpecBuilder_ == null) { if (primaryV4AddressSpec_ != null) { primaryV4AddressSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.newBuilder(primaryV4AddressSpec_).mergeFrom(value).buildPartial(); } else { primaryV4AddressSpec_ = value; } onChanged(); } else { primaryV4AddressSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ public Builder clearPrimaryV4AddressSpec() { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpec_ = null; onChanged(); } else { primaryV4AddressSpec_ = null; primaryV4AddressSpecBuilder_ = null; } return this; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder getPrimaryV4AddressSpecBuilder() { onChanged(); return getPrimaryV4AddressSpecFieldBuilder().getBuilder(); } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV4AddressSpecOrBuilder() { if (primaryV4AddressSpecBuilder_ != null) { return primaryV4AddressSpecBuilder_.getMessageOrBuilder(); } else { return primaryV4AddressSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV4AddressSpec_; } } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v4_address_spec = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder> getPrimaryV4AddressSpecFieldBuilder() { if (primaryV4AddressSpecBuilder_ == null) { primaryV4AddressSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder>( getPrimaryV4AddressSpec(), getParentForChildren(), isClean()); primaryV4AddressSpec_ = null; } return primaryV4AddressSpecBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec primaryV6AddressSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder> primaryV6AddressSpecBuilder_; /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; * @return Whether the primaryV6AddressSpec field is set. */ public boolean hasPrimaryV6AddressSpec() { return primaryV6AddressSpecBuilder_ != null || primaryV6AddressSpec_ != null; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; * @return The primaryV6AddressSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getPrimaryV6AddressSpec() { if (primaryV6AddressSpecBuilder_ == null) { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } else { return primaryV6AddressSpecBuilder_.getMessage(); } } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ public Builder setPrimaryV6AddressSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec value) { if (primaryV6AddressSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryV6AddressSpec_ = value; onChanged(); } else { primaryV6AddressSpecBuilder_.setMessage(value); } return this; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ public Builder setPrimaryV6AddressSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder builderForValue) { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = builderForValue.build(); onChanged(); } else { primaryV6AddressSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ public Builder mergePrimaryV6AddressSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec value) { if (primaryV6AddressSpecBuilder_ == null) { if (primaryV6AddressSpec_ != null) { primaryV6AddressSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.newBuilder(primaryV6AddressSpec_).mergeFrom(value).buildPartial(); } else { primaryV6AddressSpec_ = value; } onChanged(); } else { primaryV6AddressSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ public Builder clearPrimaryV6AddressSpec() { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpec_ = null; onChanged(); } else { primaryV6AddressSpec_ = null; primaryV6AddressSpecBuilder_ = null; } return this; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder getPrimaryV6AddressSpecBuilder() { onChanged(); return getPrimaryV6AddressSpecFieldBuilder().getBuilder(); } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder getPrimaryV6AddressSpecOrBuilder() { if (primaryV6AddressSpecBuilder_ != null) { return primaryV6AddressSpecBuilder_.getMessageOrBuilder(); } else { return primaryV6AddressSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.getDefaultInstance() : primaryV6AddressSpec_; } } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec primary_v6_address_spec = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder> getPrimaryV6AddressSpecFieldBuilder() { if (primaryV6AddressSpecBuilder_ == null) { primaryV6AddressSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder>( getPrimaryV6AddressSpec(), getParentForChildren(), isClean()); primaryV6AddressSpec_ = null; } return primaryV6AddressSpecBuilder_; } private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSecurityGroupIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); bitField0_ |= 0x00000002; } } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_.getUnmodifiableView(); } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @param index The index to set the value at. * @param value The securityGroupIds to set. * @return This builder for chaining. */ public Builder setSecurityGroupIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.set(index, value); onChanged(); return this; } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @param value The securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @param values The securityGroupIds to add. * @return This builder for chaining. */ public Builder addAllSecurityGroupIds( java.lang.Iterable values) { ensureSecurityGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, securityGroupIds_); onChanged(); return this; } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @return This builder for chaining. */ public Builder clearSecurityGroupIds() { securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * IDs of security groups.
       * 
* * repeated string security_group_ids = 5; * @param value The bytes of the securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.NetworkInterfaceSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NetworkInterfaceSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NetworkInterfaceSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrimaryAddressSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec) com.google.protobuf.MessageOrBuilder { /** *
     * An external IP address configuration.
     * If not specified, then this managed instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; * @return Whether the oneToOneNatSpec field is set. */ boolean hasOneToOneNatSpec(); /** *
     * An external IP address configuration.
     * If not specified, then this managed instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; * @return The oneToOneNatSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec getOneToOneNatSpec(); /** *
     * An external IP address configuration.
     * If not specified, then this managed instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder(); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ java.util.List getDnsRecordSpecsList(); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDnsRecordSpecs(int index); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ int getDnsRecordSpecsCount(); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ java.util.List getDnsRecordSpecsOrBuilderList(); /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index); /** *
     * Optional. Manual set static internal IP. To set use variables.
     * 
* * string address = 3; * @return The address. */ java.lang.String getAddress(); /** *
     * Optional. Manual set static internal IP. To set use variables.
     * 
* * string address = 3; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec} */ public static final class PrimaryAddressSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec) PrimaryAddressSpecOrBuilder { private static final long serialVersionUID = 0L; // Use PrimaryAddressSpec.newBuilder() to construct. private PrimaryAddressSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrimaryAddressSpec() { dnsRecordSpecs_ = java.util.Collections.emptyList(); address_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrimaryAddressSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrimaryAddressSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.Builder subBuilder = null; if (oneToOneNatSpec_ != null) { subBuilder = oneToOneNatSpec_.toBuilder(); } oneToOneNatSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(oneToOneNatSpec_); oneToOneNatSpec_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dnsRecordSpecs_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); address_ = 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)) { dnsRecordSpecs_ = java.util.Collections.unmodifiableList(dnsRecordSpecs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder.class); } public static final int ONE_TO_ONE_NAT_SPEC_FIELD_NUMBER = 1; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec oneToOneNatSpec_; /** *
     * An external IP address configuration.
     * If not specified, then this managed instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; * @return Whether the oneToOneNatSpec field is set. */ @java.lang.Override public boolean hasOneToOneNatSpec() { return oneToOneNatSpec_ != null; } /** *
     * An external IP address configuration.
     * If not specified, then this managed instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; * @return The oneToOneNatSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec getOneToOneNatSpec() { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } /** *
     * An external IP address configuration.
     * If not specified, then this managed instance will have no external internet access.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder() { return getOneToOneNatSpec(); } public static final int DNS_RECORD_SPECS_FIELD_NUMBER = 2; private java.util.List dnsRecordSpecs_; /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ @java.lang.Override public java.util.List getDnsRecordSpecsList() { return dnsRecordSpecs_; } /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ @java.lang.Override public java.util.List getDnsRecordSpecsOrBuilderList() { return dnsRecordSpecs_; } /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ @java.lang.Override public int getDnsRecordSpecsCount() { return dnsRecordSpecs_.size(); } /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDnsRecordSpecs(int index) { return dnsRecordSpecs_.get(index); } /** *
     * Internal DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index) { return dnsRecordSpecs_.get(index); } public static final int ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object address_; /** *
     * Optional. Manual set static internal IP. To set use variables.
     * 
* * string address = 3; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** *
     * Optional. Manual set static internal IP. To set use variables.
     * 
* * string address = 3; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (oneToOneNatSpec_ != null) { output.writeMessage(1, getOneToOneNatSpec()); } for (int i = 0; i < dnsRecordSpecs_.size(); i++) { output.writeMessage(2, dnsRecordSpecs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, address_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (oneToOneNatSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getOneToOneNatSpec()); } for (int i = 0; i < dnsRecordSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, dnsRecordSpecs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, address_); } 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.InstanceGroupOuterClass.PrimaryAddressSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec) obj; if (hasOneToOneNatSpec() != other.hasOneToOneNatSpec()) return false; if (hasOneToOneNatSpec()) { if (!getOneToOneNatSpec() .equals(other.getOneToOneNatSpec())) return false; } if (!getDnsRecordSpecsList() .equals(other.getDnsRecordSpecsList())) return false; if (!getAddress() .equals(other.getAddress())) 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 (hasOneToOneNatSpec()) { hash = (37 * hash) + ONE_TO_ONE_NAT_SPEC_FIELD_NUMBER; hash = (53 * hash) + getOneToOneNatSpec().hashCode(); } if (getDnsRecordSpecsCount() > 0) { hash = (37 * hash) + DNS_RECORD_SPECS_FIELD_NUMBER; hash = (53 * hash) + getDnsRecordSpecsList().hashCode(); } hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDnsRecordSpecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = null; } else { oneToOneNatSpec_ = null; oneToOneNatSpecBuilder_ = null; } if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dnsRecordSpecsBuilder_.clear(); } address_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec(this); int from_bitField0_ = bitField0_; if (oneToOneNatSpecBuilder_ == null) { result.oneToOneNatSpec_ = oneToOneNatSpec_; } else { result.oneToOneNatSpec_ = oneToOneNatSpecBuilder_.build(); } if (dnsRecordSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = java.util.Collections.unmodifiableList(dnsRecordSpecs_); bitField0_ = (bitField0_ & ~0x00000001); } result.dnsRecordSpecs_ = dnsRecordSpecs_; } else { result.dnsRecordSpecs_ = dnsRecordSpecsBuilder_.build(); } result.address_ = address_; 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.InstanceGroupOuterClass.PrimaryAddressSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec.getDefaultInstance()) return this; if (other.hasOneToOneNatSpec()) { mergeOneToOneNatSpec(other.getOneToOneNatSpec()); } if (dnsRecordSpecsBuilder_ == null) { if (!other.dnsRecordSpecs_.isEmpty()) { if (dnsRecordSpecs_.isEmpty()) { dnsRecordSpecs_ = other.dnsRecordSpecs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.addAll(other.dnsRecordSpecs_); } onChanged(); } } else { if (!other.dnsRecordSpecs_.isEmpty()) { if (dnsRecordSpecsBuilder_.isEmpty()) { dnsRecordSpecsBuilder_.dispose(); dnsRecordSpecsBuilder_ = null; dnsRecordSpecs_ = other.dnsRecordSpecs_; bitField0_ = (bitField0_ & ~0x00000001); dnsRecordSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDnsRecordSpecsFieldBuilder() : null; } else { dnsRecordSpecsBuilder_.addAllMessages(other.dnsRecordSpecs_); } } } if (!other.getAddress().isEmpty()) { address_ = other.address_; 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.InstanceGroupOuterClass.PrimaryAddressSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec oneToOneNatSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpecOrBuilder> oneToOneNatSpecBuilder_; /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; * @return Whether the oneToOneNatSpec field is set. */ public boolean hasOneToOneNatSpec() { return oneToOneNatSpecBuilder_ != null || oneToOneNatSpec_ != null; } /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; * @return The oneToOneNatSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec getOneToOneNatSpec() { if (oneToOneNatSpecBuilder_ == null) { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } else { return oneToOneNatSpecBuilder_.getMessage(); } } /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ public Builder setOneToOneNatSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec value) { if (oneToOneNatSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneToOneNatSpec_ = value; onChanged(); } else { oneToOneNatSpecBuilder_.setMessage(value); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ public Builder setOneToOneNatSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.Builder builderForValue) { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = builderForValue.build(); onChanged(); } else { oneToOneNatSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ public Builder mergeOneToOneNatSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec value) { if (oneToOneNatSpecBuilder_ == null) { if (oneToOneNatSpec_ != null) { oneToOneNatSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.newBuilder(oneToOneNatSpec_).mergeFrom(value).buildPartial(); } else { oneToOneNatSpec_ = value; } onChanged(); } else { oneToOneNatSpecBuilder_.mergeFrom(value); } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ public Builder clearOneToOneNatSpec() { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpec_ = null; onChanged(); } else { oneToOneNatSpec_ = null; oneToOneNatSpecBuilder_ = null; } return this; } /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.Builder getOneToOneNatSpecBuilder() { onChanged(); return getOneToOneNatSpecFieldBuilder().getBuilder(); } /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpecOrBuilder getOneToOneNatSpecOrBuilder() { if (oneToOneNatSpecBuilder_ != null) { return oneToOneNatSpecBuilder_.getMessageOrBuilder(); } else { return oneToOneNatSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.getDefaultInstance() : oneToOneNatSpec_; } } /** *
       * An external IP address configuration.
       * If not specified, then this managed instance will have no external internet access.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec one_to_one_nat_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpecOrBuilder> getOneToOneNatSpecFieldBuilder() { if (oneToOneNatSpecBuilder_ == null) { oneToOneNatSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpecOrBuilder>( getOneToOneNatSpec(), getParentForChildren(), isClean()); oneToOneNatSpec_ = null; } return oneToOneNatSpecBuilder_; } private java.util.List dnsRecordSpecs_ = java.util.Collections.emptyList(); private void ensureDnsRecordSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = new java.util.ArrayList(dnsRecordSpecs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder> dnsRecordSpecsBuilder_; /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public java.util.List getDnsRecordSpecsList() { if (dnsRecordSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsRecordSpecs_); } else { return dnsRecordSpecsBuilder_.getMessageList(); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public int getDnsRecordSpecsCount() { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.size(); } else { return dnsRecordSpecsBuilder_.getCount(); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDnsRecordSpecs(int index) { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.get(index); } else { return dnsRecordSpecsBuilder_.getMessage(index); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder setDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.set(index, value); onChanged(); } else { dnsRecordSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder setDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.set(index, builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder addDnsRecordSpecs(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(value); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(value); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder addDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(index, value); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder addDnsRecordSpecs( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder addDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(index, builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder addAllDnsRecordSpecs( java.lang.Iterable values) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dnsRecordSpecs_); onChanged(); } else { dnsRecordSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder clearDnsRecordSpecs() { if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dnsRecordSpecsBuilder_.clear(); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public Builder removeDnsRecordSpecs(int index) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.remove(index); onChanged(); } else { dnsRecordSpecsBuilder_.remove(index); } return this; } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder getDnsRecordSpecsBuilder( int index) { return getDnsRecordSpecsFieldBuilder().getBuilder(index); } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index) { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.get(index); } else { return dnsRecordSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public java.util.List getDnsRecordSpecsOrBuilderList() { if (dnsRecordSpecsBuilder_ != null) { return dnsRecordSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dnsRecordSpecs_); } } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder addDnsRecordSpecsBuilder() { return getDnsRecordSpecsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.getDefaultInstance()); } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder addDnsRecordSpecsBuilder( int index) { return getDnsRecordSpecsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.getDefaultInstance()); } /** *
       * Internal DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 2; */ public java.util.List getDnsRecordSpecsBuilderList() { return getDnsRecordSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder> getDnsRecordSpecsFieldBuilder() { if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder>( dnsRecordSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dnsRecordSpecs_ = null; } return dnsRecordSpecsBuilder_; } private java.lang.Object address_ = ""; /** *
       * Optional. Manual set static internal IP. To set use variables.
       * 
* * string address = 3; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optional. Manual set static internal IP. To set use variables.
       * 
* * string address = 3; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Optional. Manual set static internal IP. To set use variables.
       * 
* * string address = 3; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * Optional. Manual set static internal IP. To set use variables.
       * 
* * string address = 3; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * Optional. Manual set static internal IP. To set use variables.
       * 
* * string address = 3; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } @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.PrimaryAddressSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.PrimaryAddressSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrimaryAddressSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrimaryAddressSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OneToOneNatSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec) com.google.protobuf.MessageOrBuilder { /** *
     * IP version for the public IP address.
     * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @return The enum numeric value on the wire for ipVersion. */ int getIpVersionValue(); /** *
     * IP version for the public IP address.
     * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @return The ipVersion. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion getIpVersion(); /** *
     * Manual set static public IP. To set use variables. (optional)
     * 
* * string address = 2; * @return The address. */ java.lang.String getAddress(); /** *
     * Manual set static public IP. To set use variables. (optional)
     * 
* * string address = 2; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ java.util.List getDnsRecordSpecsList(); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDnsRecordSpecs(int index); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ int getDnsRecordSpecsCount(); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ java.util.List getDnsRecordSpecsOrBuilderList(); /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec} */ public static final class OneToOneNatSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec) OneToOneNatSpecOrBuilder { private static final long serialVersionUID = 0L; // Use OneToOneNatSpec.newBuilder() to construct. private OneToOneNatSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OneToOneNatSpec() { ipVersion_ = 0; address_ = ""; dnsRecordSpecs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OneToOneNatSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OneToOneNatSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); ipVersion_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dnsRecordSpecs_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = java.util.Collections.unmodifiableList(dnsRecordSpecs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.Builder.class); } public static final int IP_VERSION_FIELD_NUMBER = 1; private int ipVersion_; /** *
     * IP version for the public IP address.
     * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @return The enum numeric value on the wire for ipVersion. */ @java.lang.Override public int getIpVersionValue() { return ipVersion_; } /** *
     * IP version for the public IP address.
     * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @return The ipVersion. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion getIpVersion() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.valueOf(ipVersion_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.UNRECOGNIZED : result; } public static final int ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object address_; /** *
     * Manual set static public IP. To set use variables. (optional)
     * 
* * string address = 2; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** *
     * Manual set static public IP. To set use variables. (optional)
     * 
* * string address = 2; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DNS_RECORD_SPECS_FIELD_NUMBER = 3; private java.util.List dnsRecordSpecs_; /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public java.util.List getDnsRecordSpecsList() { return dnsRecordSpecs_; } /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public java.util.List getDnsRecordSpecsOrBuilderList() { return dnsRecordSpecs_; } /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public int getDnsRecordSpecsCount() { return dnsRecordSpecs_.size(); } /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDnsRecordSpecs(int index) { return dnsRecordSpecs_.get(index); } /** *
     * External DNS configuration
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index) { return dnsRecordSpecs_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (ipVersion_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.IP_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(1, ipVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); } for (int i = 0; i < dnsRecordSpecs_.size(); i++) { output.writeMessage(3, dnsRecordSpecs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ipVersion_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.IP_VERSION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ipVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); } for (int i = 0; i < dnsRecordSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, dnsRecordSpecs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec) obj; if (ipVersion_ != other.ipVersion_) return false; if (!getAddress() .equals(other.getAddress())) return false; if (!getDnsRecordSpecsList() .equals(other.getDnsRecordSpecsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IP_VERSION_FIELD_NUMBER; hash = (53 * hash) + ipVersion_; hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (getDnsRecordSpecsCount() > 0) { hash = (37 * hash) + DNS_RECORD_SPECS_FIELD_NUMBER; hash = (53 * hash) + getDnsRecordSpecsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDnsRecordSpecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); ipVersion_ = 0; address_ = ""; if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dnsRecordSpecsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec(this); int from_bitField0_ = bitField0_; result.ipVersion_ = ipVersion_; result.address_ = address_; if (dnsRecordSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = java.util.Collections.unmodifiableList(dnsRecordSpecs_); bitField0_ = (bitField0_ & ~0x00000001); } result.dnsRecordSpecs_ = dnsRecordSpecs_; } else { result.dnsRecordSpecs_ = dnsRecordSpecsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec.getDefaultInstance()) return this; if (other.ipVersion_ != 0) { setIpVersionValue(other.getIpVersionValue()); } if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (dnsRecordSpecsBuilder_ == null) { if (!other.dnsRecordSpecs_.isEmpty()) { if (dnsRecordSpecs_.isEmpty()) { dnsRecordSpecs_ = other.dnsRecordSpecs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.addAll(other.dnsRecordSpecs_); } onChanged(); } } else { if (!other.dnsRecordSpecs_.isEmpty()) { if (dnsRecordSpecsBuilder_.isEmpty()) { dnsRecordSpecsBuilder_.dispose(); dnsRecordSpecsBuilder_ = null; dnsRecordSpecs_ = other.dnsRecordSpecs_; bitField0_ = (bitField0_ & ~0x00000001); dnsRecordSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDnsRecordSpecsFieldBuilder() : null; } else { dnsRecordSpecsBuilder_.addAllMessages(other.dnsRecordSpecs_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int ipVersion_ = 0; /** *
       * IP version for the public IP address.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @return The enum numeric value on the wire for ipVersion. */ @java.lang.Override public int getIpVersionValue() { return ipVersion_; } /** *
       * IP version for the public IP address.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @param value The enum numeric value on the wire for ipVersion to set. * @return This builder for chaining. */ public Builder setIpVersionValue(int value) { ipVersion_ = value; onChanged(); return this; } /** *
       * IP version for the public IP address.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @return The ipVersion. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion getIpVersion() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.valueOf(ipVersion_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.UNRECOGNIZED : result; } /** *
       * IP version for the public IP address.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @param value The ipVersion to set. * @return This builder for chaining. */ public Builder setIpVersion(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion value) { if (value == null) { throw new NullPointerException(); } ipVersion_ = value.getNumber(); onChanged(); return this; } /** *
       * IP version for the public IP address.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 1; * @return This builder for chaining. */ public Builder clearIpVersion() { ipVersion_ = 0; onChanged(); return this; } private java.lang.Object address_ = ""; /** *
       * Manual set static public IP. To set use variables. (optional)
       * 
* * string address = 2; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Manual set static public IP. To set use variables. (optional)
       * 
* * string address = 2; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Manual set static public IP. To set use variables. (optional)
       * 
* * string address = 2; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * Manual set static public IP. To set use variables. (optional)
       * 
* * string address = 2; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * Manual set static public IP. To set use variables. (optional)
       * 
* * string address = 2; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private java.util.List dnsRecordSpecs_ = java.util.Collections.emptyList(); private void ensureDnsRecordSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dnsRecordSpecs_ = new java.util.ArrayList(dnsRecordSpecs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder> dnsRecordSpecsBuilder_; /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsList() { if (dnsRecordSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsRecordSpecs_); } else { return dnsRecordSpecsBuilder_.getMessageList(); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public int getDnsRecordSpecsCount() { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.size(); } else { return dnsRecordSpecsBuilder_.getCount(); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDnsRecordSpecs(int index) { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.get(index); } else { return dnsRecordSpecsBuilder_.getMessage(index); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder setDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.set(index, value); onChanged(); } else { dnsRecordSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder setDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.set(index, builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(value); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(value); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec value) { if (dnsRecordSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(index, value); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder addDnsRecordSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder builderForValue) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.add(index, builderForValue.build()); onChanged(); } else { dnsRecordSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder addAllDnsRecordSpecs( java.lang.Iterable values) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dnsRecordSpecs_); onChanged(); } else { dnsRecordSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder clearDnsRecordSpecs() { if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dnsRecordSpecsBuilder_.clear(); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public Builder removeDnsRecordSpecs(int index) { if (dnsRecordSpecsBuilder_ == null) { ensureDnsRecordSpecsIsMutable(); dnsRecordSpecs_.remove(index); onChanged(); } else { dnsRecordSpecsBuilder_.remove(index); } return this; } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder getDnsRecordSpecsBuilder( int index) { return getDnsRecordSpecsFieldBuilder().getBuilder(index); } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder getDnsRecordSpecsOrBuilder( int index) { if (dnsRecordSpecsBuilder_ == null) { return dnsRecordSpecs_.get(index); } else { return dnsRecordSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsOrBuilderList() { if (dnsRecordSpecsBuilder_ != null) { return dnsRecordSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dnsRecordSpecs_); } } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder addDnsRecordSpecsBuilder() { return getDnsRecordSpecsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.getDefaultInstance()); } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder addDnsRecordSpecsBuilder( int index) { return getDnsRecordSpecsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.getDefaultInstance()); } /** *
       * External DNS configuration
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecordSpec dns_record_specs = 3; */ public java.util.List getDnsRecordSpecsBuilderList() { return getDnsRecordSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder> getDnsRecordSpecsFieldBuilder() { if (dnsRecordSpecsBuilder_ == null) { dnsRecordSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder>( dnsRecordSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dnsRecordSpecs_ = null; } return dnsRecordSpecsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.OneToOneNatSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OneToOneNatSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OneToOneNatSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DnsRecordSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.DnsRecordSpec) com.google.protobuf.MessageOrBuilder { /** *
     * FQDN (required)
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ java.lang.String getFqdn(); /** *
     * FQDN (required)
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ com.google.protobuf.ByteString getFqdnBytes(); /** *
     * DNS zone id (optional, if not set, private zone used)
     * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ java.lang.String getDnsZoneId(); /** *
     * DNS zone id (optional, if not set, private zone used)
     * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ com.google.protobuf.ByteString getDnsZoneIdBytes(); /** *
     * DNS record ttl, values in 0-86400 (optional)
     * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ long getTtl(); /** *
     * When set to true, also create PTR DNS record (optional)
     * 
* * bool ptr = 4; * @return The ptr. */ boolean getPtr(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DnsRecordSpec} */ public static final class DnsRecordSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.DnsRecordSpec) DnsRecordSpecOrBuilder { private static final long serialVersionUID = 0L; // Use DnsRecordSpec.newBuilder() to construct. private DnsRecordSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DnsRecordSpec() { fqdn_ = ""; dnsZoneId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DnsRecordSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DnsRecordSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); fqdn_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); dnsZoneId_ = s; break; } case 24: { ttl_ = input.readInt64(); break; } case 32: { ptr_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder.class); } public static final int FQDN_FIELD_NUMBER = 1; private volatile java.lang.Object fqdn_; /** *
     * FQDN (required)
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ @java.lang.Override public java.lang.String getFqdn() { java.lang.Object ref = fqdn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqdn_ = s; return s; } } /** *
     * FQDN (required)
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ @java.lang.Override public com.google.protobuf.ByteString getFqdnBytes() { java.lang.Object ref = fqdn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqdn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DNS_ZONE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object dnsZoneId_; /** *
     * DNS zone id (optional, if not set, private zone used)
     * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ @java.lang.Override public java.lang.String getDnsZoneId() { java.lang.Object ref = dnsZoneId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dnsZoneId_ = s; return s; } } /** *
     * DNS zone id (optional, if not set, private zone used)
     * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ @java.lang.Override public com.google.protobuf.ByteString getDnsZoneIdBytes() { java.lang.Object ref = dnsZoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dnsZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TTL_FIELD_NUMBER = 3; private long ttl_; /** *
     * DNS record ttl, values in 0-86400 (optional)
     * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ @java.lang.Override public long getTtl() { return ttl_; } public static final int PTR_FIELD_NUMBER = 4; private boolean ptr_; /** *
     * When set to true, also create PTR DNS record (optional)
     * 
* * bool ptr = 4; * @return The ptr. */ @java.lang.Override public boolean getPtr() { return ptr_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fqdn_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dnsZoneId_); } if (ttl_ != 0L) { output.writeInt64(3, ttl_); } if (ptr_ != false) { output.writeBool(4, ptr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fqdn_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dnsZoneId_); } if (ttl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, ttl_); } if (ptr_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, ptr_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec) obj; if (!getFqdn() .equals(other.getFqdn())) return false; if (!getDnsZoneId() .equals(other.getDnsZoneId())) return false; if (getTtl() != other.getTtl()) return false; if (getPtr() != other.getPtr()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FQDN_FIELD_NUMBER; hash = (53 * hash) + getFqdn().hashCode(); hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getDnsZoneId().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); hash = (37 * hash) + PTR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPtr()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DnsRecordSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.DnsRecordSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); fqdn_ = ""; dnsZoneId_ = ""; ttl_ = 0L; ptr_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec(this); result.fqdn_ = fqdn_; result.dnsZoneId_ = dnsZoneId_; result.ttl_ = ttl_; result.ptr_ = ptr_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec.getDefaultInstance()) return this; if (!other.getFqdn().isEmpty()) { fqdn_ = other.fqdn_; onChanged(); } if (!other.getDnsZoneId().isEmpty()) { dnsZoneId_ = other.dnsZoneId_; onChanged(); } if (other.getTtl() != 0L) { setTtl(other.getTtl()); } if (other.getPtr() != false) { setPtr(other.getPtr()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object fqdn_ = ""; /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ public java.lang.String getFqdn() { java.lang.Object ref = fqdn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqdn_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ public com.google.protobuf.ByteString getFqdnBytes() { java.lang.Object ref = fqdn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqdn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @param value The fqdn to set. * @return This builder for chaining. */ public Builder setFqdn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fqdn_ = value; onChanged(); return this; } /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFqdn() { fqdn_ = getDefaultInstance().getFqdn(); onChanged(); return this; } /** *
       * FQDN (required)
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for fqdn to set. * @return This builder for chaining. */ public Builder setFqdnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fqdn_ = value; onChanged(); return this; } private java.lang.Object dnsZoneId_ = ""; /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ public java.lang.String getDnsZoneId() { java.lang.Object ref = dnsZoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dnsZoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ public com.google.protobuf.ByteString getDnsZoneIdBytes() { java.lang.Object ref = dnsZoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dnsZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @param value The dnsZoneId to set. * @return This builder for chaining. */ public Builder setDnsZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dnsZoneId_ = value; onChanged(); return this; } /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @return This builder for chaining. */ public Builder clearDnsZoneId() { dnsZoneId_ = getDefaultInstance().getDnsZoneId(); onChanged(); return this; } /** *
       * DNS zone id (optional, if not set, private zone used)
       * 
* * string dns_zone_id = 2; * @param value The bytes for dnsZoneId to set. * @return This builder for chaining. */ public Builder setDnsZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dnsZoneId_ = value; onChanged(); return this; } private long ttl_ ; /** *
       * DNS record ttl, values in 0-86400 (optional)
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ @java.lang.Override public long getTtl() { return ttl_; } /** *
       * DNS record ttl, values in 0-86400 (optional)
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @param value The ttl to set. * @return This builder for chaining. */ public Builder setTtl(long value) { ttl_ = value; onChanged(); return this; } /** *
       * DNS record ttl, values in 0-86400 (optional)
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return This builder for chaining. */ public Builder clearTtl() { ttl_ = 0L; onChanged(); return this; } private boolean ptr_ ; /** *
       * When set to true, also create PTR DNS record (optional)
       * 
* * bool ptr = 4; * @return The ptr. */ @java.lang.Override public boolean getPtr() { return ptr_; } /** *
       * When set to true, also create PTR DNS record (optional)
       * 
* * bool ptr = 4; * @param value The ptr to set. * @return This builder for chaining. */ public Builder setPtr(boolean value) { ptr_ = value; onChanged(); return this; } /** *
       * When set to true, also create PTR DNS record (optional)
       * 
* * bool ptr = 4; * @return This builder for chaining. */ public Builder clearPtr() { ptr_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.DnsRecordSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.DnsRecordSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DnsRecordSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DnsRecordSpec(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SchedulingPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.SchedulingPolicy) com.google.protobuf.MessageOrBuilder { /** *
     * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
     * if their resources are needed by Compute.
     * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
     * 
* * bool preemptible = 1; * @return The preemptible. */ boolean getPreemptible(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.SchedulingPolicy} */ public static final class SchedulingPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.SchedulingPolicy) SchedulingPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use SchedulingPolicy.newBuilder() to construct. private SchedulingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SchedulingPolicy() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SchedulingPolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SchedulingPolicy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { preemptible_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.Builder.class); } public static final int PREEMPTIBLE_FIELD_NUMBER = 1; private boolean preemptible_; /** *
     * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
     * if their resources are needed by Compute.
     * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
     * 
* * bool preemptible = 1; * @return The preemptible. */ @java.lang.Override public boolean getPreemptible() { return preemptible_; } 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 (preemptible_ != false) { output.writeBool(1, preemptible_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (preemptible_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, preemptible_); } 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.InstanceGroupOuterClass.SchedulingPolicy)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy) obj; if (getPreemptible() != other.getPreemptible()) 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) + PREEMPTIBLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPreemptible()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy 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.InstanceGroupOuterClass.SchedulingPolicy 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.SchedulingPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.SchedulingPolicy) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.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(); preemptible_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy(this); result.preemptible_ = preemptible_; 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.InstanceGroupOuterClass.SchedulingPolicy) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy.getDefaultInstance()) return this; if (other.getPreemptible() != false) { setPreemptible(other.getPreemptible()); } 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.InstanceGroupOuterClass.SchedulingPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean preemptible_ ; /** *
       * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
       * if their resources are needed by Compute.
       * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
       * 
* * bool preemptible = 1; * @return The preemptible. */ @java.lang.Override public boolean getPreemptible() { return preemptible_; } /** *
       * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
       * if their resources are needed by Compute.
       * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
       * 
* * bool preemptible = 1; * @param value The preemptible to set. * @return This builder for chaining. */ public Builder setPreemptible(boolean value) { preemptible_ = value; onChanged(); return this; } /** *
       * Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
       * if their resources are needed by Compute.
       * For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
       * 
* * bool preemptible = 1; * @return This builder for chaining. */ public Builder clearPreemptible() { preemptible_ = 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.SchedulingPolicy) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.SchedulingPolicy) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.SchedulingPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SchedulingPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SchedulingPolicy(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.InstanceGroupOuterClass.SchedulingPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NetworkSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.NetworkSettings) com.google.protobuf.MessageOrBuilder { /** *
     * Type of instance network.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * Type of instance network.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @return The type. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type getType(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.NetworkSettings} */ public static final class NetworkSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.NetworkSettings) NetworkSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use NetworkSettings.newBuilder() to construct. private NetworkSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NetworkSettings() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NetworkSettings(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NetworkSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); type_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** * STANDARD = 1; */ STANDARD(1), /** * SOFTWARE_ACCELERATED = 2; */ SOFTWARE_ACCELERATED(2), /** * HARDWARE_ACCELERATED = 3; */ HARDWARE_ACCELERATED(3), UNRECOGNIZED(-1), ; /** * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** * STANDARD = 1; */ public static final int STANDARD_VALUE = 1; /** * SOFTWARE_ACCELERATED = 2; */ public static final int SOFTWARE_ACCELERATED_VALUE = 2; /** * HARDWARE_ACCELERATED = 3; */ public static final int HARDWARE_ACCELERATED_VALUE = 3; 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 Type 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 Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; case 1: return STANDARD; case 2: return SOFTWARE_ACCELERATED; case 3: return HARDWARE_ACCELERATED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.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.InstanceGroupOuterClass.NetworkSettings.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type 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 Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * Type of instance network.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * Type of instance network.
     * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type.valueOf(type_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type.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 (type_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } 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.InstanceGroupOuterClass.NetworkSettings)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings) obj; if (type_ != other.type_) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings 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.InstanceGroupOuterClass.NetworkSettings 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.NetworkSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.NetworkSettings) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.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(); type_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings(this); result.type_ = type_; 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.InstanceGroupOuterClass.NetworkSettings) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } 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.InstanceGroupOuterClass.NetworkSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** *
       * Type of instance network.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * Type of instance network.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * Type of instance network.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type.valueOf(type_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type.UNRECOGNIZED : result; } /** *
       * Type of instance network.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * Type of instance network.
       * 
* * .yandex.cloud.compute.v1.instancegroup.NetworkSettings.Type type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 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.NetworkSettings) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.NetworkSettings) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NetworkSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NetworkSettings(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.InstanceGroupOuterClass.NetworkSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LoadBalancerSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
     * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; * @return Whether the targetGroupSpec field is set. */ boolean hasTargetGroupSpec(); /** *
     * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
     * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; * @return The targetGroupSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec getTargetGroupSpec(); /** *
     * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
     * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpecOrBuilder getTargetGroupSpecOrBuilder(); /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxOpeningTrafficDuration field is set. */ boolean hasMaxOpeningTrafficDuration(); /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxOpeningTrafficDuration. */ com.google.protobuf.Duration getMaxOpeningTrafficDuration(); /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ com.google.protobuf.DurationOrBuilder getMaxOpeningTrafficDurationOrBuilder(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec} */ public static final class LoadBalancerSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec) LoadBalancerSpecOrBuilder { private static final long serialVersionUID = 0L; // Use LoadBalancerSpec.newBuilder() to construct. private LoadBalancerSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoadBalancerSpec() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LoadBalancerSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LoadBalancerSpec( 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: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.Builder subBuilder = null; if (targetGroupSpec_ != null) { subBuilder = targetGroupSpec_.toBuilder(); } targetGroupSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(targetGroupSpec_); targetGroupSpec_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (maxOpeningTrafficDuration_ != null) { subBuilder = maxOpeningTrafficDuration_.toBuilder(); } maxOpeningTrafficDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxOpeningTrafficDuration_); maxOpeningTrafficDuration_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder.class); } public static final int TARGET_GROUP_SPEC_FIELD_NUMBER = 1; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec targetGroupSpec_; /** *
     * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
     * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; * @return Whether the targetGroupSpec field is set. */ @java.lang.Override public boolean hasTargetGroupSpec() { return targetGroupSpec_ != null; } /** *
     * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
     * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; * @return The targetGroupSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec getTargetGroupSpec() { return targetGroupSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.getDefaultInstance() : targetGroupSpec_; } /** *
     * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
     * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpecOrBuilder getTargetGroupSpecOrBuilder() { return getTargetGroupSpec(); } public static final int MAX_OPENING_TRAFFIC_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxOpeningTrafficDuration_; /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxOpeningTrafficDuration field is set. */ @java.lang.Override public boolean hasMaxOpeningTrafficDuration() { return maxOpeningTrafficDuration_ != null; } /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxOpeningTrafficDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxOpeningTrafficDuration() { return maxOpeningTrafficDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxOpeningTrafficDuration_; } /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxOpeningTrafficDurationOrBuilder() { return getMaxOpeningTrafficDuration(); } 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 (targetGroupSpec_ != null) { output.writeMessage(1, getTargetGroupSpec()); } if (maxOpeningTrafficDuration_ != null) { output.writeMessage(2, getMaxOpeningTrafficDuration()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (targetGroupSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTargetGroupSpec()); } if (maxOpeningTrafficDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxOpeningTrafficDuration()); } 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.InstanceGroupOuterClass.LoadBalancerSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec) obj; if (hasTargetGroupSpec() != other.hasTargetGroupSpec()) return false; if (hasTargetGroupSpec()) { if (!getTargetGroupSpec() .equals(other.getTargetGroupSpec())) return false; } if (hasMaxOpeningTrafficDuration() != other.hasMaxOpeningTrafficDuration()) return false; if (hasMaxOpeningTrafficDuration()) { if (!getMaxOpeningTrafficDuration() .equals(other.getMaxOpeningTrafficDuration())) 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 (hasTargetGroupSpec()) { hash = (37 * hash) + TARGET_GROUP_SPEC_FIELD_NUMBER; hash = (53 * hash) + getTargetGroupSpec().hashCode(); } if (hasMaxOpeningTrafficDuration()) { hash = (37 * hash) + MAX_OPENING_TRAFFIC_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxOpeningTrafficDuration().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec 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.InstanceGroupOuterClass.LoadBalancerSpec 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.LoadBalancerSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.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(); if (targetGroupSpecBuilder_ == null) { targetGroupSpec_ = null; } else { targetGroupSpec_ = null; targetGroupSpecBuilder_ = null; } if (maxOpeningTrafficDurationBuilder_ == null) { maxOpeningTrafficDuration_ = null; } else { maxOpeningTrafficDuration_ = null; maxOpeningTrafficDurationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec(this); if (targetGroupSpecBuilder_ == null) { result.targetGroupSpec_ = targetGroupSpec_; } else { result.targetGroupSpec_ = targetGroupSpecBuilder_.build(); } if (maxOpeningTrafficDurationBuilder_ == null) { result.maxOpeningTrafficDuration_ = maxOpeningTrafficDuration_; } else { result.maxOpeningTrafficDuration_ = maxOpeningTrafficDurationBuilder_.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.InstanceGroupOuterClass.LoadBalancerSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.getDefaultInstance()) return this; if (other.hasTargetGroupSpec()) { mergeTargetGroupSpec(other.getTargetGroupSpec()); } if (other.hasMaxOpeningTrafficDuration()) { mergeMaxOpeningTrafficDuration(other.getMaxOpeningTrafficDuration()); } 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.InstanceGroupOuterClass.LoadBalancerSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec targetGroupSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpecOrBuilder> targetGroupSpecBuilder_; /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; * @return Whether the targetGroupSpec field is set. */ public boolean hasTargetGroupSpec() { return targetGroupSpecBuilder_ != null || targetGroupSpec_ != null; } /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; * @return The targetGroupSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec getTargetGroupSpec() { if (targetGroupSpecBuilder_ == null) { return targetGroupSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.getDefaultInstance() : targetGroupSpec_; } else { return targetGroupSpecBuilder_.getMessage(); } } /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ public Builder setTargetGroupSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec value) { if (targetGroupSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetGroupSpec_ = value; onChanged(); } else { targetGroupSpecBuilder_.setMessage(value); } return this; } /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ public Builder setTargetGroupSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.Builder builderForValue) { if (targetGroupSpecBuilder_ == null) { targetGroupSpec_ = builderForValue.build(); onChanged(); } else { targetGroupSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ public Builder mergeTargetGroupSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec value) { if (targetGroupSpecBuilder_ == null) { if (targetGroupSpec_ != null) { targetGroupSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.newBuilder(targetGroupSpec_).mergeFrom(value).buildPartial(); } else { targetGroupSpec_ = value; } onChanged(); } else { targetGroupSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ public Builder clearTargetGroupSpec() { if (targetGroupSpecBuilder_ == null) { targetGroupSpec_ = null; onChanged(); } else { targetGroupSpec_ = null; targetGroupSpecBuilder_ = null; } return this; } /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.Builder getTargetGroupSpecBuilder() { onChanged(); return getTargetGroupSpecFieldBuilder().getBuilder(); } /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpecOrBuilder getTargetGroupSpecOrBuilder() { if (targetGroupSpecBuilder_ != null) { return targetGroupSpecBuilder_.getMessageOrBuilder(); } else { return targetGroupSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.getDefaultInstance() : targetGroupSpec_; } } /** *
       * Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
       * 
* * .yandex.cloud.compute.v1.instancegroup.TargetGroupSpec target_group_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpecOrBuilder> getTargetGroupSpecFieldBuilder() { if (targetGroupSpecBuilder_ == null) { targetGroupSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpecOrBuilder>( getTargetGroupSpec(), getParentForChildren(), isClean()); targetGroupSpec_ = null; } return targetGroupSpecBuilder_; } private com.google.protobuf.Duration maxOpeningTrafficDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxOpeningTrafficDurationBuilder_; /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxOpeningTrafficDuration field is set. */ public boolean hasMaxOpeningTrafficDuration() { return maxOpeningTrafficDurationBuilder_ != null || maxOpeningTrafficDuration_ != null; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxOpeningTrafficDuration. */ public com.google.protobuf.Duration getMaxOpeningTrafficDuration() { if (maxOpeningTrafficDurationBuilder_ == null) { return maxOpeningTrafficDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxOpeningTrafficDuration_; } else { return maxOpeningTrafficDurationBuilder_.getMessage(); } } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder setMaxOpeningTrafficDuration(com.google.protobuf.Duration value) { if (maxOpeningTrafficDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxOpeningTrafficDuration_ = value; onChanged(); } else { maxOpeningTrafficDurationBuilder_.setMessage(value); } return this; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder setMaxOpeningTrafficDuration( com.google.protobuf.Duration.Builder builderForValue) { if (maxOpeningTrafficDurationBuilder_ == null) { maxOpeningTrafficDuration_ = builderForValue.build(); onChanged(); } else { maxOpeningTrafficDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder mergeMaxOpeningTrafficDuration(com.google.protobuf.Duration value) { if (maxOpeningTrafficDurationBuilder_ == null) { if (maxOpeningTrafficDuration_ != null) { maxOpeningTrafficDuration_ = com.google.protobuf.Duration.newBuilder(maxOpeningTrafficDuration_).mergeFrom(value).buildPartial(); } else { maxOpeningTrafficDuration_ = value; } onChanged(); } else { maxOpeningTrafficDurationBuilder_.mergeFrom(value); } return this; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder clearMaxOpeningTrafficDuration() { if (maxOpeningTrafficDurationBuilder_ == null) { maxOpeningTrafficDuration_ = null; onChanged(); } else { maxOpeningTrafficDuration_ = null; maxOpeningTrafficDurationBuilder_ = null; } return this; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public com.google.protobuf.Duration.Builder getMaxOpeningTrafficDurationBuilder() { onChanged(); return getMaxOpeningTrafficDurationFieldBuilder().getBuilder(); } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public com.google.protobuf.DurationOrBuilder getMaxOpeningTrafficDurationOrBuilder() { if (maxOpeningTrafficDurationBuilder_ != null) { return maxOpeningTrafficDurationBuilder_.getMessageOrBuilder(); } else { return maxOpeningTrafficDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxOpeningTrafficDuration_; } } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxOpeningTrafficDurationFieldBuilder() { if (maxOpeningTrafficDurationBuilder_ == null) { maxOpeningTrafficDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxOpeningTrafficDuration(), getParentForChildren(), isClean()); maxOpeningTrafficDuration_ = null; } return maxOpeningTrafficDurationBuilder_; } @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.LoadBalancerSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LoadBalancerSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LoadBalancerSpec(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.InstanceGroupOuterClass.LoadBalancerSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TargetGroupSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.TargetGroupSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the target group.
     * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the target group.
     * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the target group.
     * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the target group.
     * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.TargetGroupSpec} */ public static final class TargetGroupSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.TargetGroupSpec) TargetGroupSpecOrBuilder { private static final long serialVersionUID = 0L; // Use TargetGroupSpec.newBuilder() to construct. private TargetGroupSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TargetGroupSpec() { name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TargetGroupSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TargetGroupSpec( 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(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the target group.
     * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the target group.
     * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * Description of the target group.
     * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the target group.
     * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 3; 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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(3, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec 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.InstanceGroupOuterClass.TargetGroupSpec 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.TargetGroupSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.TargetGroupSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; description_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Name of the target group.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the target group.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the target group.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the target group.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the target group.
       * 
* * string name = 1 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the target group.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the target group.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the target group.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the target group.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the target group.
       * 
* * string description = 2 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private 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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.TargetGroupSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.TargetGroupSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.TargetGroupSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TargetGroupSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TargetGroupSpec(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.InstanceGroupOuterClass.TargetGroupSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApplicationLoadBalancerSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Basic properties of the Application Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; * @return Whether the targetGroupSpec field is set. */ boolean hasTargetGroupSpec(); /** *
     * Basic properties of the Application Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; * @return The targetGroupSpec. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec getTargetGroupSpec(); /** *
     * Basic properties of the Application Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpecOrBuilder getTargetGroupSpecOrBuilder(); /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxOpeningTrafficDuration field is set. */ boolean hasMaxOpeningTrafficDuration(); /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxOpeningTrafficDuration. */ com.google.protobuf.Duration getMaxOpeningTrafficDuration(); /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ com.google.protobuf.DurationOrBuilder getMaxOpeningTrafficDurationOrBuilder(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec} */ public static final class ApplicationLoadBalancerSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec) ApplicationLoadBalancerSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ApplicationLoadBalancerSpec.newBuilder() to construct. private ApplicationLoadBalancerSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApplicationLoadBalancerSpec() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ApplicationLoadBalancerSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApplicationLoadBalancerSpec( 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: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.Builder subBuilder = null; if (targetGroupSpec_ != null) { subBuilder = targetGroupSpec_.toBuilder(); } targetGroupSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(targetGroupSpec_); targetGroupSpec_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (maxOpeningTrafficDuration_ != null) { subBuilder = maxOpeningTrafficDuration_.toBuilder(); } maxOpeningTrafficDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxOpeningTrafficDuration_); maxOpeningTrafficDuration_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder.class); } public static final int TARGET_GROUP_SPEC_FIELD_NUMBER = 1; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec targetGroupSpec_; /** *
     * Basic properties of the Application Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; * @return Whether the targetGroupSpec field is set. */ @java.lang.Override public boolean hasTargetGroupSpec() { return targetGroupSpec_ != null; } /** *
     * Basic properties of the Application Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; * @return The targetGroupSpec. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec getTargetGroupSpec() { return targetGroupSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.getDefaultInstance() : targetGroupSpec_; } /** *
     * Basic properties of the Application Load Balancer target group attributed to the instance group.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpecOrBuilder getTargetGroupSpecOrBuilder() { return getTargetGroupSpec(); } public static final int MAX_OPENING_TRAFFIC_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxOpeningTrafficDuration_; /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxOpeningTrafficDuration field is set. */ @java.lang.Override public boolean hasMaxOpeningTrafficDuration() { return maxOpeningTrafficDuration_ != null; } /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxOpeningTrafficDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxOpeningTrafficDuration() { return maxOpeningTrafficDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxOpeningTrafficDuration_; } /** *
     * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxOpeningTrafficDurationOrBuilder() { return getMaxOpeningTrafficDuration(); } 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 (targetGroupSpec_ != null) { output.writeMessage(1, getTargetGroupSpec()); } if (maxOpeningTrafficDuration_ != null) { output.writeMessage(2, getMaxOpeningTrafficDuration()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (targetGroupSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTargetGroupSpec()); } if (maxOpeningTrafficDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxOpeningTrafficDuration()); } 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec) obj; if (hasTargetGroupSpec() != other.hasTargetGroupSpec()) return false; if (hasTargetGroupSpec()) { if (!getTargetGroupSpec() .equals(other.getTargetGroupSpec())) return false; } if (hasMaxOpeningTrafficDuration() != other.hasMaxOpeningTrafficDuration()) return false; if (hasMaxOpeningTrafficDuration()) { if (!getMaxOpeningTrafficDuration() .equals(other.getMaxOpeningTrafficDuration())) 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 (hasTargetGroupSpec()) { hash = (37 * hash) + TARGET_GROUP_SPEC_FIELD_NUMBER; hash = (53 * hash) + getTargetGroupSpec().hashCode(); } if (hasMaxOpeningTrafficDuration()) { hash = (37 * hash) + MAX_OPENING_TRAFFIC_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxOpeningTrafficDuration().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec 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.ApplicationLoadBalancerSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.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(); if (targetGroupSpecBuilder_ == null) { targetGroupSpec_ = null; } else { targetGroupSpec_ = null; targetGroupSpecBuilder_ = null; } if (maxOpeningTrafficDurationBuilder_ == null) { maxOpeningTrafficDuration_ = null; } else { maxOpeningTrafficDuration_ = null; maxOpeningTrafficDurationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec(this); if (targetGroupSpecBuilder_ == null) { result.targetGroupSpec_ = targetGroupSpec_; } else { result.targetGroupSpec_ = targetGroupSpecBuilder_.build(); } if (maxOpeningTrafficDurationBuilder_ == null) { result.maxOpeningTrafficDuration_ = maxOpeningTrafficDuration_; } else { result.maxOpeningTrafficDuration_ = maxOpeningTrafficDurationBuilder_.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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.getDefaultInstance()) return this; if (other.hasTargetGroupSpec()) { mergeTargetGroupSpec(other.getTargetGroupSpec()); } if (other.hasMaxOpeningTrafficDuration()) { mergeMaxOpeningTrafficDuration(other.getMaxOpeningTrafficDuration()); } 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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec targetGroupSpec_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpecOrBuilder> targetGroupSpecBuilder_; /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; * @return Whether the targetGroupSpec field is set. */ public boolean hasTargetGroupSpec() { return targetGroupSpecBuilder_ != null || targetGroupSpec_ != null; } /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; * @return The targetGroupSpec. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec getTargetGroupSpec() { if (targetGroupSpecBuilder_ == null) { return targetGroupSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.getDefaultInstance() : targetGroupSpec_; } else { return targetGroupSpecBuilder_.getMessage(); } } /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ public Builder setTargetGroupSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec value) { if (targetGroupSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } targetGroupSpec_ = value; onChanged(); } else { targetGroupSpecBuilder_.setMessage(value); } return this; } /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ public Builder setTargetGroupSpec( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.Builder builderForValue) { if (targetGroupSpecBuilder_ == null) { targetGroupSpec_ = builderForValue.build(); onChanged(); } else { targetGroupSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ public Builder mergeTargetGroupSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec value) { if (targetGroupSpecBuilder_ == null) { if (targetGroupSpec_ != null) { targetGroupSpec_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.newBuilder(targetGroupSpec_).mergeFrom(value).buildPartial(); } else { targetGroupSpec_ = value; } onChanged(); } else { targetGroupSpecBuilder_.mergeFrom(value); } return this; } /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ public Builder clearTargetGroupSpec() { if (targetGroupSpecBuilder_ == null) { targetGroupSpec_ = null; onChanged(); } else { targetGroupSpec_ = null; targetGroupSpecBuilder_ = null; } return this; } /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.Builder getTargetGroupSpecBuilder() { onChanged(); return getTargetGroupSpecFieldBuilder().getBuilder(); } /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpecOrBuilder getTargetGroupSpecOrBuilder() { if (targetGroupSpecBuilder_ != null) { return targetGroupSpecBuilder_.getMessageOrBuilder(); } else { return targetGroupSpec_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.getDefaultInstance() : targetGroupSpec_; } } /** *
       * Basic properties of the Application Load Balancer target group attributed to the instance group.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec target_group_spec = 1 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpecOrBuilder> getTargetGroupSpecFieldBuilder() { if (targetGroupSpecBuilder_ == null) { targetGroupSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpecOrBuilder>( getTargetGroupSpec(), getParentForChildren(), isClean()); targetGroupSpec_ = null; } return targetGroupSpecBuilder_; } private com.google.protobuf.Duration maxOpeningTrafficDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxOpeningTrafficDurationBuilder_; /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxOpeningTrafficDuration field is set. */ public boolean hasMaxOpeningTrafficDuration() { return maxOpeningTrafficDurationBuilder_ != null || maxOpeningTrafficDuration_ != null; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxOpeningTrafficDuration. */ public com.google.protobuf.Duration getMaxOpeningTrafficDuration() { if (maxOpeningTrafficDurationBuilder_ == null) { return maxOpeningTrafficDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxOpeningTrafficDuration_; } else { return maxOpeningTrafficDurationBuilder_.getMessage(); } } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder setMaxOpeningTrafficDuration(com.google.protobuf.Duration value) { if (maxOpeningTrafficDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxOpeningTrafficDuration_ = value; onChanged(); } else { maxOpeningTrafficDurationBuilder_.setMessage(value); } return this; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder setMaxOpeningTrafficDuration( com.google.protobuf.Duration.Builder builderForValue) { if (maxOpeningTrafficDurationBuilder_ == null) { maxOpeningTrafficDuration_ = builderForValue.build(); onChanged(); } else { maxOpeningTrafficDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder mergeMaxOpeningTrafficDuration(com.google.protobuf.Duration value) { if (maxOpeningTrafficDurationBuilder_ == null) { if (maxOpeningTrafficDuration_ != null) { maxOpeningTrafficDuration_ = com.google.protobuf.Duration.newBuilder(maxOpeningTrafficDuration_).mergeFrom(value).buildPartial(); } else { maxOpeningTrafficDuration_ = value; } onChanged(); } else { maxOpeningTrafficDurationBuilder_.mergeFrom(value); } return this; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder clearMaxOpeningTrafficDuration() { if (maxOpeningTrafficDurationBuilder_ == null) { maxOpeningTrafficDuration_ = null; onChanged(); } else { maxOpeningTrafficDuration_ = null; maxOpeningTrafficDurationBuilder_ = null; } return this; } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public com.google.protobuf.Duration.Builder getMaxOpeningTrafficDurationBuilder() { onChanged(); return getMaxOpeningTrafficDurationFieldBuilder().getBuilder(); } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public com.google.protobuf.DurationOrBuilder getMaxOpeningTrafficDurationOrBuilder() { if (maxOpeningTrafficDurationBuilder_ != null) { return maxOpeningTrafficDurationBuilder_.getMessageOrBuilder(); } else { return maxOpeningTrafficDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxOpeningTrafficDuration_; } } /** *
       * Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_opening_traffic_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxOpeningTrafficDurationFieldBuilder() { if (maxOpeningTrafficDurationBuilder_ == null) { maxOpeningTrafficDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxOpeningTrafficDuration(), getParentForChildren(), isClean()); maxOpeningTrafficDuration_ = null; } return maxOpeningTrafficDurationBuilder_; } @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.ApplicationLoadBalancerSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApplicationLoadBalancerSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplicationLoadBalancerSpec(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.InstanceGroupOuterClass.ApplicationLoadBalancerSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApplicationTargetGroupSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the target group.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the target group.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the target group.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the target group.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 3; */ int getLabelsCount(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 3; */ 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 = 3; */ java.util.Map getLabelsMap(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 3; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 3; */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec} */ public static final class ApplicationTargetGroupSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec) ApplicationTargetGroupSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ApplicationTargetGroupSpec.newBuilder() to construct. private ApplicationTargetGroupSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApplicationTargetGroupSpec() { name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ApplicationTargetGroupSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApplicationTargetGroupSpec( 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(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the target group.
     * 
* * string name = 1; * @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 target group.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * Description of the target group.
     * 
* * string description = 2; * @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 target group.
     * 
* * string description = 2; * @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 = 3; 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_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 = 3; */ @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 = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 3; */ @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 = 3; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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(3, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.InstanceGroupOuterClass.ApplicationTargetGroupSpec 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.ApplicationTargetGroupSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; description_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Name of the target group.
       * 
* * string name = 1; * @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 target group.
       * 
* * string name = 1; * @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 target group.
       * 
* * string name = 1; * @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 target group.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the target group.
       * 
* * string name = 1; * @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 target group.
       * 
* * string description = 2; * @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 target group.
       * 
* * string description = 2; * @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 target group.
       * 
* * string description = 2; * @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 target group.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the target group.
       * 
* * string description = 2; * @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 = 3; */ @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 = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 3; */ @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 = 3; */ @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 = 3; */ 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 = 3; */ 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 = 3; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ApplicationTargetGroupSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationTargetGroupSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApplicationTargetGroupSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplicationTargetGroupSpec(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.InstanceGroupOuterClass.ApplicationTargetGroupSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HealthChecksSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.HealthChecksSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ java.util.List getHealthCheckSpecsList(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec getHealthCheckSpecs(int index); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ int getHealthCheckSpecsCount(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ java.util.List getHealthCheckSpecsOrBuilderList(); /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpecOrBuilder getHealthCheckSpecsOrBuilder( int index); /** *
     * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxCheckingHealthDuration field is set. */ boolean hasMaxCheckingHealthDuration(); /** *
     * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxCheckingHealthDuration. */ com.google.protobuf.Duration getMaxCheckingHealthDuration(); /** *
     * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ com.google.protobuf.DurationOrBuilder getMaxCheckingHealthDurationOrBuilder(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.HealthChecksSpec} */ public static final class HealthChecksSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.HealthChecksSpec) HealthChecksSpecOrBuilder { private static final long serialVersionUID = 0L; // Use HealthChecksSpec.newBuilder() to construct. private HealthChecksSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HealthChecksSpec() { healthCheckSpecs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HealthChecksSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HealthChecksSpec( 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)) { healthCheckSpecs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } healthCheckSpecs_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.parser(), extensionRegistry)); break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (maxCheckingHealthDuration_ != null) { subBuilder = maxCheckingHealthDuration_.toBuilder(); } maxCheckingHealthDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxCheckingHealthDuration_); maxCheckingHealthDuration_ = 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_ & 0x00000001) != 0)) { healthCheckSpecs_ = java.util.Collections.unmodifiableList(healthCheckSpecs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder.class); } public static final int HEALTH_CHECK_SPECS_FIELD_NUMBER = 1; private java.util.List healthCheckSpecs_; /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public java.util.List getHealthCheckSpecsList() { return healthCheckSpecs_; } /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public java.util.List getHealthCheckSpecsOrBuilderList() { return healthCheckSpecs_; } /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public int getHealthCheckSpecsCount() { return healthCheckSpecs_.size(); } /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec getHealthCheckSpecs(int index) { return healthCheckSpecs_.get(index); } /** *
     * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpecOrBuilder getHealthCheckSpecsOrBuilder( int index) { return healthCheckSpecs_.get(index); } public static final int MAX_CHECKING_HEALTH_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxCheckingHealthDuration_; /** *
     * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxCheckingHealthDuration field is set. */ @java.lang.Override public boolean hasMaxCheckingHealthDuration() { return maxCheckingHealthDuration_ != null; } /** *
     * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxCheckingHealthDuration. */ @java.lang.Override public com.google.protobuf.Duration getMaxCheckingHealthDuration() { return maxCheckingHealthDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxCheckingHealthDuration_; } /** *
     * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
     * the VM will be turned off based on the deployment policy. Specified in seconds.
     * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxCheckingHealthDurationOrBuilder() { return getMaxCheckingHealthDuration(); } 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 < healthCheckSpecs_.size(); i++) { output.writeMessage(1, healthCheckSpecs_.get(i)); } if (maxCheckingHealthDuration_ != null) { output.writeMessage(2, getMaxCheckingHealthDuration()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < healthCheckSpecs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, healthCheckSpecs_.get(i)); } if (maxCheckingHealthDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxCheckingHealthDuration()); } 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.InstanceGroupOuterClass.HealthChecksSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec) obj; if (!getHealthCheckSpecsList() .equals(other.getHealthCheckSpecsList())) return false; if (hasMaxCheckingHealthDuration() != other.hasMaxCheckingHealthDuration()) return false; if (hasMaxCheckingHealthDuration()) { if (!getMaxCheckingHealthDuration() .equals(other.getMaxCheckingHealthDuration())) 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 (getHealthCheckSpecsCount() > 0) { hash = (37 * hash) + HEALTH_CHECK_SPECS_FIELD_NUMBER; hash = (53 * hash) + getHealthCheckSpecsList().hashCode(); } if (hasMaxCheckingHealthDuration()) { hash = (37 * hash) + MAX_CHECKING_HEALTH_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxCheckingHealthDuration().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec 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.InstanceGroupOuterClass.HealthChecksSpec 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.HealthChecksSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.HealthChecksSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHealthCheckSpecsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (healthCheckSpecsBuilder_ == null) { healthCheckSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { healthCheckSpecsBuilder_.clear(); } if (maxCheckingHealthDurationBuilder_ == null) { maxCheckingHealthDuration_ = null; } else { maxCheckingHealthDuration_ = null; maxCheckingHealthDurationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec(this); int from_bitField0_ = bitField0_; if (healthCheckSpecsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { healthCheckSpecs_ = java.util.Collections.unmodifiableList(healthCheckSpecs_); bitField0_ = (bitField0_ & ~0x00000001); } result.healthCheckSpecs_ = healthCheckSpecs_; } else { result.healthCheckSpecs_ = healthCheckSpecsBuilder_.build(); } if (maxCheckingHealthDurationBuilder_ == null) { result.maxCheckingHealthDuration_ = maxCheckingHealthDuration_; } else { result.maxCheckingHealthDuration_ = maxCheckingHealthDurationBuilder_.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.InstanceGroupOuterClass.HealthChecksSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.getDefaultInstance()) return this; if (healthCheckSpecsBuilder_ == null) { if (!other.healthCheckSpecs_.isEmpty()) { if (healthCheckSpecs_.isEmpty()) { healthCheckSpecs_ = other.healthCheckSpecs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureHealthCheckSpecsIsMutable(); healthCheckSpecs_.addAll(other.healthCheckSpecs_); } onChanged(); } } else { if (!other.healthCheckSpecs_.isEmpty()) { if (healthCheckSpecsBuilder_.isEmpty()) { healthCheckSpecsBuilder_.dispose(); healthCheckSpecsBuilder_ = null; healthCheckSpecs_ = other.healthCheckSpecs_; bitField0_ = (bitField0_ & ~0x00000001); healthCheckSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHealthCheckSpecsFieldBuilder() : null; } else { healthCheckSpecsBuilder_.addAllMessages(other.healthCheckSpecs_); } } } if (other.hasMaxCheckingHealthDuration()) { mergeMaxCheckingHealthDuration(other.getMaxCheckingHealthDuration()); } 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.InstanceGroupOuterClass.HealthChecksSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List healthCheckSpecs_ = java.util.Collections.emptyList(); private void ensureHealthCheckSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { healthCheckSpecs_ = new java.util.ArrayList(healthCheckSpecs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpecOrBuilder> healthCheckSpecsBuilder_; /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public java.util.List getHealthCheckSpecsList() { if (healthCheckSpecsBuilder_ == null) { return java.util.Collections.unmodifiableList(healthCheckSpecs_); } else { return healthCheckSpecsBuilder_.getMessageList(); } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public int getHealthCheckSpecsCount() { if (healthCheckSpecsBuilder_ == null) { return healthCheckSpecs_.size(); } else { return healthCheckSpecsBuilder_.getCount(); } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec getHealthCheckSpecs(int index) { if (healthCheckSpecsBuilder_ == null) { return healthCheckSpecs_.get(index); } else { return healthCheckSpecsBuilder_.getMessage(index); } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder setHealthCheckSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec value) { if (healthCheckSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHealthCheckSpecsIsMutable(); healthCheckSpecs_.set(index, value); onChanged(); } else { healthCheckSpecsBuilder_.setMessage(index, value); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder setHealthCheckSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder builderForValue) { if (healthCheckSpecsBuilder_ == null) { ensureHealthCheckSpecsIsMutable(); healthCheckSpecs_.set(index, builderForValue.build()); onChanged(); } else { healthCheckSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addHealthCheckSpecs(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec value) { if (healthCheckSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHealthCheckSpecsIsMutable(); healthCheckSpecs_.add(value); onChanged(); } else { healthCheckSpecsBuilder_.addMessage(value); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addHealthCheckSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec value) { if (healthCheckSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHealthCheckSpecsIsMutable(); healthCheckSpecs_.add(index, value); onChanged(); } else { healthCheckSpecsBuilder_.addMessage(index, value); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addHealthCheckSpecs( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder builderForValue) { if (healthCheckSpecsBuilder_ == null) { ensureHealthCheckSpecsIsMutable(); healthCheckSpecs_.add(builderForValue.build()); onChanged(); } else { healthCheckSpecsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addHealthCheckSpecs( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder builderForValue) { if (healthCheckSpecsBuilder_ == null) { ensureHealthCheckSpecsIsMutable(); healthCheckSpecs_.add(index, builderForValue.build()); onChanged(); } else { healthCheckSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder addAllHealthCheckSpecs( java.lang.Iterable values) { if (healthCheckSpecsBuilder_ == null) { ensureHealthCheckSpecsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, healthCheckSpecs_); onChanged(); } else { healthCheckSpecsBuilder_.addAllMessages(values); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder clearHealthCheckSpecs() { if (healthCheckSpecsBuilder_ == null) { healthCheckSpecs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { healthCheckSpecsBuilder_.clear(); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public Builder removeHealthCheckSpecs(int index) { if (healthCheckSpecsBuilder_ == null) { ensureHealthCheckSpecsIsMutable(); healthCheckSpecs_.remove(index); onChanged(); } else { healthCheckSpecsBuilder_.remove(index); } return this; } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder getHealthCheckSpecsBuilder( int index) { return getHealthCheckSpecsFieldBuilder().getBuilder(index); } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpecOrBuilder getHealthCheckSpecsOrBuilder( int index) { if (healthCheckSpecsBuilder_ == null) { return healthCheckSpecs_.get(index); } else { return healthCheckSpecsBuilder_.getMessageOrBuilder(index); } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public java.util.List getHealthCheckSpecsOrBuilderList() { if (healthCheckSpecsBuilder_ != null) { return healthCheckSpecsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(healthCheckSpecs_); } } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder addHealthCheckSpecsBuilder() { return getHealthCheckSpecsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.getDefaultInstance()); } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder addHealthCheckSpecsBuilder( int index) { return getHealthCheckSpecsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.getDefaultInstance()); } /** *
       * Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec health_check_specs = 1 [(.yandex.cloud.size) = ">=1"]; */ public java.util.List getHealthCheckSpecsBuilderList() { return getHealthCheckSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpecOrBuilder> getHealthCheckSpecsFieldBuilder() { if (healthCheckSpecsBuilder_ == null) { healthCheckSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpecOrBuilder>( healthCheckSpecs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); healthCheckSpecs_ = null; } return healthCheckSpecsBuilder_; } private com.google.protobuf.Duration maxCheckingHealthDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxCheckingHealthDurationBuilder_; /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return Whether the maxCheckingHealthDuration field is set. */ public boolean hasMaxCheckingHealthDuration() { return maxCheckingHealthDurationBuilder_ != null || maxCheckingHealthDuration_ != null; } /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; * @return The maxCheckingHealthDuration. */ public com.google.protobuf.Duration getMaxCheckingHealthDuration() { if (maxCheckingHealthDurationBuilder_ == null) { return maxCheckingHealthDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxCheckingHealthDuration_; } else { return maxCheckingHealthDurationBuilder_.getMessage(); } } /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder setMaxCheckingHealthDuration(com.google.protobuf.Duration value) { if (maxCheckingHealthDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxCheckingHealthDuration_ = value; onChanged(); } else { maxCheckingHealthDurationBuilder_.setMessage(value); } return this; } /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder setMaxCheckingHealthDuration( com.google.protobuf.Duration.Builder builderForValue) { if (maxCheckingHealthDurationBuilder_ == null) { maxCheckingHealthDuration_ = builderForValue.build(); onChanged(); } else { maxCheckingHealthDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder mergeMaxCheckingHealthDuration(com.google.protobuf.Duration value) { if (maxCheckingHealthDurationBuilder_ == null) { if (maxCheckingHealthDuration_ != null) { maxCheckingHealthDuration_ = com.google.protobuf.Duration.newBuilder(maxCheckingHealthDuration_).mergeFrom(value).buildPartial(); } else { maxCheckingHealthDuration_ = value; } onChanged(); } else { maxCheckingHealthDurationBuilder_.mergeFrom(value); } return this; } /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public Builder clearMaxCheckingHealthDuration() { if (maxCheckingHealthDurationBuilder_ == null) { maxCheckingHealthDuration_ = null; onChanged(); } else { maxCheckingHealthDuration_ = null; maxCheckingHealthDurationBuilder_ = null; } return this; } /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public com.google.protobuf.Duration.Builder getMaxCheckingHealthDurationBuilder() { onChanged(); return getMaxCheckingHealthDurationFieldBuilder().getBuilder(); } /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ public com.google.protobuf.DurationOrBuilder getMaxCheckingHealthDurationOrBuilder() { if (maxCheckingHealthDurationBuilder_ != null) { return maxCheckingHealthDurationBuilder_.getMessageOrBuilder(); } else { return maxCheckingHealthDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxCheckingHealthDuration_; } } /** *
       * Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
       * the VM will be turned off based on the deployment policy. Specified in seconds.
       * 
* * .google.protobuf.Duration max_checking_health_duration = 2 [(.yandex.cloud.value) = ">=1s"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxCheckingHealthDurationFieldBuilder() { if (maxCheckingHealthDurationBuilder_ == null) { maxCheckingHealthDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxCheckingHealthDuration(), getParentForChildren(), isClean()); maxCheckingHealthDuration_ = null; } return maxCheckingHealthDurationBuilder_; } @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.HealthChecksSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.HealthChecksSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HealthChecksSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HealthChecksSpec(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.InstanceGroupOuterClass.HealthChecksSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HealthCheckSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec) com.google.protobuf.MessageOrBuilder { /** *
     * The interval between health checks. The default is 2 seconds.
     * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; * @return Whether the interval field is set. */ boolean hasInterval(); /** *
     * The interval between health checks. The default is 2 seconds.
     * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; * @return The interval. */ com.google.protobuf.Duration getInterval(); /** *
     * The interval between health checks. The default is 2 seconds.
     * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ com.google.protobuf.DurationOrBuilder getIntervalOrBuilder(); /** *
     * Timeout for the managed instance to return a response for the health check. The default is 1 second.
     * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; * @return Whether the timeout field is set. */ boolean hasTimeout(); /** *
     * Timeout for the managed instance to return a response for the health check. The default is 1 second.
     * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** *
     * Timeout for the managed instance to return a response for the health check. The default is 1 second.
     * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); /** *
     * The number of failed health checks for the managed instance to be considered unhealthy. The default (0) is 2.
     * 
* * int64 unhealthy_threshold = 3 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @return The unhealthyThreshold. */ long getUnhealthyThreshold(); /** *
     * The number of successful health checks required in order for the managed instance to be considered healthy. The default (0) is 2.
     * 
* * int64 healthy_threshold = 4 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @return The healthyThreshold. */ long getHealthyThreshold(); /** *
     * Configuration options for a TCP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; * @return Whether the tcpOptions field is set. */ boolean hasTcpOptions(); /** *
     * Configuration options for a TCP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; * @return The tcpOptions. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions getTcpOptions(); /** *
     * Configuration options for a TCP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptionsOrBuilder getTcpOptionsOrBuilder(); /** *
     * Configuration options for an HTTP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; * @return Whether the httpOptions field is set. */ boolean hasHttpOptions(); /** *
     * Configuration options for an HTTP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; * @return The httpOptions. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions getHttpOptions(); /** *
     * Configuration options for an HTTP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptionsOrBuilder getHttpOptionsOrBuilder(); public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HealthCheckOptionsCase getHealthCheckOptionsCase(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.HealthCheckSpec} */ public static final class HealthCheckSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec) HealthCheckSpecOrBuilder { private static final long serialVersionUID = 0L; // Use HealthCheckSpec.newBuilder() to construct. private HealthCheckSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HealthCheckSpec() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HealthCheckSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HealthCheckSpec( 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: { com.google.protobuf.Duration.Builder subBuilder = null; if (interval_ != null) { subBuilder = interval_.toBuilder(); } interval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interval_); interval_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (timeout_ != null) { subBuilder = timeout_.toBuilder(); } timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timeout_); timeout_ = subBuilder.buildPartial(); } break; } case 24: { unhealthyThreshold_ = input.readInt64(); break; } case 32: { healthyThreshold_ = input.readInt64(); break; } case 42: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.Builder subBuilder = null; if (healthCheckOptionsCase_ == 5) { subBuilder = ((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_).toBuilder(); } healthCheckOptions_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_); healthCheckOptions_ = subBuilder.buildPartial(); } healthCheckOptionsCase_ = 5; break; } case 50: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.Builder subBuilder = null; if (healthCheckOptionsCase_ == 6) { subBuilder = ((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_).toBuilder(); } healthCheckOptions_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_); healthCheckOptions_ = subBuilder.buildPartial(); } healthCheckOptionsCase_ = 6; 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder.class); } public interface TcpOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions) com.google.protobuf.MessageOrBuilder { /** *
       * Port to use for TCP health checks.
       * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @return The port. */ long getPort(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions} */ public static final class TcpOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions) TcpOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use TcpOptions.newBuilder() to construct. private TcpOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TcpOptions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TcpOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TcpOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { port_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.Builder.class); } public static final int PORT_FIELD_NUMBER = 1; private long port_; /** *
       * Port to use for TCP health checks.
       * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @return The port. */ @java.lang.Override public long getPort() { return port_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (port_ != 0L) { output.writeInt64(1, port_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (port_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, port_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) obj; if (getPort() != other.getPort()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPort()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions 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.HealthCheckSpec.TcpOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.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(); port_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions(this); result.port_ = port_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance()) return this; if (other.getPort() != 0L) { setPort(other.getPort()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long port_ ; /** *
         * Port to use for TCP health checks.
         * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @return The port. */ @java.lang.Override public long getPort() { return port_; } /** *
         * Port to use for TCP health checks.
         * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(long value) { port_ = value; onChanged(); return this; } /** *
         * Port to use for TCP health checks.
         * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @return This builder for chaining. */ public Builder clearPort() { port_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TcpOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TcpOptions(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.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HttpOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions) com.google.protobuf.MessageOrBuilder { /** *
       * Port to use for HTTP health checks.
       * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @return The port. */ long getPort(); /** *
       * URL path to set for health checking requests.
       * 
* * string path = 2; * @return The path. */ java.lang.String getPath(); /** *
       * URL path to set for health checking requests.
       * 
* * string path = 2; * @return The bytes for path. */ com.google.protobuf.ByteString getPathBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions} */ public static final class HttpOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions) HttpOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use HttpOptions.newBuilder() to construct. private HttpOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HttpOptions() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HttpOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HttpOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { port_ = input.readInt64(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); path_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.Builder.class); } public static final int PORT_FIELD_NUMBER = 1; private long port_; /** *
       * Port to use for HTTP health checks.
       * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @return The port. */ @java.lang.Override public long getPort() { return port_; } public static final int PATH_FIELD_NUMBER = 2; private volatile java.lang.Object path_; /** *
       * URL path to set for health checking requests.
       * 
* * string path = 2; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** *
       * URL path to set for health checking requests.
       * 
* * string path = 2; * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = 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 (port_ != 0L) { output.writeInt64(1, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (port_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); } 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) obj; if (getPort() != other.getPort()) return false; if (!getPath() .equals(other.getPath())) 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) + PORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPort()); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions 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.HealthCheckSpec.HttpOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.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(); port_ = 0L; path_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions(this); result.port_ = port_; result.path_ = path_; 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance()) return this; if (other.getPort() != 0L) { setPort(other.getPort()); } if (!other.getPath().isEmpty()) { path_ = other.path_; 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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long port_ ; /** *
         * Port to use for HTTP health checks.
         * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @return The port. */ @java.lang.Override public long getPort() { return port_; } /** *
         * Port to use for HTTP health checks.
         * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(long value) { port_ = value; onChanged(); return this; } /** *
         * Port to use for HTTP health checks.
         * 
* * int64 port = 1 [(.yandex.cloud.value) = "1-65535"]; * @return This builder for chaining. */ public Builder clearPort() { port_ = 0L; onChanged(); return this; } private java.lang.Object path_ = ""; /** *
         * URL path to set for health checking requests.
         * 
* * string path = 2; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * URL path to set for health checking requests.
         * 
* * string path = 2; * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * URL path to set for health checking requests.
         * 
* * string path = 2; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; onChanged(); return this; } /** *
         * URL path to set for health checking requests.
         * 
* * string path = 2; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** *
         * URL path to set for health checking requests.
         * 
* * string path = 2; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = 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.HealthCheckSpec.HttpOptions) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HttpOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HttpOptions(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.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int healthCheckOptionsCase_ = 0; private java.lang.Object healthCheckOptions_; public enum HealthCheckOptionsCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TCP_OPTIONS(5), HTTP_OPTIONS(6), HEALTHCHECKOPTIONS_NOT_SET(0); private final int value; private HealthCheckOptionsCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static HealthCheckOptionsCase valueOf(int value) { return forNumber(value); } public static HealthCheckOptionsCase forNumber(int value) { switch (value) { case 5: return TCP_OPTIONS; case 6: return HTTP_OPTIONS; case 0: return HEALTHCHECKOPTIONS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public HealthCheckOptionsCase getHealthCheckOptionsCase() { return HealthCheckOptionsCase.forNumber( healthCheckOptionsCase_); } public static final int INTERVAL_FIELD_NUMBER = 1; private com.google.protobuf.Duration interval_; /** *
     * The interval between health checks. The default is 2 seconds.
     * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; * @return Whether the interval field is set. */ @java.lang.Override public boolean hasInterval() { return interval_ != null; } /** *
     * The interval between health checks. The default is 2 seconds.
     * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; * @return The interval. */ @java.lang.Override public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } /** *
     * The interval between health checks. The default is 2 seconds.
     * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() { return getInterval(); } public static final int TIMEOUT_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeout_; /** *
     * Timeout for the managed instance to return a response for the health check. The default is 1 second.
     * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; * @return Whether the timeout field is set. */ @java.lang.Override public boolean hasTimeout() { return timeout_ != null; } /** *
     * Timeout for the managed instance to return a response for the health check. The default is 1 second.
     * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; * @return The timeout. */ @java.lang.Override public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** *
     * Timeout for the managed instance to return a response for the health check. The default is 1 second.
     * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { return getTimeout(); } public static final int UNHEALTHY_THRESHOLD_FIELD_NUMBER = 3; private long unhealthyThreshold_; /** *
     * The number of failed health checks for the managed instance to be considered unhealthy. The default (0) is 2.
     * 
* * int64 unhealthy_threshold = 3 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @return The unhealthyThreshold. */ @java.lang.Override public long getUnhealthyThreshold() { return unhealthyThreshold_; } public static final int HEALTHY_THRESHOLD_FIELD_NUMBER = 4; private long healthyThreshold_; /** *
     * The number of successful health checks required in order for the managed instance to be considered healthy. The default (0) is 2.
     * 
* * int64 healthy_threshold = 4 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @return The healthyThreshold. */ @java.lang.Override public long getHealthyThreshold() { return healthyThreshold_; } public static final int TCP_OPTIONS_FIELD_NUMBER = 5; /** *
     * Configuration options for a TCP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; * @return Whether the tcpOptions field is set. */ @java.lang.Override public boolean hasTcpOptions() { return healthCheckOptionsCase_ == 5; } /** *
     * Configuration options for a TCP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; * @return The tcpOptions. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions getTcpOptions() { if (healthCheckOptionsCase_ == 5) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance(); } /** *
     * Configuration options for a TCP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptionsOrBuilder getTcpOptionsOrBuilder() { if (healthCheckOptionsCase_ == 5) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance(); } public static final int HTTP_OPTIONS_FIELD_NUMBER = 6; /** *
     * Configuration options for an HTTP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; * @return Whether the httpOptions field is set. */ @java.lang.Override public boolean hasHttpOptions() { return healthCheckOptionsCase_ == 6; } /** *
     * Configuration options for an HTTP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; * @return The httpOptions. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions getHttpOptions() { if (healthCheckOptionsCase_ == 6) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance(); } /** *
     * Configuration options for an HTTP health check.
     * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptionsOrBuilder getHttpOptionsOrBuilder() { if (healthCheckOptionsCase_ == 6) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance(); } 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 (interval_ != null) { output.writeMessage(1, getInterval()); } if (timeout_ != null) { output.writeMessage(2, getTimeout()); } if (unhealthyThreshold_ != 0L) { output.writeInt64(3, unhealthyThreshold_); } if (healthyThreshold_ != 0L) { output.writeInt64(4, healthyThreshold_); } if (healthCheckOptionsCase_ == 5) { output.writeMessage(5, (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_); } if (healthCheckOptionsCase_ == 6) { output.writeMessage(6, (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterval()); } if (timeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimeout()); } if (unhealthyThreshold_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, unhealthyThreshold_); } if (healthyThreshold_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, healthyThreshold_); } if (healthCheckOptionsCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_); } if (healthCheckOptionsCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_); } 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.InstanceGroupOuterClass.HealthCheckSpec)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec) obj; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { if (!getInterval() .equals(other.getInterval())) return false; } if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { if (!getTimeout() .equals(other.getTimeout())) return false; } if (getUnhealthyThreshold() != other.getUnhealthyThreshold()) return false; if (getHealthyThreshold() != other.getHealthyThreshold()) return false; if (!getHealthCheckOptionsCase().equals(other.getHealthCheckOptionsCase())) return false; switch (healthCheckOptionsCase_) { case 5: if (!getTcpOptions() .equals(other.getTcpOptions())) return false; break; case 6: if (!getHttpOptions() .equals(other.getHttpOptions())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); } if (hasTimeout()) { hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTimeout().hashCode(); } hash = (37 * hash) + UNHEALTHY_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnhealthyThreshold()); hash = (37 * hash) + HEALTHY_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHealthyThreshold()); switch (healthCheckOptionsCase_) { case 5: hash = (37 * hash) + TCP_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getTcpOptions().hashCode(); break; case 6: hash = (37 * hash) + HTTP_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getHttpOptions().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec 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.InstanceGroupOuterClass.HealthCheckSpec 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.HealthCheckSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.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(); if (intervalBuilder_ == null) { interval_ = null; } else { interval_ = null; intervalBuilder_ = null; } if (timeoutBuilder_ == null) { timeout_ = null; } else { timeout_ = null; timeoutBuilder_ = null; } unhealthyThreshold_ = 0L; healthyThreshold_ = 0L; healthCheckOptionsCase_ = 0; healthCheckOptions_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec(this); if (intervalBuilder_ == null) { result.interval_ = interval_; } else { result.interval_ = intervalBuilder_.build(); } if (timeoutBuilder_ == null) { result.timeout_ = timeout_; } else { result.timeout_ = timeoutBuilder_.build(); } result.unhealthyThreshold_ = unhealthyThreshold_; result.healthyThreshold_ = healthyThreshold_; if (healthCheckOptionsCase_ == 5) { if (tcpOptionsBuilder_ == null) { result.healthCheckOptions_ = healthCheckOptions_; } else { result.healthCheckOptions_ = tcpOptionsBuilder_.build(); } } if (healthCheckOptionsCase_ == 6) { if (httpOptionsBuilder_ == null) { result.healthCheckOptions_ = healthCheckOptions_; } else { result.healthCheckOptions_ = httpOptionsBuilder_.build(); } } result.healthCheckOptionsCase_ = healthCheckOptionsCase_; 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.InstanceGroupOuterClass.HealthCheckSpec) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.getDefaultInstance()) return this; if (other.hasInterval()) { mergeInterval(other.getInterval()); } if (other.hasTimeout()) { mergeTimeout(other.getTimeout()); } if (other.getUnhealthyThreshold() != 0L) { setUnhealthyThreshold(other.getUnhealthyThreshold()); } if (other.getHealthyThreshold() != 0L) { setHealthyThreshold(other.getHealthyThreshold()); } switch (other.getHealthCheckOptionsCase()) { case TCP_OPTIONS: { mergeTcpOptions(other.getTcpOptions()); break; } case HTTP_OPTIONS: { mergeHttpOptions(other.getHttpOptions()); break; } case HEALTHCHECKOPTIONS_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int healthCheckOptionsCase_ = 0; private java.lang.Object healthCheckOptions_; public HealthCheckOptionsCase getHealthCheckOptionsCase() { return HealthCheckOptionsCase.forNumber( healthCheckOptionsCase_); } public Builder clearHealthCheckOptions() { healthCheckOptionsCase_ = 0; healthCheckOptions_ = null; onChanged(); return this; } private com.google.protobuf.Duration interval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; * @return The interval. */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ public Builder setInterval(com.google.protobuf.Duration value) { if (intervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interval_ = value; onChanged(); } else { intervalBuilder_.setMessage(value); } return this; } /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ public Builder setInterval( com.google.protobuf.Duration.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); onChanged(); } else { intervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ public Builder mergeInterval(com.google.protobuf.Duration value) { if (intervalBuilder_ == null) { if (interval_ != null) { interval_ = com.google.protobuf.Duration.newBuilder(interval_).mergeFrom(value).buildPartial(); } else { interval_ = value; } onChanged(); } else { intervalBuilder_.mergeFrom(value); } return this; } /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ public Builder clearInterval() { if (intervalBuilder_ == null) { interval_ = null; onChanged(); } else { interval_ = null; intervalBuilder_ = null; } return this; } /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ public com.google.protobuf.Duration.Builder getIntervalBuilder() { onChanged(); return getIntervalFieldBuilder().getBuilder(); } /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } } /** *
       * The interval between health checks. The default is 2 seconds.
       * 
* * .google.protobuf.Duration interval = 1 [(.yandex.cloud.value) = "1s-300s"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; } private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { if (timeoutBuilder_ == null) { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } else { return timeoutBuilder_.getMessage(); } } /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ public Builder setTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeout_ = value; onChanged(); } else { timeoutBuilder_.setMessage(value); } return this; } /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ public Builder setTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); onChanged(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { if (timeout_ != null) { timeout_ = com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); } else { timeout_ = value; } onChanged(); } else { timeoutBuilder_.mergeFrom(value); } return this; } /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ public Builder clearTimeout() { if (timeoutBuilder_ == null) { timeout_ = null; onChanged(); } else { timeout_ = null; timeoutBuilder_ = null; } return this; } /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { return timeoutBuilder_.getMessageOrBuilder(); } else { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } } /** *
       * Timeout for the managed instance to return a response for the health check. The default is 1 second.
       * 
* * .google.protobuf.Duration timeout = 2 [(.yandex.cloud.value) = "1s-60s"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTimeoutFieldBuilder() { if (timeoutBuilder_ == null) { timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getTimeout(), getParentForChildren(), isClean()); timeout_ = null; } return timeoutBuilder_; } private long unhealthyThreshold_ ; /** *
       * The number of failed health checks for the managed instance to be considered unhealthy. The default (0) is 2.
       * 
* * int64 unhealthy_threshold = 3 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @return The unhealthyThreshold. */ @java.lang.Override public long getUnhealthyThreshold() { return unhealthyThreshold_; } /** *
       * The number of failed health checks for the managed instance to be considered unhealthy. The default (0) is 2.
       * 
* * int64 unhealthy_threshold = 3 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @param value The unhealthyThreshold to set. * @return This builder for chaining. */ public Builder setUnhealthyThreshold(long value) { unhealthyThreshold_ = value; onChanged(); return this; } /** *
       * The number of failed health checks for the managed instance to be considered unhealthy. The default (0) is 2.
       * 
* * int64 unhealthy_threshold = 3 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @return This builder for chaining. */ public Builder clearUnhealthyThreshold() { unhealthyThreshold_ = 0L; onChanged(); return this; } private long healthyThreshold_ ; /** *
       * The number of successful health checks required in order for the managed instance to be considered healthy. The default (0) is 2.
       * 
* * int64 healthy_threshold = 4 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @return The healthyThreshold. */ @java.lang.Override public long getHealthyThreshold() { return healthyThreshold_; } /** *
       * The number of successful health checks required in order for the managed instance to be considered healthy. The default (0) is 2.
       * 
* * int64 healthy_threshold = 4 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @param value The healthyThreshold to set. * @return This builder for chaining. */ public Builder setHealthyThreshold(long value) { healthyThreshold_ = value; onChanged(); return this; } /** *
       * The number of successful health checks required in order for the managed instance to be considered healthy. The default (0) is 2.
       * 
* * int64 healthy_threshold = 4 [(.yandex.cloud.value) = "0,2,3,4,5,6,7,8,9,10"]; * @return This builder for chaining. */ public Builder clearHealthyThreshold() { healthyThreshold_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptionsOrBuilder> tcpOptionsBuilder_; /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; * @return Whether the tcpOptions field is set. */ @java.lang.Override public boolean hasTcpOptions() { return healthCheckOptionsCase_ == 5; } /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; * @return The tcpOptions. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions getTcpOptions() { if (tcpOptionsBuilder_ == null) { if (healthCheckOptionsCase_ == 5) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance(); } else { if (healthCheckOptionsCase_ == 5) { return tcpOptionsBuilder_.getMessage(); } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance(); } } /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ public Builder setTcpOptions(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions value) { if (tcpOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthCheckOptions_ = value; onChanged(); } else { tcpOptionsBuilder_.setMessage(value); } healthCheckOptionsCase_ = 5; return this; } /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ public Builder setTcpOptions( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.Builder builderForValue) { if (tcpOptionsBuilder_ == null) { healthCheckOptions_ = builderForValue.build(); onChanged(); } else { tcpOptionsBuilder_.setMessage(builderForValue.build()); } healthCheckOptionsCase_ = 5; return this; } /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ public Builder mergeTcpOptions(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions value) { if (tcpOptionsBuilder_ == null) { if (healthCheckOptionsCase_ == 5 && healthCheckOptions_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance()) { healthCheckOptions_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.newBuilder((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_) .mergeFrom(value).buildPartial(); } else { healthCheckOptions_ = value; } onChanged(); } else { if (healthCheckOptionsCase_ == 5) { tcpOptionsBuilder_.mergeFrom(value); } tcpOptionsBuilder_.setMessage(value); } healthCheckOptionsCase_ = 5; return this; } /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ public Builder clearTcpOptions() { if (tcpOptionsBuilder_ == null) { if (healthCheckOptionsCase_ == 5) { healthCheckOptionsCase_ = 0; healthCheckOptions_ = null; onChanged(); } } else { if (healthCheckOptionsCase_ == 5) { healthCheckOptionsCase_ = 0; healthCheckOptions_ = null; } tcpOptionsBuilder_.clear(); } return this; } /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.Builder getTcpOptionsBuilder() { return getTcpOptionsFieldBuilder().getBuilder(); } /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptionsOrBuilder getTcpOptionsOrBuilder() { if ((healthCheckOptionsCase_ == 5) && (tcpOptionsBuilder_ != null)) { return tcpOptionsBuilder_.getMessageOrBuilder(); } else { if (healthCheckOptionsCase_ == 5) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance(); } } /** *
       * Configuration options for a TCP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.TcpOptions tcp_options = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptionsOrBuilder> getTcpOptionsFieldBuilder() { if (tcpOptionsBuilder_ == null) { if (!(healthCheckOptionsCase_ == 5)) { healthCheckOptions_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.getDefaultInstance(); } tcpOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptionsOrBuilder>( (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.TcpOptions) healthCheckOptions_, getParentForChildren(), isClean()); healthCheckOptions_ = null; } healthCheckOptionsCase_ = 5; onChanged();; return tcpOptionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptionsOrBuilder> httpOptionsBuilder_; /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; * @return Whether the httpOptions field is set. */ @java.lang.Override public boolean hasHttpOptions() { return healthCheckOptionsCase_ == 6; } /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; * @return The httpOptions. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions getHttpOptions() { if (httpOptionsBuilder_ == null) { if (healthCheckOptionsCase_ == 6) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance(); } else { if (healthCheckOptionsCase_ == 6) { return httpOptionsBuilder_.getMessage(); } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance(); } } /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ public Builder setHttpOptions(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions value) { if (httpOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } healthCheckOptions_ = value; onChanged(); } else { httpOptionsBuilder_.setMessage(value); } healthCheckOptionsCase_ = 6; return this; } /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ public Builder setHttpOptions( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.Builder builderForValue) { if (httpOptionsBuilder_ == null) { healthCheckOptions_ = builderForValue.build(); onChanged(); } else { httpOptionsBuilder_.setMessage(builderForValue.build()); } healthCheckOptionsCase_ = 6; return this; } /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ public Builder mergeHttpOptions(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions value) { if (httpOptionsBuilder_ == null) { if (healthCheckOptionsCase_ == 6 && healthCheckOptions_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance()) { healthCheckOptions_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.newBuilder((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_) .mergeFrom(value).buildPartial(); } else { healthCheckOptions_ = value; } onChanged(); } else { if (healthCheckOptionsCase_ == 6) { httpOptionsBuilder_.mergeFrom(value); } httpOptionsBuilder_.setMessage(value); } healthCheckOptionsCase_ = 6; return this; } /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ public Builder clearHttpOptions() { if (httpOptionsBuilder_ == null) { if (healthCheckOptionsCase_ == 6) { healthCheckOptionsCase_ = 0; healthCheckOptions_ = null; onChanged(); } } else { if (healthCheckOptionsCase_ == 6) { healthCheckOptionsCase_ = 0; healthCheckOptions_ = null; } httpOptionsBuilder_.clear(); } return this; } /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.Builder getHttpOptionsBuilder() { return getHttpOptionsFieldBuilder().getBuilder(); } /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptionsOrBuilder getHttpOptionsOrBuilder() { if ((healthCheckOptionsCase_ == 6) && (httpOptionsBuilder_ != null)) { return httpOptionsBuilder_.getMessageOrBuilder(); } else { if (healthCheckOptionsCase_ == 6) { return (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_; } return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance(); } } /** *
       * Configuration options for an HTTP health check.
       * 
* * .yandex.cloud.compute.v1.instancegroup.HealthCheckSpec.HttpOptions http_options = 6; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptionsOrBuilder> getHttpOptionsFieldBuilder() { if (httpOptionsBuilder_ == null) { if (!(healthCheckOptionsCase_ == 6)) { healthCheckOptions_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.getDefaultInstance(); } httpOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptionsOrBuilder>( (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec.HttpOptions) healthCheckOptions_, getParentForChildren(), isClean()); healthCheckOptions_ = null; } healthCheckOptionsCase_ = 6; onChanged();; return httpOptionsBuilder_; } @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.HealthCheckSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.HealthCheckSpec) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthCheckSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HealthCheckSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HealthCheckSpec(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.InstanceGroupOuterClass.HealthCheckSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ManagedInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ManagedInstance) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the managed instance.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the managed instance.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Status of the managed instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the managed instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @return The status. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status getStatus(); /** *
     * ID of the instance.
     * 
* * string instance_id = 3; * @return The instanceId. */ java.lang.String getInstanceId(); /** *
     * ID of the instance.
     * 
* * string instance_id = 3; * @return The bytes for instanceId. */ com.google.protobuf.ByteString getInstanceIdBytes(); /** *
     * Fully Qualified Domain Name.
     * 
* * string fqdn = 4; * @return The fqdn. */ java.lang.String getFqdn(); /** *
     * Fully Qualified Domain Name.
     * 
* * string fqdn = 4; * @return The bytes for fqdn. */ com.google.protobuf.ByteString getFqdnBytes(); /** *
     * The name of the managed instance.
     * 
* * string name = 5; * @return The name. */ java.lang.String getName(); /** *
     * The name of the managed instance.
     * 
* * string name = 5; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Status message for the managed instance.
     * 
* * string status_message = 6; * @return The statusMessage. */ java.lang.String getStatusMessage(); /** *
     * Status message for the managed instance.
     * 
* * string status_message = 6; * @return The bytes for statusMessage. */ com.google.protobuf.ByteString getStatusMessageBytes(); /** *
     * ID of the availability zone where the instance resides.
     * 
* * string zone_id = 7; * @return The zoneId. */ java.lang.String getZoneId(); /** *
     * ID of the availability zone where the instance resides.
     * 
* * string zone_id = 7; * @return The bytes for zoneId. */ com.google.protobuf.ByteString getZoneIdBytes(); /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ java.util.List getNetworkInterfacesList(); /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface getNetworkInterfaces(int index); /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ int getNetworkInterfacesCount(); /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ java.util.List getNetworkInterfacesOrBuilderList(); /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( int index); /** *
     * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
     * 
* * .google.protobuf.Timestamp status_changed_at = 9; * @return Whether the statusChangedAt field is set. */ boolean hasStatusChangedAt(); /** *
     * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
     * 
* * .google.protobuf.Timestamp status_changed_at = 9; * @return The statusChangedAt. */ com.google.protobuf.Timestamp getStatusChangedAt(); /** *
     * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
     * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ com.google.protobuf.TimestampOrBuilder getStatusChangedAtOrBuilder(); } /** *
   * A ManagedInstance resource. For more information, see [Instance Groups Concepts](/docs/compute/concepts/instance-groups/).
   * 
* * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ManagedInstance} */ public static final class ManagedInstance extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ManagedInstance) ManagedInstanceOrBuilder { private static final long serialVersionUID = 0L; // Use ManagedInstance.newBuilder() to construct. private ManagedInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ManagedInstance() { id_ = ""; status_ = 0; instanceId_ = ""; fqdn_ = ""; name_ = ""; statusMessage_ = ""; zoneId_ = ""; networkInterfaces_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ManagedInstance(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ManagedInstance( 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(); id_ = s; break; } case 16: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); instanceId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); fqdn_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); statusMessage_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); zoneId_ = s; break; } case 66: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { networkInterfaces_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } networkInterfaces_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.parser(), extensionRegistry)); break; } case 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (statusChangedAt_ != null) { subBuilder = statusChangedAt_.toBuilder(); } statusChangedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(statusChangedAt_); statusChangedAt_ = 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_ & 0x00000001) != 0)) { networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder.class); } /** * Protobuf enum {@code yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * Instance is being created.
       * 
* * CREATING_INSTANCE = 11; */ CREATING_INSTANCE(11), /** *
       * Instance is being updated.
       * 
* * UPDATING_INSTANCE = 12; */ UPDATING_INSTANCE(12), /** *
       * Instance is being deleted.
       * 
* * DELETING_INSTANCE = 13; */ DELETING_INSTANCE(13), /** *
       * Instance is being started.
       * 
* * STARTING_INSTANCE = 14; */ STARTING_INSTANCE(14), /** *
       * Instance is being stopped.
       * 
* * STOPPING_INSTANCE = 15; */ STOPPING_INSTANCE(15), /** *
       * Instance has been created successfully, but startup duration has not elapsed yet.
       * 
* * AWAITING_STARTUP_DURATION = 16; */ AWAITING_STARTUP_DURATION(16), /** *
       * Instance has been created successfully and startup duration has elapsed, but health checks have not passed yet and the managed instance is not ready to receive traffic.
       * 
* * CHECKING_HEALTH = 17; */ CHECKING_HEALTH(17), /** *
       * Instance Groups is initiating health checks and routing traffic to the instances.
       * 
* * OPENING_TRAFFIC = 18; */ OPENING_TRAFFIC(18), /** *
       * Instance is now receiving traffic, but warmup duration has not elapsed yet.
       * 
* * AWAITING_WARMUP_DURATION = 19; */ AWAITING_WARMUP_DURATION(19), /** *
       * Instance Groups has initiated the process of stopping routing traffic to the instances.
       * 
* * CLOSING_TRAFFIC = 20; */ CLOSING_TRAFFIC(20), /** *
       * Instance is running normally and its attributes match the current InstanceTemplate.
       * 
* * RUNNING_ACTUAL = 21; */ RUNNING_ACTUAL(21), /** *
       * Instance is running normally, but its attributes do not match the current InstanceTemplate.
       * It will be updated, recreated or deleted shortly.
       * 
* * RUNNING_OUTDATED = 22; */ RUNNING_OUTDATED(22), /** *
       * Instance was stopped.
       * 
* * STOPPED = 23; */ STOPPED(23), /** *
       * Instance was deleted.
       * 
* * DELETED = 24; */ DELETED(24), /** *
       * Instance Groups is preparing dependent resources.
       * 
* * PREPARING_RESOURCES = 25; */ PREPARING_RESOURCES(25), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * Instance is being created.
       * 
* * CREATING_INSTANCE = 11; */ public static final int CREATING_INSTANCE_VALUE = 11; /** *
       * Instance is being updated.
       * 
* * UPDATING_INSTANCE = 12; */ public static final int UPDATING_INSTANCE_VALUE = 12; /** *
       * Instance is being deleted.
       * 
* * DELETING_INSTANCE = 13; */ public static final int DELETING_INSTANCE_VALUE = 13; /** *
       * Instance is being started.
       * 
* * STARTING_INSTANCE = 14; */ public static final int STARTING_INSTANCE_VALUE = 14; /** *
       * Instance is being stopped.
       * 
* * STOPPING_INSTANCE = 15; */ public static final int STOPPING_INSTANCE_VALUE = 15; /** *
       * Instance has been created successfully, but startup duration has not elapsed yet.
       * 
* * AWAITING_STARTUP_DURATION = 16; */ public static final int AWAITING_STARTUP_DURATION_VALUE = 16; /** *
       * Instance has been created successfully and startup duration has elapsed, but health checks have not passed yet and the managed instance is not ready to receive traffic.
       * 
* * CHECKING_HEALTH = 17; */ public static final int CHECKING_HEALTH_VALUE = 17; /** *
       * Instance Groups is initiating health checks and routing traffic to the instances.
       * 
* * OPENING_TRAFFIC = 18; */ public static final int OPENING_TRAFFIC_VALUE = 18; /** *
       * Instance is now receiving traffic, but warmup duration has not elapsed yet.
       * 
* * AWAITING_WARMUP_DURATION = 19; */ public static final int AWAITING_WARMUP_DURATION_VALUE = 19; /** *
       * Instance Groups has initiated the process of stopping routing traffic to the instances.
       * 
* * CLOSING_TRAFFIC = 20; */ public static final int CLOSING_TRAFFIC_VALUE = 20; /** *
       * Instance is running normally and its attributes match the current InstanceTemplate.
       * 
* * RUNNING_ACTUAL = 21; */ public static final int RUNNING_ACTUAL_VALUE = 21; /** *
       * Instance is running normally, but its attributes do not match the current InstanceTemplate.
       * It will be updated, recreated or deleted shortly.
       * 
* * RUNNING_OUTDATED = 22; */ public static final int RUNNING_OUTDATED_VALUE = 22; /** *
       * Instance was stopped.
       * 
* * STOPPED = 23; */ public static final int STOPPED_VALUE = 23; /** *
       * Instance was deleted.
       * 
* * DELETED = 24; */ public static final int DELETED_VALUE = 24; /** *
       * Instance Groups is preparing dependent resources.
       * 
* * PREPARING_RESOURCES = 25; */ public static final int PREPARING_RESOURCES_VALUE = 25; 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 Status 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 Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 11: return CREATING_INSTANCE; case 12: return UPDATING_INSTANCE; case 13: return DELETING_INSTANCE; case 14: return STARTING_INSTANCE; case 15: return STOPPING_INSTANCE; case 16: return AWAITING_STARTUP_DURATION; case 17: return CHECKING_HEALTH; case 18: return OPENING_TRAFFIC; case 19: return AWAITING_WARMUP_DURATION; case 20: return CLOSING_TRAFFIC; case 21: return RUNNING_ACTUAL; case 22: return RUNNING_OUTDATED; case 23: return STOPPED; case 24: return DELETED; case 25: return PREPARING_RESOURCES; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.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.InstanceGroupOuterClass.ManagedInstance.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status 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 Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the managed instance.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * ID of the managed instance.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** *
     * Status of the managed instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the managed instance.
     * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @return The status. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status.valueOf(status_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status.UNRECOGNIZED : result; } public static final int INSTANCE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object instanceId_; /** *
     * ID of the instance.
     * 
* * string instance_id = 3; * @return The instanceId. */ @java.lang.Override public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } } /** *
     * ID of the instance.
     * 
* * string instance_id = 3; * @return The bytes for instanceId. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FQDN_FIELD_NUMBER = 4; private volatile java.lang.Object fqdn_; /** *
     * Fully Qualified Domain Name.
     * 
* * string fqdn = 4; * @return The fqdn. */ @java.lang.Override public java.lang.String getFqdn() { java.lang.Object ref = fqdn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqdn_ = s; return s; } } /** *
     * Fully Qualified Domain Name.
     * 
* * string fqdn = 4; * @return The bytes for fqdn. */ @java.lang.Override public com.google.protobuf.ByteString getFqdnBytes() { java.lang.Object ref = fqdn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqdn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 5; private volatile java.lang.Object name_; /** *
     * The name of the managed instance.
     * 
* * string name = 5; * @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; } } /** *
     * The name of the managed instance.
     * 
* * string name = 5; * @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 STATUS_MESSAGE_FIELD_NUMBER = 6; private volatile java.lang.Object statusMessage_; /** *
     * Status message for the managed instance.
     * 
* * string status_message = 6; * @return The statusMessage. */ @java.lang.Override public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; 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(); statusMessage_ = s; return s; } } /** *
     * Status message for the managed instance.
     * 
* * string status_message = 6; * @return The bytes for statusMessage. */ @java.lang.Override public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statusMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ZONE_ID_FIELD_NUMBER = 7; private volatile java.lang.Object zoneId_; /** *
     * ID of the availability zone where the instance resides.
     * 
* * string zone_id = 7; * @return The zoneId. */ @java.lang.Override public java.lang.String getZoneId() { java.lang.Object ref = zoneId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneId_ = s; return s; } } /** *
     * ID of the availability zone where the instance resides.
     * 
* * string zone_id = 7; * @return The bytes for zoneId. */ @java.lang.Override public com.google.protobuf.ByteString getZoneIdBytes() { java.lang.Object ref = zoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); zoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NETWORK_INTERFACES_FIELD_NUMBER = 8; private java.util.List networkInterfaces_; /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ @java.lang.Override public java.util.List getNetworkInterfacesList() { return networkInterfaces_; } /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ @java.lang.Override public java.util.List getNetworkInterfacesOrBuilderList() { return networkInterfaces_; } /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ @java.lang.Override public int getNetworkInterfacesCount() { return networkInterfaces_.size(); } /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface getNetworkInterfaces(int index) { return networkInterfaces_.get(index); } /** *
     * Array of network interfaces that are attached to the managed instance.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( int index) { return networkInterfaces_.get(index); } public static final int STATUS_CHANGED_AT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp statusChangedAt_; /** *
     * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
     * 
* * .google.protobuf.Timestamp status_changed_at = 9; * @return Whether the statusChangedAt field is set. */ @java.lang.Override public boolean hasStatusChangedAt() { return statusChangedAt_ != null; } /** *
     * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
     * 
* * .google.protobuf.Timestamp status_changed_at = 9; * @return The statusChangedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getStatusChangedAt() { return statusChangedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : statusChangedAt_; } /** *
     * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
     * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStatusChangedAtOrBuilder() { return getStatusChangedAt(); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (status_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fqdn_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, statusMessage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, zoneId_); } for (int i = 0; i < networkInterfaces_.size(); i++) { output.writeMessage(8, networkInterfaces_.get(i)); } if (statusChangedAt_ != null) { output.writeMessage(9, getStatusChangedAt()); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (status_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fqdn_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, statusMessage_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, zoneId_); } for (int i = 0; i < networkInterfaces_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, networkInterfaces_.get(i)); } if (statusChangedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getStatusChangedAt()); } 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.InstanceGroupOuterClass.ManagedInstance)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance) obj; if (!getId() .equals(other.getId())) return false; if (status_ != other.status_) return false; if (!getInstanceId() .equals(other.getInstanceId())) return false; if (!getFqdn() .equals(other.getFqdn())) return false; if (!getName() .equals(other.getName())) return false; if (!getStatusMessage() .equals(other.getStatusMessage())) return false; if (!getZoneId() .equals(other.getZoneId())) return false; if (!getNetworkInterfacesList() .equals(other.getNetworkInterfacesList())) return false; if (hasStatusChangedAt() != other.hasStatusChangedAt()) return false; if (hasStatusChangedAt()) { if (!getStatusChangedAt() .equals(other.getStatusChangedAt())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getInstanceId().hashCode(); hash = (37 * hash) + FQDN_FIELD_NUMBER; hash = (53 * hash) + getFqdn().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getZoneId().hashCode(); if (getNetworkInterfacesCount() > 0) { hash = (37 * hash) + NETWORK_INTERFACES_FIELD_NUMBER; hash = (53 * hash) + getNetworkInterfacesList().hashCode(); } if (hasStatusChangedAt()) { hash = (37 * hash) + STATUS_CHANGED_AT_FIELD_NUMBER; hash = (53 * hash) + getStatusChangedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance 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.InstanceGroupOuterClass.ManagedInstance 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; } /** *
     * A ManagedInstance resource. For more information, see [Instance Groups Concepts](/docs/compute/concepts/instance-groups/).
     * 
* * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ManagedInstance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ManagedInstance) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNetworkInterfacesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; status_ = 0; instanceId_ = ""; fqdn_ = ""; name_ = ""; statusMessage_ = ""; zoneId_ = ""; if (networkInterfacesBuilder_ == null) { networkInterfaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { networkInterfacesBuilder_.clear(); } if (statusChangedAtBuilder_ == null) { statusChangedAt_ = null; } else { statusChangedAt_ = null; statusChangedAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.status_ = status_; result.instanceId_ = instanceId_; result.fqdn_ = fqdn_; result.name_ = name_; result.statusMessage_ = statusMessage_; result.zoneId_ = zoneId_; if (networkInterfacesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_); bitField0_ = (bitField0_ & ~0x00000001); } result.networkInterfaces_ = networkInterfaces_; } else { result.networkInterfaces_ = networkInterfacesBuilder_.build(); } if (statusChangedAtBuilder_ == null) { result.statusChangedAt_ = statusChangedAt_; } else { result.statusChangedAt_ = statusChangedAtBuilder_.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.InstanceGroupOuterClass.ManagedInstance) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); } if (!other.getFqdn().isEmpty()) { fqdn_ = other.fqdn_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getStatusMessage().isEmpty()) { statusMessage_ = other.statusMessage_; onChanged(); } if (!other.getZoneId().isEmpty()) { zoneId_ = other.zoneId_; onChanged(); } if (networkInterfacesBuilder_ == null) { if (!other.networkInterfaces_.isEmpty()) { if (networkInterfaces_.isEmpty()) { networkInterfaces_ = other.networkInterfaces_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNetworkInterfacesIsMutable(); networkInterfaces_.addAll(other.networkInterfaces_); } onChanged(); } } else { if (!other.networkInterfaces_.isEmpty()) { if (networkInterfacesBuilder_.isEmpty()) { networkInterfacesBuilder_.dispose(); networkInterfacesBuilder_ = null; networkInterfaces_ = other.networkInterfaces_; bitField0_ = (bitField0_ & ~0x00000001); networkInterfacesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNetworkInterfacesFieldBuilder() : null; } else { networkInterfacesBuilder_.addAllMessages(other.networkInterfaces_); } } } if (other.hasStatusChangedAt()) { mergeStatusChangedAt(other.getStatusChangedAt()); } 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.InstanceGroupOuterClass.ManagedInstance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the managed instance.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the managed instance.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the managed instance.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the managed instance.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the managed instance.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private int status_ = 0; /** *
       * Status of the managed instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the managed instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the managed instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @return The status. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status.valueOf(status_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status.UNRECOGNIZED : result; } /** *
       * Status of the managed instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the managed instance.
       * 
* * .yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status status = 2; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.lang.Object instanceId_ = ""; /** *
       * ID of the instance.
       * 
* * string instance_id = 3; * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the instance.
       * 
* * string instance_id = 3; * @return The bytes for instanceId. */ public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the instance.
       * 
* * string instance_id = 3; * @param value The instanceId to set. * @return This builder for chaining. */ public Builder setInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instanceId_ = value; onChanged(); return this; } /** *
       * ID of the instance.
       * 
* * string instance_id = 3; * @return This builder for chaining. */ public Builder clearInstanceId() { instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** *
       * ID of the instance.
       * 
* * string instance_id = 3; * @param value The bytes for instanceId to set. * @return This builder for chaining. */ public Builder setInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; onChanged(); return this; } private java.lang.Object fqdn_ = ""; /** *
       * Fully Qualified Domain Name.
       * 
* * string fqdn = 4; * @return The fqdn. */ public java.lang.String getFqdn() { java.lang.Object ref = fqdn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqdn_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Fully Qualified Domain Name.
       * 
* * string fqdn = 4; * @return The bytes for fqdn. */ public com.google.protobuf.ByteString getFqdnBytes() { java.lang.Object ref = fqdn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqdn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Fully Qualified Domain Name.
       * 
* * string fqdn = 4; * @param value The fqdn to set. * @return This builder for chaining. */ public Builder setFqdn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fqdn_ = value; onChanged(); return this; } /** *
       * Fully Qualified Domain Name.
       * 
* * string fqdn = 4; * @return This builder for chaining. */ public Builder clearFqdn() { fqdn_ = getDefaultInstance().getFqdn(); onChanged(); return this; } /** *
       * Fully Qualified Domain Name.
       * 
* * string fqdn = 4; * @param value The bytes for fqdn to set. * @return This builder for chaining. */ public Builder setFqdnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fqdn_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * The name of the managed instance.
       * 
* * string name = 5; * @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; } } /** *
       * The name of the managed instance.
       * 
* * string name = 5; * @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; } } /** *
       * The name of the managed instance.
       * 
* * string name = 5; * @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; } /** *
       * The name of the managed instance.
       * 
* * string name = 5; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * The name of the managed instance.
       * 
* * string name = 5; * @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 statusMessage_ = ""; /** *
       * Status message for the managed instance.
       * 
* * string status_message = 6; * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Status message for the managed instance.
       * 
* * string status_message = 6; * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); statusMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Status message for the managed instance.
       * 
* * string status_message = 6; * @param value The statusMessage to set. * @return This builder for chaining. */ public Builder setStatusMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } statusMessage_ = value; onChanged(); return this; } /** *
       * Status message for the managed instance.
       * 
* * string status_message = 6; * @return This builder for chaining. */ public Builder clearStatusMessage() { statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** *
       * Status message for the managed instance.
       * 
* * string status_message = 6; * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ public Builder setStatusMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; onChanged(); return this; } private java.lang.Object zoneId_ = ""; /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 7; * @return The zoneId. */ public java.lang.String getZoneId() { java.lang.Object ref = zoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 7; * @return The bytes for zoneId. */ public com.google.protobuf.ByteString getZoneIdBytes() { java.lang.Object ref = zoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); zoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 7; * @param value The zoneId to set. * @return This builder for chaining. */ public Builder setZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } zoneId_ = value; onChanged(); return this; } /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 7; * @return This builder for chaining. */ public Builder clearZoneId() { zoneId_ = getDefaultInstance().getZoneId(); onChanged(); return this; } /** *
       * ID of the availability zone where the instance resides.
       * 
* * string zone_id = 7; * @param value The bytes for zoneId to set. * @return This builder for chaining. */ public Builder setZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); zoneId_ = value; onChanged(); return this; } private java.util.List networkInterfaces_ = java.util.Collections.emptyList(); private void ensureNetworkInterfacesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { networkInterfaces_ = new java.util.ArrayList(networkInterfaces_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceOrBuilder> networkInterfacesBuilder_; /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public java.util.List getNetworkInterfacesList() { if (networkInterfacesBuilder_ == null) { return java.util.Collections.unmodifiableList(networkInterfaces_); } else { return networkInterfacesBuilder_.getMessageList(); } } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public int getNetworkInterfacesCount() { if (networkInterfacesBuilder_ == null) { return networkInterfaces_.size(); } else { return networkInterfacesBuilder_.getCount(); } } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface getNetworkInterfaces(int index) { if (networkInterfacesBuilder_ == null) { return networkInterfaces_.get(index); } else { return networkInterfacesBuilder_.getMessage(index); } } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder setNetworkInterfaces( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface value) { if (networkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInterfacesIsMutable(); networkInterfaces_.set(index, value); onChanged(); } else { networkInterfacesBuilder_.setMessage(index, value); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder setNetworkInterfaces( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder builderForValue) { if (networkInterfacesBuilder_ == null) { ensureNetworkInterfacesIsMutable(); networkInterfaces_.set(index, builderForValue.build()); onChanged(); } else { networkInterfacesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder addNetworkInterfaces(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface value) { if (networkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInterfacesIsMutable(); networkInterfaces_.add(value); onChanged(); } else { networkInterfacesBuilder_.addMessage(value); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder addNetworkInterfaces( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface value) { if (networkInterfacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNetworkInterfacesIsMutable(); networkInterfaces_.add(index, value); onChanged(); } else { networkInterfacesBuilder_.addMessage(index, value); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder addNetworkInterfaces( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder builderForValue) { if (networkInterfacesBuilder_ == null) { ensureNetworkInterfacesIsMutable(); networkInterfaces_.add(builderForValue.build()); onChanged(); } else { networkInterfacesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder addNetworkInterfaces( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder builderForValue) { if (networkInterfacesBuilder_ == null) { ensureNetworkInterfacesIsMutable(); networkInterfaces_.add(index, builderForValue.build()); onChanged(); } else { networkInterfacesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder addAllNetworkInterfaces( java.lang.Iterable values) { if (networkInterfacesBuilder_ == null) { ensureNetworkInterfacesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, networkInterfaces_); onChanged(); } else { networkInterfacesBuilder_.addAllMessages(values); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder clearNetworkInterfaces() { if (networkInterfacesBuilder_ == null) { networkInterfaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { networkInterfacesBuilder_.clear(); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public Builder removeNetworkInterfaces(int index) { if (networkInterfacesBuilder_ == null) { ensureNetworkInterfacesIsMutable(); networkInterfaces_.remove(index); onChanged(); } else { networkInterfacesBuilder_.remove(index); } return this; } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder getNetworkInterfacesBuilder( int index) { return getNetworkInterfacesFieldBuilder().getBuilder(index); } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder( int index) { if (networkInterfacesBuilder_ == null) { return networkInterfaces_.get(index); } else { return networkInterfacesBuilder_.getMessageOrBuilder(index); } } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public java.util.List getNetworkInterfacesOrBuilderList() { if (networkInterfacesBuilder_ != null) { return networkInterfacesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(networkInterfaces_); } } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder addNetworkInterfacesBuilder() { return getNetworkInterfacesFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.getDefaultInstance()); } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder addNetworkInterfacesBuilder( int index) { return getNetworkInterfacesFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.getDefaultInstance()); } /** *
       * Array of network interfaces that are attached to the managed instance.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.NetworkInterface network_interfaces = 8; */ public java.util.List getNetworkInterfacesBuilderList() { return getNetworkInterfacesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceOrBuilder> getNetworkInterfacesFieldBuilder() { if (networkInterfacesBuilder_ == null) { networkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceOrBuilder>( networkInterfaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); networkInterfaces_ = null; } return networkInterfacesBuilder_; } private com.google.protobuf.Timestamp statusChangedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> statusChangedAtBuilder_; /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; * @return Whether the statusChangedAt field is set. */ public boolean hasStatusChangedAt() { return statusChangedAtBuilder_ != null || statusChangedAt_ != null; } /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; * @return The statusChangedAt. */ public com.google.protobuf.Timestamp getStatusChangedAt() { if (statusChangedAtBuilder_ == null) { return statusChangedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : statusChangedAt_; } else { return statusChangedAtBuilder_.getMessage(); } } /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ public Builder setStatusChangedAt(com.google.protobuf.Timestamp value) { if (statusChangedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } statusChangedAt_ = value; onChanged(); } else { statusChangedAtBuilder_.setMessage(value); } return this; } /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ public Builder setStatusChangedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (statusChangedAtBuilder_ == null) { statusChangedAt_ = builderForValue.build(); onChanged(); } else { statusChangedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ public Builder mergeStatusChangedAt(com.google.protobuf.Timestamp value) { if (statusChangedAtBuilder_ == null) { if (statusChangedAt_ != null) { statusChangedAt_ = com.google.protobuf.Timestamp.newBuilder(statusChangedAt_).mergeFrom(value).buildPartial(); } else { statusChangedAt_ = value; } onChanged(); } else { statusChangedAtBuilder_.mergeFrom(value); } return this; } /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ public Builder clearStatusChangedAt() { if (statusChangedAtBuilder_ == null) { statusChangedAt_ = null; onChanged(); } else { statusChangedAt_ = null; statusChangedAtBuilder_ = null; } return this; } /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ public com.google.protobuf.Timestamp.Builder getStatusChangedAtBuilder() { onChanged(); return getStatusChangedAtFieldBuilder().getBuilder(); } /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ public com.google.protobuf.TimestampOrBuilder getStatusChangedAtOrBuilder() { if (statusChangedAtBuilder_ != null) { return statusChangedAtBuilder_.getMessageOrBuilder(); } else { return statusChangedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : statusChangedAt_; } } /** *
       * The timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format when the status of the managed instance was last changed.
       * 
* * .google.protobuf.Timestamp status_changed_at = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStatusChangedAtFieldBuilder() { if (statusChangedAtBuilder_ == null) { statusChangedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStatusChangedAt(), getParentForChildren(), isClean()); statusChangedAt_ = null; } return statusChangedAtBuilder_; } @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.ManagedInstance) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ManagedInstance) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ManagedInstance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ManagedInstance(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.InstanceGroupOuterClass.ManagedInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NetworkInterfaceOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.NetworkInterface) com.google.protobuf.MessageOrBuilder { /** *
     * The index of the network interface, generated by the server, 0,1,2... etc.
     * Currently only one network interface is supported per instance.
     * 
* * string index = 1; * @return The index. */ java.lang.String getIndex(); /** *
     * The index of the network interface, generated by the server, 0,1,2... etc.
     * Currently only one network interface is supported per instance.
     * 
* * string index = 1; * @return The bytes for index. */ com.google.protobuf.ByteString getIndexBytes(); /** *
     * MAC address that is assigned to the network interface.
     * 
* * string mac_address = 2; * @return The macAddress. */ java.lang.String getMacAddress(); /** *
     * MAC address that is assigned to the network interface.
     * 
* * string mac_address = 2; * @return The bytes for macAddress. */ com.google.protobuf.ByteString getMacAddressBytes(); /** *
     * ID of the subnet.
     * 
* * string subnet_id = 3; * @return The subnetId. */ java.lang.String getSubnetId(); /** *
     * ID of the subnet.
     * 
* * string subnet_id = 3; * @return The bytes for subnetId. */ com.google.protobuf.ByteString getSubnetIdBytes(); /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; * @return Whether the primaryV4Address field is set. */ boolean hasPrimaryV4Address(); /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; * @return The primaryV4Address. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress getPrimaryV4Address(); /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder getPrimaryV4AddressOrBuilder(); /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; * @return Whether the primaryV6Address field is set. */ boolean hasPrimaryV6Address(); /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; * @return The primaryV6Address. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress getPrimaryV6Address(); /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder getPrimaryV6AddressOrBuilder(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.NetworkInterface} */ public static final class NetworkInterface extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.NetworkInterface) NetworkInterfaceOrBuilder { private static final long serialVersionUID = 0L; // Use NetworkInterface.newBuilder() to construct. private NetworkInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NetworkInterface() { index_ = ""; macAddress_ = ""; subnetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NetworkInterface(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NetworkInterface( 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(); index_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); macAddress_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 34: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder subBuilder = null; if (primaryV4Address_ != null) { subBuilder = primaryV4Address_.toBuilder(); } primaryV4Address_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(primaryV4Address_); primaryV4Address_ = subBuilder.buildPartial(); } break; } case 42: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder subBuilder = null; if (primaryV6Address_ != null) { subBuilder = primaryV6Address_.toBuilder(); } primaryV6Address_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(primaryV6Address_); primaryV6Address_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private volatile java.lang.Object index_; /** *
     * The index of the network interface, generated by the server, 0,1,2... etc.
     * Currently only one network interface is supported per instance.
     * 
* * string index = 1; * @return The index. */ @java.lang.Override public java.lang.String getIndex() { java.lang.Object ref = index_; 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(); index_ = s; return s; } } /** *
     * The index of the network interface, generated by the server, 0,1,2... etc.
     * Currently only one network interface is supported per instance.
     * 
* * string index = 1; * @return The bytes for index. */ @java.lang.Override public com.google.protobuf.ByteString getIndexBytes() { java.lang.Object ref = index_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); index_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAC_ADDRESS_FIELD_NUMBER = 2; private volatile java.lang.Object macAddress_; /** *
     * MAC address that is assigned to the network interface.
     * 
* * string mac_address = 2; * @return The macAddress. */ @java.lang.Override public java.lang.String getMacAddress() { java.lang.Object ref = macAddress_; 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(); macAddress_ = s; return s; } } /** *
     * MAC address that is assigned to the network interface.
     * 
* * string mac_address = 2; * @return The bytes for macAddress. */ @java.lang.Override public com.google.protobuf.ByteString getMacAddressBytes() { java.lang.Object ref = macAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); macAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBNET_ID_FIELD_NUMBER = 3; private volatile java.lang.Object subnetId_; /** *
     * ID of the subnet.
     * 
* * string subnet_id = 3; * @return The subnetId. */ @java.lang.Override public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } } /** *
     * ID of the subnet.
     * 
* * string subnet_id = 3; * @return The bytes for subnetId. */ @java.lang.Override public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIMARY_V4_ADDRESS_FIELD_NUMBER = 4; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress primaryV4Address_; /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; * @return Whether the primaryV4Address field is set. */ @java.lang.Override public boolean hasPrimaryV4Address() { return primaryV4Address_ != null; } /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; * @return The primaryV4Address. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress getPrimaryV4Address() { return primaryV4Address_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.getDefaultInstance() : primaryV4Address_; } /** *
     * Primary IPv4 address that is assigned to the instance for this network interface.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder getPrimaryV4AddressOrBuilder() { return getPrimaryV4Address(); } public static final int PRIMARY_V6_ADDRESS_FIELD_NUMBER = 5; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress primaryV6Address_; /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; * @return Whether the primaryV6Address field is set. */ @java.lang.Override public boolean hasPrimaryV6Address() { return primaryV6Address_ != null; } /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; * @return The primaryV6Address. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress getPrimaryV6Address() { return primaryV6Address_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.getDefaultInstance() : primaryV6Address_; } /** *
     * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
     * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder getPrimaryV6AddressOrBuilder() { return getPrimaryV6Address(); } 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(index_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, index_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(macAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, macAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetId_); } if (primaryV4Address_ != null) { output.writeMessage(4, getPrimaryV4Address()); } if (primaryV6Address_ != null) { output.writeMessage(5, getPrimaryV6Address()); } 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(index_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, index_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(macAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, macAddress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetId_); } if (primaryV4Address_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPrimaryV4Address()); } if (primaryV6Address_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPrimaryV6Address()); } 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.InstanceGroupOuterClass.NetworkInterface)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface) obj; if (!getIndex() .equals(other.getIndex())) return false; if (!getMacAddress() .equals(other.getMacAddress())) return false; if (!getSubnetId() .equals(other.getSubnetId())) return false; if (hasPrimaryV4Address() != other.hasPrimaryV4Address()) return false; if (hasPrimaryV4Address()) { if (!getPrimaryV4Address() .equals(other.getPrimaryV4Address())) return false; } if (hasPrimaryV6Address() != other.hasPrimaryV6Address()) return false; if (hasPrimaryV6Address()) { if (!getPrimaryV6Address() .equals(other.getPrimaryV6Address())) 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + getIndex().hashCode(); hash = (37 * hash) + MAC_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getMacAddress().hashCode(); hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetId().hashCode(); if (hasPrimaryV4Address()) { hash = (37 * hash) + PRIMARY_V4_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getPrimaryV4Address().hashCode(); } if (hasPrimaryV6Address()) { hash = (37 * hash) + PRIMARY_V6_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getPrimaryV6Address().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface 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.InstanceGroupOuterClass.NetworkInterface 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.NetworkInterface} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.NetworkInterface) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterfaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.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(); index_ = ""; macAddress_ = ""; subnetId_ = ""; if (primaryV4AddressBuilder_ == null) { primaryV4Address_ = null; } else { primaryV4Address_ = null; primaryV4AddressBuilder_ = null; } if (primaryV6AddressBuilder_ == null) { primaryV6Address_ = null; } else { primaryV6Address_ = null; primaryV6AddressBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface(this); result.index_ = index_; result.macAddress_ = macAddress_; result.subnetId_ = subnetId_; if (primaryV4AddressBuilder_ == null) { result.primaryV4Address_ = primaryV4Address_; } else { result.primaryV4Address_ = primaryV4AddressBuilder_.build(); } if (primaryV6AddressBuilder_ == null) { result.primaryV6Address_ = primaryV6Address_; } else { result.primaryV6Address_ = primaryV6AddressBuilder_.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.InstanceGroupOuterClass.NetworkInterface) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface.getDefaultInstance()) return this; if (!other.getIndex().isEmpty()) { index_ = other.index_; onChanged(); } if (!other.getMacAddress().isEmpty()) { macAddress_ = other.macAddress_; onChanged(); } if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); } if (other.hasPrimaryV4Address()) { mergePrimaryV4Address(other.getPrimaryV4Address()); } if (other.hasPrimaryV6Address()) { mergePrimaryV6Address(other.getPrimaryV6Address()); } 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.InstanceGroupOuterClass.NetworkInterface parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object index_ = ""; /** *
       * The index of the network interface, generated by the server, 0,1,2... etc.
       * Currently only one network interface is supported per instance.
       * 
* * string index = 1; * @return The index. */ public java.lang.String getIndex() { java.lang.Object ref = index_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); index_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The index of the network interface, generated by the server, 0,1,2... etc.
       * Currently only one network interface is supported per instance.
       * 
* * string index = 1; * @return The bytes for index. */ public com.google.protobuf.ByteString getIndexBytes() { java.lang.Object ref = index_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); index_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The index of the network interface, generated by the server, 0,1,2... etc.
       * Currently only one network interface is supported per instance.
       * 
* * string index = 1; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } index_ = value; onChanged(); return this; } /** *
       * The index of the network interface, generated by the server, 0,1,2... etc.
       * Currently only one network interface is supported per instance.
       * 
* * string index = 1; * @return This builder for chaining. */ public Builder clearIndex() { index_ = getDefaultInstance().getIndex(); onChanged(); return this; } /** *
       * The index of the network interface, generated by the server, 0,1,2... etc.
       * Currently only one network interface is supported per instance.
       * 
* * string index = 1; * @param value The bytes for index to set. * @return This builder for chaining. */ public Builder setIndexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); index_ = value; onChanged(); return this; } private java.lang.Object macAddress_ = ""; /** *
       * MAC address that is assigned to the network interface.
       * 
* * string mac_address = 2; * @return The macAddress. */ public java.lang.String getMacAddress() { java.lang.Object ref = macAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); macAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * MAC address that is assigned to the network interface.
       * 
* * string mac_address = 2; * @return The bytes for macAddress. */ public com.google.protobuf.ByteString getMacAddressBytes() { java.lang.Object ref = macAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); macAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * MAC address that is assigned to the network interface.
       * 
* * string mac_address = 2; * @param value The macAddress to set. * @return This builder for chaining. */ public Builder setMacAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } macAddress_ = value; onChanged(); return this; } /** *
       * MAC address that is assigned to the network interface.
       * 
* * string mac_address = 2; * @return This builder for chaining. */ public Builder clearMacAddress() { macAddress_ = getDefaultInstance().getMacAddress(); onChanged(); return this; } /** *
       * MAC address that is assigned to the network interface.
       * 
* * string mac_address = 2; * @param value The bytes for macAddress to set. * @return This builder for chaining. */ public Builder setMacAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); macAddress_ = value; onChanged(); return this; } private java.lang.Object subnetId_ = ""; /** *
       * ID of the subnet.
       * 
* * string subnet_id = 3; * @return The subnetId. */ public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 3; * @return The bytes for subnetId. */ public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 3; * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetId_ = value; onChanged(); return this; } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 3; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = getDefaultInstance().getSubnetId(); onChanged(); return this; } /** *
       * ID of the subnet.
       * 
* * string subnet_id = 3; * @param value The bytes for subnetId to set. * @return This builder for chaining. */ public Builder setSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetId_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress primaryV4Address_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder> primaryV4AddressBuilder_; /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; * @return Whether the primaryV4Address field is set. */ public boolean hasPrimaryV4Address() { return primaryV4AddressBuilder_ != null || primaryV4Address_ != null; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; * @return The primaryV4Address. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress getPrimaryV4Address() { if (primaryV4AddressBuilder_ == null) { return primaryV4Address_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.getDefaultInstance() : primaryV4Address_; } else { return primaryV4AddressBuilder_.getMessage(); } } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ public Builder setPrimaryV4Address(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress value) { if (primaryV4AddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryV4Address_ = value; onChanged(); } else { primaryV4AddressBuilder_.setMessage(value); } return this; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ public Builder setPrimaryV4Address( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder builderForValue) { if (primaryV4AddressBuilder_ == null) { primaryV4Address_ = builderForValue.build(); onChanged(); } else { primaryV4AddressBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ public Builder mergePrimaryV4Address(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress value) { if (primaryV4AddressBuilder_ == null) { if (primaryV4Address_ != null) { primaryV4Address_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.newBuilder(primaryV4Address_).mergeFrom(value).buildPartial(); } else { primaryV4Address_ = value; } onChanged(); } else { primaryV4AddressBuilder_.mergeFrom(value); } return this; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ public Builder clearPrimaryV4Address() { if (primaryV4AddressBuilder_ == null) { primaryV4Address_ = null; onChanged(); } else { primaryV4Address_ = null; primaryV4AddressBuilder_ = null; } return this; } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder getPrimaryV4AddressBuilder() { onChanged(); return getPrimaryV4AddressFieldBuilder().getBuilder(); } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder getPrimaryV4AddressOrBuilder() { if (primaryV4AddressBuilder_ != null) { return primaryV4AddressBuilder_.getMessageOrBuilder(); } else { return primaryV4Address_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.getDefaultInstance() : primaryV4Address_; } } /** *
       * Primary IPv4 address that is assigned to the instance for this network interface.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v4_address = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder> getPrimaryV4AddressFieldBuilder() { if (primaryV4AddressBuilder_ == null) { primaryV4AddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder>( getPrimaryV4Address(), getParentForChildren(), isClean()); primaryV4Address_ = null; } return primaryV4AddressBuilder_; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress primaryV6Address_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder> primaryV6AddressBuilder_; /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; * @return Whether the primaryV6Address field is set. */ public boolean hasPrimaryV6Address() { return primaryV6AddressBuilder_ != null || primaryV6Address_ != null; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; * @return The primaryV6Address. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress getPrimaryV6Address() { if (primaryV6AddressBuilder_ == null) { return primaryV6Address_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.getDefaultInstance() : primaryV6Address_; } else { return primaryV6AddressBuilder_.getMessage(); } } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ public Builder setPrimaryV6Address(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress value) { if (primaryV6AddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } primaryV6Address_ = value; onChanged(); } else { primaryV6AddressBuilder_.setMessage(value); } return this; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ public Builder setPrimaryV6Address( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder builderForValue) { if (primaryV6AddressBuilder_ == null) { primaryV6Address_ = builderForValue.build(); onChanged(); } else { primaryV6AddressBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ public Builder mergePrimaryV6Address(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress value) { if (primaryV6AddressBuilder_ == null) { if (primaryV6Address_ != null) { primaryV6Address_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.newBuilder(primaryV6Address_).mergeFrom(value).buildPartial(); } else { primaryV6Address_ = value; } onChanged(); } else { primaryV6AddressBuilder_.mergeFrom(value); } return this; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ public Builder clearPrimaryV6Address() { if (primaryV6AddressBuilder_ == null) { primaryV6Address_ = null; onChanged(); } else { primaryV6Address_ = null; primaryV6AddressBuilder_ = null; } return this; } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder getPrimaryV6AddressBuilder() { onChanged(); return getPrimaryV6AddressFieldBuilder().getBuilder(); } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder getPrimaryV6AddressOrBuilder() { if (primaryV6AddressBuilder_ != null) { return primaryV6AddressBuilder_.getMessageOrBuilder(); } else { return primaryV6Address_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.getDefaultInstance() : primaryV6Address_; } } /** *
       * Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
       * 
* * .yandex.cloud.compute.v1.instancegroup.PrimaryAddress primary_v6_address = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder> getPrimaryV6AddressFieldBuilder() { if (primaryV6AddressBuilder_ == null) { primaryV6AddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder>( getPrimaryV6Address(), getParentForChildren(), isClean()); primaryV6Address_ = null; } return primaryV6AddressBuilder_; } @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.NetworkInterface) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.NetworkInterface) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.NetworkInterface getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NetworkInterface parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NetworkInterface(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.InstanceGroupOuterClass.NetworkInterface getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrimaryAddressOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.PrimaryAddress) com.google.protobuf.MessageOrBuilder { /** *
     * An IPv4 internal network address that is assigned to the managed instance for this network interface.
     * If not specified by the user, an unused internal IP is assigned by the system.
     * 
* * string address = 1; * @return The address. */ java.lang.String getAddress(); /** *
     * An IPv4 internal network address that is assigned to the managed instance for this network interface.
     * If not specified by the user, an unused internal IP is assigned by the system.
     * 
* * string address = 1; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * One-to-one NAT configuration. If missing, NAT has not been set up.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; * @return Whether the oneToOneNat field is set. */ boolean hasOneToOneNat(); /** *
     * One-to-one NAT configuration. If missing, NAT has not been set up.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; * @return The oneToOneNat. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat getOneToOneNat(); /** *
     * One-to-one NAT configuration. If missing, NAT has not been set up.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatOrBuilder getOneToOneNatOrBuilder(); /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ java.util.List getDnsRecordsList(); /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord getDnsRecords(int index); /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ int getDnsRecordsCount(); /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ java.util.List getDnsRecordsOrBuilderList(); /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PrimaryAddress} */ public static final class PrimaryAddress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.PrimaryAddress) PrimaryAddressOrBuilder { private static final long serialVersionUID = 0L; // Use PrimaryAddress.newBuilder() to construct. private PrimaryAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrimaryAddress() { address_ = ""; dnsRecords_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PrimaryAddress(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrimaryAddress( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 18: { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.Builder subBuilder = null; if (oneToOneNat_ != null) { subBuilder = oneToOneNat_.toBuilder(); } oneToOneNat_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(oneToOneNat_); oneToOneNat_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecords_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dnsRecords_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecords_ = java.util.Collections.unmodifiableList(dnsRecords_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** *
     * An IPv4 internal network address that is assigned to the managed instance for this network interface.
     * If not specified by the user, an unused internal IP is assigned by the system.
     * 
* * string address = 1; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** *
     * An IPv4 internal network address that is assigned to the managed instance for this network interface.
     * If not specified by the user, an unused internal IP is assigned by the system.
     * 
* * string address = 1; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ONE_TO_ONE_NAT_FIELD_NUMBER = 2; private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat oneToOneNat_; /** *
     * One-to-one NAT configuration. If missing, NAT has not been set up.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; * @return Whether the oneToOneNat field is set. */ @java.lang.Override public boolean hasOneToOneNat() { return oneToOneNat_ != null; } /** *
     * One-to-one NAT configuration. If missing, NAT has not been set up.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; * @return The oneToOneNat. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat getOneToOneNat() { return oneToOneNat_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.getDefaultInstance() : oneToOneNat_; } /** *
     * One-to-one NAT configuration. If missing, NAT has not been set up.
     * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatOrBuilder getOneToOneNatOrBuilder() { return getOneToOneNat(); } public static final int DNS_RECORDS_FIELD_NUMBER = 3; private java.util.List dnsRecords_; /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public java.util.List getDnsRecordsList() { return dnsRecords_; } /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public java.util.List getDnsRecordsOrBuilderList() { return dnsRecords_; } /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public int getDnsRecordsCount() { return dnsRecords_.size(); } /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord getDnsRecords(int index) { return dnsRecords_.get(index); } /** *
     * Internal DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder( int index) { return dnsRecords_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (oneToOneNat_ != null) { output.writeMessage(2, getOneToOneNat()); } for (int i = 0; i < dnsRecords_.size(); i++) { output.writeMessage(3, dnsRecords_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (oneToOneNat_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOneToOneNat()); } for (int i = 0; i < dnsRecords_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, dnsRecords_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress) obj; if (!getAddress() .equals(other.getAddress())) return false; if (hasOneToOneNat() != other.hasOneToOneNat()) return false; if (hasOneToOneNat()) { if (!getOneToOneNat() .equals(other.getOneToOneNat())) return false; } if (!getDnsRecordsList() .equals(other.getDnsRecordsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); if (hasOneToOneNat()) { hash = (37 * hash) + ONE_TO_ONE_NAT_FIELD_NUMBER; hash = (53 * hash) + getOneToOneNat().hashCode(); } if (getDnsRecordsCount() > 0) { hash = (37 * hash) + DNS_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getDnsRecordsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress 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.InstanceGroupOuterClass.PrimaryAddress 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.PrimaryAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.PrimaryAddress) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDnsRecordsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); address_ = ""; if (oneToOneNatBuilder_ == null) { oneToOneNat_ = null; } else { oneToOneNat_ = null; oneToOneNatBuilder_ = null; } if (dnsRecordsBuilder_ == null) { dnsRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dnsRecordsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress(this); int from_bitField0_ = bitField0_; result.address_ = address_; if (oneToOneNatBuilder_ == null) { result.oneToOneNat_ = oneToOneNat_; } else { result.oneToOneNat_ = oneToOneNatBuilder_.build(); } if (dnsRecordsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dnsRecords_ = java.util.Collections.unmodifiableList(dnsRecords_); bitField0_ = (bitField0_ & ~0x00000001); } result.dnsRecords_ = dnsRecords_; } else { result.dnsRecords_ = dnsRecordsBuilder_.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.InstanceGroupOuterClass.PrimaryAddress) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (other.hasOneToOneNat()) { mergeOneToOneNat(other.getOneToOneNat()); } if (dnsRecordsBuilder_ == null) { if (!other.dnsRecords_.isEmpty()) { if (dnsRecords_.isEmpty()) { dnsRecords_ = other.dnsRecords_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDnsRecordsIsMutable(); dnsRecords_.addAll(other.dnsRecords_); } onChanged(); } } else { if (!other.dnsRecords_.isEmpty()) { if (dnsRecordsBuilder_.isEmpty()) { dnsRecordsBuilder_.dispose(); dnsRecordsBuilder_ = null; dnsRecords_ = other.dnsRecords_; bitField0_ = (bitField0_ & ~0x00000001); dnsRecordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDnsRecordsFieldBuilder() : null; } else { dnsRecordsBuilder_.addAllMessages(other.dnsRecords_); } } } 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.InstanceGroupOuterClass.PrimaryAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object address_ = ""; /** *
       * An IPv4 internal network address that is assigned to the managed instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * An IPv4 internal network address that is assigned to the managed instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * An IPv4 internal network address that is assigned to the managed instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * An IPv4 internal network address that is assigned to the managed instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * An IPv4 internal network address that is assigned to the managed instance for this network interface.
       * If not specified by the user, an unused internal IP is assigned by the system.
       * 
* * string address = 1; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat oneToOneNat_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatOrBuilder> oneToOneNatBuilder_; /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; * @return Whether the oneToOneNat field is set. */ public boolean hasOneToOneNat() { return oneToOneNatBuilder_ != null || oneToOneNat_ != null; } /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; * @return The oneToOneNat. */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat getOneToOneNat() { if (oneToOneNatBuilder_ == null) { return oneToOneNat_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.getDefaultInstance() : oneToOneNat_; } else { return oneToOneNatBuilder_.getMessage(); } } /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ public Builder setOneToOneNat(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat value) { if (oneToOneNatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } oneToOneNat_ = value; onChanged(); } else { oneToOneNatBuilder_.setMessage(value); } return this; } /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ public Builder setOneToOneNat( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.Builder builderForValue) { if (oneToOneNatBuilder_ == null) { oneToOneNat_ = builderForValue.build(); onChanged(); } else { oneToOneNatBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ public Builder mergeOneToOneNat(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat value) { if (oneToOneNatBuilder_ == null) { if (oneToOneNat_ != null) { oneToOneNat_ = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.newBuilder(oneToOneNat_).mergeFrom(value).buildPartial(); } else { oneToOneNat_ = value; } onChanged(); } else { oneToOneNatBuilder_.mergeFrom(value); } return this; } /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ public Builder clearOneToOneNat() { if (oneToOneNatBuilder_ == null) { oneToOneNat_ = null; onChanged(); } else { oneToOneNat_ = null; oneToOneNatBuilder_ = null; } return this; } /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.Builder getOneToOneNatBuilder() { onChanged(); return getOneToOneNatFieldBuilder().getBuilder(); } /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatOrBuilder getOneToOneNatOrBuilder() { if (oneToOneNatBuilder_ != null) { return oneToOneNatBuilder_.getMessageOrBuilder(); } else { return oneToOneNat_ == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.getDefaultInstance() : oneToOneNat_; } } /** *
       * One-to-one NAT configuration. If missing, NAT has not been set up.
       * 
* * .yandex.cloud.compute.v1.instancegroup.OneToOneNat one_to_one_nat = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatOrBuilder> getOneToOneNatFieldBuilder() { if (oneToOneNatBuilder_ == null) { oneToOneNatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatOrBuilder>( getOneToOneNat(), getParentForChildren(), isClean()); oneToOneNat_ = null; } return oneToOneNatBuilder_; } private java.util.List dnsRecords_ = java.util.Collections.emptyList(); private void ensureDnsRecordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dnsRecords_ = new java.util.ArrayList(dnsRecords_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder> dnsRecordsBuilder_; /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public java.util.List getDnsRecordsList() { if (dnsRecordsBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsRecords_); } else { return dnsRecordsBuilder_.getMessageList(); } } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public int getDnsRecordsCount() { if (dnsRecordsBuilder_ == null) { return dnsRecords_.size(); } else { return dnsRecordsBuilder_.getCount(); } } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord getDnsRecords(int index) { if (dnsRecordsBuilder_ == null) { return dnsRecords_.get(index); } else { return dnsRecordsBuilder_.getMessage(index); } } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder setDnsRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord value) { if (dnsRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordsIsMutable(); dnsRecords_.set(index, value); onChanged(); } else { dnsRecordsBuilder_.setMessage(index, value); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder setDnsRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder builderForValue) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); dnsRecords_.set(index, builderForValue.build()); onChanged(); } else { dnsRecordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addDnsRecords(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord value) { if (dnsRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordsIsMutable(); dnsRecords_.add(value); onChanged(); } else { dnsRecordsBuilder_.addMessage(value); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addDnsRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord value) { if (dnsRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordsIsMutable(); dnsRecords_.add(index, value); onChanged(); } else { dnsRecordsBuilder_.addMessage(index, value); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addDnsRecords( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder builderForValue) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); dnsRecords_.add(builderForValue.build()); onChanged(); } else { dnsRecordsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addDnsRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder builderForValue) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); dnsRecords_.add(index, builderForValue.build()); onChanged(); } else { dnsRecordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addAllDnsRecords( java.lang.Iterable values) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dnsRecords_); onChanged(); } else { dnsRecordsBuilder_.addAllMessages(values); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder clearDnsRecords() { if (dnsRecordsBuilder_ == null) { dnsRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dnsRecordsBuilder_.clear(); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder removeDnsRecords(int index) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); dnsRecords_.remove(index); onChanged(); } else { dnsRecordsBuilder_.remove(index); } return this; } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder getDnsRecordsBuilder( int index) { return getDnsRecordsFieldBuilder().getBuilder(index); } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder( int index) { if (dnsRecordsBuilder_ == null) { return dnsRecords_.get(index); } else { return dnsRecordsBuilder_.getMessageOrBuilder(index); } } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public java.util.List getDnsRecordsOrBuilderList() { if (dnsRecordsBuilder_ != null) { return dnsRecordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dnsRecords_); } } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder addDnsRecordsBuilder() { return getDnsRecordsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.getDefaultInstance()); } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder addDnsRecordsBuilder( int index) { return getDnsRecordsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.getDefaultInstance()); } /** *
       * Internal DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public java.util.List getDnsRecordsBuilderList() { return getDnsRecordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder> getDnsRecordsFieldBuilder() { if (dnsRecordsBuilder_ == null) { dnsRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder>( dnsRecords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dnsRecords_ = null; } return dnsRecordsBuilder_; } @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.PrimaryAddress) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.PrimaryAddress) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.PrimaryAddress getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PrimaryAddress parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrimaryAddress(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.InstanceGroupOuterClass.PrimaryAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OneToOneNatOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.OneToOneNat) com.google.protobuf.MessageOrBuilder { /** *
     * An IPv4 external network address that is assigned to the managed instance for this network interface.
     * 
* * string address = 1; * @return The address. */ java.lang.String getAddress(); /** *
     * An IPv4 external network address that is assigned to the managed instance for this network interface.
     * 
* * string address = 1; * @return The bytes for address. */ com.google.protobuf.ByteString getAddressBytes(); /** *
     * External IP address version.
     * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @return The enum numeric value on the wire for ipVersion. */ int getIpVersionValue(); /** *
     * External IP address version.
     * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @return The ipVersion. */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion getIpVersion(); /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ java.util.List getDnsRecordsList(); /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord getDnsRecords(int index); /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ int getDnsRecordsCount(); /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ java.util.List getDnsRecordsOrBuilderList(); /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.OneToOneNat} */ public static final class OneToOneNat extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.OneToOneNat) OneToOneNatOrBuilder { private static final long serialVersionUID = 0L; // Use OneToOneNat.newBuilder() to construct. private OneToOneNat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OneToOneNat() { address_ = ""; ipVersion_ = 0; dnsRecords_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OneToOneNat(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OneToOneNat( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); address_ = s; break; } case 16: { int rawValue = input.readEnum(); ipVersion_ = rawValue; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecords_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dnsRecords_.add( input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { dnsRecords_ = java.util.Collections.unmodifiableList(dnsRecords_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.Builder.class); } public static final int ADDRESS_FIELD_NUMBER = 1; private volatile java.lang.Object address_; /** *
     * An IPv4 external network address that is assigned to the managed instance for this network interface.
     * 
* * string address = 1; * @return The address. */ @java.lang.Override public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } } /** *
     * An IPv4 external network address that is assigned to the managed instance for this network interface.
     * 
* * string address = 1; * @return The bytes for address. */ @java.lang.Override public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IP_VERSION_FIELD_NUMBER = 2; private int ipVersion_; /** *
     * External IP address version.
     * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @return The enum numeric value on the wire for ipVersion. */ @java.lang.Override public int getIpVersionValue() { return ipVersion_; } /** *
     * External IP address version.
     * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @return The ipVersion. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion getIpVersion() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.valueOf(ipVersion_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.UNRECOGNIZED : result; } public static final int DNS_RECORDS_FIELD_NUMBER = 3; private java.util.List dnsRecords_; /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public java.util.List getDnsRecordsList() { return dnsRecords_; } /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public java.util.List getDnsRecordsOrBuilderList() { return dnsRecords_; } /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public int getDnsRecordsCount() { return dnsRecords_.size(); } /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord getDnsRecords(int index) { return dnsRecords_.get(index); } /** *
     * External DNS configuration.
     * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder( int index) { return dnsRecords_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (ipVersion_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.IP_VERSION_UNSPECIFIED.getNumber()) { output.writeEnum(2, ipVersion_); } for (int i = 0; i < dnsRecords_.size(); i++) { output.writeMessage(3, dnsRecords_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(address_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (ipVersion_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.IP_VERSION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, ipVersion_); } for (int i = 0; i < dnsRecords_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, dnsRecords_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat) obj; if (!getAddress() .equals(other.getAddress())) return false; if (ipVersion_ != other.ipVersion_) return false; if (!getDnsRecordsList() .equals(other.getDnsRecordsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (37 * hash) + IP_VERSION_FIELD_NUMBER; hash = (53 * hash) + ipVersion_; if (getDnsRecordsCount() > 0) { hash = (37 * hash) + DNS_RECORDS_FIELD_NUMBER; hash = (53 * hash) + getDnsRecordsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat 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.InstanceGroupOuterClass.OneToOneNat 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.OneToOneNat} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.OneToOneNat) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNatOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDnsRecordsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); address_ = ""; ipVersion_ = 0; if (dnsRecordsBuilder_ == null) { dnsRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dnsRecordsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat(this); int from_bitField0_ = bitField0_; result.address_ = address_; result.ipVersion_ = ipVersion_; if (dnsRecordsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { dnsRecords_ = java.util.Collections.unmodifiableList(dnsRecords_); bitField0_ = (bitField0_ & ~0x00000001); } result.dnsRecords_ = dnsRecords_; } else { result.dnsRecords_ = dnsRecordsBuilder_.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.InstanceGroupOuterClass.OneToOneNat) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat.getDefaultInstance()) return this; if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } if (other.ipVersion_ != 0) { setIpVersionValue(other.getIpVersionValue()); } if (dnsRecordsBuilder_ == null) { if (!other.dnsRecords_.isEmpty()) { if (dnsRecords_.isEmpty()) { dnsRecords_ = other.dnsRecords_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDnsRecordsIsMutable(); dnsRecords_.addAll(other.dnsRecords_); } onChanged(); } } else { if (!other.dnsRecords_.isEmpty()) { if (dnsRecordsBuilder_.isEmpty()) { dnsRecordsBuilder_.dispose(); dnsRecordsBuilder_ = null; dnsRecords_ = other.dnsRecords_; bitField0_ = (bitField0_ & ~0x00000001); dnsRecordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDnsRecordsFieldBuilder() : null; } else { dnsRecordsBuilder_.addAllMessages(other.dnsRecords_); } } } 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.InstanceGroupOuterClass.OneToOneNat parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object address_ = ""; /** *
       * An IPv4 external network address that is assigned to the managed instance for this network interface.
       * 
* * string address = 1; * @return The address. */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * An IPv4 external network address that is assigned to the managed instance for this network interface.
       * 
* * string address = 1; * @return The bytes for address. */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * An IPv4 external network address that is assigned to the managed instance for this network interface.
       * 
* * string address = 1; * @param value The address to set. * @return This builder for chaining. */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /** *
       * An IPv4 external network address that is assigned to the managed instance for this network interface.
       * 
* * string address = 1; * @return This builder for chaining. */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** *
       * An IPv4 external network address that is assigned to the managed instance for this network interface.
       * 
* * string address = 1; * @param value The bytes for address to set. * @return This builder for chaining. */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } private int ipVersion_ = 0; /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @return The enum numeric value on the wire for ipVersion. */ @java.lang.Override public int getIpVersionValue() { return ipVersion_; } /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @param value The enum numeric value on the wire for ipVersion to set. * @return This builder for chaining. */ public Builder setIpVersionValue(int value) { ipVersion_ = value; onChanged(); return this; } /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @return The ipVersion. */ @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion getIpVersion() { @SuppressWarnings("deprecation") yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.valueOf(ipVersion_); return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion.UNRECOGNIZED : result; } /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @param value The ipVersion to set. * @return This builder for chaining. */ public Builder setIpVersion(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.IpVersion value) { if (value == null) { throw new NullPointerException(); } ipVersion_ = value.getNumber(); onChanged(); return this; } /** *
       * External IP address version.
       * 
* * .yandex.cloud.compute.v1.instancegroup.IpVersion ip_version = 2; * @return This builder for chaining. */ public Builder clearIpVersion() { ipVersion_ = 0; onChanged(); return this; } private java.util.List dnsRecords_ = java.util.Collections.emptyList(); private void ensureDnsRecordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dnsRecords_ = new java.util.ArrayList(dnsRecords_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder> dnsRecordsBuilder_; /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public java.util.List getDnsRecordsList() { if (dnsRecordsBuilder_ == null) { return java.util.Collections.unmodifiableList(dnsRecords_); } else { return dnsRecordsBuilder_.getMessageList(); } } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public int getDnsRecordsCount() { if (dnsRecordsBuilder_ == null) { return dnsRecords_.size(); } else { return dnsRecordsBuilder_.getCount(); } } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord getDnsRecords(int index) { if (dnsRecordsBuilder_ == null) { return dnsRecords_.get(index); } else { return dnsRecordsBuilder_.getMessage(index); } } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder setDnsRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord value) { if (dnsRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordsIsMutable(); dnsRecords_.set(index, value); onChanged(); } else { dnsRecordsBuilder_.setMessage(index, value); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder setDnsRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder builderForValue) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); dnsRecords_.set(index, builderForValue.build()); onChanged(); } else { dnsRecordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addDnsRecords(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord value) { if (dnsRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordsIsMutable(); dnsRecords_.add(value); onChanged(); } else { dnsRecordsBuilder_.addMessage(value); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addDnsRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord value) { if (dnsRecordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDnsRecordsIsMutable(); dnsRecords_.add(index, value); onChanged(); } else { dnsRecordsBuilder_.addMessage(index, value); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addDnsRecords( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder builderForValue) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); dnsRecords_.add(builderForValue.build()); onChanged(); } else { dnsRecordsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addDnsRecords( int index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder builderForValue) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); dnsRecords_.add(index, builderForValue.build()); onChanged(); } else { dnsRecordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder addAllDnsRecords( java.lang.Iterable values) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dnsRecords_); onChanged(); } else { dnsRecordsBuilder_.addAllMessages(values); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder clearDnsRecords() { if (dnsRecordsBuilder_ == null) { dnsRecords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dnsRecordsBuilder_.clear(); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public Builder removeDnsRecords(int index) { if (dnsRecordsBuilder_ == null) { ensureDnsRecordsIsMutable(); dnsRecords_.remove(index); onChanged(); } else { dnsRecordsBuilder_.remove(index); } return this; } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder getDnsRecordsBuilder( int index) { return getDnsRecordsFieldBuilder().getBuilder(index); } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder( int index) { if (dnsRecordsBuilder_ == null) { return dnsRecords_.get(index); } else { return dnsRecordsBuilder_.getMessageOrBuilder(index); } } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public java.util.List getDnsRecordsOrBuilderList() { if (dnsRecordsBuilder_ != null) { return dnsRecordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dnsRecords_); } } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder addDnsRecordsBuilder() { return getDnsRecordsFieldBuilder().addBuilder( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.getDefaultInstance()); } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder addDnsRecordsBuilder( int index) { return getDnsRecordsFieldBuilder().addBuilder( index, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.getDefaultInstance()); } /** *
       * External DNS configuration.
       * 
* * repeated .yandex.cloud.compute.v1.instancegroup.DnsRecord dns_records = 3; */ public java.util.List getDnsRecordsBuilderList() { return getDnsRecordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder> getDnsRecordsFieldBuilder() { if (dnsRecordsBuilder_ == null) { dnsRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder>( dnsRecords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dnsRecords_ = null; } return dnsRecordsBuilder_; } @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.OneToOneNat) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.OneToOneNat) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.OneToOneNat getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OneToOneNat parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OneToOneNat(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.InstanceGroupOuterClass.OneToOneNat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DnsRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.DnsRecord) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the A/AAAA record as specified when creating the instance.
     * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ java.lang.String getFqdn(); /** *
     * Name of the A/AAAA record as specified when creating the instance.
     * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ com.google.protobuf.ByteString getFqdnBytes(); /** *
     * DNS zone id (optional, if not set, some private zone is used).
     * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ java.lang.String getDnsZoneId(); /** *
     * DNS zone id (optional, if not set, some private zone is used).
     * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ com.google.protobuf.ByteString getDnsZoneIdBytes(); /** *
     * DNS record ttl (optional, if 0, a reasonable default is used).
     * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ long getTtl(); /** *
     * When true, indicates there is a corresponding auto-created PTR DNS record.
     * 
* * bool ptr = 4; * @return The ptr. */ boolean getPtr(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DnsRecord} */ public static final class DnsRecord extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.DnsRecord) DnsRecordOrBuilder { private static final long serialVersionUID = 0L; // Use DnsRecord.newBuilder() to construct. private DnsRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DnsRecord() { fqdn_ = ""; dnsZoneId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DnsRecord(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DnsRecord( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); fqdn_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); dnsZoneId_ = s; break; } case 24: { ttl_ = input.readInt64(); break; } case 32: { ptr_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder.class); } public static final int FQDN_FIELD_NUMBER = 1; private volatile java.lang.Object fqdn_; /** *
     * Name of the A/AAAA record as specified when creating the instance.
     * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ @java.lang.Override public java.lang.String getFqdn() { java.lang.Object ref = fqdn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqdn_ = s; return s; } } /** *
     * Name of the A/AAAA record as specified when creating the instance.
     * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
     * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ @java.lang.Override public com.google.protobuf.ByteString getFqdnBytes() { java.lang.Object ref = fqdn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqdn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DNS_ZONE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object dnsZoneId_; /** *
     * DNS zone id (optional, if not set, some private zone is used).
     * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ @java.lang.Override public java.lang.String getDnsZoneId() { java.lang.Object ref = dnsZoneId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dnsZoneId_ = s; return s; } } /** *
     * DNS zone id (optional, if not set, some private zone is used).
     * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ @java.lang.Override public com.google.protobuf.ByteString getDnsZoneIdBytes() { java.lang.Object ref = dnsZoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dnsZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TTL_FIELD_NUMBER = 3; private long ttl_; /** *
     * DNS record ttl (optional, if 0, a reasonable default is used).
     * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ @java.lang.Override public long getTtl() { return ttl_; } public static final int PTR_FIELD_NUMBER = 4; private boolean ptr_; /** *
     * When true, indicates there is a corresponding auto-created PTR DNS record.
     * 
* * bool ptr = 4; * @return The ptr. */ @java.lang.Override public boolean getPtr() { return ptr_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fqdn_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dnsZoneId_); } if (ttl_ != 0L) { output.writeInt64(3, ttl_); } if (ptr_ != false) { output.writeBool(4, ptr_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fqdn_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dnsZoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dnsZoneId_); } if (ttl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, ttl_); } if (ptr_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, ptr_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord) obj; if (!getFqdn() .equals(other.getFqdn())) return false; if (!getDnsZoneId() .equals(other.getDnsZoneId())) return false; if (getTtl() != other.getTtl()) return false; if (getPtr() != other.getPtr()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FQDN_FIELD_NUMBER; hash = (53 * hash) + getFqdn().hashCode(); hash = (37 * hash) + DNS_ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getDnsZoneId().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); hash = (37 * hash) + PTR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPtr()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord 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.InstanceGroupOuterClass.DnsRecord 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.DnsRecord} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.DnsRecord) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); fqdn_ = ""; dnsZoneId_ = ""; ttl_ = 0L; ptr_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord(this); result.fqdn_ = fqdn_; result.dnsZoneId_ = dnsZoneId_; result.ttl_ = ttl_; result.ptr_ = ptr_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord.getDefaultInstance()) return this; if (!other.getFqdn().isEmpty()) { fqdn_ = other.fqdn_; onChanged(); } if (!other.getDnsZoneId().isEmpty()) { dnsZoneId_ = other.dnsZoneId_; onChanged(); } if (other.getTtl() != 0L) { setTtl(other.getTtl()); } if (other.getPtr() != false) { setPtr(other.getPtr()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object fqdn_ = ""; /** *
       * Name of the A/AAAA record as specified when creating the instance.
       * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The fqdn. */ public java.lang.String getFqdn() { java.lang.Object ref = fqdn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fqdn_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the A/AAAA record as specified when creating the instance.
       * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return The bytes for fqdn. */ public com.google.protobuf.ByteString getFqdnBytes() { java.lang.Object ref = fqdn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fqdn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the A/AAAA record as specified when creating the instance.
       * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @param value The fqdn to set. * @return This builder for chaining. */ public Builder setFqdn( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fqdn_ = value; onChanged(); return this; } /** *
       * Name of the A/AAAA record as specified when creating the instance.
       * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFqdn() { fqdn_ = getDefaultInstance().getFqdn(); onChanged(); return this; } /** *
       * Name of the A/AAAA record as specified when creating the instance.
       * Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
       * 
* * string fqdn = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for fqdn to set. * @return This builder for chaining. */ public Builder setFqdnBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fqdn_ = value; onChanged(); return this; } private java.lang.Object dnsZoneId_ = ""; /** *
       * DNS zone id (optional, if not set, some private zone is used).
       * 
* * string dns_zone_id = 2; * @return The dnsZoneId. */ public java.lang.String getDnsZoneId() { java.lang.Object ref = dnsZoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dnsZoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * DNS zone id (optional, if not set, some private zone is used).
       * 
* * string dns_zone_id = 2; * @return The bytes for dnsZoneId. */ public com.google.protobuf.ByteString getDnsZoneIdBytes() { java.lang.Object ref = dnsZoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dnsZoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * DNS zone id (optional, if not set, some private zone is used).
       * 
* * string dns_zone_id = 2; * @param value The dnsZoneId to set. * @return This builder for chaining. */ public Builder setDnsZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dnsZoneId_ = value; onChanged(); return this; } /** *
       * DNS zone id (optional, if not set, some private zone is used).
       * 
* * string dns_zone_id = 2; * @return This builder for chaining. */ public Builder clearDnsZoneId() { dnsZoneId_ = getDefaultInstance().getDnsZoneId(); onChanged(); return this; } /** *
       * DNS zone id (optional, if not set, some private zone is used).
       * 
* * string dns_zone_id = 2; * @param value The bytes for dnsZoneId to set. * @return This builder for chaining. */ public Builder setDnsZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dnsZoneId_ = value; onChanged(); return this; } private long ttl_ ; /** *
       * DNS record ttl (optional, if 0, a reasonable default is used).
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return The ttl. */ @java.lang.Override public long getTtl() { return ttl_; } /** *
       * DNS record ttl (optional, if 0, a reasonable default is used).
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @param value The ttl to set. * @return This builder for chaining. */ public Builder setTtl(long value) { ttl_ = value; onChanged(); return this; } /** *
       * DNS record ttl (optional, if 0, a reasonable default is used).
       * 
* * int64 ttl = 3 [(.yandex.cloud.value) = "0-86400"]; * @return This builder for chaining. */ public Builder clearTtl() { ttl_ = 0L; onChanged(); return this; } private boolean ptr_ ; /** *
       * When true, indicates there is a corresponding auto-created PTR DNS record.
       * 
* * bool ptr = 4; * @return The ptr. */ @java.lang.Override public boolean getPtr() { return ptr_; } /** *
       * When true, indicates there is a corresponding auto-created PTR DNS record.
       * 
* * bool ptr = 4; * @param value The ptr to set. * @return This builder for chaining. */ public Builder setPtr(boolean value) { ptr_ = value; onChanged(); return this; } /** *
       * When true, indicates there is a corresponding auto-created PTR DNS record.
       * 
* * bool ptr = 4; * @return This builder for chaining. */ public Builder clearPtr() { ptr_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.DnsRecord) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.DnsRecord) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DnsRecord getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DnsRecord parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DnsRecord(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.InstanceGroupOuterClass.DnsRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LogRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.LogRecord) com.google.protobuf.MessageOrBuilder { /** *
     * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp timestamp = 1; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** *
     * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp timestamp = 1; * @return The timestamp. */ com.google.protobuf.Timestamp getTimestamp(); /** *
     * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** *
     * The log message.
     * 
* * string message = 2; * @return The message. */ java.lang.String getMessage(); /** *
     * The log message.
     * 
* * string message = 2; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code yandex.cloud.compute.v1.instancegroup.LogRecord} */ public static final class LogRecord extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.LogRecord) LogRecordOrBuilder { private static final long serialVersionUID = 0L; // Use LogRecord.newBuilder() to construct. private LogRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LogRecord() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LogRecord(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LogRecord( 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: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); message_ = 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.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp timestamp_; /** *
     * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp timestamp = 1; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** *
     * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp timestamp = 1; * @return The timestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** *
     * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp timestamp = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** *
     * The log message.
     * 
* * string message = 2; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** *
     * The log message.
     * 
* * string message = 2; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = 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 (timestamp_ != null) { output.writeMessage(1, getTimestamp()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTimestamp()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } 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.InstanceGroupOuterClass.LogRecord)) { return super.equals(obj); } yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord) obj; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getMessage() .equals(other.getMessage())) 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 (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord 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.InstanceGroupOuterClass.LogRecord 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.LogRecord} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.LogRecord) yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.Builder.class); } // Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.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(); if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } message_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_descriptor; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord getDefaultInstanceForType() { return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord build() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord buildPartial() { yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord(this); if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.message_ = message_; 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.InstanceGroupOuterClass.LogRecord) { return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord other) { if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.getDefaultInstance()) return this; if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; 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.InstanceGroupOuterClass.LogRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** *
       * Log timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp timestamp = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private java.lang.Object message_ = ""; /** *
       * The log message.
       * 
* * string message = 2; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The log message.
       * 
* * string message = 2; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The log message.
       * 
* * string message = 2; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** *
       * The log message.
       * 
* * string message = 2; * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** *
       * The log message.
       * 
* * string message = 2; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = 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.LogRecord) } // @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.LogRecord) private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord(); } public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LogRecord parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LogRecord(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.InstanceGroupOuterClass.LogRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_Variable_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_Variable_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n:yandex/cloud/compute/v1/instancegroup/" + "instance_group.proto\022%yandex.cloud.compu" + "te.v1.instancegroup\032\035yandex/cloud/valida" + "tion.proto\032\037google/protobuf/timestamp.pr" + "oto\032\036google/protobuf/duration.proto\"\265\013\n\r" + "InstanceGroup\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002" + " \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032.google.protob" + "uf.Timestamp\022\014\n\004name\030\004 \001(\t\022\023\n\013descriptio" + "n\030\005 \001(\t\022P\n\006labels\030\006 \003(\[email protected]" + "ompute.v1.instancegroup.InstanceGroup.La" + "belsEntry\022R\n\021instance_template\030\007 \001(\01327.y" + "andex.cloud.compute.v1.instancegroup.Ins" + "tanceTemplate\022H\n\014scale_policy\030\010 \001(\01322.ya" + "ndex.cloud.compute.v1.instancegroup.Scal" + "ePolicy\022J\n\rdeploy_policy\030\t \001(\01323.yandex." + "cloud.compute.v1.instancegroup.DeployPol" + "icy\022R\n\021allocation_policy\030\n \001(\01327.yandex." + "cloud.compute.v1.instancegroup.Allocatio" + "nPolicy\022U\n\023load_balancer_state\030\013 \001(\01328.y" + "andex.cloud.compute.v1.instancegroup.Loa" + "dBalancerState\022]\n\027managed_instances_stat" + "e\030\014 \001(\0132<.yandex.cloud.compute.v1.instan" + "cegroup.ManagedInstancesState\022S\n\022load_ba" + "lancer_spec\030\016 \001(\01327.yandex.cloud.compute" + ".v1.instancegroup.LoadBalancerSpec\022S\n\022he" + "alth_checks_spec\030\017 \001(\01327.yandex.cloud.co" + "mpute.v1.instancegroup.HealthChecksSpec\022" + "\032\n\022service_account_id\030\020 \001(\t\022K\n\006status\030\021 " + "\001(\0162;.yandex.cloud.compute.v1.instancegr" + "oup.InstanceGroup.Status\022B\n\tvariables\030\022 " + "\003(\0132/.yandex.cloud.compute.v1.instancegr" + "oup.Variable\022\033\n\023deletion_protection\030\023 \001(" + "\010\022j\n\036application_load_balancer_spec\030\024 \001(" + "\0132B.yandex.cloud.compute.v1.instancegrou" + "p.ApplicationLoadBalancerSpec\022l\n\037applica" + "tion_load_balancer_state\030\025 \001(\0132C.yandex." + "cloud.compute.v1.instancegroup.Applicati" + "onLoadBalancerState\032-\n\013LabelsEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"o\n\006Status\022\026\n\022" + "STATUS_UNSPECIFIED\020\000\022\014\n\010STARTING\020\001\022\n\n\006AC" + "TIVE\020\002\022\014\n\010STOPPING\020\003\022\013\n\007STOPPED\020\004\022\014\n\010DEL" + "ETING\020\005\022\n\n\006PAUSED\020\006\"O\n\034ApplicationLoadBa" + "lancerState\022\027\n\017target_group_id\030\001 \001(\t\022\026\n\016" + "status_message\030\002 \001(\t\"O\n\010Variable\022)\n\003key\030" + "\001 \001(\tB\034\212\3101\0051-128\362\3071\017[a-zA-Z0-9._-]*\022\030\n\005v" + "alue\030\002 \001(\tB\t\212\3101\005<=128\"D\n\021LoadBalancerSta" + "te\022\027\n\017target_group_id\030\001 \001(\t\022\026\n\016status_me" + "ssage\030\002 \001(\t\"\277\002\n\025ManagedInstancesState\022\023\n" + "\013target_size\030\001 \001(\003\022\034\n\024running_actual_cou" + "nt\030\004 \001(\003\022\036\n\026running_outdated_count\030\005 \001(\003" + "\022\030\n\020processing_count\030\006 \001(\003\032\270\001\n\010Statuses\022" + "\020\n\010creating\030\001 \001(\003\022\020\n\010starting\030\002 \001(\003\022\017\n\007o" + "pening\030\003 \001(\003\022\017\n\007warming\030\004 \001(\003\022\017\n\007running" + "\030\005 \001(\003\022\017\n\007closing\030\006 \001(\003\022\020\n\010stopping\030\007 \001(" + "\003\022\020\n\010updating\030\010 \001(\003\022\020\n\010deleting\030\t \001(\003\022\016\n" + "\006failed\030\n \001(\003\"\226\016\n\013ScalePolicy\022T\n\013fixed_s" + "cale\030\001 \001(\0132=.yandex.cloud.compute.v1.ins" + "tancegroup.ScalePolicy.FixedScaleH\000\022R\n\na" + "uto_scale\030\002 \001(\0132<.yandex.cloud.compute.v" + "1.instancegroup.ScalePolicy.AutoScaleH\000\022" + "U\n\017test_auto_scale\030\003 \001(\0132<.yandex.cloud." + "compute.v1.instancegroup.ScalePolicy.Aut" + "oScale\032\247\005\n\tAutoScale\022 \n\rmin_zone_size\030\001 " + "\001(\003B\t\372\3071\0050-100\022\033\n\010max_size\030\002 \001(\003B\t\372\3071\0050-" + "100\022C\n\024measurement_duration\030\003 \001(\0132\031.goog" + "le.protobuf.DurationB\n\372\3071\0061m-10m\022=\n\017warm" + "up_duration\030\004 \001(\0132\031.google.protobuf.Dura" + "tionB\t\372\3071\005<=10m\022E\n\026stabilization_duratio" + "n\030\005 \001(\0132\031.google.protobuf.DurationB\n\372\3071\006" + "1m-30m\022\035\n\014initial_size\030\006 \001(\003B\007\372\3071\003>=1\022c\n" + "\024cpu_utilization_rule\030\007 \001(\0132E.yandex.clo" + "ud.compute.v1.instancegroup.ScalePolicy." + "CpuUtilizationRule\022\\\n\014custom_rules\030\010 \003(\013" + "2=.yandex.cloud.compute.v1.instancegroup" + ".ScalePolicy.CustomRuleB\007\202\3101\003<=3\022c\n\017auto" + "_scale_type\030\t \001(\0162J.yandex.cloud.compute" + ".v1.instancegroup.ScalePolicy.AutoScale." + "AutoScaleType\"I\n\rAutoScaleType\022\037\n\033AUTO_S" + "CALE_TYPE_UNSPECIFIED\020\000\022\t\n\005ZONAL\020\001\022\014\n\010RE" + "GIONAL\020\002\032<\n\022CpuUtilizationRule\022&\n\022utiliz" + "ation_target\030\001 \001(\001B\n\372\3071\00610-100\032\342\005\n\nCusto" + "mRule\022_\n\trule_type\030\001 \001(\0162F.yandex.cloud." + "compute.v1.instancegroup.ScalePolicy.Cus" + "tomRule.RuleTypeB\004\350\3071\001\022c\n\013metric_type\030\002 " + "\001(\0162H.yandex.cloud.compute.v1.instancegr" + "oup.ScalePolicy.CustomRule.MetricTypeB\004\350" + "\3071\001\022O\n\013metric_name\030\003 \001(\tB:\350\3071\001\362\30712[a-zA-" + "Z0-9./@_][ 0-9a-zA-Z./@_,:;()\\[\\]<>-]{0," + "198}\022\263\001\n\006labels\030\005 \003(\0132I.yandex.cloud.com" + "pute.v1.instancegroup.ScalePolicy.Custom" + "Rule.LabelsEntryBX\362\30712[a-zA-Z0-9./@_][ 0" + "-9a-zA-Z./@_,:;()\\[\\]<>-]{0,198}\262\3101\036\022\034^[" + "a-zA-Z][0-9a-zA-Z_]{0,31}$\022\026\n\006target\030\004 \001" + "(\001B\006\372\3071\002>0\022\033\n\tfolder_id\030\006 \001(\tB\010\212\3101\004<=50\022" + "\032\n\007service\030\007 \001(\tB\t\212\3101\005<=200\032-\n\013LabelsEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"D\n\010Ru" + "leType\022\031\n\025RULE_TYPE_UNSPECIFIED\020\000\022\017\n\013UTI" + "LIZATION\020\001\022\014\n\010WORKLOAD\020\002\"A\n\nMetricType\022\033" + "\n\027METRIC_TYPE_UNSPECIFIED\020\000\022\t\n\005GAUGE\020\001\022\013" + "\n\007COUNTER\020\002\032%\n\nFixedScale\022\027\n\004size\030\001 \001(\003B" + "\t\372\3071\0051-100B\022\n\nscale_type\022\004\300\3011\001\"\356\002\n\014Deplo" + "yPolicy\022\"\n\017max_unavailable\030\001 \001(\003B\t\372\3071\0050-" + "100\022\037\n\014max_deleting\030\002 \001(\003B\t\372\3071\0050-100\022\037\n\014" + "max_creating\030\003 \001(\003B\t\372\3071\0050-100\022 \n\rmax_exp" + "ansion\030\006 \001(\003B\t\372\3071\0050-100\022>\n\020startup_durat" + "ion\030\007 \001(\0132\031.google.protobuf.DurationB\t\372\307" + "1\0050m-1h\022N\n\010strategy\030\010 \001(\0162<.yandex.cloud" + ".compute.v1.instancegroup.DeployPolicy.S" + "trategy\"F\n\010Strategy\022\030\n\024STRATEGY_UNSPECIF" + "IED\020\000\022\r\n\tPROACTIVE\020\001\022\021\n\rOPPORTUNISTIC\020\002\"" + "\207\001\n\020AllocationPolicy\022T\n\005zones\030\001 \003(\0132<.ya" + "ndex.cloud.compute.v1.instancegroup.Allo" + "cationPolicy.ZoneB\007\202\3101\003>=1\032\035\n\004Zone\022\025\n\007zo" + "ne_id\030\001 \001(\tB\004\350\3071\001\"\336\t\n\020InstanceTemplate\022\036" + "\n\013description\030\001 \001(\tB\t\212\3101\005<=256\022\212\001\n\006label" + "s\030\002 \003(\0132C.yandex.cloud.compute.v1.instan" + "cegroup.InstanceTemplate.LabelsEntryB5\202\310" + "1\004<=64\212\3101\005<=128\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_." + "/\\@0-9a-z]*\022\031\n\013platform_id\030\003 \001(\tB\004\350\3071\001\022R" + "\n\016resources_spec\030\004 \001(\01324.yandex.cloud.co" + "mpute.v1.instancegroup.ResourcesSpecB\004\350\307" + "1\001\022\216\001\n\010metadata\030\005 \003(\0132E.yandex.cloud.com" + "pute.v1.instancegroup.InstanceTemplate.M" + "etadataEntryB5\202\3101\005<=128\212\3101\010<=262144\262\3101\006\032" + "\0041-63\262\3101\022\022\020[a-z][-_0-9a-z]*\022U\n\016boot_disk" + "_spec\030\006 \001(\01327.yandex.cloud.compute.v1.in" + "stancegroup.AttachedDiskSpecB\004\350\3071\001\022^\n\024se" + "condary_disk_specs\030\007 \003(\01327.yandex.cloud." + "compute.v1.instancegroup.AttachedDiskSpe" + "cB\007\202\3101\003<=3\022c\n\027network_interface_specs\030\010 " + "\003(\0132;.yandex.cloud.compute.v1.instancegr" + "oup.NetworkInterfaceSpecB\005\202\3101\0011\022R\n\021sched" + "uling_policy\030\t \001(\01327.yandex.cloud.comput" + "e.v1.instancegroup.SchedulingPolicy\022\032\n\022s" + "ervice_account_id\030\n \001(\t\022P\n\020network_setti" + "ngs\030\013 \001(\01326.yandex.cloud.compute.v1.inst" + "ancegroup.NetworkSettings\022\027\n\004name\030\014 \001(\tB" + "\t\212\3101\005<=128\022\033\n\010hostname\030\r \001(\tB\t\212\3101\005<=128\022" + "P\n\020placement_policy\030\016 \001(\01326.yandex.cloud" + ".compute.v1.instancegroup.PlacementPolic" + "y\022W\n\020filesystem_specs\030\017 \003(\0132=.yandex.clo" + "ud.compute.v1.instancegroup.AttachedFile" + "systemSpec\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadataEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\217\002\n\026AttachedF" + "ilesystemSpec\022P\n\004mode\030\001 \001(\0162B.yandex.clo" + "ud.compute.v1.instancegroup.AttachedFile" + "systemSpec.Mode\022/\n\013device_name\030\002 \001(\tB\032\362\307" + "1\026|[a-z][-_0-9a-z]{0,19}\0225\n\rfilesystem_i" + "d\030\003 \001(\tB\036\212\3101\005<=128\362\3071\021[-a-zA-Z0-9._{}]*\"" + ";\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\r\n\tREAD_ON" + "LY\020\001\022\016\n\nREAD_WRITE\020\002\"\335\002\n\017PlacementPolicy" + "\022\032\n\022placement_group_id\030\001 \001(\t\022d\n\023host_aff" + "inity_rules\030\002 \003(\0132G.yandex.cloud.compute" + ".v1.instancegroup.PlacementPolicy.HostAf" + "finityRule\032\307\001\n\020HostAffinityRule\022\013\n\003key\030\001" + " \001(\t\022\\\n\002op\030\002 \001(\0162P.yandex.cloud.compute." + "v1.instancegroup.PlacementPolicy.HostAff" + "inityRule.Operator\022\016\n\006values\030\003 \003(\t\"8\n\010Op" + "erator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\006\n\002IN\020\001" + "\022\n\n\006NOT_IN\020\002\"\337\001\n\rResourcesSpec\022\"\n\006memory" + "\030\001 \001(\003B\022\372\3071\016<=824633720832\022e\n\005cores\030\002 \001(" + "\003BV\372\3071R2,4,6,8,10,12,14,16,18,20,22,24,2" + "6,28,30,32,34,36,40,44,48,52,56,60,64,68" + ",72,76,80\022(\n\rcore_fraction\030\003 \001(\003B\021\372\3071\r0," + "5,20,50,100\022\031\n\004gpus\030\004 \001(\003B\013\372\3071\0070,1,2,4\"\334" + "\004\n\020AttachedDiskSpec\022P\n\004mode\030\001 \001(\0162<.yand" + "ex.cloud.compute.v1.instancegroup.Attach" + "edDiskSpec.ModeB\004\350\3071\001\022/\n\013device_name\030\002 \001" + "(\tB\032\362\3071\026|[a-z][-_0-9a-z]{0,19}\022Y\n\tdisk_s" + "pec\030\003 \001(\[email protected]" + "ancegroup.AttachedDiskSpec.DiskSpecB\004\350\3071" + "\001\022/\n\007disk_id\030\004 \001(\tB\036\212\3101\005<=128\362\3071\021[-a-zA-" + "Z0-9._{}]*\022\027\n\004name\030\007 \001(\tB\t\212\3101\005<=128\032\342\001\n\010" + "DiskSpec\022\036\n\013description\030\001 \001(\tB\t\212\3101\005<=256" + "\022\025\n\007type_id\030\002 \001(\tB\004\350\3071\001\022(\n\004size\030\003 \001(\003B\032\372" + "\3071\0264194304-28587302322176\022\034\n\010image_id\030\004 " + "\001(\tB\010\212\3101\004<=50H\000\022\037\n\013snapshot_id\030\005 \001(\tB\010\212\310" + "1\004<=50H\000\022&\n\036preserve_after_instance_dele" + "te\030\006 \001(\010B\016\n\014source_oneof\";\n\004Mode\022\024\n\020MODE" + "_UNSPECIFIED\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\nREAD_WR" + "ITE\020\002\"\222\002\n\024NetworkInterfaceSpec\022\022\n\nnetwor" + "k_id\030\001 \001(\t\022\022\n\nsubnet_ids\030\002 \003(\t\022Z\n\027primar" + "y_v4_address_spec\030\003 \001(\01329.yandex.cloud.c" + "ompute.v1.instancegroup.PrimaryAddressSp" + "ec\022Z\n\027primary_v6_address_spec\030\004 \001(\01329.ya" + "ndex.cloud.compute.v1.instancegroup.Prim" + "aryAddressSpec\022\032\n\022security_group_ids\030\005 \003" + "(\t\"\312\001\n\022PrimaryAddressSpec\022S\n\023one_to_one_" + "nat_spec\030\001 \001(\01326.yandex.cloud.compute.v1" + ".instancegroup.OneToOneNatSpec\022N\n\020dns_re" + "cord_specs\030\002 \003(\01324.yandex.cloud.compute." + "v1.instancegroup.DnsRecordSpec\022\017\n\007addres" + "s\030\003 \001(\t\"\270\001\n\017OneToOneNatSpec\022D\n\nip_versio" + "n\030\001 \001(\01620.yandex.cloud.compute.v1.instan" + "cegroup.IpVersion\022\017\n\007address\030\002 \001(\t\022N\n\020dn" + "s_record_specs\030\003 \003(\01324.yandex.cloud.comp" + "ute.v1.instancegroup.DnsRecordSpec\"_\n\rDn" + "sRecordSpec\022\022\n\004fqdn\030\001 \001(\tB\004\350\3071\001\022\023\n\013dns_z" + "one_id\030\002 \001(\t\022\030\n\003ttl\030\003 \001(\003B\013\372\3071\0070-86400\022\013" + "\n\003ptr\030\004 \001(\010\"\'\n\020SchedulingPolicy\022\023\n\013preem" + "ptible\030\001 \001(\010\"\274\001\n\017NetworkSettings\022I\n\004type" + "\030\001 \001(\0162;.yandex.cloud.compute.v1.instanc" + "egroup.NetworkSettings.Type\"^\n\004Type\022\024\n\020T" + "YPE_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\030\n\024SOFTW" + "ARE_ACCELERATED\020\002\022\030\n\024HARDWARE_ACCELERATE" + "D\020\003\"\260\001\n\020LoadBalancerSpec\022Q\n\021target_group" + "_spec\030\001 \001(\01326.yandex.cloud.compute.v1.in" + "stancegroup.TargetGroupSpec\022I\n\034max_openi" + "ng_traffic_duration\030\002 \001(\0132\031.google.proto" + "buf.DurationB\010\372\3071\004>=1s\"\262\002\n\017TargetGroupSp" + "ec\0222\n\004name\030\001 \001(\tB$\362\3071 |[a-z]([-a-z0-9]{0" + ",61}[a-z0-9])?\022\036\n\013description\030\002 \001(\tB\t\212\3101" + "\005<=256\022\233\001\n\006labels\030\003 \003(\0132B.yandex.cloud.c" + "ompute.v1.instancegroup.TargetGroupSpec." + "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]*\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + "e\030\002 \001(\t:\0028\001\"\314\001\n\033ApplicationLoadBalancerS" + "pec\022b\n\021target_group_spec\030\001 \001(\0132A.yandex." + "cloud.compute.v1.instancegroup.Applicati" + "onTargetGroupSpecB\004\350\3071\001\022I\n\034max_opening_t" + "raffic_duration\030\002 \001(\0132\031.google.protobuf." + "DurationB\010\372\3071\004>=1s\"\315\001\n\032ApplicationTarget" + "GroupSpec\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002" + " \001(\t\022]\n\006labels\030\003 \003(\0132M.yandex.cloud.comp" + "ute.v1.instancegroup.ApplicationTargetGr" + "oupSpec.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\272\001\n\020HealthChe" + "cksSpec\022[\n\022health_check_specs\030\001 \003(\01326.ya" + "ndex.cloud.compute.v1.instancegroup.Heal" + "thCheckSpecB\007\202\3101\003>=1\022I\n\034max_checking_hea" + "lth_duration\030\002 \001(\0132\031.google.protobuf.Dur" + "ationB\010\372\3071\004>=1s\"\244\004\n\017HealthCheckSpec\0228\n\010i" + "nterval\030\001 \001(\0132\031.google.protobuf.Duration" + "B\013\372\3071\0071s-300s\0226\n\007timeout\030\002 \001(\0132\031.google." + "protobuf.DurationB\n\372\3071\0061s-60s\0225\n\023unhealt" + "hy_threshold\030\003 \001(\003B\030\372\3071\0240,2,3,4,5,6,7,8," + "9,10\0223\n\021healthy_threshold\030\004 \001(\003B\030\372\3071\0240,2" + ",3,4,5,6,7,8,9,10\022X\n\013tcp_options\030\005 \001(\0132A" + ".yandex.cloud.compute.v1.instancegroup.H" + "ealthCheckSpec.TcpOptionsH\000\022Z\n\014http_opti" + "ons\030\006 \001(\0132B.yandex.cloud.compute.v1.inst" + "ancegroup.HealthCheckSpec.HttpOptionsH\000\032" + "\'\n\nTcpOptions\022\031\n\004port\030\001 \001(\003B\013\372\3071\0071-65535" + "\0326\n\013HttpOptions\022\031\n\004port\030\001 \001(\003B\013\372\3071\0071-655" + "35\022\014\n\004path\030\002 \001(\tB\034\n\024health_check_options" + "\022\004\300\3011\001\"\301\005\n\017ManagedInstance\022\n\n\002id\030\001 \001(\t\022M" + "\n\006status\030\002 \001(\0162=.yandex.cloud.compute.v1" + ".instancegroup.ManagedInstance.Status\022\023\n" + "\013instance_id\030\003 \001(\t\022\014\n\004fqdn\030\004 \001(\t\022\014\n\004name" + "\030\005 \001(\t\022\026\n\016status_message\030\006 \001(\t\022\017\n\007zone_i" + "d\030\007 \001(\t\022S\n\022network_interfaces\030\010 \003(\01327.ya" + "ndex.cloud.compute.v1.instancegroup.Netw" + "orkInterface\0225\n\021status_changed_at\030\t \001(\0132" + "\032.google.protobuf.Timestamp\"\354\002\n\006Status\022\026" + "\n\022STATUS_UNSPECIFIED\020\000\022\025\n\021CREATING_INSTA" + "NCE\020\013\022\025\n\021UPDATING_INSTANCE\020\014\022\025\n\021DELETING" + "_INSTANCE\020\r\022\025\n\021STARTING_INSTANCE\020\016\022\025\n\021ST" + "OPPING_INSTANCE\020\017\022\035\n\031AWAITING_STARTUP_DU" + "RATION\020\020\022\023\n\017CHECKING_HEALTH\020\021\022\023\n\017OPENING" + "_TRAFFIC\020\022\022\034\n\030AWAITING_WARMUP_DURATION\020\023" + "\022\023\n\017CLOSING_TRAFFIC\020\024\022\022\n\016RUNNING_ACTUAL\020" + "\025\022\024\n\020RUNNING_OUTDATED\020\026\022\013\n\007STOPPED\020\027\022\013\n\007" + "DELETED\020\030\022\027\n\023PREPARING_RESOURCES\020\031\"\357\001\n\020N" + "etworkInterface\022\r\n\005index\030\001 \001(\t\022\023\n\013mac_ad" + "dress\030\002 \001(\t\022\021\n\tsubnet_id\030\003 \001(\t\022Q\n\022primar" + "y_v4_address\030\004 \001(\01325.yandex.cloud.comput" + "e.v1.instancegroup.PrimaryAddress\022Q\n\022pri" + "mary_v6_address\030\005 \001(\01325.yandex.cloud.com" + "pute.v1.instancegroup.PrimaryAddress\"\264\001\n" + "\016PrimaryAddress\022\017\n\007address\030\001 \001(\t\022J\n\016one_" + "to_one_nat\030\002 \001(\01322.yandex.cloud.compute." + "v1.instancegroup.OneToOneNat\022E\n\013dns_reco" + "rds\030\003 \003(\01320.yandex.cloud.compute.v1.inst" + "ancegroup.DnsRecord\"\253\001\n\013OneToOneNat\022\017\n\007a" + "ddress\030\001 \001(\t\022D\n\nip_version\030\002 \001(\01620.yande" + "x.cloud.compute.v1.instancegroup.IpVersi" + "on\022E\n\013dns_records\030\003 \003(\01320.yandex.cloud.c" + "ompute.v1.instancegroup.DnsRecord\"[\n\tDns" + "Record\022\022\n\004fqdn\030\001 \001(\tB\004\350\3071\001\022\023\n\013dns_zone_i" + "d\030\002 \001(\t\022\030\n\003ttl\030\003 \001(\003B\013\372\3071\0070-86400\022\013\n\003ptr" + "\030\004 \001(\010\"K\n\tLogRecord\022-\n\ttimestamp\030\001 \001(\0132\032" + ".google.protobuf.Timestamp\022\017\n\007message\030\002 " + "\001(\t*;\n\tIpVersion\022\032\n\026IP_VERSION_UNSPECIFI" + "ED\020\000\022\010\n\004IPV4\020\001\022\010\n\004IPV6\020\002B\204\001\n)yandex.clou" + "d.api.compute.v1.instancegroupZWgithub.c" + "om/yandex-cloud/go-genproto/yandex/cloud" + "/compute/v1/instancegroup;instancegroupb" + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { yandex.cloud.api.Validation.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), }); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "InstanceTemplate", "ScalePolicy", "DeployPolicy", "AllocationPolicy", "LoadBalancerState", "ManagedInstancesState", "LoadBalancerSpec", "HealthChecksSpec", "ServiceAccountId", "Status", "Variables", "DeletionProtection", "ApplicationLoadBalancerSpec", "ApplicationLoadBalancerState", }); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_InstanceGroup_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerState_descriptor, new java.lang.String[] { "TargetGroupId", "StatusMessage", }); internal_static_yandex_cloud_compute_v1_instancegroup_Variable_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_compute_v1_instancegroup_Variable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_Variable_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerState_descriptor, new java.lang.String[] { "TargetGroupId", "StatusMessage", }); internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_descriptor, new java.lang.String[] { "TargetSize", "RunningActualCount", "RunningOutdatedCount", "ProcessingCount", }); internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstancesState_Statuses_descriptor, new java.lang.String[] { "Creating", "Starting", "Opening", "Warming", "Running", "Closing", "Stopping", "Updating", "Deleting", "Failed", }); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor, new java.lang.String[] { "FixedScale", "AutoScale", "TestAutoScale", "ScaleType", }); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_AutoScale_descriptor, new java.lang.String[] { "MinZoneSize", "MaxSize", "MeasurementDuration", "WarmupDuration", "StabilizationDuration", "InitialSize", "CpuUtilizationRule", "CustomRules", "AutoScaleType", }); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CpuUtilizationRule_descriptor, new java.lang.String[] { "UtilizationTarget", }); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor.getNestedTypes().get(2); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_descriptor, new java.lang.String[] { "RuleType", "MetricType", "MetricName", "Labels", "Target", "FolderId", "Service", }); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_CustomRule_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_descriptor.getNestedTypes().get(3); internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ScalePolicy_FixedScale_descriptor, new java.lang.String[] { "Size", }); internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_DeployPolicy_descriptor, new java.lang.String[] { "MaxUnavailable", "MaxDeleting", "MaxCreating", "MaxExpansion", "StartupDuration", "Strategy", }); internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_descriptor, new java.lang.String[] { "Zones", }); internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_AllocationPolicy_Zone_descriptor, new java.lang.String[] { "ZoneId", }); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_descriptor, new java.lang.String[] { "Description", "Labels", "PlatformId", "ResourcesSpec", "Metadata", "BootDiskSpec", "SecondaryDiskSpecs", "NetworkInterfaceSpecs", "SchedulingPolicy", "ServiceAccountId", "NetworkSettings", "Name", "Hostname", "PlacementPolicy", "FilesystemSpecs", }); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_MetadataEntry_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_InstanceTemplate_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_AttachedFilesystemSpec_descriptor, new java.lang.String[] { "Mode", "DeviceName", "FilesystemId", }); internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_descriptor, new java.lang.String[] { "PlacementGroupId", "HostAffinityRules", }); internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_PlacementPolicy_HostAffinityRule_descriptor, new java.lang.String[] { "Key", "Op", "Values", }); internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ResourcesSpec_descriptor, new java.lang.String[] { "Memory", "Cores", "CoreFraction", "Gpus", }); internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_descriptor, new java.lang.String[] { "Mode", "DeviceName", "DiskSpec", "DiskId", "Name", }); internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_AttachedDiskSpec_DiskSpec_descriptor, new java.lang.String[] { "Description", "TypeId", "Size", "ImageId", "SnapshotId", "PreserveAfterInstanceDelete", "SourceOneof", }); internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterfaceSpec_descriptor, new java.lang.String[] { "NetworkId", "SubnetIds", "PrimaryV4AddressSpec", "PrimaryV6AddressSpec", "SecurityGroupIds", }); internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddressSpec_descriptor, new java.lang.String[] { "OneToOneNatSpec", "DnsRecordSpecs", "Address", }); internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNatSpec_descriptor, new java.lang.String[] { "IpVersion", "Address", "DnsRecordSpecs", }); internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecordSpec_descriptor, new java.lang.String[] { "Fqdn", "DnsZoneId", "Ttl", "Ptr", }); internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_SchedulingPolicy_descriptor, new java.lang.String[] { "Preemptible", }); internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_NetworkSettings_descriptor, new java.lang.String[] { "Type", }); internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_LoadBalancerSpec_descriptor, new java.lang.String[] { "TargetGroupSpec", "MaxOpeningTrafficDuration", }); internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_descriptor, new java.lang.String[] { "Name", "Description", "Labels", }); internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_TargetGroupSpec_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationLoadBalancerSpec_descriptor, new java.lang.String[] { "TargetGroupSpec", "MaxOpeningTrafficDuration", }); internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_descriptor, new java.lang.String[] { "Name", "Description", "Labels", }); internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_LabelsEntry_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ApplicationTargetGroupSpec_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_HealthChecksSpec_descriptor, new java.lang.String[] { "HealthCheckSpecs", "MaxCheckingHealthDuration", }); internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_descriptor, new java.lang.String[] { "Interval", "Timeout", "UnhealthyThreshold", "HealthyThreshold", "TcpOptions", "HttpOptions", "HealthCheckOptions", }); internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_TcpOptions_descriptor, new java.lang.String[] { "Port", }); internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_descriptor = internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_HealthCheckSpec_HttpOptions_descriptor, new java.lang.String[] { "Port", "Path", }); internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_ManagedInstance_descriptor, new java.lang.String[] { "Id", "Status", "InstanceId", "Fqdn", "Name", "StatusMessage", "ZoneId", "NetworkInterfaces", "StatusChangedAt", }); internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_NetworkInterface_descriptor, new java.lang.String[] { "Index", "MacAddress", "SubnetId", "PrimaryV4Address", "PrimaryV6Address", }); internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_PrimaryAddress_descriptor, new java.lang.String[] { "Address", "OneToOneNat", "DnsRecords", }); internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_OneToOneNat_descriptor, new java.lang.String[] { "Address", "IpVersion", "DnsRecords", }); internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_DnsRecord_descriptor, new java.lang.String[] { "Fqdn", "DnsZoneId", "Ttl", "Ptr", }); internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_compute_v1_instancegroup_LogRecord_descriptor, new java.lang.String[] { "Timestamp", "Message", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.exactlyOne); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.mapKey); registry.add(yandex.cloud.api.Validation.pattern); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.size); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); yandex.cloud.api.Validation.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy