yandex.cloud.api.compute.v1.InstanceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/compute/v1/instance.proto
package yandex.cloud.api.compute.v1;
public final class InstanceOuterClass {
private InstanceOuterClass() {}
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.IpVersion}
*/
public enum IpVersion
implements com.google.protobuf.ProtocolMessageEnum {
/**
* IP_VERSION_UNSPECIFIED = 0;
*/
IP_VERSION_UNSPECIFIED(0),
/**
*
* IPv4 address, for example 192.0.2.235.
*
*
* 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.0.2.235.
*
*
* 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.InstanceOuterClass.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.IpVersion)
}
/**
* Protobuf enum {@code yandex.cloud.compute.v1.MetadataOption}
*/
public enum MetadataOption
implements com.google.protobuf.ProtocolMessageEnum {
/**
* METADATA_OPTION_UNSPECIFIED = 0;
*/
METADATA_OPTION_UNSPECIFIED(0),
/**
*
* Option is enabled
*
*
* ENABLED = 1;
*/
ENABLED(1),
/**
*
* Option is disabled
*
*
* DISABLED = 2;
*/
DISABLED(2),
UNRECOGNIZED(-1),
;
/**
* METADATA_OPTION_UNSPECIFIED = 0;
*/
public static final int METADATA_OPTION_UNSPECIFIED_VALUE = 0;
/**
*
* Option is enabled
*
*
* ENABLED = 1;
*/
public static final int ENABLED_VALUE = 1;
/**
*
* Option is disabled
*
*
* DISABLED = 2;
*/
public static final int DISABLED_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 MetadataOption 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 MetadataOption forNumber(int value) {
switch (value) {
case 0: return METADATA_OPTION_UNSPECIFIED;
case 1: return ENABLED;
case 2: return DISABLED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MetadataOption> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MetadataOption findValueByNumber(int number) {
return MetadataOption.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.InstanceOuterClass.getDescriptor().getEnumTypes().get(1);
}
private static final MetadataOption[] VALUES = values();
public static MetadataOption 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 MetadataOption(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.MetadataOption)
}
public interface InstanceOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.Instance)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the instance.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the folder that the instance belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder that the instance belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
* .google.protobuf.Timestamp created_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Name of the instance. 1-63 characters long.
*
*
* string name = 4;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the instance. 1-63 characters long.
*
*
* string name = 4;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the instance. 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the instance. 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* 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. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* 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();
/**
*
* ID of the hardware platform configuration for the instance.
*
*
* string platform_id = 8;
* @return The platformId.
*/
java.lang.String getPlatformId();
/**
*
* ID of the hardware platform configuration for the instance.
*
*
* string platform_id = 8;
* @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.Resources resources = 9;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
* @return The resources.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources getResources();
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.ResourcesOrBuilder getResourcesOrBuilder();
/**
*
* Status of the instance.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* Status of the instance.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @return The status.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status getStatus();
/**
*
* The metadata `key:value` pairs assigned to this instance. This includes custom metadata and predefined keys.
* 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 = 11;
*/
int getMetadataCount();
/**
*
* The metadata `key:value` pairs assigned to this instance. This includes custom metadata and predefined keys.
* 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 = 11;
*/
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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata `key:value` pairs assigned to this instance. This includes custom metadata and predefined keys.
* 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 = 11;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata `key:value` pairs assigned to this instance. This includes custom metadata and predefined keys.
* 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 = 11;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
* @return Whether the metadataOptions field is set.
*/
boolean hasMetadataOptions();
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
* @return The metadataOptions.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions();
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder();
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
* @return Whether the bootDisk field is set.
*/
boolean hasBootDisk();
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
* @return The bootDisk.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk getBootDisk();
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder getBootDiskOrBuilder();
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
java.util.List
getSecondaryDisksList();
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk getSecondaryDisks(int index);
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
int getSecondaryDisksCount();
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder>
getSecondaryDisksOrBuilderList();
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder getSecondaryDisksOrBuilder(
int index);
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
java.util.List
getLocalDisksList();
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk getLocalDisks(int index);
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
int getLocalDisksCount();
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder>
getLocalDisksOrBuilderList();
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder getLocalDisksOrBuilder(
int index);
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
java.util.List
getFilesystemsList();
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem getFilesystems(int index);
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
int getFilesystemsCount();
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder>
getFilesystemsOrBuilderList();
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder getFilesystemsOrBuilder(
int index);
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
java.util.List
getNetworkInterfacesList();
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface getNetworkInterfaces(int index);
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
int getNetworkInterfacesCount();
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder>
getNetworkInterfacesOrBuilderList();
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(
int index);
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
* @return Whether the gpuSettings field is set.
*/
boolean hasGpuSettings();
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
* @return The gpuSettings.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings getGpuSettings();
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder getGpuSettingsOrBuilder();
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @return The fqdn.
*/
java.lang.String getFqdn();
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @return The bytes for fqdn.
*/
com.google.protobuf.ByteString
getFqdnBytes();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
* @return Whether the schedulingPolicy field is set.
*/
boolean hasSchedulingPolicy();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
* @return The schedulingPolicy.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy();
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder();
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
* @return Whether the networkSettings field is set.
*/
boolean hasNetworkSettings();
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
* @return The networkSettings.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings();
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
* @return Whether the placementPolicy field is set.
*/
boolean hasPlacementPolicy();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
* @return The placementPolicy.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy();
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder();
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @return The hostId.
*/
java.lang.String getHostId();
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @return The bytes for hostId.
*/
com.google.protobuf.ByteString
getHostIdBytes();
}
/**
*
* An Instance resource. For more information, see [Instances](/docs/compute/concepts/vm).
*
*
* Protobuf type {@code yandex.cloud.compute.v1.Instance}
*/
public static final class Instance extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.Instance)
InstanceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Instance.newBuilder() to construct.
private Instance(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Instance() {
id_ = "";
folderId_ = "";
name_ = "";
description_ = "";
zoneId_ = "";
platformId_ = "";
status_ = 0;
secondaryDisks_ = java.util.Collections.emptyList();
localDisks_ = java.util.Collections.emptyList();
filesystems_ = java.util.Collections.emptyList();
networkInterfaces_ = java.util.Collections.emptyList();
fqdn_ = "";
serviceAccountId_ = "";
hostGroupId_ = "";
hostId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Instance();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Instance(
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: {
java.lang.String s = input.readStringRequireUtf8();
zoneId_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
platformId_ = s;
break;
}
case 74: {
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = subBuilder.buildPartial();
}
break;
}
case 80: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 90: {
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 98: {
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder subBuilder = null;
if (bootDisk_ != null) {
subBuilder = bootDisk_.toBuilder();
}
bootDisk_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bootDisk_);
bootDisk_ = subBuilder.buildPartial();
}
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
secondaryDisks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
secondaryDisks_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.parser(), extensionRegistry));
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
networkInterfaces_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
networkInterfaces_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.parser(), extensionRegistry));
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
fqdn_ = s;
break;
}
case 138: {
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder subBuilder = null;
if (schedulingPolicy_ != null) {
subBuilder = schedulingPolicy_.toBuilder();
}
schedulingPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schedulingPolicy_);
schedulingPolicy_ = subBuilder.buildPartial();
}
break;
}
case 146: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = s;
break;
}
case 154: {
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder subBuilder = null;
if (networkSettings_ != null) {
subBuilder = networkSettings_.toBuilder();
}
networkSettings_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(networkSettings_);
networkSettings_ = subBuilder.buildPartial();
}
break;
}
case 162: {
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder subBuilder = null;
if (placementPolicy_ != null) {
subBuilder = placementPolicy_.toBuilder();
}
placementPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(placementPolicy_);
placementPolicy_ = subBuilder.buildPartial();
}
break;
}
case 170: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
filesystems_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
filesystems_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.parser(), extensionRegistry));
break;
}
case 178: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
localDisks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
localDisks_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.parser(), extensionRegistry));
break;
}
case 186: {
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder subBuilder = null;
if (metadataOptions_ != null) {
subBuilder = metadataOptions_.toBuilder();
}
metadataOptions_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadataOptions_);
metadataOptions_ = subBuilder.buildPartial();
}
break;
}
case 210: {
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder subBuilder = null;
if (gpuSettings_ != null) {
subBuilder = gpuSettings_.toBuilder();
}
gpuSettings_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(gpuSettings_);
gpuSettings_ = subBuilder.buildPartial();
}
break;
}
case 218: {
java.lang.String s = input.readStringRequireUtf8();
hostGroupId_ = s;
break;
}
case 226: {
java.lang.String s = input.readStringRequireUtf8();
hostId_ = 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_ & 0x00000004) != 0)) {
secondaryDisks_ = java.util.Collections.unmodifiableList(secondaryDisks_);
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
filesystems_ = java.util.Collections.unmodifiableList(filesystems_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
localDisks_ = java.util.Collections.unmodifiableList(localDisks_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Instance_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
case 11:
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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Instance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.class, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.compute.v1.Instance.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATUS_UNSPECIFIED = 0;
*/
STATUS_UNSPECIFIED(0),
/**
*
* Instance is waiting for resources to be allocated.
*
*
* PROVISIONING = 1;
*/
PROVISIONING(1),
/**
*
* Instance is running normally.
*
*
* RUNNING = 2;
*/
RUNNING(2),
/**
*
* Instance is being stopped.
*
*
* STOPPING = 3;
*/
STOPPING(3),
/**
*
* Instance stopped.
*
*
* STOPPED = 4;
*/
STOPPED(4),
/**
*
* Instance is being started.
*
*
* STARTING = 5;
*/
STARTING(5),
/**
*
* Instance is being restarted.
*
*
* RESTARTING = 6;
*/
RESTARTING(6),
/**
*
* Instance is being updated.
*
*
* UPDATING = 7;
*/
UPDATING(7),
/**
*
* Instance encountered a problem and cannot operate.
*
*
* ERROR = 8;
*/
ERROR(8),
/**
*
* Instance crashed and will be restarted automatically.
*
*
* CRASHED = 9;
*/
CRASHED(9),
/**
*
* Instance is being deleted.
*
*
* DELETING = 10;
*/
DELETING(10),
UNRECOGNIZED(-1),
;
/**
* STATUS_UNSPECIFIED = 0;
*/
public static final int STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* Instance is waiting for resources to be allocated.
*
*
* PROVISIONING = 1;
*/
public static final int PROVISIONING_VALUE = 1;
/**
*
* Instance is running normally.
*
*
* RUNNING = 2;
*/
public static final int RUNNING_VALUE = 2;
/**
*
* Instance is being stopped.
*
*
* STOPPING = 3;
*/
public static final int STOPPING_VALUE = 3;
/**
*
* Instance stopped.
*
*
* STOPPED = 4;
*/
public static final int STOPPED_VALUE = 4;
/**
*
* Instance is being started.
*
*
* STARTING = 5;
*/
public static final int STARTING_VALUE = 5;
/**
*
* Instance is being restarted.
*
*
* RESTARTING = 6;
*/
public static final int RESTARTING_VALUE = 6;
/**
*
* Instance is being updated.
*
*
* UPDATING = 7;
*/
public static final int UPDATING_VALUE = 7;
/**
*
* Instance encountered a problem and cannot operate.
*
*
* ERROR = 8;
*/
public static final int ERROR_VALUE = 8;
/**
*
* Instance crashed and will be restarted automatically.
*
*
* CRASHED = 9;
*/
public static final int CRASHED_VALUE = 9;
/**
*
* Instance is being deleted.
*
*
* DELETING = 10;
*/
public static final int DELETING_VALUE = 10;
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 PROVISIONING;
case 2: return RUNNING;
case 3: return STOPPING;
case 4: return STOPPED;
case 5: return STARTING;
case 6: return RESTARTING;
case 7: return UPDATING;
case 8: return ERROR;
case 9: return CRASHED;
case 10: return DELETING;
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.InstanceOuterClass.Instance.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.Instance.Status)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the 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 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 FOLDER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder that the instance 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 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_;
/**
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
* .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_;
}
/**
* .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. 1-63 characters long.
*
*
* 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. 1-63 characters long.
*
*
* 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. 0-256 characters long.
*
*
* 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. 0-256 characters long.
*
*
* 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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Instance_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. Maximum of 64 per resource.
*
*
* 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. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* 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. Maximum of 64 per resource.
*
*
* 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 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 PLATFORM_ID_FIELD_NUMBER = 8;
private volatile java.lang.Object platformId_;
/**
*
* ID of the hardware platform configuration for the instance.
*
*
* string platform_id = 8;
* @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.
*
*
* string platform_id = 8;
* @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_FIELD_NUMBER = 9;
private yandex.cloud.api.compute.v1.InstanceOuterClass.Resources resources_;
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
* @return The resources.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Resources getResources() {
return resources_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.getDefaultInstance() : resources_;
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
public static final int STATUS_FIELD_NUMBER = 10;
private int status_;
/**
*
* Status of the instance.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the instance.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @return The status.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status result = yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status.valueOf(status_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status.UNRECOGNIZED : result;
}
public static final int METADATA_FIELD_NUMBER = 11;
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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Instance_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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
@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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata `key:value` pairs assigned to this instance. This includes custom metadata and predefined keys.
* 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 = 11;
*/
@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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int METADATA_OPTIONS_FIELD_NUMBER = 23;
private yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions metadataOptions_;
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
* @return Whether the metadataOptions field is set.
*/
@java.lang.Override
public boolean hasMetadataOptions() {
return metadataOptions_ != null;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
* @return The metadataOptions.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions() {
return metadataOptions_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder() {
return getMetadataOptions();
}
public static final int BOOT_DISK_FIELD_NUMBER = 12;
private yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk bootDisk_;
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
* @return Whether the bootDisk field is set.
*/
@java.lang.Override
public boolean hasBootDisk() {
return bootDisk_ != null;
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
* @return The bootDisk.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk getBootDisk() {
return bootDisk_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.getDefaultInstance() : bootDisk_;
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder getBootDiskOrBuilder() {
return getBootDisk();
}
public static final int SECONDARY_DISKS_FIELD_NUMBER = 13;
private java.util.List secondaryDisks_;
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
@java.lang.Override
public java.util.List getSecondaryDisksList() {
return secondaryDisks_;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder>
getSecondaryDisksOrBuilderList() {
return secondaryDisks_;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
@java.lang.Override
public int getSecondaryDisksCount() {
return secondaryDisks_.size();
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk getSecondaryDisks(int index) {
return secondaryDisks_.get(index);
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder getSecondaryDisksOrBuilder(
int index) {
return secondaryDisks_.get(index);
}
public static final int LOCAL_DISKS_FIELD_NUMBER = 22;
private java.util.List localDisks_;
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
@java.lang.Override
public java.util.List getLocalDisksList() {
return localDisks_;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder>
getLocalDisksOrBuilderList() {
return localDisks_;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
@java.lang.Override
public int getLocalDisksCount() {
return localDisks_.size();
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk getLocalDisks(int index) {
return localDisks_.get(index);
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder getLocalDisksOrBuilder(
int index) {
return localDisks_.get(index);
}
public static final int FILESYSTEMS_FIELD_NUMBER = 21;
private java.util.List filesystems_;
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
@java.lang.Override
public java.util.List getFilesystemsList() {
return filesystems_;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder>
getFilesystemsOrBuilderList() {
return filesystems_;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
@java.lang.Override
public int getFilesystemsCount() {
return filesystems_.size();
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem getFilesystems(int index) {
return filesystems_.get(index);
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder getFilesystemsOrBuilder(
int index) {
return filesystems_.get(index);
}
public static final int NETWORK_INTERFACES_FIELD_NUMBER = 14;
private java.util.List networkInterfaces_;
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
@java.lang.Override
public java.util.List getNetworkInterfacesList() {
return networkInterfaces_;
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder>
getNetworkInterfacesOrBuilderList() {
return networkInterfaces_;
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
@java.lang.Override
public int getNetworkInterfacesCount() {
return networkInterfaces_.size();
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface getNetworkInterfaces(int index) {
return networkInterfaces_.get(index);
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(
int index) {
return networkInterfaces_.get(index);
}
public static final int GPU_SETTINGS_FIELD_NUMBER = 26;
private yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings gpuSettings_;
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
* @return Whether the gpuSettings field is set.
*/
@java.lang.Override
public boolean hasGpuSettings() {
return gpuSettings_ != null;
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
* @return The gpuSettings.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings getGpuSettings() {
return gpuSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.getDefaultInstance() : gpuSettings_;
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder getGpuSettingsOrBuilder() {
return getGpuSettings();
}
public static final int FQDN_FIELD_NUMBER = 16;
private volatile java.lang.Object fqdn_;
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @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;
}
}
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @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 SCHEDULING_POLICY_FIELD_NUMBER = 17;
private yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy schedulingPolicy_;
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
* @return Whether the schedulingPolicy field is set.
*/
@java.lang.Override
public boolean hasSchedulingPolicy() {
return schedulingPolicy_ != null;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
* @return The schedulingPolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy() {
return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder() {
return getSchedulingPolicy();
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 18;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @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 = 19;
private yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings networkSettings_;
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
* @return Whether the networkSettings field is set.
*/
@java.lang.Override
public boolean hasNetworkSettings() {
return networkSettings_ != null;
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
* @return The networkSettings.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings() {
return networkSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() {
return getNetworkSettings();
}
public static final int PLACEMENT_POLICY_FIELD_NUMBER = 20;
private yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy placementPolicy_;
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
* @return Whether the placementPolicy field is set.
*/
@java.lang.Override
public boolean hasPlacementPolicy() {
return placementPolicy_ != null;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
* @return The placementPolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy() {
return placementPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() {
return getPlacementPolicy();
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 27;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
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();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_ID_FIELD_NUMBER = 28;
private volatile java.lang.Object hostId_;
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @return The hostId.
*/
@java.lang.Override
public java.lang.String getHostId() {
java.lang.Object ref = hostId_;
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();
hostId_ = s;
return s;
}
}
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @return The bytes for hostId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostIdBytes() {
java.lang.Object ref = hostId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostId_ = 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(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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, zoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, platformId_);
}
if (resources_ != null) {
output.writeMessage(9, getResources());
}
if (status_ != yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(10, status_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
11);
if (bootDisk_ != null) {
output.writeMessage(12, getBootDisk());
}
for (int i = 0; i < secondaryDisks_.size(); i++) {
output.writeMessage(13, secondaryDisks_.get(i));
}
for (int i = 0; i < networkInterfaces_.size(); i++) {
output.writeMessage(14, networkInterfaces_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, fqdn_);
}
if (schedulingPolicy_ != null) {
output.writeMessage(17, getSchedulingPolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, serviceAccountId_);
}
if (networkSettings_ != null) {
output.writeMessage(19, getNetworkSettings());
}
if (placementPolicy_ != null) {
output.writeMessage(20, getPlacementPolicy());
}
for (int i = 0; i < filesystems_.size(); i++) {
output.writeMessage(21, filesystems_.get(i));
}
for (int i = 0; i < localDisks_.size(); i++) {
output.writeMessage(22, localDisks_.get(i));
}
if (metadataOptions_ != null) {
output.writeMessage(23, getMetadataOptions());
}
if (gpuSettings_ != null) {
output.writeMessage(26, getGpuSettings());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 27, hostGroupId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 28, hostId_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, zoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(platformId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, platformId_);
}
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getResources());
}
if (status_ != yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, status_);
}
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(11, metadata__);
}
if (bootDisk_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getBootDisk());
}
for (int i = 0; i < secondaryDisks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, secondaryDisks_.get(i));
}
for (int i = 0; i < networkInterfaces_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, networkInterfaces_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fqdn_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, fqdn_);
}
if (schedulingPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, getSchedulingPolicy());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, serviceAccountId_);
}
if (networkSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, getNetworkSettings());
}
if (placementPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, getPlacementPolicy());
}
for (int i = 0; i < filesystems_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, filesystems_.get(i));
}
for (int i = 0; i < localDisks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, localDisks_.get(i));
}
if (metadataOptions_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, getMetadataOptions());
}
if (gpuSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, getGpuSettings());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, hostGroupId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, hostId_);
}
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.InstanceOuterClass.Instance)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance other = (yandex.cloud.api.compute.v1.InstanceOuterClass.Instance) 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 (!getZoneId()
.equals(other.getZoneId())) return false;
if (!getPlatformId()
.equals(other.getPlatformId())) return false;
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (status_ != other.status_) return false;
if (!internalGetMetadata().equals(
other.internalGetMetadata())) return false;
if (hasMetadataOptions() != other.hasMetadataOptions()) return false;
if (hasMetadataOptions()) {
if (!getMetadataOptions()
.equals(other.getMetadataOptions())) return false;
}
if (hasBootDisk() != other.hasBootDisk()) return false;
if (hasBootDisk()) {
if (!getBootDisk()
.equals(other.getBootDisk())) return false;
}
if (!getSecondaryDisksList()
.equals(other.getSecondaryDisksList())) return false;
if (!getLocalDisksList()
.equals(other.getLocalDisksList())) return false;
if (!getFilesystemsList()
.equals(other.getFilesystemsList())) return false;
if (!getNetworkInterfacesList()
.equals(other.getNetworkInterfacesList())) return false;
if (hasGpuSettings() != other.hasGpuSettings()) return false;
if (hasGpuSettings()) {
if (!getGpuSettings()
.equals(other.getGpuSettings())) return false;
}
if (!getFqdn()
.equals(other.getFqdn())) 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 (hasPlacementPolicy() != other.hasPlacementPolicy()) return false;
if (hasPlacementPolicy()) {
if (!getPlacementPolicy()
.equals(other.getPlacementPolicy())) return false;
}
if (!getHostGroupId()
.equals(other.getHostGroupId())) return false;
if (!getHostId()
.equals(other.getHostId())) 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();
}
hash = (37 * hash) + ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getZoneId().hashCode();
hash = (37 * hash) + PLATFORM_ID_FIELD_NUMBER;
hash = (53 * hash) + getPlatformId().hashCode();
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
if (hasMetadataOptions()) {
hash = (37 * hash) + METADATA_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getMetadataOptions().hashCode();
}
if (hasBootDisk()) {
hash = (37 * hash) + BOOT_DISK_FIELD_NUMBER;
hash = (53 * hash) + getBootDisk().hashCode();
}
if (getSecondaryDisksCount() > 0) {
hash = (37 * hash) + SECONDARY_DISKS_FIELD_NUMBER;
hash = (53 * hash) + getSecondaryDisksList().hashCode();
}
if (getLocalDisksCount() > 0) {
hash = (37 * hash) + LOCAL_DISKS_FIELD_NUMBER;
hash = (53 * hash) + getLocalDisksList().hashCode();
}
if (getFilesystemsCount() > 0) {
hash = (37 * hash) + FILESYSTEMS_FIELD_NUMBER;
hash = (53 * hash) + getFilesystemsList().hashCode();
}
if (getNetworkInterfacesCount() > 0) {
hash = (37 * hash) + NETWORK_INTERFACES_FIELD_NUMBER;
hash = (53 * hash) + getNetworkInterfacesList().hashCode();
}
if (hasGpuSettings()) {
hash = (37 * hash) + GPU_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getGpuSettings().hashCode();
}
hash = (37 * hash) + FQDN_FIELD_NUMBER;
hash = (53 * hash) + getFqdn().hashCode();
if (hasSchedulingPolicy()) {
hash = (37 * hash) + SCHEDULING_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getSchedulingPolicy().hashCode();
}
hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
if (hasNetworkSettings()) {
hash = (37 * hash) + NETWORK_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getNetworkSettings().hashCode();
}
if (hasPlacementPolicy()) {
hash = (37 * hash) + PLACEMENT_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPlacementPolicy().hashCode();
}
hash = (37 * hash) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().hashCode();
hash = (37 * hash) + HOST_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Instance parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Instance 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.InstanceOuterClass.Instance parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Instance 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.InstanceOuterClass.Instance parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Instance 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.InstanceOuterClass.Instance parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Instance 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.InstanceOuterClass.Instance parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Instance 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.InstanceOuterClass.Instance 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.InstanceOuterClass.Instance 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.InstanceOuterClass.Instance 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;
}
/**
*
* An Instance resource. For more information, see [Instances](/docs/compute/concepts/vm).
*
*
* Protobuf type {@code yandex.cloud.compute.v1.Instance}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.Instance)
yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Instance_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetLabels();
case 11:
return internalGetMetadata();
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();
case 11:
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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Instance_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.class, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecondaryDisksFieldBuilder();
getLocalDisksFieldBuilder();
getFilesystemsFieldBuilder();
getNetworkInterfacesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
folderId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
zoneId_ = "";
platformId_ = "";
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resources_ = null;
resourcesBuilder_ = null;
}
status_ = 0;
internalGetMutableMetadata().clear();
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = null;
} else {
metadataOptions_ = null;
metadataOptionsBuilder_ = null;
}
if (bootDiskBuilder_ == null) {
bootDisk_ = null;
} else {
bootDisk_ = null;
bootDiskBuilder_ = null;
}
if (secondaryDisksBuilder_ == null) {
secondaryDisks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
secondaryDisksBuilder_.clear();
}
if (localDisksBuilder_ == null) {
localDisks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
localDisksBuilder_.clear();
}
if (filesystemsBuilder_ == null) {
filesystems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
filesystemsBuilder_.clear();
}
if (networkInterfacesBuilder_ == null) {
networkInterfaces_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
networkInterfacesBuilder_.clear();
}
if (gpuSettingsBuilder_ == null) {
gpuSettings_ = null;
} else {
gpuSettings_ = null;
gpuSettingsBuilder_ = null;
}
fqdn_ = "";
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = null;
} else {
schedulingPolicy_ = null;
schedulingPolicyBuilder_ = null;
}
serviceAccountId_ = "";
if (networkSettingsBuilder_ == null) {
networkSettings_ = null;
} else {
networkSettings_ = null;
networkSettingsBuilder_ = null;
}
if (placementPolicyBuilder_ == null) {
placementPolicy_ = null;
} else {
placementPolicy_ = null;
placementPolicyBuilder_ = null;
}
hostGroupId_ = "";
hostId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Instance_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance result = new yandex.cloud.api.compute.v1.InstanceOuterClass.Instance(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();
result.zoneId_ = zoneId_;
result.platformId_ = platformId_;
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
result.status_ = status_;
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
if (metadataOptionsBuilder_ == null) {
result.metadataOptions_ = metadataOptions_;
} else {
result.metadataOptions_ = metadataOptionsBuilder_.build();
}
if (bootDiskBuilder_ == null) {
result.bootDisk_ = bootDisk_;
} else {
result.bootDisk_ = bootDiskBuilder_.build();
}
if (secondaryDisksBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
secondaryDisks_ = java.util.Collections.unmodifiableList(secondaryDisks_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.secondaryDisks_ = secondaryDisks_;
} else {
result.secondaryDisks_ = secondaryDisksBuilder_.build();
}
if (localDisksBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
localDisks_ = java.util.Collections.unmodifiableList(localDisks_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.localDisks_ = localDisks_;
} else {
result.localDisks_ = localDisksBuilder_.build();
}
if (filesystemsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
filesystems_ = java.util.Collections.unmodifiableList(filesystems_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.filesystems_ = filesystems_;
} else {
result.filesystems_ = filesystemsBuilder_.build();
}
if (networkInterfacesBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
networkInterfaces_ = java.util.Collections.unmodifiableList(networkInterfaces_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.networkInterfaces_ = networkInterfaces_;
} else {
result.networkInterfaces_ = networkInterfacesBuilder_.build();
}
if (gpuSettingsBuilder_ == null) {
result.gpuSettings_ = gpuSettings_;
} else {
result.gpuSettings_ = gpuSettingsBuilder_.build();
}
result.fqdn_ = fqdn_;
if (schedulingPolicyBuilder_ == null) {
result.schedulingPolicy_ = schedulingPolicy_;
} else {
result.schedulingPolicy_ = schedulingPolicyBuilder_.build();
}
result.serviceAccountId_ = serviceAccountId_;
if (networkSettingsBuilder_ == null) {
result.networkSettings_ = networkSettings_;
} else {
result.networkSettings_ = networkSettingsBuilder_.build();
}
if (placementPolicyBuilder_ == null) {
result.placementPolicy_ = placementPolicy_;
} else {
result.placementPolicy_ = placementPolicyBuilder_.build();
}
result.hostGroupId_ = hostGroupId_;
result.hostId_ = hostId_;
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.InstanceOuterClass.Instance) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.Instance)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.Instance other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.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.getZoneId().isEmpty()) {
zoneId_ = other.zoneId_;
onChanged();
}
if (!other.getPlatformId().isEmpty()) {
platformId_ = other.platformId_;
onChanged();
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
if (other.hasMetadataOptions()) {
mergeMetadataOptions(other.getMetadataOptions());
}
if (other.hasBootDisk()) {
mergeBootDisk(other.getBootDisk());
}
if (secondaryDisksBuilder_ == null) {
if (!other.secondaryDisks_.isEmpty()) {
if (secondaryDisks_.isEmpty()) {
secondaryDisks_ = other.secondaryDisks_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSecondaryDisksIsMutable();
secondaryDisks_.addAll(other.secondaryDisks_);
}
onChanged();
}
} else {
if (!other.secondaryDisks_.isEmpty()) {
if (secondaryDisksBuilder_.isEmpty()) {
secondaryDisksBuilder_.dispose();
secondaryDisksBuilder_ = null;
secondaryDisks_ = other.secondaryDisks_;
bitField0_ = (bitField0_ & ~0x00000004);
secondaryDisksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSecondaryDisksFieldBuilder() : null;
} else {
secondaryDisksBuilder_.addAllMessages(other.secondaryDisks_);
}
}
}
if (localDisksBuilder_ == null) {
if (!other.localDisks_.isEmpty()) {
if (localDisks_.isEmpty()) {
localDisks_ = other.localDisks_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureLocalDisksIsMutable();
localDisks_.addAll(other.localDisks_);
}
onChanged();
}
} else {
if (!other.localDisks_.isEmpty()) {
if (localDisksBuilder_.isEmpty()) {
localDisksBuilder_.dispose();
localDisksBuilder_ = null;
localDisks_ = other.localDisks_;
bitField0_ = (bitField0_ & ~0x00000008);
localDisksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLocalDisksFieldBuilder() : null;
} else {
localDisksBuilder_.addAllMessages(other.localDisks_);
}
}
}
if (filesystemsBuilder_ == null) {
if (!other.filesystems_.isEmpty()) {
if (filesystems_.isEmpty()) {
filesystems_ = other.filesystems_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureFilesystemsIsMutable();
filesystems_.addAll(other.filesystems_);
}
onChanged();
}
} else {
if (!other.filesystems_.isEmpty()) {
if (filesystemsBuilder_.isEmpty()) {
filesystemsBuilder_.dispose();
filesystemsBuilder_ = null;
filesystems_ = other.filesystems_;
bitField0_ = (bitField0_ & ~0x00000010);
filesystemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFilesystemsFieldBuilder() : null;
} else {
filesystemsBuilder_.addAllMessages(other.filesystems_);
}
}
}
if (networkInterfacesBuilder_ == null) {
if (!other.networkInterfaces_.isEmpty()) {
if (networkInterfaces_.isEmpty()) {
networkInterfaces_ = other.networkInterfaces_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureNetworkInterfacesIsMutable();
networkInterfaces_.addAll(other.networkInterfaces_);
}
onChanged();
}
} else {
if (!other.networkInterfaces_.isEmpty()) {
if (networkInterfacesBuilder_.isEmpty()) {
networkInterfacesBuilder_.dispose();
networkInterfacesBuilder_ = null;
networkInterfaces_ = other.networkInterfaces_;
bitField0_ = (bitField0_ & ~0x00000020);
networkInterfacesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNetworkInterfacesFieldBuilder() : null;
} else {
networkInterfacesBuilder_.addAllMessages(other.networkInterfaces_);
}
}
}
if (other.hasGpuSettings()) {
mergeGpuSettings(other.getGpuSettings());
}
if (!other.getFqdn().isEmpty()) {
fqdn_ = other.fqdn_;
onChanged();
}
if (other.hasSchedulingPolicy()) {
mergeSchedulingPolicy(other.getSchedulingPolicy());
}
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (other.hasNetworkSettings()) {
mergeNetworkSettings(other.getNetworkSettings());
}
if (other.hasPlacementPolicy()) {
mergePlacementPolicy(other.getPlacementPolicy());
}
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
onChanged();
}
if (!other.getHostId().isEmpty()) {
hostId_ = other.hostId_;
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.InstanceOuterClass.Instance parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.Instance) 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.
*
*
* 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.
*
*
* 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.
*
*
* 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.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the 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 java.lang.Object folderId_ = "";
/**
*
* ID of the folder that the instance 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 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 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 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 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_;
/**
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
* .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();
}
}
/**
* .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;
}
/**
* .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;
}
/**
* .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;
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
* .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_;
}
}
/**
* .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. 1-63 characters long.
*
*
* 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. 1-63 characters long.
*
*
* 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. 1-63 characters long.
*
*
* 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. 1-63 characters long.
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the instance. 1-63 characters long.
*
*
* 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. 0-256 characters long.
*
*
* 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. 0-256 characters long.
*
*
* 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. 0-256 characters long.
*
*
* 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. 0-256 characters long.
*
*
* string description = 5;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the instance. 0-256 characters long.
*
*
* 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. Maximum of 64 per resource.
*
*
* 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. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs. Maximum of 64 per resource.
*
*
* 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. Maximum of 64 per resource.
*
*
* 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. Maximum of 64 per resource.
*
*
* 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. Maximum of 64 per resource.
*
*
* 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. Maximum of 64 per resource.
*
*
* map<string, string> labels = 6;
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object zoneId_ = "";
/**
*
* ID of the availability zone where the instance resides.
*
*
* 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.lang.Object platformId_ = "";
/**
*
* ID of the hardware platform configuration for the instance.
*
*
* string platform_id = 8;
* @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.
*
*
* string platform_id = 8;
* @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.
*
*
* string platform_id = 8;
* @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.
*
*
* string platform_id = 8;
* @return This builder for chaining.
*/
public Builder clearPlatformId() {
platformId_ = getDefaultInstance().getPlatformId();
onChanged();
return this;
}
/**
*
* ID of the hardware platform configuration for the instance.
*
*
* string platform_id = 8;
* @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.InstanceOuterClass.Resources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources, yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.ResourcesOrBuilder> resourcesBuilder_;
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
* @return The resources.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Resources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
public Builder setResources(yandex.cloud.api.compute.v1.InstanceOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
public Builder setResources(
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
public Builder mergeResources(yandex.cloud.api.compute.v1.InstanceOuterClass.Resources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.getDefaultInstance() : resources_;
}
}
/**
*
* Computing resources of the instance such as the amount of memory and number of cores.
*
*
* .yandex.cloud.compute.v1.Resources resources = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources, yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources, yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.ResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private int status_ = 0;
/**
*
* Status of the instance.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Status of the instance.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @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.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @return The status.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status result = yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status.valueOf(status_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status.UNRECOGNIZED : result;
}
/**
*
* Status of the instance.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status of the instance.
*
*
* .yandex.cloud.compute.v1.Instance.Status status = 10;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
@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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata `key:value` pairs assigned to this instance. This includes custom metadata and predefined keys.
* 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 = 11;
*/
@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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
@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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
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. This includes custom metadata and predefined keys.
* 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 = 11;
*/
public Builder putAllMetadata(
java.util.Map values) {
internalGetMutableMetadata().getMutableMap()
.putAll(values);
return this;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions metadataOptions_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder> metadataOptionsBuilder_;
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
* @return Whether the metadataOptions field is set.
*/
public boolean hasMetadataOptions() {
return metadataOptionsBuilder_ != null || metadataOptions_ != null;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
* @return The metadataOptions.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getMetadataOptions() {
if (metadataOptionsBuilder_ == null) {
return metadataOptions_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
} else {
return metadataOptionsBuilder_.getMessage();
}
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
public Builder setMetadataOptions(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions value) {
if (metadataOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadataOptions_ = value;
onChanged();
} else {
metadataOptionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
public Builder setMetadataOptions(
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder builderForValue) {
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = builderForValue.build();
onChanged();
} else {
metadataOptionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
public Builder mergeMetadataOptions(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions value) {
if (metadataOptionsBuilder_ == null) {
if (metadataOptions_ != null) {
metadataOptions_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.newBuilder(metadataOptions_).mergeFrom(value).buildPartial();
} else {
metadataOptions_ = value;
}
onChanged();
} else {
metadataOptionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
public Builder clearMetadataOptions() {
if (metadataOptionsBuilder_ == null) {
metadataOptions_ = null;
onChanged();
} else {
metadataOptions_ = null;
metadataOptionsBuilder_ = null;
}
return this;
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder getMetadataOptionsBuilder() {
onChanged();
return getMetadataOptionsFieldBuilder().getBuilder();
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder getMetadataOptionsOrBuilder() {
if (metadataOptionsBuilder_ != null) {
return metadataOptionsBuilder_.getMessageOrBuilder();
} else {
return metadataOptions_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance() : metadataOptions_;
}
}
/**
*
* Options allow user to configure access to instance's metadata
*
*
* .yandex.cloud.compute.v1.MetadataOptions metadata_options = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder>
getMetadataOptionsFieldBuilder() {
if (metadataOptionsBuilder_ == null) {
metadataOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder>(
getMetadataOptions(),
getParentForChildren(),
isClean());
metadataOptions_ = null;
}
return metadataOptionsBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk bootDisk_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder> bootDiskBuilder_;
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
* @return Whether the bootDisk field is set.
*/
public boolean hasBootDisk() {
return bootDiskBuilder_ != null || bootDisk_ != null;
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
* @return The bootDisk.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk getBootDisk() {
if (bootDiskBuilder_ == null) {
return bootDisk_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.getDefaultInstance() : bootDisk_;
} else {
return bootDiskBuilder_.getMessage();
}
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
public Builder setBootDisk(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk value) {
if (bootDiskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bootDisk_ = value;
onChanged();
} else {
bootDiskBuilder_.setMessage(value);
}
return this;
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
public Builder setBootDisk(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder builderForValue) {
if (bootDiskBuilder_ == null) {
bootDisk_ = builderForValue.build();
onChanged();
} else {
bootDiskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
public Builder mergeBootDisk(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk value) {
if (bootDiskBuilder_ == null) {
if (bootDisk_ != null) {
bootDisk_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.newBuilder(bootDisk_).mergeFrom(value).buildPartial();
} else {
bootDisk_ = value;
}
onChanged();
} else {
bootDiskBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
public Builder clearBootDisk() {
if (bootDiskBuilder_ == null) {
bootDisk_ = null;
onChanged();
} else {
bootDisk_ = null;
bootDiskBuilder_ = null;
}
return this;
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder getBootDiskBuilder() {
onChanged();
return getBootDiskFieldBuilder().getBuilder();
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder getBootDiskOrBuilder() {
if (bootDiskBuilder_ != null) {
return bootDiskBuilder_.getMessageOrBuilder();
} else {
return bootDisk_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.getDefaultInstance() : bootDisk_;
}
}
/**
*
* Boot disk that is attached to the instance.
*
*
* .yandex.cloud.compute.v1.AttachedDisk boot_disk = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder>
getBootDiskFieldBuilder() {
if (bootDiskBuilder_ == null) {
bootDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder>(
getBootDisk(),
getParentForChildren(),
isClean());
bootDisk_ = null;
}
return bootDiskBuilder_;
}
private java.util.List secondaryDisks_ =
java.util.Collections.emptyList();
private void ensureSecondaryDisksIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
secondaryDisks_ = new java.util.ArrayList(secondaryDisks_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder> secondaryDisksBuilder_;
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public java.util.List getSecondaryDisksList() {
if (secondaryDisksBuilder_ == null) {
return java.util.Collections.unmodifiableList(secondaryDisks_);
} else {
return secondaryDisksBuilder_.getMessageList();
}
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public int getSecondaryDisksCount() {
if (secondaryDisksBuilder_ == null) {
return secondaryDisks_.size();
} else {
return secondaryDisksBuilder_.getCount();
}
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk getSecondaryDisks(int index) {
if (secondaryDisksBuilder_ == null) {
return secondaryDisks_.get(index);
} else {
return secondaryDisksBuilder_.getMessage(index);
}
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder setSecondaryDisks(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk value) {
if (secondaryDisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryDisksIsMutable();
secondaryDisks_.set(index, value);
onChanged();
} else {
secondaryDisksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder setSecondaryDisks(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder builderForValue) {
if (secondaryDisksBuilder_ == null) {
ensureSecondaryDisksIsMutable();
secondaryDisks_.set(index, builderForValue.build());
onChanged();
} else {
secondaryDisksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder addSecondaryDisks(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk value) {
if (secondaryDisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryDisksIsMutable();
secondaryDisks_.add(value);
onChanged();
} else {
secondaryDisksBuilder_.addMessage(value);
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder addSecondaryDisks(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk value) {
if (secondaryDisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecondaryDisksIsMutable();
secondaryDisks_.add(index, value);
onChanged();
} else {
secondaryDisksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder addSecondaryDisks(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder builderForValue) {
if (secondaryDisksBuilder_ == null) {
ensureSecondaryDisksIsMutable();
secondaryDisks_.add(builderForValue.build());
onChanged();
} else {
secondaryDisksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder addSecondaryDisks(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder builderForValue) {
if (secondaryDisksBuilder_ == null) {
ensureSecondaryDisksIsMutable();
secondaryDisks_.add(index, builderForValue.build());
onChanged();
} else {
secondaryDisksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder addAllSecondaryDisks(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk> values) {
if (secondaryDisksBuilder_ == null) {
ensureSecondaryDisksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, secondaryDisks_);
onChanged();
} else {
secondaryDisksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder clearSecondaryDisks() {
if (secondaryDisksBuilder_ == null) {
secondaryDisks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
secondaryDisksBuilder_.clear();
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public Builder removeSecondaryDisks(int index) {
if (secondaryDisksBuilder_ == null) {
ensureSecondaryDisksIsMutable();
secondaryDisks_.remove(index);
onChanged();
} else {
secondaryDisksBuilder_.remove(index);
}
return this;
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder getSecondaryDisksBuilder(
int index) {
return getSecondaryDisksFieldBuilder().getBuilder(index);
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder getSecondaryDisksOrBuilder(
int index) {
if (secondaryDisksBuilder_ == null) {
return secondaryDisks_.get(index); } else {
return secondaryDisksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder>
getSecondaryDisksOrBuilderList() {
if (secondaryDisksBuilder_ != null) {
return secondaryDisksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(secondaryDisks_);
}
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder addSecondaryDisksBuilder() {
return getSecondaryDisksFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.getDefaultInstance());
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder addSecondaryDisksBuilder(
int index) {
return getSecondaryDisksFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.getDefaultInstance());
}
/**
*
* Array of secondary disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedDisk secondary_disks = 13;
*/
public java.util.List
getSecondaryDisksBuilderList() {
return getSecondaryDisksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder>
getSecondaryDisksFieldBuilder() {
if (secondaryDisksBuilder_ == null) {
secondaryDisksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder>(
secondaryDisks_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
secondaryDisks_ = null;
}
return secondaryDisksBuilder_;
}
private java.util.List localDisks_ =
java.util.Collections.emptyList();
private void ensureLocalDisksIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
localDisks_ = new java.util.ArrayList(localDisks_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder> localDisksBuilder_;
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public java.util.List getLocalDisksList() {
if (localDisksBuilder_ == null) {
return java.util.Collections.unmodifiableList(localDisks_);
} else {
return localDisksBuilder_.getMessageList();
}
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public int getLocalDisksCount() {
if (localDisksBuilder_ == null) {
return localDisks_.size();
} else {
return localDisksBuilder_.getCount();
}
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk getLocalDisks(int index) {
if (localDisksBuilder_ == null) {
return localDisks_.get(index);
} else {
return localDisksBuilder_.getMessage(index);
}
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder setLocalDisks(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk value) {
if (localDisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalDisksIsMutable();
localDisks_.set(index, value);
onChanged();
} else {
localDisksBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder setLocalDisks(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder builderForValue) {
if (localDisksBuilder_ == null) {
ensureLocalDisksIsMutable();
localDisks_.set(index, builderForValue.build());
onChanged();
} else {
localDisksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder addLocalDisks(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk value) {
if (localDisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalDisksIsMutable();
localDisks_.add(value);
onChanged();
} else {
localDisksBuilder_.addMessage(value);
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder addLocalDisks(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk value) {
if (localDisksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLocalDisksIsMutable();
localDisks_.add(index, value);
onChanged();
} else {
localDisksBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder addLocalDisks(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder builderForValue) {
if (localDisksBuilder_ == null) {
ensureLocalDisksIsMutable();
localDisks_.add(builderForValue.build());
onChanged();
} else {
localDisksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder addLocalDisks(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder builderForValue) {
if (localDisksBuilder_ == null) {
ensureLocalDisksIsMutable();
localDisks_.add(index, builderForValue.build());
onChanged();
} else {
localDisksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder addAllLocalDisks(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk> values) {
if (localDisksBuilder_ == null) {
ensureLocalDisksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, localDisks_);
onChanged();
} else {
localDisksBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder clearLocalDisks() {
if (localDisksBuilder_ == null) {
localDisks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
localDisksBuilder_.clear();
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public Builder removeLocalDisks(int index) {
if (localDisksBuilder_ == null) {
ensureLocalDisksIsMutable();
localDisks_.remove(index);
onChanged();
} else {
localDisksBuilder_.remove(index);
}
return this;
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder getLocalDisksBuilder(
int index) {
return getLocalDisksFieldBuilder().getBuilder(index);
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder getLocalDisksOrBuilder(
int index) {
if (localDisksBuilder_ == null) {
return localDisks_.get(index); } else {
return localDisksBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder>
getLocalDisksOrBuilderList() {
if (localDisksBuilder_ != null) {
return localDisksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(localDisks_);
}
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder addLocalDisksBuilder() {
return getLocalDisksFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.getDefaultInstance());
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder addLocalDisksBuilder(
int index) {
return getLocalDisksFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.getDefaultInstance());
}
/**
*
* Array of local disks that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedLocalDisk local_disks = 22;
*/
public java.util.List
getLocalDisksBuilderList() {
return getLocalDisksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder>
getLocalDisksFieldBuilder() {
if (localDisksBuilder_ == null) {
localDisksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder>(
localDisks_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
localDisks_ = null;
}
return localDisksBuilder_;
}
private java.util.List filesystems_ =
java.util.Collections.emptyList();
private void ensureFilesystemsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
filesystems_ = new java.util.ArrayList(filesystems_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder> filesystemsBuilder_;
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public java.util.List getFilesystemsList() {
if (filesystemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(filesystems_);
} else {
return filesystemsBuilder_.getMessageList();
}
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public int getFilesystemsCount() {
if (filesystemsBuilder_ == null) {
return filesystems_.size();
} else {
return filesystemsBuilder_.getCount();
}
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem getFilesystems(int index) {
if (filesystemsBuilder_ == null) {
return filesystems_.get(index);
} else {
return filesystemsBuilder_.getMessage(index);
}
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder setFilesystems(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem value) {
if (filesystemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesystemsIsMutable();
filesystems_.set(index, value);
onChanged();
} else {
filesystemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder setFilesystems(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder builderForValue) {
if (filesystemsBuilder_ == null) {
ensureFilesystemsIsMutable();
filesystems_.set(index, builderForValue.build());
onChanged();
} else {
filesystemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder addFilesystems(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem value) {
if (filesystemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesystemsIsMutable();
filesystems_.add(value);
onChanged();
} else {
filesystemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder addFilesystems(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem value) {
if (filesystemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFilesystemsIsMutable();
filesystems_.add(index, value);
onChanged();
} else {
filesystemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder addFilesystems(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder builderForValue) {
if (filesystemsBuilder_ == null) {
ensureFilesystemsIsMutable();
filesystems_.add(builderForValue.build());
onChanged();
} else {
filesystemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder addFilesystems(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder builderForValue) {
if (filesystemsBuilder_ == null) {
ensureFilesystemsIsMutable();
filesystems_.add(index, builderForValue.build());
onChanged();
} else {
filesystemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder addAllFilesystems(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem> values) {
if (filesystemsBuilder_ == null) {
ensureFilesystemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filesystems_);
onChanged();
} else {
filesystemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder clearFilesystems() {
if (filesystemsBuilder_ == null) {
filesystems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
filesystemsBuilder_.clear();
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public Builder removeFilesystems(int index) {
if (filesystemsBuilder_ == null) {
ensureFilesystemsIsMutable();
filesystems_.remove(index);
onChanged();
} else {
filesystemsBuilder_.remove(index);
}
return this;
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder getFilesystemsBuilder(
int index) {
return getFilesystemsFieldBuilder().getBuilder(index);
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder getFilesystemsOrBuilder(
int index) {
if (filesystemsBuilder_ == null) {
return filesystems_.get(index); } else {
return filesystemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder>
getFilesystemsOrBuilderList() {
if (filesystemsBuilder_ != null) {
return filesystemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(filesystems_);
}
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder addFilesystemsBuilder() {
return getFilesystemsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.getDefaultInstance());
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder addFilesystemsBuilder(
int index) {
return getFilesystemsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.getDefaultInstance());
}
/**
*
* Array of filesystems that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.AttachedFilesystem filesystems = 21;
*/
public java.util.List
getFilesystemsBuilderList() {
return getFilesystemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder>
getFilesystemsFieldBuilder() {
if (filesystemsBuilder_ == null) {
filesystemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder>(
filesystems_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
filesystems_ = null;
}
return filesystemsBuilder_;
}
private java.util.List networkInterfaces_ =
java.util.Collections.emptyList();
private void ensureNetworkInterfacesIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
networkInterfaces_ = new java.util.ArrayList(networkInterfaces_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder> networkInterfacesBuilder_;
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public int getNetworkInterfacesCount() {
if (networkInterfacesBuilder_ == null) {
return networkInterfaces_.size();
} else {
return networkInterfacesBuilder_.getCount();
}
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public Builder setNetworkInterfaces(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public Builder setNetworkInterfaces(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public Builder addNetworkInterfaces(yandex.cloud.api.compute.v1.InstanceOuterClass.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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public Builder addNetworkInterfaces(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public Builder addNetworkInterfaces(
yandex.cloud.api.compute.v1.InstanceOuterClass.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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public Builder addNetworkInterfaces(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public Builder addAllNetworkInterfaces(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface> 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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public Builder clearNetworkInterfaces() {
if (networkInterfacesBuilder_ == null) {
networkInterfaces_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
networkInterfacesBuilder_.clear();
}
return this;
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.Builder getNetworkInterfacesBuilder(
int index) {
return getNetworkInterfacesFieldBuilder().getBuilder(index);
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.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 instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder>
getNetworkInterfacesOrBuilderList() {
if (networkInterfacesBuilder_ != null) {
return networkInterfacesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(networkInterfaces_);
}
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.Builder addNetworkInterfacesBuilder() {
return getNetworkInterfacesFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.getDefaultInstance());
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.Builder addNetworkInterfacesBuilder(
int index) {
return getNetworkInterfacesFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.getDefaultInstance());
}
/**
*
* Array of network interfaces that are attached to the instance.
*
*
* repeated .yandex.cloud.compute.v1.NetworkInterface network_interfaces = 14;
*/
public java.util.List
getNetworkInterfacesBuilderList() {
return getNetworkInterfacesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder>
getNetworkInterfacesFieldBuilder() {
if (networkInterfacesBuilder_ == null) {
networkInterfacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder>(
networkInterfaces_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
networkInterfaces_ = null;
}
return networkInterfacesBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings gpuSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder> gpuSettingsBuilder_;
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
* @return Whether the gpuSettings field is set.
*/
public boolean hasGpuSettings() {
return gpuSettingsBuilder_ != null || gpuSettings_ != null;
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
* @return The gpuSettings.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings getGpuSettings() {
if (gpuSettingsBuilder_ == null) {
return gpuSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.getDefaultInstance() : gpuSettings_;
} else {
return gpuSettingsBuilder_.getMessage();
}
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
public Builder setGpuSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings value) {
if (gpuSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gpuSettings_ = value;
onChanged();
} else {
gpuSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
public Builder setGpuSettings(
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder builderForValue) {
if (gpuSettingsBuilder_ == null) {
gpuSettings_ = builderForValue.build();
onChanged();
} else {
gpuSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
public Builder mergeGpuSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings value) {
if (gpuSettingsBuilder_ == null) {
if (gpuSettings_ != null) {
gpuSettings_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.newBuilder(gpuSettings_).mergeFrom(value).buildPartial();
} else {
gpuSettings_ = value;
}
onChanged();
} else {
gpuSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
public Builder clearGpuSettings() {
if (gpuSettingsBuilder_ == null) {
gpuSettings_ = null;
onChanged();
} else {
gpuSettings_ = null;
gpuSettingsBuilder_ = null;
}
return this;
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder getGpuSettingsBuilder() {
onChanged();
return getGpuSettingsFieldBuilder().getBuilder();
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder getGpuSettingsOrBuilder() {
if (gpuSettingsBuilder_ != null) {
return gpuSettingsBuilder_.getMessageOrBuilder();
} else {
return gpuSettings_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.getDefaultInstance() : gpuSettings_;
}
}
/**
*
* GPU settings
*
*
* .yandex.cloud.compute.v1.GpuSettings gpu_settings = 26;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder>
getGpuSettingsFieldBuilder() {
if (gpuSettingsBuilder_ == null) {
gpuSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder>(
getGpuSettings(),
getParentForChildren(),
isClean());
gpuSettings_ = null;
}
return gpuSettingsBuilder_;
}
private java.lang.Object fqdn_ = "";
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @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;
}
}
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @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;
}
}
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @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;
}
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @return This builder for chaining.
*/
public Builder clearFqdn() {
fqdn_ = getDefaultInstance().getFqdn();
onChanged();
return this;
}
/**
*
* A domain name of the instance. FQDN is defined by the server
* in the format `<hostname>.<region_id>.internal` when the instance is created.
* If the hostname were not specified when the instance was created, FQDN would be `<id>.auto.internal`.
*
*
* string fqdn = 16;
* @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 yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy schedulingPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder> schedulingPolicyBuilder_;
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
* @return Whether the schedulingPolicy field is set.
*/
public boolean hasSchedulingPolicy() {
return schedulingPolicyBuilder_ != null || schedulingPolicy_ != null;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
* @return The schedulingPolicy.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getSchedulingPolicy() {
if (schedulingPolicyBuilder_ == null) {
return schedulingPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
} else {
return schedulingPolicyBuilder_.getMessage();
}
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
public Builder setSchedulingPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy value) {
if (schedulingPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulingPolicy_ = value;
onChanged();
} else {
schedulingPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
public Builder setSchedulingPolicy(
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder builderForValue) {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = builderForValue.build();
onChanged();
} else {
schedulingPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
public Builder mergeSchedulingPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy value) {
if (schedulingPolicyBuilder_ == null) {
if (schedulingPolicy_ != null) {
schedulingPolicy_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.newBuilder(schedulingPolicy_).mergeFrom(value).buildPartial();
} else {
schedulingPolicy_ = value;
}
onChanged();
} else {
schedulingPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
public Builder clearSchedulingPolicy() {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicy_ = null;
onChanged();
} else {
schedulingPolicy_ = null;
schedulingPolicyBuilder_ = null;
}
return this;
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder getSchedulingPolicyBuilder() {
onChanged();
return getSchedulingPolicyFieldBuilder().getBuilder();
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder getSchedulingPolicyOrBuilder() {
if (schedulingPolicyBuilder_ != null) {
return schedulingPolicyBuilder_.getMessageOrBuilder();
} else {
return schedulingPolicy_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance() : schedulingPolicy_;
}
}
/**
*
* Scheduling policy configuration.
*
*
* .yandex.cloud.compute.v1.SchedulingPolicy scheduling_policy = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder>
getSchedulingPolicyFieldBuilder() {
if (schedulingPolicyBuilder_ == null) {
schedulingPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder>(
getSchedulingPolicy(),
getParentForChildren(),
isClean());
schedulingPolicy_ = null;
}
return schedulingPolicyBuilder_;
}
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 18;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings networkSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder> networkSettingsBuilder_;
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
* @return Whether the networkSettings field is set.
*/
public boolean hasNetworkSettings() {
return networkSettingsBuilder_ != null || networkSettings_ != null;
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
* @return The networkSettings.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getNetworkSettings() {
if (networkSettingsBuilder_ == null) {
return networkSettings_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
} else {
return networkSettingsBuilder_.getMessage();
}
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
public Builder setNetworkSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings value) {
if (networkSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkSettings_ = value;
onChanged();
} else {
networkSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
public Builder setNetworkSettings(
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder builderForValue) {
if (networkSettingsBuilder_ == null) {
networkSettings_ = builderForValue.build();
onChanged();
} else {
networkSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
public Builder mergeNetworkSettings(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings value) {
if (networkSettingsBuilder_ == null) {
if (networkSettings_ != null) {
networkSettings_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.newBuilder(networkSettings_).mergeFrom(value).buildPartial();
} else {
networkSettings_ = value;
}
onChanged();
} else {
networkSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
public Builder clearNetworkSettings() {
if (networkSettingsBuilder_ == null) {
networkSettings_ = null;
onChanged();
} else {
networkSettings_ = null;
networkSettingsBuilder_ = null;
}
return this;
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder getNetworkSettingsBuilder() {
onChanged();
return getNetworkSettingsFieldBuilder().getBuilder();
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder getNetworkSettingsOrBuilder() {
if (networkSettingsBuilder_ != null) {
return networkSettingsBuilder_.getMessageOrBuilder();
} else {
return networkSettings_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance() : networkSettings_;
}
}
/**
*
* Network Settings
*
*
* .yandex.cloud.compute.v1.NetworkSettings network_settings = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder>
getNetworkSettingsFieldBuilder() {
if (networkSettingsBuilder_ == null) {
networkSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder>(
getNetworkSettings(),
getParentForChildren(),
isClean());
networkSettings_ = null;
}
return networkSettingsBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy placementPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder> placementPolicyBuilder_;
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
* @return Whether the placementPolicy field is set.
*/
public boolean hasPlacementPolicy() {
return placementPolicyBuilder_ != null || placementPolicy_ != null;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
* @return The placementPolicy.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getPlacementPolicy() {
if (placementPolicyBuilder_ == null) {
return placementPolicy_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
} else {
return placementPolicyBuilder_.getMessage();
}
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
public Builder setPlacementPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy value) {
if (placementPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
placementPolicy_ = value;
onChanged();
} else {
placementPolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
public Builder setPlacementPolicy(
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder builderForValue) {
if (placementPolicyBuilder_ == null) {
placementPolicy_ = builderForValue.build();
onChanged();
} else {
placementPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
public Builder mergePlacementPolicy(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy value) {
if (placementPolicyBuilder_ == null) {
if (placementPolicy_ != null) {
placementPolicy_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.newBuilder(placementPolicy_).mergeFrom(value).buildPartial();
} else {
placementPolicy_ = value;
}
onChanged();
} else {
placementPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
public Builder clearPlacementPolicy() {
if (placementPolicyBuilder_ == null) {
placementPolicy_ = null;
onChanged();
} else {
placementPolicy_ = null;
placementPolicyBuilder_ = null;
}
return this;
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder getPlacementPolicyBuilder() {
onChanged();
return getPlacementPolicyFieldBuilder().getBuilder();
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder getPlacementPolicyOrBuilder() {
if (placementPolicyBuilder_ != null) {
return placementPolicyBuilder_.getMessageOrBuilder();
} else {
return placementPolicy_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance() : placementPolicy_;
}
}
/**
*
* Placement policy configuration.
*
*
* .yandex.cloud.compute.v1.PlacementPolicy placement_policy = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder>
getPlacementPolicyFieldBuilder() {
if (placementPolicyBuilder_ == null) {
placementPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder>(
getPlacementPolicy(),
getParentForChildren(),
isClean());
placementPolicy_ = null;
}
return placementPolicyBuilder_;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the dedicated host group that the instance belongs to.
*
*
* string host_group_id = 27;
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = value;
onChanged();
return this;
}
private java.lang.Object hostId_ = "";
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @return The hostId.
*/
public java.lang.String getHostId() {
java.lang.Object ref = hostId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @return The bytes for hostId.
*/
public com.google.protobuf.ByteString
getHostIdBytes() {
java.lang.Object ref = hostId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @param value The hostId to set.
* @return This builder for chaining.
*/
public Builder setHostId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostId_ = value;
onChanged();
return this;
}
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @return This builder for chaining.
*/
public Builder clearHostId() {
hostId_ = getDefaultInstance().getHostId();
onChanged();
return this;
}
/**
*
* ID of the dedicated host that the instance belongs to.
*
*
* string host_id = 28;
* @param value The bytes for hostId to set.
* @return This builder for chaining.
*/
public Builder setHostIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostId_ = 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.Instance)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.Instance)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.Instance DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.Instance();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Instance parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Instance(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.InstanceOuterClass.Instance getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.Resources)
com.google.protobuf.MessageOrBuilder {
/**
*
* The amount of memory available to the instance, specified in bytes.
*
*
* int64 memory = 1;
* @return The memory.
*/
long getMemory();
/**
*
* The number of cores available to the instance.
*
*
* int64 cores = 2;
* @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;
* @return The coreFraction.
*/
long getCoreFraction();
/**
*
* The number of GPUs available to the instance.
*
*
* int64 gpus = 4;
* @return The gpus.
*/
long getGpus();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.Resources}
*/
public static final class Resources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.Resources)
ResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Resources.newBuilder() to construct.
private Resources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Resources() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Resources();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Resources(
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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.class, yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.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;
* @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;
* @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;
* @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;
* @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.InstanceOuterClass.Resources)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources other = (yandex.cloud.api.compute.v1.InstanceOuterClass.Resources) 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.InstanceOuterClass.Resources parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Resources 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.InstanceOuterClass.Resources parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Resources 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.InstanceOuterClass.Resources parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Resources 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.InstanceOuterClass.Resources parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Resources 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.InstanceOuterClass.Resources parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Resources 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.InstanceOuterClass.Resources 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.InstanceOuterClass.Resources 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.InstanceOuterClass.Resources 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.Resources}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.Resources)
yandex.cloud.api.compute.v1.InstanceOuterClass.ResourcesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.class, yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_Resources_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Resources getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Resources build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Resources buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.Resources result = new yandex.cloud.api.compute.v1.InstanceOuterClass.Resources(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.InstanceOuterClass.Resources) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.Resources)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.Resources other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.Resources.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.InstanceOuterClass.Resources parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.Resources) 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;
* @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;
* @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;
* @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;
* @return The cores.
*/
@java.lang.Override
public long getCores() {
return cores_;
}
/**
*
* The number of cores available to the instance.
*
*
* int64 cores = 2;
* @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;
* @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;
* @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;
* @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;
* @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;
* @return The gpus.
*/
@java.lang.Override
public long getGpus() {
return gpus_;
}
/**
*
* The number of GPUs available to the instance.
*
*
* int64 gpus = 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;
* @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.Resources)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.Resources)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.Resources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.Resources();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.Resources getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Resources parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Resources(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.InstanceOuterClass.Resources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttachedDiskOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachedDisk)
com.google.protobuf.MessageOrBuilder {
/**
*
* Access mode to the Disk resource.
*
*
* .yandex.cloud.compute.v1.AttachedDisk.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
* Access mode to the Disk resource.
*
*
* .yandex.cloud.compute.v1.AttachedDisk.Mode mode = 1;
* @return The mode.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode getMode();
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @return The deviceName.
*/
java.lang.String getDeviceName();
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @return The bytes for deviceName.
*/
com.google.protobuf.ByteString
getDeviceNameBytes();
/**
*
* Specifies whether the disk will be auto-deleted when the instance is deleted.
*
*
* bool auto_delete = 3;
* @return The autoDelete.
*/
boolean getAutoDelete();
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @return The diskId.
*/
java.lang.String getDiskId();
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @return The bytes for diskId.
*/
com.google.protobuf.ByteString
getDiskIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.AttachedDisk}
*/
public static final class AttachedDisk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachedDisk)
AttachedDiskOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttachedDisk.newBuilder() to construct.
private AttachedDisk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttachedDisk() {
mode_ = 0;
deviceName_ = "";
diskId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttachedDisk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttachedDisk(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
deviceName_ = s;
break;
}
case 24: {
autoDelete_ = input.readBool();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
diskId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDisk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDisk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.class, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.compute.v1.AttachedDisk.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.InstanceOuterClass.AttachedDisk.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.AttachedDisk.Mode)
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
*
* Access mode to the Disk resource.
*
*
* .yandex.cloud.compute.v1.AttachedDisk.Mode mode = 1;
* @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.AttachedDisk.Mode mode = 1;
* @return The mode.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode getMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode result = yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode.valueOf(mode_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode.UNRECOGNIZED : result;
}
public static final int DEVICE_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object deviceName_;
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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 into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @return The bytes for deviceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceNameBytes() {
java.lang.Object ref = deviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTO_DELETE_FIELD_NUMBER = 3;
private boolean autoDelete_;
/**
*
* Specifies whether the disk will be auto-deleted when the instance is deleted.
*
*
* bool auto_delete = 3;
* @return The autoDelete.
*/
@java.lang.Override
public boolean getAutoDelete() {
return autoDelete_;
}
public static final int DISK_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object diskId_;
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @return The diskId.
*/
@java.lang.Override
public java.lang.String getDiskId() {
java.lang.Object ref = diskId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
diskId_ = s;
return s;
}
}
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @return The bytes for diskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDiskIdBytes() {
java.lang.Object ref = diskId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (mode_ != yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode.MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, mode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_);
}
if (autoDelete_ != false) {
output.writeBool(3, autoDelete_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, diskId_);
}
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.InstanceOuterClass.AttachedDisk.Mode.MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, mode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_);
}
if (autoDelete_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, autoDelete_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, diskId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk other = (yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk) obj;
if (mode_ != other.mode_) return false;
if (!getDeviceName()
.equals(other.getDeviceName())) return false;
if (getAutoDelete()
!= other.getAutoDelete()) return false;
if (!getDiskId()
.equals(other.getDiskId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDeviceName().hashCode();
hash = (37 * hash) + AUTO_DELETE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutoDelete());
hash = (37 * hash) + DISK_ID_FIELD_NUMBER;
hash = (53 * hash) + getDiskId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk 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.InstanceOuterClass.AttachedDisk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk 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.InstanceOuterClass.AttachedDisk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk 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.InstanceOuterClass.AttachedDisk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk 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.InstanceOuterClass.AttachedDisk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk 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.InstanceOuterClass.AttachedDisk 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.InstanceOuterClass.AttachedDisk 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.InstanceOuterClass.AttachedDisk 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.AttachedDisk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachedDisk)
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDiskOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDisk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDisk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.class, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
mode_ = 0;
deviceName_ = "";
autoDelete_ = false;
diskId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedDisk_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk result = new yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk(this);
result.mode_ = mode_;
result.deviceName_ = deviceName_;
result.autoDelete_ = autoDelete_;
result.diskId_ = diskId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.getDefaultInstance()) return this;
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (!other.getDeviceName().isEmpty()) {
deviceName_ = other.deviceName_;
onChanged();
}
if (other.getAutoDelete() != false) {
setAutoDelete(other.getAutoDelete());
}
if (!other.getDiskId().isEmpty()) {
diskId_ = other.diskId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk) 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.AttachedDisk.Mode mode = 1;
* @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.AttachedDisk.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;
}
/**
*
* Access mode to the Disk resource.
*
*
* .yandex.cloud.compute.v1.AttachedDisk.Mode mode = 1;
* @return The mode.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode getMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode result = yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode.valueOf(mode_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode.UNRECOGNIZED : result;
}
/**
*
* Access mode to the Disk resource.
*
*
* .yandex.cloud.compute.v1.AttachedDisk.Mode mode = 1;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk.Mode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Access mode to the Disk resource.
*
*
* .yandex.cloud.compute.v1.AttachedDisk.Mode mode = 1;
* @return This builder for chaining.
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
private java.lang.Object deviceName_ = "";
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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 into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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 into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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 into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @return This builder for chaining.
*/
public Builder clearDeviceName() {
deviceName_ = getDefaultInstance().getDeviceName();
onChanged();
return this;
}
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @param value The bytes for deviceName to set.
* @return This builder for chaining.
*/
public Builder setDeviceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceName_ = value;
onChanged();
return this;
}
private boolean autoDelete_ ;
/**
*
* Specifies whether the disk will be auto-deleted when the instance is deleted.
*
*
* bool auto_delete = 3;
* @return The autoDelete.
*/
@java.lang.Override
public boolean getAutoDelete() {
return autoDelete_;
}
/**
*
* Specifies whether the disk will be auto-deleted when the instance is deleted.
*
*
* bool auto_delete = 3;
* @param value The autoDelete to set.
* @return This builder for chaining.
*/
public Builder setAutoDelete(boolean value) {
autoDelete_ = value;
onChanged();
return this;
}
/**
*
* Specifies whether the disk will be auto-deleted when the instance is deleted.
*
*
* bool auto_delete = 3;
* @return This builder for chaining.
*/
public Builder clearAutoDelete() {
autoDelete_ = false;
onChanged();
return this;
}
private java.lang.Object diskId_ = "";
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @return The diskId.
*/
public java.lang.String getDiskId() {
java.lang.Object ref = diskId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
diskId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @return The bytes for diskId.
*/
public com.google.protobuf.ByteString
getDiskIdBytes() {
java.lang.Object ref = diskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @param value The diskId to set.
* @return This builder for chaining.
*/
public Builder setDiskId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
diskId_ = value;
onChanged();
return this;
}
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @return This builder for chaining.
*/
public Builder clearDiskId() {
diskId_ = getDefaultInstance().getDiskId();
onChanged();
return this;
}
/**
*
* ID of the disk that is attached to the instance.
*
*
* string disk_id = 4;
* @param value The bytes for diskId to set.
* @return This builder for chaining.
*/
public Builder setDiskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
diskId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.AttachedDisk)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachedDisk)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedDisk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttachedDisk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AttachedDisk(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.InstanceOuterClass.AttachedDisk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttachedLocalDiskOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachedLocalDisk)
com.google.protobuf.MessageOrBuilder {
/**
*
* Size of the disk, specified in bytes.
*
*
* int64 size = 1;
* @return The size.
*/
long getSize();
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @return The deviceName.
*/
java.lang.String getDeviceName();
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @return The bytes for deviceName.
*/
com.google.protobuf.ByteString
getDeviceNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.AttachedLocalDisk}
*/
public static final class AttachedLocalDisk extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachedLocalDisk)
AttachedLocalDiskOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttachedLocalDisk.newBuilder() to construct.
private AttachedLocalDisk(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttachedLocalDisk() {
deviceName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttachedLocalDisk();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttachedLocalDisk(
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;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
deviceName_ = 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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.class, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder.class);
}
public static final int SIZE_FIELD_NUMBER = 1;
private long size_;
/**
*
* Size of the disk, specified in bytes.
*
*
* int64 size = 1;
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
public static final int DEVICE_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object deviceName_;
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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 into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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;
}
}
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_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_);
}
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_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_);
}
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.InstanceOuterClass.AttachedLocalDisk)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk other = (yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk) obj;
if (getSize()
!= other.getSize()) return false;
if (!getDeviceName()
.equals(other.getDeviceName())) 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 = (37 * hash) + DEVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDeviceName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk 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.InstanceOuterClass.AttachedLocalDisk parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk 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.InstanceOuterClass.AttachedLocalDisk parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk 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.InstanceOuterClass.AttachedLocalDisk parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk 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.InstanceOuterClass.AttachedLocalDisk parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk 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.InstanceOuterClass.AttachedLocalDisk 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.InstanceOuterClass.AttachedLocalDisk 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.InstanceOuterClass.AttachedLocalDisk 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.AttachedLocalDisk}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachedLocalDisk)
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDiskOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.class, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.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;
deviceName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk result = new yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk(this);
result.size_ = size_;
result.deviceName_ = deviceName_;
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.InstanceOuterClass.AttachedLocalDisk) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk.getDefaultInstance()) return this;
if (other.getSize() != 0L) {
setSize(other.getSize());
}
if (!other.getDeviceName().isEmpty()) {
deviceName_ = other.deviceName_;
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.InstanceOuterClass.AttachedLocalDisk parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long size_ ;
/**
*
* Size of the disk, specified in bytes.
*
*
* int64 size = 1;
* @return The size.
*/
@java.lang.Override
public long getSize() {
return size_;
}
/**
*
* Size of the disk, specified in bytes.
*
*
* int64 size = 1;
* @param value The size to set.
* @return This builder for chaining.
*/
public Builder setSize(long value) {
size_ = value;
onChanged();
return this;
}
/**
*
* Size of the disk, specified in bytes.
*
*
* int64 size = 1;
* @return This builder for chaining.
*/
public Builder clearSize() {
size_ = 0L;
onChanged();
return this;
}
private java.lang.Object deviceName_ = "";
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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 into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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 into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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 into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @return This builder for chaining.
*/
public Builder clearDeviceName() {
deviceName_ = getDefaultInstance().getDeviceName();
onChanged();
return this;
}
/**
*
* Serial number that is reflected into the /dev/disk/by-id/ tree
* of a Linux operating system running within the instance.
* This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
*
*
* string device_name = 2;
* @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;
}
@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.AttachedLocalDisk)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachedLocalDisk)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedLocalDisk getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttachedLocalDisk parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AttachedLocalDisk(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.InstanceOuterClass.AttachedLocalDisk getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttachedFilesystemOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.AttachedFilesystem)
com.google.protobuf.MessageOrBuilder {
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.Mode mode = 1;
* @return The mode.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.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.
*
*
* string device_name = 2;
* @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.
*
*
* string device_name = 2;
* @return The bytes for deviceName.
*/
com.google.protobuf.ByteString
getDeviceNameBytes();
/**
*
* ID of the filesystem that is attached to the instance.
*
*
* string filesystem_id = 3;
* @return The filesystemId.
*/
java.lang.String getFilesystemId();
/**
*
* ID of the filesystem that is attached to the instance.
*
*
* string filesystem_id = 3;
* @return The bytes for filesystemId.
*/
com.google.protobuf.ByteString
getFilesystemIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.AttachedFilesystem}
*/
public static final class AttachedFilesystem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.AttachedFilesystem)
AttachedFilesystemOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttachedFilesystem.newBuilder() to construct.
private AttachedFilesystem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AttachedFilesystem() {
mode_ = 0;
deviceName_ = "";
filesystemId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttachedFilesystem();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttachedFilesystem(
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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedFilesystem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedFilesystem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.class, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.compute.v1.AttachedFilesystem.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.InstanceOuterClass.AttachedFilesystem.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.AttachedFilesystem.Mode)
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.Mode mode = 1;
* @return The mode.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Mode getMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Mode result = yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Mode.valueOf(mode_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.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.
*
*
* string device_name = 2;
* @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.
*
*
* string device_name = 2;
* @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 is attached to the instance.
*
*
* string filesystem_id = 3;
* @return The filesystemId.
*/
@java.lang.Override
public java.lang.String getFilesystemId() {
java.lang.Object ref = filesystemId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filesystemId_ = s;
return s;
}
}
/**
*
* ID of the filesystem that is attached to the instance.
*
*
* string filesystem_id = 3;
* @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.InstanceOuterClass.AttachedFilesystem.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.InstanceOuterClass.AttachedFilesystem.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.InstanceOuterClass.AttachedFilesystem)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem other = (yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem) 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.InstanceOuterClass.AttachedFilesystem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem 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.InstanceOuterClass.AttachedFilesystem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem 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.InstanceOuterClass.AttachedFilesystem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem 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.InstanceOuterClass.AttachedFilesystem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem 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.InstanceOuterClass.AttachedFilesystem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem 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.InstanceOuterClass.AttachedFilesystem 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.InstanceOuterClass.AttachedFilesystem 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.InstanceOuterClass.AttachedFilesystem 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.AttachedFilesystem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.AttachedFilesystem)
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedFilesystem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedFilesystem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.class, yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_AttachedFilesystem_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem result = new yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem(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.InstanceOuterClass.AttachedFilesystem) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.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.InstanceOuterClass.AttachedFilesystem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int mode_ = 0;
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.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;
}
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.Mode mode = 1;
* @return The mode.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Mode getMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Mode result = yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Mode.valueOf(mode_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Mode.UNRECOGNIZED : result;
}
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.Mode mode = 1;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem.Mode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Access mode to the filesystem.
*
*
* .yandex.cloud.compute.v1.AttachedFilesystem.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.
*
*
* string device_name = 2;
* @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.
*
*
* string device_name = 2;
* @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.
*
*
* string device_name = 2;
* @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.
*
*
* string device_name = 2;
* @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.
*
*
* string device_name = 2;
* @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 is attached to the instance.
*
*
* string filesystem_id = 3;
* @return The filesystemId.
*/
public java.lang.String getFilesystemId() {
java.lang.Object ref = filesystemId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filesystemId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the filesystem that is attached to the instance.
*
*
* string filesystem_id = 3;
* @return The bytes for filesystemId.
*/
public com.google.protobuf.ByteString
getFilesystemIdBytes() {
java.lang.Object ref = filesystemId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filesystemId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the filesystem that is attached to the instance.
*
*
* string filesystem_id = 3;
* @param value The filesystemId to set.
* @return This builder for chaining.
*/
public Builder setFilesystemId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filesystemId_ = value;
onChanged();
return this;
}
/**
*
* ID of the filesystem that is attached to the instance.
*
*
* string filesystem_id = 3;
* @return This builder for chaining.
*/
public Builder clearFilesystemId() {
filesystemId_ = getDefaultInstance().getFilesystemId();
onChanged();
return this;
}
/**
*
* ID of the filesystem that is attached to the instance.
*
*
* string filesystem_id = 3;
* @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.AttachedFilesystem)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.AttachedFilesystem)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.AttachedFilesystem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AttachedFilesystem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AttachedFilesystem(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.InstanceOuterClass.AttachedFilesystem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkInterfaceOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.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.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.PrimaryAddress primary_v4_address = 4;
* @return The primaryV4Address.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress getPrimaryV4Address();
/**
*
* Primary IPv4 address that is assigned to the instance for this network interface.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v4_address = 4;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder getPrimaryV4AddressOrBuilder();
/**
*
* Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
*
*
* .yandex.cloud.compute.v1.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 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
* @return The primaryV6Address.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress getPrimaryV6Address();
/**
*
* Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder getPrimaryV6AddressOrBuilder();
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.NetworkInterface}
*/
public static final class NetworkInterface extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.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_ = "";
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@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();
}
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();
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.InstanceOuterClass.PrimaryAddress.Builder subBuilder = null;
if (primaryV4Address_ != null) {
subBuilder = primaryV4Address_.toBuilder();
}
primaryV4Address_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(primaryV4Address_);
primaryV4Address_ = subBuilder.buildPartial();
}
break;
}
case 42: {
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder subBuilder = null;
if (primaryV6Address_ != null) {
subBuilder = primaryV6Address_.toBuilder();
}
primaryV6Address_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(primaryV6Address_);
primaryV6Address_ = subBuilder.buildPartial();
}
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
securityGroupIds_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkInterface_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkInterface_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.class, yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PrimaryAddress primaryV4Address_;
/**
*
* Primary IPv4 address that is assigned to the instance for this network interface.
*
*
* .yandex.cloud.compute.v1.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.PrimaryAddress primary_v4_address = 4;
* @return The primaryV4Address.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress getPrimaryV4Address() {
return primaryV4Address_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.getDefaultInstance() : primaryV4Address_;
}
/**
*
* Primary IPv4 address that is assigned to the instance for this network interface.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v4_address = 4;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder getPrimaryV4AddressOrBuilder() {
return getPrimaryV4Address();
}
public static final int PRIMARY_V6_ADDRESS_FIELD_NUMBER = 5;
private yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress primaryV6Address_;
/**
*
* Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
*
*
* .yandex.cloud.compute.v1.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 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
* @return The primaryV6Address.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress getPrimaryV6Address() {
return primaryV6Address_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.getDefaultInstance() : primaryV6Address_;
}
/**
*
* Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder getPrimaryV6AddressOrBuilder() {
return getPrimaryV6Address();
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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());
}
for (int i = 0; i < securityGroupIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, securityGroupIds_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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());
}
{
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.InstanceOuterClass.NetworkInterface)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface other = (yandex.cloud.api.compute.v1.InstanceOuterClass.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 (!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) + 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();
}
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.InstanceOuterClass.NetworkInterface parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkInterface parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkInterface parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.NetworkInterface}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.NetworkInterface)
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterfaceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkInterface_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkInterface_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.class, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.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;
}
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkInterface_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface result = new yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface(this);
int from_bitField0_ = bitField0_;
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();
}
if (((bitField0_ & 0x00000001) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.securityGroupIds_ = securityGroupIds_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.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());
}
if (!other.securityGroupIds_.isEmpty()) {
if (securityGroupIds_.isEmpty()) {
securityGroupIds_ = other.securityGroupIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.addAll(other.securityGroupIds_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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.InstanceOuterClass.PrimaryAddress primaryV4Address_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder> primaryV4AddressBuilder_;
/**
*
* Primary IPv4 address that is assigned to the instance for this network interface.
*
*
* .yandex.cloud.compute.v1.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.PrimaryAddress primary_v4_address = 4;
* @return The primaryV4Address.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress getPrimaryV4Address() {
if (primaryV4AddressBuilder_ == null) {
return primaryV4Address_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.getDefaultInstance() : primaryV4Address_;
} else {
return primaryV4AddressBuilder_.getMessage();
}
}
/**
*
* Primary IPv4 address that is assigned to the instance for this network interface.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v4_address = 4;
*/
public Builder setPrimaryV4Address(yandex.cloud.api.compute.v1.InstanceOuterClass.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.PrimaryAddress primary_v4_address = 4;
*/
public Builder setPrimaryV4Address(
yandex.cloud.api.compute.v1.InstanceOuterClass.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.PrimaryAddress primary_v4_address = 4;
*/
public Builder mergePrimaryV4Address(yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress value) {
if (primaryV4AddressBuilder_ == null) {
if (primaryV4Address_ != null) {
primaryV4Address_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.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.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.PrimaryAddress primary_v4_address = 4;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder getPrimaryV4AddressBuilder() {
onChanged();
return getPrimaryV4AddressFieldBuilder().getBuilder();
}
/**
*
* Primary IPv4 address that is assigned to the instance for this network interface.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v4_address = 4;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder getPrimaryV4AddressOrBuilder() {
if (primaryV4AddressBuilder_ != null) {
return primaryV4AddressBuilder_.getMessageOrBuilder();
} else {
return primaryV4Address_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.getDefaultInstance() : primaryV4Address_;
}
}
/**
*
* Primary IPv4 address that is assigned to the instance for this network interface.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v4_address = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder>
getPrimaryV4AddressFieldBuilder() {
if (primaryV4AddressBuilder_ == null) {
primaryV4AddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder>(
getPrimaryV4Address(),
getParentForChildren(),
isClean());
primaryV4Address_ = null;
}
return primaryV4AddressBuilder_;
}
private yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress primaryV6Address_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder> primaryV6AddressBuilder_;
/**
*
* Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
*
*
* .yandex.cloud.compute.v1.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 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
* @return The primaryV6Address.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress getPrimaryV6Address() {
if (primaryV6AddressBuilder_ == null) {
return primaryV6Address_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.getDefaultInstance() : primaryV6Address_;
} else {
return primaryV6AddressBuilder_.getMessage();
}
}
/**
*
* Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
*/
public Builder setPrimaryV6Address(yandex.cloud.api.compute.v1.InstanceOuterClass.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 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
*/
public Builder setPrimaryV6Address(
yandex.cloud.api.compute.v1.InstanceOuterClass.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 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
*/
public Builder mergePrimaryV6Address(yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress value) {
if (primaryV6AddressBuilder_ == null) {
if (primaryV6Address_ != null) {
primaryV6Address_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.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 not available yet.
*
*
* .yandex.cloud.compute.v1.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 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder getPrimaryV6AddressBuilder() {
onChanged();
return getPrimaryV6AddressFieldBuilder().getBuilder();
}
/**
*
* Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder getPrimaryV6AddressOrBuilder() {
if (primaryV6AddressBuilder_ != null) {
return primaryV6AddressBuilder_.getMessageOrBuilder();
} else {
return primaryV6Address_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.getDefaultInstance() : primaryV6Address_;
}
}
/**
*
* Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
*
*
* .yandex.cloud.compute.v1.PrimaryAddress primary_v6_address = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder>
getPrimaryV6AddressFieldBuilder() {
if (primaryV6AddressBuilder_ == null) {
primaryV6AddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder>(
getPrimaryV6Address(),
getParentForChildren(),
isClean());
primaryV6Address_ = null;
}
return primaryV6AddressBuilder_;
}
private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSecurityGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param index The index to set the value at.
* @param value The securityGroupIds to set.
* @return This builder for chaining.
*/
public Builder setSecurityGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param value The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param values The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllSecurityGroupIds(
java.lang.Iterable values) {
ensureSecurityGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityGroupIds_);
onChanged();
return this;
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @return This builder for chaining.
*/
public Builder clearSecurityGroupIds() {
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* ID's of security groups attached to the interface
*
*
* repeated string security_group_ids = 6;
* @param value The bytes of the securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.NetworkInterface)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.NetworkInterface)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkInterface();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkInterface getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PrimaryAddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.PrimaryAddress)
com.google.protobuf.MessageOrBuilder {
/**
*
* An IPv4 internal network address that is assigned to the instance for this network interface.
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* An IPv4 internal network address that is assigned to the instance for this network interface.
*
*
* 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.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.OneToOneNat one_to_one_nat = 2;
* @return The oneToOneNat.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat getOneToOneNat();
/**
*
* One-to-one NAT configuration. If missing, NAT has not been set up.
*
*
* .yandex.cloud.compute.v1.OneToOneNat one_to_one_nat = 2;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNatOrBuilder getOneToOneNatOrBuilder();
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
java.util.List
getDnsRecordsList();
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord getDnsRecords(int index);
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
int getDnsRecordsCount();
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder>
getDnsRecordsOrBuilderList();
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.PrimaryAddress}
*/
public static final class PrimaryAddress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.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.InstanceOuterClass.OneToOneNat.Builder subBuilder = null;
if (oneToOneNat_ != null) {
subBuilder = oneToOneNat_.toBuilder();
}
oneToOneNat_ = input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PrimaryAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PrimaryAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.class, yandex.cloud.api.compute.v1.InstanceOuterClass.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 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 internal network address that is assigned to the 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 ONE_TO_ONE_NAT_FIELD_NUMBER = 2;
private yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat oneToOneNat_;
/**
*
* One-to-one NAT configuration. If missing, NAT has not been set up.
*
*
* .yandex.cloud.compute.v1.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.OneToOneNat one_to_one_nat = 2;
* @return The oneToOneNat.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat getOneToOneNat() {
return oneToOneNat_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.getDefaultInstance() : oneToOneNat_;
}
/**
*
* One-to-one NAT configuration. If missing, NAT has not been set up.
*
*
* .yandex.cloud.compute.v1.OneToOneNat one_to_one_nat = 2;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
@java.lang.Override
public java.util.List getDnsRecordsList() {
return dnsRecords_;
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder>
getDnsRecordsOrBuilderList() {
return dnsRecords_;
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public int getDnsRecordsCount() {
return dnsRecords_.size();
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord getDnsRecords(int index) {
return dnsRecords_.get(index);
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PrimaryAddress)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress other = (yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PrimaryAddress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PrimaryAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PrimaryAddress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.PrimaryAddress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.PrimaryAddress)
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PrimaryAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PrimaryAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.class, yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PrimaryAddress_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress result = new yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PrimaryAddress) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PrimaryAddress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.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 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 internal network address that is assigned to the 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 internal network address that is assigned to the 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 internal network address that is assigned to the instance for this network interface.
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
*
* An IPv4 internal network address that is assigned to the instance for this network interface.
*
*
* 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.InstanceOuterClass.OneToOneNat oneToOneNat_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat, yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNatOrBuilder> oneToOneNatBuilder_;
/**
*
* One-to-one NAT configuration. If missing, NAT has not been set up.
*
*
* .yandex.cloud.compute.v1.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.OneToOneNat one_to_one_nat = 2;
* @return The oneToOneNat.
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat getOneToOneNat() {
if (oneToOneNatBuilder_ == null) {
return oneToOneNat_ == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.getDefaultInstance() : oneToOneNat_;
} else {
return oneToOneNatBuilder_.getMessage();
}
}
/**
*
* One-to-one NAT configuration. If missing, NAT has not been set up.
*
*
* .yandex.cloud.compute.v1.OneToOneNat one_to_one_nat = 2;
*/
public Builder setOneToOneNat(yandex.cloud.api.compute.v1.InstanceOuterClass.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.OneToOneNat one_to_one_nat = 2;
*/
public Builder setOneToOneNat(
yandex.cloud.api.compute.v1.InstanceOuterClass.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.OneToOneNat one_to_one_nat = 2;
*/
public Builder mergeOneToOneNat(yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat value) {
if (oneToOneNatBuilder_ == null) {
if (oneToOneNat_ != null) {
oneToOneNat_ =
yandex.cloud.api.compute.v1.InstanceOuterClass.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.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.OneToOneNat one_to_one_nat = 2;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.Builder getOneToOneNatBuilder() {
onChanged();
return getOneToOneNatFieldBuilder().getBuilder();
}
/**
*
* One-to-one NAT configuration. If missing, NAT has not been set up.
*
*
* .yandex.cloud.compute.v1.OneToOneNat one_to_one_nat = 2;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNatOrBuilder getOneToOneNatOrBuilder() {
if (oneToOneNatBuilder_ != null) {
return oneToOneNatBuilder_.getMessageOrBuilder();
} else {
return oneToOneNat_ == null ?
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.getDefaultInstance() : oneToOneNat_;
}
}
/**
*
* One-to-one NAT configuration. If missing, NAT has not been set up.
*
*
* .yandex.cloud.compute.v1.OneToOneNat one_to_one_nat = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat, yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNatOrBuilder>
getOneToOneNatFieldBuilder() {
if (oneToOneNatBuilder_ == null) {
oneToOneNatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat, yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.DnsRecord, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder> dnsRecordsBuilder_;
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.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.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.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord getDnsRecords(int index) {
if (dnsRecordsBuilder_ == null) {
return dnsRecords_.get(index);
} else {
return dnsRecordsBuilder_.getMessage(index);
}
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public Builder setDnsRecords(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder setDnsRecords(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addDnsRecords(yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addDnsRecords(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addDnsRecords(
yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addDnsRecords(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addAllDnsRecords(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord> 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.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.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.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder getDnsRecordsBuilder(
int index) {
return getDnsRecordsFieldBuilder().getBuilder(index);
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder(
int index) {
if (dnsRecordsBuilder_ == null) {
return dnsRecords_.get(index); } else {
return dnsRecordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder>
getDnsRecordsOrBuilderList() {
if (dnsRecordsBuilder_ != null) {
return dnsRecordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dnsRecords_);
}
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder addDnsRecordsBuilder() {
return getDnsRecordsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.getDefaultInstance());
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder addDnsRecordsBuilder(
int index) {
return getDnsRecordsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.getDefaultInstance());
}
/**
*
* Internal DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public java.util.List
getDnsRecordsBuilderList() {
return getDnsRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder>
getDnsRecordsFieldBuilder() {
if (dnsRecordsBuilder_ == null) {
dnsRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.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.PrimaryAddress)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.PrimaryAddress)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.PrimaryAddress();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PrimaryAddress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OneToOneNatOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.OneToOneNat)
com.google.protobuf.MessageOrBuilder {
/**
*
* An external IP address associated with this instance.
*
*
* string address = 1;
* @return The address.
*/
java.lang.String getAddress();
/**
*
* An external IP address associated with this instance.
*
*
* string address = 1;
* @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.IpVersion ip_version = 2;
* @return The enum numeric value on the wire for ipVersion.
*/
int getIpVersionValue();
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.IpVersion ip_version = 2;
* @return The ipVersion.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion getIpVersion();
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
java.util.List
getDnsRecordsList();
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord getDnsRecords(int index);
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
int getDnsRecordsCount();
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder>
getDnsRecordsOrBuilderList();
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.OneToOneNat}
*/
public static final class OneToOneNat extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.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.InstanceOuterClass.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_OneToOneNat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_OneToOneNat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.class, yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.Builder.class);
}
public static final int ADDRESS_FIELD_NUMBER = 1;
private volatile java.lang.Object address_;
/**
*
* An external IP address associated with this instance.
*
*
* 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 external IP address associated with this instance.
*
*
* 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_;
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.IpVersion ip_version = 2;
* @return The enum numeric value on the wire for ipVersion.
*/
@java.lang.Override public int getIpVersionValue() {
return ipVersion_;
}
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.IpVersion ip_version = 2;
* @return The ipVersion.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion getIpVersion() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion result = yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.valueOf(ipVersion_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.UNRECOGNIZED : result;
}
public static final int DNS_RECORDS_FIELD_NUMBER = 3;
private java.util.List dnsRecords_;
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public java.util.List getDnsRecordsList() {
return dnsRecords_;
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder>
getDnsRecordsOrBuilderList() {
return dnsRecords_;
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public int getDnsRecordsCount() {
return dnsRecords_.size();
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord getDnsRecords(int index) {
return dnsRecords_.get(index);
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.OneToOneNat)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat other = (yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.OneToOneNat parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.OneToOneNat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.OneToOneNat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.OneToOneNat}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.OneToOneNat)
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_OneToOneNat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_OneToOneNat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.class, yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_OneToOneNat_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat result = new yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.OneToOneNat) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.OneToOneNat parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object address_ = "";
/**
*
* An external IP address associated with this instance.
*
*
* 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 external IP address associated with this instance.
*
*
* 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 external IP address associated with this instance.
*
*
* 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 external IP address associated with this instance.
*
*
* string address = 1;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
/**
*
* An external IP address associated with this instance.
*
*
* 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;
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.IpVersion ip_version = 2;
* @return The enum numeric value on the wire for ipVersion.
*/
@java.lang.Override public int getIpVersionValue() {
return ipVersion_;
}
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.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;
}
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.IpVersion ip_version = 2;
* @return The ipVersion.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion getIpVersion() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion result = yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.valueOf(ipVersion_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion.UNRECOGNIZED : result;
}
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.IpVersion ip_version = 2;
* @param value The ipVersion to set.
* @return This builder for chaining.
*/
public Builder setIpVersion(yandex.cloud.api.compute.v1.InstanceOuterClass.IpVersion value) {
if (value == null) {
throw new NullPointerException();
}
ipVersion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* IP version for the external IP address.
*
*
* .yandex.cloud.compute.v1.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.InstanceOuterClass.DnsRecord, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder> dnsRecordsBuilder_;
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.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.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.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord getDnsRecords(int index) {
if (dnsRecordsBuilder_ == null) {
return dnsRecords_.get(index);
} else {
return dnsRecordsBuilder_.getMessage(index);
}
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public Builder setDnsRecords(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder setDnsRecords(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addDnsRecords(yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addDnsRecords(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addDnsRecords(
yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addDnsRecords(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.DnsRecord dns_records = 3;
*/
public Builder addAllDnsRecords(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord> 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.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.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.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder getDnsRecordsBuilder(
int index) {
return getDnsRecordsFieldBuilder().getBuilder(index);
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder getDnsRecordsOrBuilder(
int index) {
if (dnsRecordsBuilder_ == null) {
return dnsRecords_.get(index); } else {
return dnsRecordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder>
getDnsRecordsOrBuilderList() {
if (dnsRecordsBuilder_ != null) {
return dnsRecordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dnsRecords_);
}
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder addDnsRecordsBuilder() {
return getDnsRecordsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.getDefaultInstance());
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder addDnsRecordsBuilder(
int index) {
return getDnsRecordsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.getDefaultInstance());
}
/**
*
* External DNS configuration
*
*
* repeated .yandex.cloud.compute.v1.DnsRecord dns_records = 3;
*/
public java.util.List
getDnsRecordsBuilderList() {
return getDnsRecordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder>
getDnsRecordsFieldBuilder() {
if (dnsRecordsBuilder_ == null) {
dnsRecordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.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.OneToOneNat)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.OneToOneNat)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.OneToOneNat();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.OneToOneNat getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DnsRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.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;
* @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;
* @return The bytes for fqdn.
*/
com.google.protobuf.ByteString
getFqdnBytes();
/**
*
* DNS zone id for the record (optional, if not set, some private zone is used).
*
*
* string dns_zone_id = 2;
* @return The dnsZoneId.
*/
java.lang.String getDnsZoneId();
/**
*
* DNS zone id for the record (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 not set, a reasonable default is used.)
*
*
* int64 ttl = 3;
* @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.DnsRecord}
*/
public static final class DnsRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.class, yandex.cloud.api.compute.v1.InstanceOuterClass.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;
* @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;
* @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 for the record (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 for the record (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 not set, a reasonable default is used.)
*
*
* int64 ttl = 3;
* @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.InstanceOuterClass.DnsRecord)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord other = (yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.DnsRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.DnsRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.DnsRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.DnsRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DnsRecord)
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.class, yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_DnsRecord_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord result = new yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.DnsRecord) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.DnsRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.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;
* @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;
* @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;
* @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;
* @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;
* @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 for the record (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 for the record (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 for the record (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 for the record (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 for the record (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 not set, a reasonable default is used.)
*
*
* int64 ttl = 3;
* @return The ttl.
*/
@java.lang.Override
public long getTtl() {
return ttl_;
}
/**
*
* DNS record ttl (optional, if not set, a reasonable default is used.)
*
*
* int64 ttl = 3;
* @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 not set, a reasonable default is used.)
*
*
* int64 ttl = 3;
* @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.DnsRecord)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DnsRecord)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.DnsRecord();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.DnsRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SchedulingPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.SchedulingPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* True for short-lived compute instances. For more information, see [Preemptible VMs](/docs/compute/concepts/preemptible-vm).
*
*
* bool preemptible = 1;
* @return The preemptible.
*/
boolean getPreemptible();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.SchedulingPolicy}
*/
public static final class SchedulingPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_SchedulingPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_SchedulingPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.class, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder.class);
}
public static final int PREEMPTIBLE_FIELD_NUMBER = 1;
private boolean preemptible_;
/**
*
* True for short-lived compute instances. For more information, see [Preemptible VMs](/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.InstanceOuterClass.SchedulingPolicy)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy other = (yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.SchedulingPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.SchedulingPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.SchedulingPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.SchedulingPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.SchedulingPolicy)
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_SchedulingPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_SchedulingPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.class, yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_SchedulingPolicy_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy result = new yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.SchedulingPolicy) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.SchedulingPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean preemptible_ ;
/**
*
* True for short-lived compute instances. For more information, see [Preemptible VMs](/docs/compute/concepts/preemptible-vm).
*
*
* bool preemptible = 1;
* @return The preemptible.
*/
@java.lang.Override
public boolean getPreemptible() {
return preemptible_;
}
/**
*
* True for short-lived compute instances. For more information, see [Preemptible VMs](/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;
}
/**
*
* True for short-lived compute instances. For more information, see [Preemptible VMs](/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.SchedulingPolicy)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.SchedulingPolicy)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.SchedulingPolicy();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.SchedulingPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.NetworkSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.NetworkSettings.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.NetworkSettings.Type type = 1;
* @return The type.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type getType();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.NetworkSettings}
*/
public static final class NetworkSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.class, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.compute.v1.NetworkSettings.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TYPE_UNSPECIFIED = 0;
*/
TYPE_UNSPECIFIED(0),
/**
*
* Standard network.
*
*
* STANDARD = 1;
*/
STANDARD(1),
/**
*
* Software accelerated network.
*
*
* SOFTWARE_ACCELERATED = 2;
*/
SOFTWARE_ACCELERATED(2),
/**
*
* Hardware accelerated network (not available yet, reserved for future use).
*
*
* HARDWARE_ACCELERATED = 3;
*/
HARDWARE_ACCELERATED(3),
UNRECOGNIZED(-1),
;
/**
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Standard network.
*
*
* STANDARD = 1;
*/
public static final int STANDARD_VALUE = 1;
/**
*
* Software accelerated network.
*
*
* SOFTWARE_ACCELERATED = 2;
*/
public static final int SOFTWARE_ACCELERATED_VALUE = 2;
/**
*
* Hardware accelerated network (not available yet, reserved for future use).
*
*
* 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.InstanceOuterClass.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.NetworkSettings.Type)
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.NetworkSettings.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.NetworkSettings.Type type = 1;
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type result = yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type.valueOf(type_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.NetworkSettings)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings other = (yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.NetworkSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.NetworkSettings)
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.class, yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_NetworkSettings_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings result = new yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkSettings) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int type_ = 0;
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.NetworkSettings.Type type = 1;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.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;
}
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.NetworkSettings.Type type = 1;
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type result = yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type.valueOf(type_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type.UNRECOGNIZED : result;
}
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.NetworkSettings.Type type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Network Type
*
*
* .yandex.cloud.compute.v1.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.NetworkSettings)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.NetworkSettings)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.NetworkSettings();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.NetworkSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GpuSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.GpuSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @return The gpuClusterId.
*/
java.lang.String getGpuClusterId();
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @return The bytes for gpuClusterId.
*/
com.google.protobuf.ByteString
getGpuClusterIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.GpuSettings}
*/
public static final class GpuSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.GpuSettings)
GpuSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use GpuSettings.newBuilder() to construct.
private GpuSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GpuSettings() {
gpuClusterId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GpuSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GpuSettings(
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();
gpuClusterId_ = 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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_GpuSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_GpuSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.class, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder.class);
}
public static final int GPU_CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object gpuClusterId_;
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @return The gpuClusterId.
*/
@java.lang.Override
public java.lang.String getGpuClusterId() {
java.lang.Object ref = gpuClusterId_;
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();
gpuClusterId_ = s;
return s;
}
}
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @return The bytes for gpuClusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGpuClusterIdBytes() {
java.lang.Object ref = gpuClusterId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gpuClusterId_ = 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(gpuClusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gpuClusterId_);
}
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(gpuClusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gpuClusterId_);
}
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.InstanceOuterClass.GpuSettings)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings other = (yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings) obj;
if (!getGpuClusterId()
.equals(other.getGpuClusterId())) 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) + GPU_CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getGpuClusterId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings 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.InstanceOuterClass.GpuSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings 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.InstanceOuterClass.GpuSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings 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.InstanceOuterClass.GpuSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings 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.InstanceOuterClass.GpuSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings 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.InstanceOuterClass.GpuSettings 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.InstanceOuterClass.GpuSettings 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.InstanceOuterClass.GpuSettings 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.GpuSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.GpuSettings)
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_GpuSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_GpuSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.class, yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.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();
gpuClusterId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_GpuSettings_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings result = new yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings(this);
result.gpuClusterId_ = gpuClusterId_;
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.InstanceOuterClass.GpuSettings) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings.getDefaultInstance()) return this;
if (!other.getGpuClusterId().isEmpty()) {
gpuClusterId_ = other.gpuClusterId_;
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.InstanceOuterClass.GpuSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object gpuClusterId_ = "";
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @return The gpuClusterId.
*/
public java.lang.String getGpuClusterId() {
java.lang.Object ref = gpuClusterId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gpuClusterId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @return The bytes for gpuClusterId.
*/
public com.google.protobuf.ByteString
getGpuClusterIdBytes() {
java.lang.Object ref = gpuClusterId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gpuClusterId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @param value The gpuClusterId to set.
* @return This builder for chaining.
*/
public Builder setGpuClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
gpuClusterId_ = value;
onChanged();
return this;
}
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @return This builder for chaining.
*/
public Builder clearGpuClusterId() {
gpuClusterId_ = getDefaultInstance().getGpuClusterId();
onChanged();
return this;
}
/**
*
* Attach instance to specified GPU cluster.
*
*
* string gpu_cluster_id = 1;
* @param value The bytes for gpuClusterId to set.
* @return This builder for chaining.
*/
public Builder setGpuClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
gpuClusterId_ = 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.GpuSettings)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GpuSettings)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.GpuSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GpuSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GpuSettings(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.InstanceOuterClass.GpuSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PlacementPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.PlacementPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* Placement group ID.
*
*
* string placement_group_id = 1;
* @return The placementGroupId.
*/
java.lang.String getPlacementGroupId();
/**
*
* Placement group ID.
*
*
* 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.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.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.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder>
getHostAffinityRulesOrBuilderList();
/**
*
* List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
*
*
* repeated .yandex.cloud.compute.v1.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder getHostAffinityRulesOrBuilder(
int index);
/**
*
* Placement group partition
*
*
* int64 placement_group_partition = 3;
* @return The placementGroupPartition.
*/
long getPlacementGroupPartition();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.PlacementPolicy}
*/
public static final class PlacementPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.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.InstanceOuterClass.PlacementPolicy.HostAffinityRule.parser(), extensionRegistry));
break;
}
case 24: {
placementGroupPartition_ = 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 {
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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.class, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder.class);
}
public interface HostAffinityRuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.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.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.PlacementPolicy.HostAffinityRule.Operator op = 2;
* @return The op.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule}
*/
public static final class HostAffinityRule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.class, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.compute.v1.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.InstanceOuterClass.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.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.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.PlacementPolicy.HostAffinityRule.Operator op = 2;
* @return The op.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Operator getOp() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Operator result = yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Operator.valueOf(op_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy.HostAffinityRule)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule other = (yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy.HostAffinityRule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy.HostAffinityRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy.HostAffinityRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.PlacementPolicy.HostAffinityRule)
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.class, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule result = new yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy.HostAffinityRule) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy.HostAffinityRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.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.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.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.PlacementPolicy.HostAffinityRule.Operator op = 2;
* @return The op.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Operator getOp() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Operator result = yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Operator.valueOf(op_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Operator.UNRECOGNIZED : result;
}
/**
*
* Include or exclude action
*
*
* .yandex.cloud.compute.v1.PlacementPolicy.HostAffinityRule.Operator op = 2;
* @param value The op to set.
* @return This builder for chaining.
*/
public Builder setOp(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Operator value) {
if (value == null) {
throw new NullPointerException();
}
op_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Include or exclude action
*
*
* .yandex.cloud.compute.v1.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.PlacementPolicy.HostAffinityRule)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.PlacementPolicy.HostAffinityRule)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy.HostAffinityRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int PLACEMENT_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object placementGroupId_;
/**
*
* Placement group ID.
*
*
* 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;
}
}
/**
*
* Placement group ID.
*
*
* 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.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder>
getHostAffinityRulesOrBuilderList() {
return hostAffinityRules_;
}
/**
*
* List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
*
*
* repeated .yandex.cloud.compute.v1.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder getHostAffinityRulesOrBuilder(
int index) {
return hostAffinityRules_.get(index);
}
public static final int PLACEMENT_GROUP_PARTITION_FIELD_NUMBER = 3;
private long placementGroupPartition_;
/**
*
* Placement group partition
*
*
* int64 placement_group_partition = 3;
* @return The placementGroupPartition.
*/
@java.lang.Override
public long getPlacementGroupPartition() {
return placementGroupPartition_;
}
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));
}
if (placementGroupPartition_ != 0L) {
output.writeInt64(3, placementGroupPartition_);
}
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));
}
if (placementGroupPartition_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, placementGroupPartition_);
}
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.InstanceOuterClass.PlacementPolicy)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy other = (yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy) obj;
if (!getPlacementGroupId()
.equals(other.getPlacementGroupId())) return false;
if (!getHostAffinityRulesList()
.equals(other.getHostAffinityRulesList())) return false;
if (getPlacementGroupPartition()
!= other.getPlacementGroupPartition()) 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 = (37 * hash) + PLACEMENT_GROUP_PARTITION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPlacementGroupPartition());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.InstanceOuterClass.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.PlacementPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.PlacementPolicy)
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.class, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.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();
}
placementGroupPartition_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_PlacementPolicy_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy result = new yandex.cloud.api.compute.v1.InstanceOuterClass.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();
}
result.placementGroupPartition_ = placementGroupPartition_;
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.InstanceOuterClass.PlacementPolicy) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.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_);
}
}
}
if (other.getPlacementGroupPartition() != 0L) {
setPlacementGroupPartition(other.getPlacementGroupPartition());
}
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.InstanceOuterClass.PlacementPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object placementGroupId_ = "";
/**
*
* Placement group ID.
*
*
* 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;
}
}
/**
*
* Placement group ID.
*
*
* 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;
}
}
/**
*
* Placement group ID.
*
*
* 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;
}
/**
*
* Placement group ID.
*
*
* string placement_group_id = 1;
* @return This builder for chaining.
*/
public Builder clearPlacementGroupId() {
placementGroupId_ = getDefaultInstance().getPlacementGroupId();
onChanged();
return this;
}
/**
*
* Placement group ID.
*
*
* 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.InstanceOuterClass.PlacementPolicy.HostAffinityRule, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder> hostAffinityRulesBuilder_;
/**
*
* List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
*
*
* repeated .yandex.cloud.compute.v1.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.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public Builder setHostAffinityRules(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public Builder setHostAffinityRules(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public Builder addHostAffinityRules(yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public Builder addHostAffinityRules(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public Builder addHostAffinityRules(
yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public Builder addHostAffinityRules(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public Builder addAllHostAffinityRules(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule> 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.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.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder>
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.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Builder addHostAffinityRulesBuilder() {
return getHostAffinityRulesFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.getDefaultInstance());
}
/**
*
* List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
*
*
* repeated .yandex.cloud.compute.v1.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Builder addHostAffinityRulesBuilder(
int index) {
return getHostAffinityRulesFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.getDefaultInstance());
}
/**
*
* List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
*
*
* repeated .yandex.cloud.compute.v1.PlacementPolicy.HostAffinityRule host_affinity_rules = 2;
*/
public java.util.List
getHostAffinityRulesBuilderList() {
return getHostAffinityRulesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder>
getHostAffinityRulesFieldBuilder() {
if (hostAffinityRulesBuilder_ == null) {
hostAffinityRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRule.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy.HostAffinityRuleOrBuilder>(
hostAffinityRules_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
hostAffinityRules_ = null;
}
return hostAffinityRulesBuilder_;
}
private long placementGroupPartition_ ;
/**
*
* Placement group partition
*
*
* int64 placement_group_partition = 3;
* @return The placementGroupPartition.
*/
@java.lang.Override
public long getPlacementGroupPartition() {
return placementGroupPartition_;
}
/**
*
* Placement group partition
*
*
* int64 placement_group_partition = 3;
* @param value The placementGroupPartition to set.
* @return This builder for chaining.
*/
public Builder setPlacementGroupPartition(long value) {
placementGroupPartition_ = value;
onChanged();
return this;
}
/**
*
* Placement group partition
*
*
* int64 placement_group_partition = 3;
* @return This builder for chaining.
*/
public Builder clearPlacementGroupPartition() {
placementGroupPartition_ = 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.PlacementPolicy)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.PlacementPolicy)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.PlacementPolicy();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.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.InstanceOuterClass.PlacementPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MetadataOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.MetadataOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @return The enum numeric value on the wire for gceHttpEndpoint.
*/
int getGceHttpEndpointValue();
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @return The gceHttpEndpoint.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getGceHttpEndpoint();
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @return The enum numeric value on the wire for awsV1HttpEndpoint.
*/
int getAwsV1HttpEndpointValue();
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @return The awsV1HttpEndpoint.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getAwsV1HttpEndpoint();
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @return The enum numeric value on the wire for gceHttpToken.
*/
int getGceHttpTokenValue();
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @return The gceHttpToken.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getGceHttpToken();
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @return The enum numeric value on the wire for awsV1HttpToken.
*/
int getAwsV1HttpTokenValue();
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @return The awsV1HttpToken.
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getAwsV1HttpToken();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.MetadataOptions}
*/
public static final class MetadataOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.MetadataOptions)
MetadataOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use MetadataOptions.newBuilder() to construct.
private MetadataOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MetadataOptions() {
gceHttpEndpoint_ = 0;
awsV1HttpEndpoint_ = 0;
gceHttpToken_ = 0;
awsV1HttpToken_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MetadataOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MetadataOptions(
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();
gceHttpEndpoint_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
awsV1HttpEndpoint_ = rawValue;
break;
}
case 24: {
int rawValue = input.readEnum();
gceHttpToken_ = rawValue;
break;
}
case 32: {
int rawValue = input.readEnum();
awsV1HttpToken_ = 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.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_MetadataOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_MetadataOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.class, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder.class);
}
public static final int GCE_HTTP_ENDPOINT_FIELD_NUMBER = 1;
private int gceHttpEndpoint_;
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @return The enum numeric value on the wire for gceHttpEndpoint.
*/
@java.lang.Override public int getGceHttpEndpointValue() {
return gceHttpEndpoint_;
}
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @return The gceHttpEndpoint.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getGceHttpEndpoint() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption result = yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.valueOf(gceHttpEndpoint_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.UNRECOGNIZED : result;
}
public static final int AWS_V1_HTTP_ENDPOINT_FIELD_NUMBER = 2;
private int awsV1HttpEndpoint_;
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @return The enum numeric value on the wire for awsV1HttpEndpoint.
*/
@java.lang.Override public int getAwsV1HttpEndpointValue() {
return awsV1HttpEndpoint_;
}
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @return The awsV1HttpEndpoint.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getAwsV1HttpEndpoint() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption result = yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.valueOf(awsV1HttpEndpoint_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.UNRECOGNIZED : result;
}
public static final int GCE_HTTP_TOKEN_FIELD_NUMBER = 3;
private int gceHttpToken_;
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @return The enum numeric value on the wire for gceHttpToken.
*/
@java.lang.Override public int getGceHttpTokenValue() {
return gceHttpToken_;
}
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @return The gceHttpToken.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getGceHttpToken() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption result = yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.valueOf(gceHttpToken_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.UNRECOGNIZED : result;
}
public static final int AWS_V1_HTTP_TOKEN_FIELD_NUMBER = 4;
private int awsV1HttpToken_;
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @return The enum numeric value on the wire for awsV1HttpToken.
*/
@java.lang.Override public int getAwsV1HttpTokenValue() {
return awsV1HttpToken_;
}
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @return The awsV1HttpToken.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getAwsV1HttpToken() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption result = yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.valueOf(awsV1HttpToken_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.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 (gceHttpEndpoint_ != yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.METADATA_OPTION_UNSPECIFIED.getNumber()) {
output.writeEnum(1, gceHttpEndpoint_);
}
if (awsV1HttpEndpoint_ != yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.METADATA_OPTION_UNSPECIFIED.getNumber()) {
output.writeEnum(2, awsV1HttpEndpoint_);
}
if (gceHttpToken_ != yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.METADATA_OPTION_UNSPECIFIED.getNumber()) {
output.writeEnum(3, gceHttpToken_);
}
if (awsV1HttpToken_ != yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.METADATA_OPTION_UNSPECIFIED.getNumber()) {
output.writeEnum(4, awsV1HttpToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (gceHttpEndpoint_ != yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.METADATA_OPTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, gceHttpEndpoint_);
}
if (awsV1HttpEndpoint_ != yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.METADATA_OPTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, awsV1HttpEndpoint_);
}
if (gceHttpToken_ != yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.METADATA_OPTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, gceHttpToken_);
}
if (awsV1HttpToken_ != yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.METADATA_OPTION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, awsV1HttpToken_);
}
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.InstanceOuterClass.MetadataOptions)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions other = (yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions) obj;
if (gceHttpEndpoint_ != other.gceHttpEndpoint_) return false;
if (awsV1HttpEndpoint_ != other.awsV1HttpEndpoint_) return false;
if (gceHttpToken_ != other.gceHttpToken_) return false;
if (awsV1HttpToken_ != other.awsV1HttpToken_) 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) + GCE_HTTP_ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + gceHttpEndpoint_;
hash = (37 * hash) + AWS_V1_HTTP_ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + awsV1HttpEndpoint_;
hash = (37 * hash) + GCE_HTTP_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + gceHttpToken_;
hash = (37 * hash) + AWS_V1_HTTP_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + awsV1HttpToken_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions 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.InstanceOuterClass.MetadataOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions 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.InstanceOuterClass.MetadataOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions 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.InstanceOuterClass.MetadataOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions 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.InstanceOuterClass.MetadataOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions 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.InstanceOuterClass.MetadataOptions 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.InstanceOuterClass.MetadataOptions 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.InstanceOuterClass.MetadataOptions 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.MetadataOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.MetadataOptions)
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_MetadataOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_MetadataOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.class, yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.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();
gceHttpEndpoint_ = 0;
awsV1HttpEndpoint_ = 0;
gceHttpToken_ = 0;
awsV1HttpToken_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.internal_static_yandex_cloud_compute_v1_MetadataOptions_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions build() {
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions buildPartial() {
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions result = new yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions(this);
result.gceHttpEndpoint_ = gceHttpEndpoint_;
result.awsV1HttpEndpoint_ = awsV1HttpEndpoint_;
result.gceHttpToken_ = gceHttpToken_;
result.awsV1HttpToken_ = awsV1HttpToken_;
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.InstanceOuterClass.MetadataOptions) {
return mergeFrom((yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions other) {
if (other == yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions.getDefaultInstance()) return this;
if (other.gceHttpEndpoint_ != 0) {
setGceHttpEndpointValue(other.getGceHttpEndpointValue());
}
if (other.awsV1HttpEndpoint_ != 0) {
setAwsV1HttpEndpointValue(other.getAwsV1HttpEndpointValue());
}
if (other.gceHttpToken_ != 0) {
setGceHttpTokenValue(other.getGceHttpTokenValue());
}
if (other.awsV1HttpToken_ != 0) {
setAwsV1HttpTokenValue(other.getAwsV1HttpTokenValue());
}
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.InstanceOuterClass.MetadataOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int gceHttpEndpoint_ = 0;
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @return The enum numeric value on the wire for gceHttpEndpoint.
*/
@java.lang.Override public int getGceHttpEndpointValue() {
return gceHttpEndpoint_;
}
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @param value The enum numeric value on the wire for gceHttpEndpoint to set.
* @return This builder for chaining.
*/
public Builder setGceHttpEndpointValue(int value) {
gceHttpEndpoint_ = value;
onChanged();
return this;
}
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @return The gceHttpEndpoint.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getGceHttpEndpoint() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption result = yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.valueOf(gceHttpEndpoint_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.UNRECOGNIZED : result;
}
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @param value The gceHttpEndpoint to set.
* @return This builder for chaining.
*/
public Builder setGceHttpEndpoint(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption value) {
if (value == null) {
throw new NullPointerException();
}
gceHttpEndpoint_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Enabled access to GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_endpoint = 1;
* @return This builder for chaining.
*/
public Builder clearGceHttpEndpoint() {
gceHttpEndpoint_ = 0;
onChanged();
return this;
}
private int awsV1HttpEndpoint_ = 0;
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @return The enum numeric value on the wire for awsV1HttpEndpoint.
*/
@java.lang.Override public int getAwsV1HttpEndpointValue() {
return awsV1HttpEndpoint_;
}
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @param value The enum numeric value on the wire for awsV1HttpEndpoint to set.
* @return This builder for chaining.
*/
public Builder setAwsV1HttpEndpointValue(int value) {
awsV1HttpEndpoint_ = value;
onChanged();
return this;
}
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @return The awsV1HttpEndpoint.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getAwsV1HttpEndpoint() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption result = yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.valueOf(awsV1HttpEndpoint_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.UNRECOGNIZED : result;
}
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @param value The awsV1HttpEndpoint to set.
* @return This builder for chaining.
*/
public Builder setAwsV1HttpEndpoint(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption value) {
if (value == null) {
throw new NullPointerException();
}
awsV1HttpEndpoint_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Enabled access to AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_endpoint = 2;
* @return This builder for chaining.
*/
public Builder clearAwsV1HttpEndpoint() {
awsV1HttpEndpoint_ = 0;
onChanged();
return this;
}
private int gceHttpToken_ = 0;
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @return The enum numeric value on the wire for gceHttpToken.
*/
@java.lang.Override public int getGceHttpTokenValue() {
return gceHttpToken_;
}
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @param value The enum numeric value on the wire for gceHttpToken to set.
* @return This builder for chaining.
*/
public Builder setGceHttpTokenValue(int value) {
gceHttpToken_ = value;
onChanged();
return this;
}
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @return The gceHttpToken.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getGceHttpToken() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption result = yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.valueOf(gceHttpToken_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.UNRECOGNIZED : result;
}
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @param value The gceHttpToken to set.
* @return This builder for chaining.
*/
public Builder setGceHttpToken(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption value) {
if (value == null) {
throw new NullPointerException();
}
gceHttpToken_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Enabled access to IAM credentials with GCE flavored metadata
*
*
* .yandex.cloud.compute.v1.MetadataOption gce_http_token = 3;
* @return This builder for chaining.
*/
public Builder clearGceHttpToken() {
gceHttpToken_ = 0;
onChanged();
return this;
}
private int awsV1HttpToken_ = 0;
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @return The enum numeric value on the wire for awsV1HttpToken.
*/
@java.lang.Override public int getAwsV1HttpTokenValue() {
return awsV1HttpToken_;
}
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @param value The enum numeric value on the wire for awsV1HttpToken to set.
* @return This builder for chaining.
*/
public Builder setAwsV1HttpTokenValue(int value) {
awsV1HttpToken_ = value;
onChanged();
return this;
}
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @return The awsV1HttpToken.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption getAwsV1HttpToken() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption result = yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.valueOf(awsV1HttpToken_);
return result == null ? yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption.UNRECOGNIZED : result;
}
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @param value The awsV1HttpToken to set.
* @return This builder for chaining.
*/
public Builder setAwsV1HttpToken(yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOption value) {
if (value == null) {
throw new NullPointerException();
}
awsV1HttpToken_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
*
*
* .yandex.cloud.compute.v1.MetadataOption aws_v1_http_token = 4;
* @return This builder for chaining.
*/
public Builder clearAwsV1HttpToken() {
awsV1HttpToken_ = 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.MetadataOptions)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.MetadataOptions)
private static final yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions();
}
public static yandex.cloud.api.compute.v1.InstanceOuterClass.MetadataOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MetadataOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MetadataOptions(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.InstanceOuterClass.MetadataOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_Instance_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_Instance_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_Instance_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_Instance_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_Instance_MetadataEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_Instance_MetadataEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_Resources_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_Resources_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_AttachedDisk_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_AttachedDisk_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_AttachedFilesystem_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_AttachedFilesystem_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_NetworkInterface_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_NetworkInterface_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_PrimaryAddress_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_PrimaryAddress_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_OneToOneNat_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_OneToOneNat_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_DnsRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_DnsRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_SchedulingPolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_SchedulingPolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_NetworkSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_NetworkSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_GpuSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_GpuSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_PlacementPolicy_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_PlacementPolicy_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_MetadataOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_MetadataOptions_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n&yandex/cloud/compute/v1/instance.proto" +
"\022\027yandex.cloud.compute.v1\032\037google/protob" +
"uf/timestamp.proto\"\210\013\n\010Instance\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.protobuf.Timestamp\022\014\n\004name\030\004" +
" \001(\t\022\023\n\013description\030\005 \001(\t\022=\n\006labels\030\006 \003(" +
"\0132-.yandex.cloud.compute.v1.Instance.Lab" +
"elsEntry\022\017\n\007zone_id\030\007 \001(\t\022\023\n\013platform_id" +
"\030\010 \001(\t\0225\n\tresources\030\t \001(\0132\".yandex.cloud" +
".compute.v1.Resources\0228\n\006status\030\n \001(\0162(." +
"yandex.cloud.compute.v1.Instance.Status\022" +
"A\n\010metadata\030\013 \003(\0132/.yandex.cloud.compute" +
".v1.Instance.MetadataEntry\022B\n\020metadata_o" +
"ptions\030\027 \001(\0132(.yandex.cloud.compute.v1.M" +
"etadataOptions\0228\n\tboot_disk\030\014 \001(\0132%.yand" +
"ex.cloud.compute.v1.AttachedDisk\022>\n\017seco" +
"ndary_disks\030\r \003(\0132%.yandex.cloud.compute" +
".v1.AttachedDisk\022?\n\013local_disks\030\026 \003(\0132*." +
"yandex.cloud.compute.v1.AttachedLocalDis" +
"k\022@\n\013filesystems\030\025 \003(\0132+.yandex.cloud.co" +
"mpute.v1.AttachedFilesystem\022E\n\022network_i" +
"nterfaces\030\016 \003(\0132).yandex.cloud.compute.v" +
"1.NetworkInterface\022:\n\014gpu_settings\030\032 \001(\013" +
"2$.yandex.cloud.compute.v1.GpuSettings\022\014" +
"\n\004fqdn\030\020 \001(\t\022D\n\021scheduling_policy\030\021 \001(\0132" +
").yandex.cloud.compute.v1.SchedulingPoli" +
"cy\022\032\n\022service_account_id\030\022 \001(\t\022B\n\020networ" +
"k_settings\030\023 \001(\0132(.yandex.cloud.compute." +
"v1.NetworkSettings\022B\n\020placement_policy\030\024" +
" \001(\0132(.yandex.cloud.compute.v1.Placement" +
"Policy\022\025\n\rhost_group_id\030\033 \001(\t\022\017\n\007host_id" +
"\030\034 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" +
"lue\030\002 \001(\t:\0028\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 " +
"\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\254\001\n\006Status\022\026\n\022STA" +
"TUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007R" +
"UNNING\020\002\022\014\n\010STOPPING\020\003\022\013\n\007STOPPED\020\004\022\014\n\010S" +
"TARTING\020\005\022\016\n\nRESTARTING\020\006\022\014\n\010UPDATING\020\007\022" +
"\t\n\005ERROR\020\010\022\013\n\007CRASHED\020\t\022\014\n\010DELETING\020\n\"O\n" +
"\tResources\022\016\n\006memory\030\001 \001(\003\022\r\n\005cores\030\002 \001(" +
"\003\022\025\n\rcore_fraction\030\003 \001(\003\022\014\n\004gpus\030\004 \001(\003\"\300" +
"\001\n\014AttachedDisk\0228\n\004mode\030\001 \001(\0162*.yandex.c" +
"loud.compute.v1.AttachedDisk.Mode\022\023\n\013dev" +
"ice_name\030\002 \001(\t\022\023\n\013auto_delete\030\003 \001(\010\022\017\n\007d" +
"isk_id\030\004 \001(\t\";\n\004Mode\022\024\n\020MODE_UNSPECIFIED" +
"\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\nREAD_WRITE\020\002\"6\n\021Att" +
"achedLocalDisk\022\014\n\004size\030\001 \001(\003\022\023\n\013device_n" +
"ame\030\002 \001(\t\"\275\001\n\022AttachedFilesystem\022>\n\004mode" +
"\030\001 \001(\01620.yandex.cloud.compute.v1.Attache" +
"dFilesystem.Mode\022\023\n\013device_name\030\002 \001(\t\022\025\n" +
"\rfilesystem_id\030\003 \001(\t\";\n\004Mode\022\024\n\020MODE_UNS" +
"PECIFIED\020\000\022\r\n\tREAD_ONLY\020\001\022\016\n\nREAD_WRITE\020" +
"\002\"\357\001\n\020NetworkInterface\022\r\n\005index\030\001 \001(\t\022\023\n" +
"\013mac_address\030\002 \001(\t\022\021\n\tsubnet_id\030\003 \001(\t\022C\n" +
"\022primary_v4_address\030\004 \001(\0132\'.yandex.cloud" +
".compute.v1.PrimaryAddress\022C\n\022primary_v6" +
"_address\030\005 \001(\0132\'.yandex.cloud.compute.v1" +
".PrimaryAddress\022\032\n\022security_group_ids\030\006 " +
"\003(\t\"\230\001\n\016PrimaryAddress\022\017\n\007address\030\001 \001(\t\022" +
"<\n\016one_to_one_nat\030\002 \001(\0132$.yandex.cloud.c" +
"ompute.v1.OneToOneNat\0227\n\013dns_records\030\003 \003" +
"(\0132\".yandex.cloud.compute.v1.DnsRecord\"\217" +
"\001\n\013OneToOneNat\022\017\n\007address\030\001 \001(\t\0226\n\nip_ve" +
"rsion\030\002 \001(\0162\".yandex.cloud.compute.v1.Ip" +
"Version\0227\n\013dns_records\030\003 \003(\0132\".yandex.cl" +
"oud.compute.v1.DnsRecord\"H\n\tDnsRecord\022\014\n" +
"\004fqdn\030\001 \001(\t\022\023\n\013dns_zone_id\030\002 \001(\t\022\013\n\003ttl\030" +
"\003 \001(\003\022\013\n\003ptr\030\004 \001(\010\"\'\n\020SchedulingPolicy\022\023" +
"\n\013preemptible\030\001 \001(\010\"\256\001\n\017NetworkSettings\022" +
";\n\004type\030\001 \001(\0162-.yandex.cloud.compute.v1." +
"NetworkSettings.Type\"^\n\004Type\022\024\n\020TYPE_UNS" +
"PECIFIED\020\000\022\014\n\010STANDARD\020\001\022\030\n\024SOFTWARE_ACC" +
"ELERATED\020\002\022\030\n\024HARDWARE_ACCELERATED\020\003\"%\n\013" +
"GpuSettings\022\026\n\016gpu_cluster_id\030\001 \001(\t\"\344\002\n\017" +
"PlacementPolicy\022\032\n\022placement_group_id\030\001 " +
"\001(\t\022V\n\023host_affinity_rules\030\002 \003(\01329.yande" +
"x.cloud.compute.v1.PlacementPolicy.HostA" +
"ffinityRule\022!\n\031placement_group_partition" +
"\030\003 \001(\003\032\271\001\n\020HostAffinityRule\022\013\n\003key\030\001 \001(\t" +
"\022N\n\002op\030\002 \001(\0162B.yandex.cloud.compute.v1.P" +
"lacementPolicy.HostAffinityRule.Operator" +
"\022\016\n\006values\030\003 \003(\t\"8\n\010Operator\022\030\n\024OPERATOR" +
"_UNSPECIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006NOT_IN\020\002\"\241\002\n\017M" +
"etadataOptions\022B\n\021gce_http_endpoint\030\001 \001(" +
"\0162\'.yandex.cloud.compute.v1.MetadataOpti" +
"on\022E\n\024aws_v1_http_endpoint\030\002 \001(\0162\'.yande" +
"x.cloud.compute.v1.MetadataOption\022?\n\016gce" +
"_http_token\030\003 \001(\0162\'.yandex.cloud.compute" +
".v1.MetadataOption\022B\n\021aws_v1_http_token\030" +
"\004 \001(\0162\'.yandex.cloud.compute.v1.Metadata" +
"Option*;\n\tIpVersion\022\032\n\026IP_VERSION_UNSPEC" +
"IFIED\020\000\022\010\n\004IPV4\020\001\022\010\n\004IPV6\020\002*L\n\016MetadataO" +
"ption\022\037\n\033METADATA_OPTION_UNSPECIFIED\020\000\022\013" +
"\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002Bb\n\033yandex.clou" +
"d.api.compute.v1ZCgithub.com/yandex-clou" +
"d/go-genproto/yandex/cloud/compute/v1;co" +
"mputeb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_yandex_cloud_compute_v1_Instance_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_compute_v1_Instance_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_Instance_descriptor,
new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "ZoneId", "PlatformId", "Resources", "Status", "Metadata", "MetadataOptions", "BootDisk", "SecondaryDisks", "LocalDisks", "Filesystems", "NetworkInterfaces", "GpuSettings", "Fqdn", "SchedulingPolicy", "ServiceAccountId", "NetworkSettings", "PlacementPolicy", "HostGroupId", "HostId", });
internal_static_yandex_cloud_compute_v1_Instance_LabelsEntry_descriptor =
internal_static_yandex_cloud_compute_v1_Instance_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_compute_v1_Instance_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_Instance_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_compute_v1_Instance_MetadataEntry_descriptor =
internal_static_yandex_cloud_compute_v1_Instance_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_compute_v1_Instance_MetadataEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_Instance_MetadataEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_compute_v1_Resources_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_compute_v1_Resources_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_Resources_descriptor,
new java.lang.String[] { "Memory", "Cores", "CoreFraction", "Gpus", });
internal_static_yandex_cloud_compute_v1_AttachedDisk_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_compute_v1_AttachedDisk_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_AttachedDisk_descriptor,
new java.lang.String[] { "Mode", "DeviceName", "AutoDelete", "DiskId", });
internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_AttachedLocalDisk_descriptor,
new java.lang.String[] { "Size", "DeviceName", });
internal_static_yandex_cloud_compute_v1_AttachedFilesystem_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_compute_v1_AttachedFilesystem_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_AttachedFilesystem_descriptor,
new java.lang.String[] { "Mode", "DeviceName", "FilesystemId", });
internal_static_yandex_cloud_compute_v1_NetworkInterface_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_compute_v1_NetworkInterface_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_NetworkInterface_descriptor,
new java.lang.String[] { "Index", "MacAddress", "SubnetId", "PrimaryV4Address", "PrimaryV6Address", "SecurityGroupIds", });
internal_static_yandex_cloud_compute_v1_PrimaryAddress_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_compute_v1_PrimaryAddress_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_PrimaryAddress_descriptor,
new java.lang.String[] { "Address", "OneToOneNat", "DnsRecords", });
internal_static_yandex_cloud_compute_v1_OneToOneNat_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_compute_v1_OneToOneNat_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_OneToOneNat_descriptor,
new java.lang.String[] { "Address", "IpVersion", "DnsRecords", });
internal_static_yandex_cloud_compute_v1_DnsRecord_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_compute_v1_DnsRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_DnsRecord_descriptor,
new java.lang.String[] { "Fqdn", "DnsZoneId", "Ttl", "Ptr", });
internal_static_yandex_cloud_compute_v1_SchedulingPolicy_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_compute_v1_SchedulingPolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_SchedulingPolicy_descriptor,
new java.lang.String[] { "Preemptible", });
internal_static_yandex_cloud_compute_v1_NetworkSettings_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_yandex_cloud_compute_v1_NetworkSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_NetworkSettings_descriptor,
new java.lang.String[] { "Type", });
internal_static_yandex_cloud_compute_v1_GpuSettings_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_yandex_cloud_compute_v1_GpuSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_GpuSettings_descriptor,
new java.lang.String[] { "GpuClusterId", });
internal_static_yandex_cloud_compute_v1_PlacementPolicy_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_yandex_cloud_compute_v1_PlacementPolicy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_PlacementPolicy_descriptor,
new java.lang.String[] { "PlacementGroupId", "HostAffinityRules", "PlacementGroupPartition", });
internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_descriptor =
internal_static_yandex_cloud_compute_v1_PlacementPolicy_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_PlacementPolicy_HostAffinityRule_descriptor,
new java.lang.String[] { "Key", "Op", "Values", });
internal_static_yandex_cloud_compute_v1_MetadataOptions_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_yandex_cloud_compute_v1_MetadataOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_MetadataOptions_descriptor,
new java.lang.String[] { "GceHttpEndpoint", "AwsV1HttpEndpoint", "GceHttpToken", "AwsV1HttpToken", });
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy