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

com.google.cloud.compute.v1.NodeGroupNode Maven / Gradle / Ivy

There is a newer version: 1.66.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;

/**
 *
 *
 * 
 * 
* * Protobuf type {@code google.cloud.compute.v1.NodeGroupNode} */ public final class NodeGroupNode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.NodeGroupNode) NodeGroupNodeOrBuilder { private static final long serialVersionUID = 0L; // Use NodeGroupNode.newBuilder() to construct. private NodeGroupNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeGroupNode() { accelerators_ = java.util.Collections.emptyList(); cpuOvercommitType_ = ""; disks_ = java.util.Collections.emptyList(); instanceConsumptionData_ = java.util.Collections.emptyList(); instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); name_ = ""; nodeType_ = ""; serverId_ = ""; status_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NodeGroupNode(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_NodeGroupNode_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.NodeGroupNode.class, com.google.cloud.compute.v1.NodeGroupNode.Builder.class); } /** * * *
   * CPU overcommit.
   * 
* * Protobuf enum {@code google.cloud.compute.v1.NodeGroupNode.CpuOvercommitType} */ public enum CpuOvercommitType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_CPU_OVERCOMMIT_TYPE = 0; */ UNDEFINED_CPU_OVERCOMMIT_TYPE(0), /** CPU_OVERCOMMIT_TYPE_UNSPECIFIED = 520665615; */ CPU_OVERCOMMIT_TYPE_UNSPECIFIED(520665615), /** ENABLED = 182130465; */ ENABLED(182130465), /** NONE = 2402104; */ NONE(2402104), UNRECOGNIZED(-1), ; /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_CPU_OVERCOMMIT_TYPE = 0; */ public static final int UNDEFINED_CPU_OVERCOMMIT_TYPE_VALUE = 0; /** CPU_OVERCOMMIT_TYPE_UNSPECIFIED = 520665615; */ public static final int CPU_OVERCOMMIT_TYPE_UNSPECIFIED_VALUE = 520665615; /** ENABLED = 182130465; */ public static final int ENABLED_VALUE = 182130465; /** NONE = 2402104; */ public static final int NONE_VALUE = 2402104; 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 CpuOvercommitType 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 CpuOvercommitType forNumber(int value) { switch (value) { case 0: return UNDEFINED_CPU_OVERCOMMIT_TYPE; case 520665615: return CPU_OVERCOMMIT_TYPE_UNSPECIFIED; case 182130465: return ENABLED; case 2402104: return NONE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CpuOvercommitType findValueByNumber(int number) { return CpuOvercommitType.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 com.google.cloud.compute.v1.NodeGroupNode.getDescriptor().getEnumTypes().get(0); } private static final CpuOvercommitType[] VALUES = values(); public static CpuOvercommitType 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 CpuOvercommitType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.NodeGroupNode.CpuOvercommitType) } /** * * *
   * 
* * Protobuf enum {@code google.cloud.compute.v1.NodeGroupNode.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_STATUS = 0; */ UNDEFINED_STATUS(0), /** CREATING = 455564985; */ CREATING(455564985), /** DELETING = 528602024; */ DELETING(528602024), /** INVALID = 530283991; */ INVALID(530283991), /** READY = 77848963; */ READY(77848963), /** REPAIRING = 413483285; */ REPAIRING(413483285), UNRECOGNIZED(-1), ; /** * * *
     * A value indicating that the enum field is not set.
     * 
* * UNDEFINED_STATUS = 0; */ public static final int UNDEFINED_STATUS_VALUE = 0; /** CREATING = 455564985; */ public static final int CREATING_VALUE = 455564985; /** DELETING = 528602024; */ public static final int DELETING_VALUE = 528602024; /** INVALID = 530283991; */ public static final int INVALID_VALUE = 530283991; /** READY = 77848963; */ public static final int READY_VALUE = 77848963; /** REPAIRING = 413483285; */ public static final int REPAIRING_VALUE = 413483285; 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 UNDEFINED_STATUS; case 455564985: return CREATING; case 528602024: return DELETING; case 530283991: return INVALID; case 77848963: return READY; case 413483285: return REPAIRING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap 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 com.google.cloud.compute.v1.NodeGroupNode.getDescriptor().getEnumTypes().get(1); } 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:google.cloud.compute.v1.NodeGroupNode.Status) } private int bitField0_; public static final int ACCELERATORS_FIELD_NUMBER = 269577064; @SuppressWarnings("serial") private java.util.List accelerators_; /** * * *
   * Accelerators for this node.
   * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ @java.lang.Override public java.util.List getAcceleratorsList() { return accelerators_; } /** * * *
   * Accelerators for this node.
   * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ @java.lang.Override public java.util.List getAcceleratorsOrBuilderList() { return accelerators_; } /** * * *
   * Accelerators for this node.
   * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ @java.lang.Override public int getAcceleratorsCount() { return accelerators_.size(); } /** * * *
   * Accelerators for this node.
   * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ @java.lang.Override public com.google.cloud.compute.v1.AcceleratorConfig getAccelerators(int index) { return accelerators_.get(index); } /** * * *
   * Accelerators for this node.
   * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ @java.lang.Override public com.google.cloud.compute.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( int index) { return accelerators_.get(index); } public static final int CONSUMED_RESOURCES_FIELD_NUMBER = 334527118; private com.google.cloud.compute.v1.InstanceConsumptionInfo consumedResources_; /** * * *
   * Node resources that are reserved by all instances.
   * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * * * @return Whether the consumedResources field is set. */ @java.lang.Override public boolean hasConsumedResources() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Node resources that are reserved by all instances.
   * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * * * @return The consumedResources. */ @java.lang.Override public com.google.cloud.compute.v1.InstanceConsumptionInfo getConsumedResources() { return consumedResources_ == null ? com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance() : consumedResources_; } /** * * *
   * Node resources that are reserved by all instances.
   * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * */ @java.lang.Override public com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder getConsumedResourcesOrBuilder() { return consumedResources_ == null ? com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance() : consumedResources_; } public static final int CPU_OVERCOMMIT_TYPE_FIELD_NUMBER = 247727959; @SuppressWarnings("serial") private volatile java.lang.Object cpuOvercommitType_ = ""; /** * * *
   * CPU overcommit.
   * Check the CpuOvercommitType enum for the list of possible values.
   * 
* * optional string cpu_overcommit_type = 247727959; * * @return Whether the cpuOvercommitType field is set. */ @java.lang.Override public boolean hasCpuOvercommitType() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * CPU overcommit.
   * Check the CpuOvercommitType enum for the list of possible values.
   * 
* * optional string cpu_overcommit_type = 247727959; * * @return The cpuOvercommitType. */ @java.lang.Override public java.lang.String getCpuOvercommitType() { java.lang.Object ref = cpuOvercommitType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cpuOvercommitType_ = s; return s; } } /** * * *
   * CPU overcommit.
   * Check the CpuOvercommitType enum for the list of possible values.
   * 
* * optional string cpu_overcommit_type = 247727959; * * @return The bytes for cpuOvercommitType. */ @java.lang.Override public com.google.protobuf.ByteString getCpuOvercommitTypeBytes() { java.lang.Object ref = cpuOvercommitType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cpuOvercommitType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISKS_FIELD_NUMBER = 95594102; @SuppressWarnings("serial") private java.util.List disks_; /** * * *
   * Local disk configurations.
   * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ @java.lang.Override public java.util.List getDisksList() { return disks_; } /** * * *
   * Local disk configurations.
   * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ @java.lang.Override public java.util.List getDisksOrBuilderList() { return disks_; } /** * * *
   * Local disk configurations.
   * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ @java.lang.Override public int getDisksCount() { return disks_.size(); } /** * * *
   * Local disk configurations.
   * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ @java.lang.Override public com.google.cloud.compute.v1.LocalDisk getDisks(int index) { return disks_.get(index); } /** * * *
   * Local disk configurations.
   * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ @java.lang.Override public com.google.cloud.compute.v1.LocalDiskOrBuilder getDisksOrBuilder(int index) { return disks_.get(index); } public static final int INSTANCE_CONSUMPTION_DATA_FIELD_NUMBER = 84715576; @SuppressWarnings("serial") private java.util.List instanceConsumptionData_; /** * * *
   * Instance data that shows consumed resources on the node.
   * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ @java.lang.Override public java.util.List getInstanceConsumptionDataList() { return instanceConsumptionData_; } /** * * *
   * Instance data that shows consumed resources on the node.
   * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ @java.lang.Override public java.util.List getInstanceConsumptionDataOrBuilderList() { return instanceConsumptionData_; } /** * * *
   * Instance data that shows consumed resources on the node.
   * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ @java.lang.Override public int getInstanceConsumptionDataCount() { return instanceConsumptionData_.size(); } /** * * *
   * Instance data that shows consumed resources on the node.
   * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ @java.lang.Override public com.google.cloud.compute.v1.InstanceConsumptionData getInstanceConsumptionData(int index) { return instanceConsumptionData_.get(index); } /** * * *
   * Instance data that shows consumed resources on the node.
   * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ @java.lang.Override public com.google.cloud.compute.v1.InstanceConsumptionDataOrBuilder getInstanceConsumptionDataOrBuilder(int index) { return instanceConsumptionData_.get(index); } public static final int INSTANCES_FIELD_NUMBER = 29097598; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Instances scheduled on this node.
   * 
* * repeated string instances = 29097598; * * @return A list containing the instances. */ public com.google.protobuf.ProtocolStringList getInstancesList() { return instances_; } /** * * *
   * Instances scheduled on this node.
   * 
* * repeated string instances = 29097598; * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** * * *
   * Instances scheduled on this node.
   * 
* * repeated string instances = 29097598; * * @param index The index of the element to return. * @return The instances at the given index. */ public java.lang.String getInstances(int index) { return instances_.get(index); } /** * * *
   * Instances scheduled on this node.
   * 
* * repeated string instances = 29097598; * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ public com.google.protobuf.ByteString getInstancesBytes(int index) { return instances_.getByteString(index); } public static final int NAME_FIELD_NUMBER = 3373707; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The name of the node.
   * 
* * optional string name = 3373707; * * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * The name of the node.
   * 
* * optional string name = 3373707; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * The name of the node.
   * 
* * optional string name = 3373707; * * @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 NODE_TYPE_FIELD_NUMBER = 465832791; @SuppressWarnings("serial") private volatile java.lang.Object nodeType_ = ""; /** * * *
   * The type of this node.
   * 
* * optional string node_type = 465832791; * * @return Whether the nodeType field is set. */ @java.lang.Override public boolean hasNodeType() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * The type of this node.
   * 
* * optional string node_type = 465832791; * * @return The nodeType. */ @java.lang.Override public java.lang.String getNodeType() { java.lang.Object ref = nodeType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeType_ = s; return s; } } /** * * *
   * The type of this node.
   * 
* * optional string node_type = 465832791; * * @return The bytes for nodeType. */ @java.lang.Override public com.google.protobuf.ByteString getNodeTypeBytes() { java.lang.Object ref = nodeType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SATISFIES_PZS_FIELD_NUMBER = 480964267; private boolean satisfiesPzs_ = false; /** * * *
   * [Output Only] Reserved for future use.
   * 
* * optional bool satisfies_pzs = 480964267; * * @return Whether the satisfiesPzs field is set. */ @java.lang.Override public boolean hasSatisfiesPzs() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * [Output Only] Reserved for future use.
   * 
* * optional bool satisfies_pzs = 480964267; * * @return The satisfiesPzs. */ @java.lang.Override public boolean getSatisfiesPzs() { return satisfiesPzs_; } public static final int SERVER_BINDING_FIELD_NUMBER = 208179593; private com.google.cloud.compute.v1.ServerBinding serverBinding_; /** * * *
   * Binding properties for the physical server.
   * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; * * @return Whether the serverBinding field is set. */ @java.lang.Override public boolean hasServerBinding() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
   * Binding properties for the physical server.
   * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; * * @return The serverBinding. */ @java.lang.Override public com.google.cloud.compute.v1.ServerBinding getServerBinding() { return serverBinding_ == null ? com.google.cloud.compute.v1.ServerBinding.getDefaultInstance() : serverBinding_; } /** * * *
   * Binding properties for the physical server.
   * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; */ @java.lang.Override public com.google.cloud.compute.v1.ServerBindingOrBuilder getServerBindingOrBuilder() { return serverBinding_ == null ? com.google.cloud.compute.v1.ServerBinding.getDefaultInstance() : serverBinding_; } public static final int SERVER_ID_FIELD_NUMBER = 339433367; @SuppressWarnings("serial") private volatile java.lang.Object serverId_ = ""; /** * * *
   * Server ID associated with this node.
   * 
* * optional string server_id = 339433367; * * @return Whether the serverId field is set. */ @java.lang.Override public boolean hasServerId() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
   * Server ID associated with this node.
   * 
* * optional string server_id = 339433367; * * @return The serverId. */ @java.lang.Override public java.lang.String getServerId() { java.lang.Object ref = serverId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serverId_ = s; return s; } } /** * * *
   * Server ID associated with this node.
   * 
* * optional string server_id = 339433367; * * @return The bytes for serverId. */ @java.lang.Override public com.google.protobuf.ByteString getServerIdBytes() { java.lang.Object ref = serverId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 181260274; @SuppressWarnings("serial") private volatile java.lang.Object status_ = ""; /** * * *
   *
   * Check the Status enum for the list of possible values.
   * 
* * optional string status = 181260274; * * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
   *
   * Check the Status enum for the list of possible values.
   * 
* * optional string status = 181260274; * * @return The status. */ @java.lang.Override public java.lang.String getStatus() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; } } /** * * *
   *
   * Check the Status enum for the list of possible values.
   * 
* * optional string status = 181260274; * * @return The bytes for status. */ @java.lang.Override public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOTAL_RESOURCES_FIELD_NUMBER = 97406698; private com.google.cloud.compute.v1.InstanceConsumptionInfo totalResources_; /** * * *
   * Total amount of available resources on the node.
   * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * * * @return Whether the totalResources field is set. */ @java.lang.Override public boolean hasTotalResources() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
   * Total amount of available resources on the node.
   * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * * * @return The totalResources. */ @java.lang.Override public com.google.cloud.compute.v1.InstanceConsumptionInfo getTotalResources() { return totalResources_ == null ? com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance() : totalResources_; } /** * * *
   * Total amount of available resources on the node.
   * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * */ @java.lang.Override public com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder getTotalResourcesOrBuilder() { return totalResources_ == null ? com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance() : totalResources_; } public static final int UPCOMING_MAINTENANCE_FIELD_NUMBER = 227348592; private com.google.cloud.compute.v1.UpcomingMaintenance upcomingMaintenance_; /** * * *
   * [Output Only] The information about an upcoming maintenance event.
   * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * * * @return Whether the upcomingMaintenance field is set. */ @java.lang.Override public boolean hasUpcomingMaintenance() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
   * [Output Only] The information about an upcoming maintenance event.
   * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * * * @return The upcomingMaintenance. */ @java.lang.Override public com.google.cloud.compute.v1.UpcomingMaintenance getUpcomingMaintenance() { return upcomingMaintenance_ == null ? com.google.cloud.compute.v1.UpcomingMaintenance.getDefaultInstance() : upcomingMaintenance_; } /** * * *
   * [Output Only] The information about an upcoming maintenance event.
   * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * */ @java.lang.Override public com.google.cloud.compute.v1.UpcomingMaintenanceOrBuilder getUpcomingMaintenanceOrBuilder() { return upcomingMaintenance_ == null ? com.google.cloud.compute.v1.UpcomingMaintenance.getDefaultInstance() : upcomingMaintenance_; } 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 (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3373707, name_); } for (int i = 0; i < instances_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29097598, instances_.getRaw(i)); } for (int i = 0; i < instanceConsumptionData_.size(); i++) { output.writeMessage(84715576, instanceConsumptionData_.get(i)); } for (int i = 0; i < disks_.size(); i++) { output.writeMessage(95594102, disks_.get(i)); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(97406698, getTotalResources()); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 181260274, status_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(208179593, getServerBinding()); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(227348592, getUpcomingMaintenance()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 247727959, cpuOvercommitType_); } for (int i = 0; i < accelerators_.size(); i++) { output.writeMessage(269577064, accelerators_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(334527118, getConsumedResources()); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 339433367, serverId_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 465832791, nodeType_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(480964267, satisfiesPzs_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3373707, name_); } { int dataSize = 0; for (int i = 0; i < instances_.size(); i++) { dataSize += computeStringSizeNoTag(instances_.getRaw(i)); } size += dataSize; size += 4 * getInstancesList().size(); } for (int i = 0; i < instanceConsumptionData_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 84715576, instanceConsumptionData_.get(i)); } for (int i = 0; i < disks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(95594102, disks_.get(i)); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(97406698, getTotalResources()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(181260274, status_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(208179593, getServerBinding()); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 227348592, getUpcomingMaintenance()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(247727959, cpuOvercommitType_); } for (int i = 0; i < accelerators_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(269577064, accelerators_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 334527118, getConsumedResources()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(339433367, serverId_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(465832791, nodeType_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(480964267, satisfiesPzs_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.compute.v1.NodeGroupNode)) { return super.equals(obj); } com.google.cloud.compute.v1.NodeGroupNode other = (com.google.cloud.compute.v1.NodeGroupNode) obj; if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; if (hasConsumedResources() != other.hasConsumedResources()) return false; if (hasConsumedResources()) { if (!getConsumedResources().equals(other.getConsumedResources())) return false; } if (hasCpuOvercommitType() != other.hasCpuOvercommitType()) return false; if (hasCpuOvercommitType()) { if (!getCpuOvercommitType().equals(other.getCpuOvercommitType())) return false; } if (!getDisksList().equals(other.getDisksList())) return false; if (!getInstanceConsumptionDataList().equals(other.getInstanceConsumptionDataList())) return false; if (!getInstancesList().equals(other.getInstancesList())) return false; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName().equals(other.getName())) return false; } if (hasNodeType() != other.hasNodeType()) return false; if (hasNodeType()) { if (!getNodeType().equals(other.getNodeType())) return false; } if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; if (hasSatisfiesPzs()) { if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; } if (hasServerBinding() != other.hasServerBinding()) return false; if (hasServerBinding()) { if (!getServerBinding().equals(other.getServerBinding())) return false; } if (hasServerId() != other.hasServerId()) return false; if (hasServerId()) { if (!getServerId().equals(other.getServerId())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (!getStatus().equals(other.getStatus())) return false; } if (hasTotalResources() != other.hasTotalResources()) return false; if (hasTotalResources()) { if (!getTotalResources().equals(other.getTotalResources())) return false; } if (hasUpcomingMaintenance() != other.hasUpcomingMaintenance()) return false; if (hasUpcomingMaintenance()) { if (!getUpcomingMaintenance().equals(other.getUpcomingMaintenance())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getAcceleratorsCount() > 0) { hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; hash = (53 * hash) + getAcceleratorsList().hashCode(); } if (hasConsumedResources()) { hash = (37 * hash) + CONSUMED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getConsumedResources().hashCode(); } if (hasCpuOvercommitType()) { hash = (37 * hash) + CPU_OVERCOMMIT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getCpuOvercommitType().hashCode(); } if (getDisksCount() > 0) { hash = (37 * hash) + DISKS_FIELD_NUMBER; hash = (53 * hash) + getDisksList().hashCode(); } if (getInstanceConsumptionDataCount() > 0) { hash = (37 * hash) + INSTANCE_CONSUMPTION_DATA_FIELD_NUMBER; hash = (53 * hash) + getInstanceConsumptionDataList().hashCode(); } if (getInstancesCount() > 0) { hash = (37 * hash) + INSTANCES_FIELD_NUMBER; hash = (53 * hash) + getInstancesList().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasNodeType()) { hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getNodeType().hashCode(); } if (hasSatisfiesPzs()) { hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); } if (hasServerBinding()) { hash = (37 * hash) + SERVER_BINDING_FIELD_NUMBER; hash = (53 * hash) + getServerBinding().hashCode(); } if (hasServerId()) { hash = (37 * hash) + SERVER_ID_FIELD_NUMBER; hash = (53 * hash) + getServerId().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + getStatus().hashCode(); } if (hasTotalResources()) { hash = (37 * hash) + TOTAL_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getTotalResources().hashCode(); } if (hasUpcomingMaintenance()) { hash = (37 * hash) + UPCOMING_MAINTENANCE_FIELD_NUMBER; hash = (53 * hash) + getUpcomingMaintenance().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.compute.v1.NodeGroupNode parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.NodeGroupNode parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.NodeGroupNode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.NodeGroupNode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.NodeGroupNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.compute.v1.NodeGroupNode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.compute.v1.NodeGroupNode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.NodeGroupNode 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 com.google.cloud.compute.v1.NodeGroupNode parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.NodeGroupNode 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 com.google.cloud.compute.v1.NodeGroupNode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.compute.v1.NodeGroupNode 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(com.google.cloud.compute.v1.NodeGroupNode 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 google.cloud.compute.v1.NodeGroupNode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.NodeGroupNode) com.google.cloud.compute.v1.NodeGroupNodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_NodeGroupNode_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.compute.v1.NodeGroupNode.class, com.google.cloud.compute.v1.NodeGroupNode.Builder.class); } // Construct using com.google.cloud.compute.v1.NodeGroupNode.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAcceleratorsFieldBuilder(); getConsumedResourcesFieldBuilder(); getDisksFieldBuilder(); getInstanceConsumptionDataFieldBuilder(); getServerBindingFieldBuilder(); getTotalResourcesFieldBuilder(); getUpcomingMaintenanceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (acceleratorsBuilder_ == null) { accelerators_ = java.util.Collections.emptyList(); } else { accelerators_ = null; acceleratorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); consumedResources_ = null; if (consumedResourcesBuilder_ != null) { consumedResourcesBuilder_.dispose(); consumedResourcesBuilder_ = null; } cpuOvercommitType_ = ""; if (disksBuilder_ == null) { disks_ = java.util.Collections.emptyList(); } else { disks_ = null; disksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (instanceConsumptionDataBuilder_ == null) { instanceConsumptionData_ = java.util.Collections.emptyList(); } else { instanceConsumptionData_ = null; instanceConsumptionDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); name_ = ""; nodeType_ = ""; satisfiesPzs_ = false; serverBinding_ = null; if (serverBindingBuilder_ != null) { serverBindingBuilder_.dispose(); serverBindingBuilder_ = null; } serverId_ = ""; status_ = ""; totalResources_ = null; if (totalResourcesBuilder_ != null) { totalResourcesBuilder_.dispose(); totalResourcesBuilder_ = null; } upcomingMaintenance_ = null; if (upcomingMaintenanceBuilder_ != null) { upcomingMaintenanceBuilder_.dispose(); upcomingMaintenanceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.compute.v1.Compute .internal_static_google_cloud_compute_v1_NodeGroupNode_descriptor; } @java.lang.Override public com.google.cloud.compute.v1.NodeGroupNode getDefaultInstanceForType() { return com.google.cloud.compute.v1.NodeGroupNode.getDefaultInstance(); } @java.lang.Override public com.google.cloud.compute.v1.NodeGroupNode build() { com.google.cloud.compute.v1.NodeGroupNode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.compute.v1.NodeGroupNode buildPartial() { com.google.cloud.compute.v1.NodeGroupNode result = new com.google.cloud.compute.v1.NodeGroupNode(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.cloud.compute.v1.NodeGroupNode result) { if (acceleratorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { accelerators_ = java.util.Collections.unmodifiableList(accelerators_); bitField0_ = (bitField0_ & ~0x00000001); } result.accelerators_ = accelerators_; } else { result.accelerators_ = acceleratorsBuilder_.build(); } if (disksBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { disks_ = java.util.Collections.unmodifiableList(disks_); bitField0_ = (bitField0_ & ~0x00000008); } result.disks_ = disks_; } else { result.disks_ = disksBuilder_.build(); } if (instanceConsumptionDataBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { instanceConsumptionData_ = java.util.Collections.unmodifiableList(instanceConsumptionData_); bitField0_ = (bitField0_ & ~0x00000010); } result.instanceConsumptionData_ = instanceConsumptionData_; } else { result.instanceConsumptionData_ = instanceConsumptionDataBuilder_.build(); } } private void buildPartial0(com.google.cloud.compute.v1.NodeGroupNode result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.consumedResources_ = consumedResourcesBuilder_ == null ? consumedResources_ : consumedResourcesBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.cpuOvercommitType_ = cpuOvercommitType_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { instances_.makeImmutable(); result.instances_ = instances_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.name_ = name_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.nodeType_ = nodeType_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000200) != 0)) { result.serverBinding_ = serverBindingBuilder_ == null ? serverBinding_ : serverBindingBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000400) != 0)) { result.serverId_ = serverId_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000800) != 0)) { result.status_ = status_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00001000) != 0)) { result.totalResources_ = totalResourcesBuilder_ == null ? totalResources_ : totalResourcesBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00002000) != 0)) { result.upcomingMaintenance_ = upcomingMaintenanceBuilder_ == null ? upcomingMaintenance_ : upcomingMaintenanceBuilder_.build(); to_bitField0_ |= 0x00000200; } result.bitField0_ |= to_bitField0_; } @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 com.google.cloud.compute.v1.NodeGroupNode) { return mergeFrom((com.google.cloud.compute.v1.NodeGroupNode) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.compute.v1.NodeGroupNode other) { if (other == com.google.cloud.compute.v1.NodeGroupNode.getDefaultInstance()) return this; if (acceleratorsBuilder_ == null) { if (!other.accelerators_.isEmpty()) { if (accelerators_.isEmpty()) { accelerators_ = other.accelerators_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAcceleratorsIsMutable(); accelerators_.addAll(other.accelerators_); } onChanged(); } } else { if (!other.accelerators_.isEmpty()) { if (acceleratorsBuilder_.isEmpty()) { acceleratorsBuilder_.dispose(); acceleratorsBuilder_ = null; accelerators_ = other.accelerators_; bitField0_ = (bitField0_ & ~0x00000001); acceleratorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAcceleratorsFieldBuilder() : null; } else { acceleratorsBuilder_.addAllMessages(other.accelerators_); } } } if (other.hasConsumedResources()) { mergeConsumedResources(other.getConsumedResources()); } if (other.hasCpuOvercommitType()) { cpuOvercommitType_ = other.cpuOvercommitType_; bitField0_ |= 0x00000004; onChanged(); } if (disksBuilder_ == null) { if (!other.disks_.isEmpty()) { if (disks_.isEmpty()) { disks_ = other.disks_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDisksIsMutable(); disks_.addAll(other.disks_); } onChanged(); } } else { if (!other.disks_.isEmpty()) { if (disksBuilder_.isEmpty()) { disksBuilder_.dispose(); disksBuilder_ = null; disks_ = other.disks_; bitField0_ = (bitField0_ & ~0x00000008); disksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDisksFieldBuilder() : null; } else { disksBuilder_.addAllMessages(other.disks_); } } } if (instanceConsumptionDataBuilder_ == null) { if (!other.instanceConsumptionData_.isEmpty()) { if (instanceConsumptionData_.isEmpty()) { instanceConsumptionData_ = other.instanceConsumptionData_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.addAll(other.instanceConsumptionData_); } onChanged(); } } else { if (!other.instanceConsumptionData_.isEmpty()) { if (instanceConsumptionDataBuilder_.isEmpty()) { instanceConsumptionDataBuilder_.dispose(); instanceConsumptionDataBuilder_ = null; instanceConsumptionData_ = other.instanceConsumptionData_; bitField0_ = (bitField0_ & ~0x00000010); instanceConsumptionDataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInstanceConsumptionDataFieldBuilder() : null; } else { instanceConsumptionDataBuilder_.addAllMessages(other.instanceConsumptionData_); } } } if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { instances_ = other.instances_; bitField0_ |= 0x00000020; } else { ensureInstancesIsMutable(); instances_.addAll(other.instances_); } onChanged(); } if (other.hasName()) { name_ = other.name_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasNodeType()) { nodeType_ = other.nodeType_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasSatisfiesPzs()) { setSatisfiesPzs(other.getSatisfiesPzs()); } if (other.hasServerBinding()) { mergeServerBinding(other.getServerBinding()); } if (other.hasServerId()) { serverId_ = other.serverId_; bitField0_ |= 0x00000400; onChanged(); } if (other.hasStatus()) { status_ = other.status_; bitField0_ |= 0x00000800; onChanged(); } if (other.hasTotalResources()) { mergeTotalResources(other.getTotalResources()); } if (other.hasUpcomingMaintenance()) { mergeUpcomingMaintenance(other.getUpcomingMaintenance()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 26989658: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 26989658 case 232780786: { java.lang.String s = input.readStringRequireUtf8(); ensureInstancesIsMutable(); instances_.add(s); break; } // case 232780786 case 677724610: { com.google.cloud.compute.v1.InstanceConsumptionData m = input.readMessage( com.google.cloud.compute.v1.InstanceConsumptionData.parser(), extensionRegistry); if (instanceConsumptionDataBuilder_ == null) { ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.add(m); } else { instanceConsumptionDataBuilder_.addMessage(m); } break; } // case 677724610 case 764752818: { com.google.cloud.compute.v1.LocalDisk m = input.readMessage( com.google.cloud.compute.v1.LocalDisk.parser(), extensionRegistry); if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.add(m); } else { disksBuilder_.addMessage(m); } break; } // case 764752818 case 779253586: { input.readMessage(getTotalResourcesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 779253586 case 1450082194: { status_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 1450082194 case 1665436746: { input.readMessage(getServerBindingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 1665436746 case 1818788738: { input.readMessage( getUpcomingMaintenanceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 1818788738 case 1981823674: { cpuOvercommitType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 1981823674 case -2138350782: { com.google.cloud.compute.v1.AcceleratorConfig m = input.readMessage( com.google.cloud.compute.v1.AcceleratorConfig.parser(), extensionRegistry); if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(m); } else { acceleratorsBuilder_.addMessage(m); } break; } // case -2138350782 case -1618750350: { input.readMessage( getConsumedResourcesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case -1618750350 case -1579500358: { serverId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case -1579500358 case -568304966: { nodeType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case -568304966 case -447253160: { satisfiesPzs_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case -447253160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List accelerators_ = java.util.Collections.emptyList(); private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { accelerators_ = new java.util.ArrayList(accelerators_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.AcceleratorConfig, com.google.cloud.compute.v1.AcceleratorConfig.Builder, com.google.cloud.compute.v1.AcceleratorConfigOrBuilder> acceleratorsBuilder_; /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public java.util.List getAcceleratorsList() { if (acceleratorsBuilder_ == null) { return java.util.Collections.unmodifiableList(accelerators_); } else { return acceleratorsBuilder_.getMessageList(); } } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public int getAcceleratorsCount() { if (acceleratorsBuilder_ == null) { return accelerators_.size(); } else { return acceleratorsBuilder_.getCount(); } } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public com.google.cloud.compute.v1.AcceleratorConfig getAccelerators(int index) { if (acceleratorsBuilder_ == null) { return accelerators_.get(index); } else { return acceleratorsBuilder_.getMessage(index); } } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder setAccelerators(int index, com.google.cloud.compute.v1.AcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAcceleratorsIsMutable(); accelerators_.set(index, value); onChanged(); } else { acceleratorsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder setAccelerators( int index, com.google.cloud.compute.v1.AcceleratorConfig.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.set(index, builderForValue.build()); onChanged(); } else { acceleratorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder addAccelerators(com.google.cloud.compute.v1.AcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAcceleratorsIsMutable(); accelerators_.add(value); onChanged(); } else { acceleratorsBuilder_.addMessage(value); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder addAccelerators(int index, com.google.cloud.compute.v1.AcceleratorConfig value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAcceleratorsIsMutable(); accelerators_.add(index, value); onChanged(); } else { acceleratorsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder addAccelerators( com.google.cloud.compute.v1.AcceleratorConfig.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(builderForValue.build()); onChanged(); } else { acceleratorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder addAccelerators( int index, com.google.cloud.compute.v1.AcceleratorConfig.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(index, builderForValue.build()); onChanged(); } else { acceleratorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder addAllAccelerators( java.lang.Iterable values) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); onChanged(); } else { acceleratorsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder clearAccelerators() { if (acceleratorsBuilder_ == null) { accelerators_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { acceleratorsBuilder_.clear(); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public Builder removeAccelerators(int index) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.remove(index); onChanged(); } else { acceleratorsBuilder_.remove(index); } return this; } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public com.google.cloud.compute.v1.AcceleratorConfig.Builder getAcceleratorsBuilder(int index) { return getAcceleratorsFieldBuilder().getBuilder(index); } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public com.google.cloud.compute.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder( int index) { if (acceleratorsBuilder_ == null) { return accelerators_.get(index); } else { return acceleratorsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public java.util.List getAcceleratorsOrBuilderList() { if (acceleratorsBuilder_ != null) { return acceleratorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(accelerators_); } } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public com.google.cloud.compute.v1.AcceleratorConfig.Builder addAcceleratorsBuilder() { return getAcceleratorsFieldBuilder() .addBuilder(com.google.cloud.compute.v1.AcceleratorConfig.getDefaultInstance()); } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public com.google.cloud.compute.v1.AcceleratorConfig.Builder addAcceleratorsBuilder(int index) { return getAcceleratorsFieldBuilder() .addBuilder(index, com.google.cloud.compute.v1.AcceleratorConfig.getDefaultInstance()); } /** * * *
     * Accelerators for this node.
     * 
* * repeated .google.cloud.compute.v1.AcceleratorConfig accelerators = 269577064; */ public java.util.List getAcceleratorsBuilderList() { return getAcceleratorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.AcceleratorConfig, com.google.cloud.compute.v1.AcceleratorConfig.Builder, com.google.cloud.compute.v1.AcceleratorConfigOrBuilder> getAcceleratorsFieldBuilder() { if (acceleratorsBuilder_ == null) { acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.AcceleratorConfig, com.google.cloud.compute.v1.AcceleratorConfig.Builder, com.google.cloud.compute.v1.AcceleratorConfigOrBuilder>( accelerators_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); accelerators_ = null; } return acceleratorsBuilder_; } private com.google.cloud.compute.v1.InstanceConsumptionInfo consumedResources_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionInfo, com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder, com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder> consumedResourcesBuilder_; /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * * * @return Whether the consumedResources field is set. */ public boolean hasConsumedResources() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * * * @return The consumedResources. */ public com.google.cloud.compute.v1.InstanceConsumptionInfo getConsumedResources() { if (consumedResourcesBuilder_ == null) { return consumedResources_ == null ? com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance() : consumedResources_; } else { return consumedResourcesBuilder_.getMessage(); } } /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * */ public Builder setConsumedResources(com.google.cloud.compute.v1.InstanceConsumptionInfo value) { if (consumedResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } consumedResources_ = value; } else { consumedResourcesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * */ public Builder setConsumedResources( com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder builderForValue) { if (consumedResourcesBuilder_ == null) { consumedResources_ = builderForValue.build(); } else { consumedResourcesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * */ public Builder mergeConsumedResources( com.google.cloud.compute.v1.InstanceConsumptionInfo value) { if (consumedResourcesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && consumedResources_ != null && consumedResources_ != com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance()) { getConsumedResourcesBuilder().mergeFrom(value); } else { consumedResources_ = value; } } else { consumedResourcesBuilder_.mergeFrom(value); } if (consumedResources_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * */ public Builder clearConsumedResources() { bitField0_ = (bitField0_ & ~0x00000002); consumedResources_ = null; if (consumedResourcesBuilder_ != null) { consumedResourcesBuilder_.dispose(); consumedResourcesBuilder_ = null; } onChanged(); return this; } /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * */ public com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder getConsumedResourcesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getConsumedResourcesFieldBuilder().getBuilder(); } /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * */ public com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder getConsumedResourcesOrBuilder() { if (consumedResourcesBuilder_ != null) { return consumedResourcesBuilder_.getMessageOrBuilder(); } else { return consumedResources_ == null ? com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance() : consumedResources_; } } /** * * *
     * Node resources that are reserved by all instances.
     * 
* * * optional .google.cloud.compute.v1.InstanceConsumptionInfo consumed_resources = 334527118; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionInfo, com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder, com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder> getConsumedResourcesFieldBuilder() { if (consumedResourcesBuilder_ == null) { consumedResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionInfo, com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder, com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder>( getConsumedResources(), getParentForChildren(), isClean()); consumedResources_ = null; } return consumedResourcesBuilder_; } private java.lang.Object cpuOvercommitType_ = ""; /** * * *
     * CPU overcommit.
     * Check the CpuOvercommitType enum for the list of possible values.
     * 
* * optional string cpu_overcommit_type = 247727959; * * @return Whether the cpuOvercommitType field is set. */ public boolean hasCpuOvercommitType() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * CPU overcommit.
     * Check the CpuOvercommitType enum for the list of possible values.
     * 
* * optional string cpu_overcommit_type = 247727959; * * @return The cpuOvercommitType. */ public java.lang.String getCpuOvercommitType() { java.lang.Object ref = cpuOvercommitType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cpuOvercommitType_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * CPU overcommit.
     * Check the CpuOvercommitType enum for the list of possible values.
     * 
* * optional string cpu_overcommit_type = 247727959; * * @return The bytes for cpuOvercommitType. */ public com.google.protobuf.ByteString getCpuOvercommitTypeBytes() { java.lang.Object ref = cpuOvercommitType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cpuOvercommitType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * CPU overcommit.
     * Check the CpuOvercommitType enum for the list of possible values.
     * 
* * optional string cpu_overcommit_type = 247727959; * * @param value The cpuOvercommitType to set. * @return This builder for chaining. */ public Builder setCpuOvercommitType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } cpuOvercommitType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * CPU overcommit.
     * Check the CpuOvercommitType enum for the list of possible values.
     * 
* * optional string cpu_overcommit_type = 247727959; * * @return This builder for chaining. */ public Builder clearCpuOvercommitType() { cpuOvercommitType_ = getDefaultInstance().getCpuOvercommitType(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * CPU overcommit.
     * Check the CpuOvercommitType enum for the list of possible values.
     * 
* * optional string cpu_overcommit_type = 247727959; * * @param value The bytes for cpuOvercommitType to set. * @return This builder for chaining. */ public Builder setCpuOvercommitTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cpuOvercommitType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List disks_ = java.util.Collections.emptyList(); private void ensureDisksIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { disks_ = new java.util.ArrayList(disks_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.LocalDisk, com.google.cloud.compute.v1.LocalDisk.Builder, com.google.cloud.compute.v1.LocalDiskOrBuilder> disksBuilder_; /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public java.util.List getDisksList() { if (disksBuilder_ == null) { return java.util.Collections.unmodifiableList(disks_); } else { return disksBuilder_.getMessageList(); } } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public int getDisksCount() { if (disksBuilder_ == null) { return disks_.size(); } else { return disksBuilder_.getCount(); } } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public com.google.cloud.compute.v1.LocalDisk getDisks(int index) { if (disksBuilder_ == null) { return disks_.get(index); } else { return disksBuilder_.getMessage(index); } } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder setDisks(int index, com.google.cloud.compute.v1.LocalDisk value) { if (disksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisksIsMutable(); disks_.set(index, value); onChanged(); } else { disksBuilder_.setMessage(index, value); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder setDisks( int index, com.google.cloud.compute.v1.LocalDisk.Builder builderForValue) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.set(index, builderForValue.build()); onChanged(); } else { disksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder addDisks(com.google.cloud.compute.v1.LocalDisk value) { if (disksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisksIsMutable(); disks_.add(value); onChanged(); } else { disksBuilder_.addMessage(value); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder addDisks(int index, com.google.cloud.compute.v1.LocalDisk value) { if (disksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDisksIsMutable(); disks_.add(index, value); onChanged(); } else { disksBuilder_.addMessage(index, value); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder addDisks(com.google.cloud.compute.v1.LocalDisk.Builder builderForValue) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.add(builderForValue.build()); onChanged(); } else { disksBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder addDisks( int index, com.google.cloud.compute.v1.LocalDisk.Builder builderForValue) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.add(index, builderForValue.build()); onChanged(); } else { disksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder addAllDisks( java.lang.Iterable values) { if (disksBuilder_ == null) { ensureDisksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_); onChanged(); } else { disksBuilder_.addAllMessages(values); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder clearDisks() { if (disksBuilder_ == null) { disks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { disksBuilder_.clear(); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public Builder removeDisks(int index) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.remove(index); onChanged(); } else { disksBuilder_.remove(index); } return this; } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public com.google.cloud.compute.v1.LocalDisk.Builder getDisksBuilder(int index) { return getDisksFieldBuilder().getBuilder(index); } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public com.google.cloud.compute.v1.LocalDiskOrBuilder getDisksOrBuilder(int index) { if (disksBuilder_ == null) { return disks_.get(index); } else { return disksBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public java.util.List getDisksOrBuilderList() { if (disksBuilder_ != null) { return disksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(disks_); } } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public com.google.cloud.compute.v1.LocalDisk.Builder addDisksBuilder() { return getDisksFieldBuilder() .addBuilder(com.google.cloud.compute.v1.LocalDisk.getDefaultInstance()); } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public com.google.cloud.compute.v1.LocalDisk.Builder addDisksBuilder(int index) { return getDisksFieldBuilder() .addBuilder(index, com.google.cloud.compute.v1.LocalDisk.getDefaultInstance()); } /** * * *
     * Local disk configurations.
     * 
* * repeated .google.cloud.compute.v1.LocalDisk disks = 95594102; */ public java.util.List getDisksBuilderList() { return getDisksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.LocalDisk, com.google.cloud.compute.v1.LocalDisk.Builder, com.google.cloud.compute.v1.LocalDiskOrBuilder> getDisksFieldBuilder() { if (disksBuilder_ == null) { disksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.LocalDisk, com.google.cloud.compute.v1.LocalDisk.Builder, com.google.cloud.compute.v1.LocalDiskOrBuilder>( disks_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); disks_ = null; } return disksBuilder_; } private java.util.List instanceConsumptionData_ = java.util.Collections.emptyList(); private void ensureInstanceConsumptionDataIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { instanceConsumptionData_ = new java.util.ArrayList( instanceConsumptionData_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionData, com.google.cloud.compute.v1.InstanceConsumptionData.Builder, com.google.cloud.compute.v1.InstanceConsumptionDataOrBuilder> instanceConsumptionDataBuilder_; /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public java.util.List getInstanceConsumptionDataList() { if (instanceConsumptionDataBuilder_ == null) { return java.util.Collections.unmodifiableList(instanceConsumptionData_); } else { return instanceConsumptionDataBuilder_.getMessageList(); } } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public int getInstanceConsumptionDataCount() { if (instanceConsumptionDataBuilder_ == null) { return instanceConsumptionData_.size(); } else { return instanceConsumptionDataBuilder_.getCount(); } } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public com.google.cloud.compute.v1.InstanceConsumptionData getInstanceConsumptionData( int index) { if (instanceConsumptionDataBuilder_ == null) { return instanceConsumptionData_.get(index); } else { return instanceConsumptionDataBuilder_.getMessage(index); } } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder setInstanceConsumptionData( int index, com.google.cloud.compute.v1.InstanceConsumptionData value) { if (instanceConsumptionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.set(index, value); onChanged(); } else { instanceConsumptionDataBuilder_.setMessage(index, value); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder setInstanceConsumptionData( int index, com.google.cloud.compute.v1.InstanceConsumptionData.Builder builderForValue) { if (instanceConsumptionDataBuilder_ == null) { ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.set(index, builderForValue.build()); onChanged(); } else { instanceConsumptionDataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder addInstanceConsumptionData( com.google.cloud.compute.v1.InstanceConsumptionData value) { if (instanceConsumptionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.add(value); onChanged(); } else { instanceConsumptionDataBuilder_.addMessage(value); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder addInstanceConsumptionData( int index, com.google.cloud.compute.v1.InstanceConsumptionData value) { if (instanceConsumptionDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.add(index, value); onChanged(); } else { instanceConsumptionDataBuilder_.addMessage(index, value); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder addInstanceConsumptionData( com.google.cloud.compute.v1.InstanceConsumptionData.Builder builderForValue) { if (instanceConsumptionDataBuilder_ == null) { ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.add(builderForValue.build()); onChanged(); } else { instanceConsumptionDataBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder addInstanceConsumptionData( int index, com.google.cloud.compute.v1.InstanceConsumptionData.Builder builderForValue) { if (instanceConsumptionDataBuilder_ == null) { ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.add(index, builderForValue.build()); onChanged(); } else { instanceConsumptionDataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder addAllInstanceConsumptionData( java.lang.Iterable values) { if (instanceConsumptionDataBuilder_ == null) { ensureInstanceConsumptionDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceConsumptionData_); onChanged(); } else { instanceConsumptionDataBuilder_.addAllMessages(values); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder clearInstanceConsumptionData() { if (instanceConsumptionDataBuilder_ == null) { instanceConsumptionData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { instanceConsumptionDataBuilder_.clear(); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public Builder removeInstanceConsumptionData(int index) { if (instanceConsumptionDataBuilder_ == null) { ensureInstanceConsumptionDataIsMutable(); instanceConsumptionData_.remove(index); onChanged(); } else { instanceConsumptionDataBuilder_.remove(index); } return this; } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public com.google.cloud.compute.v1.InstanceConsumptionData.Builder getInstanceConsumptionDataBuilder(int index) { return getInstanceConsumptionDataFieldBuilder().getBuilder(index); } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public com.google.cloud.compute.v1.InstanceConsumptionDataOrBuilder getInstanceConsumptionDataOrBuilder(int index) { if (instanceConsumptionDataBuilder_ == null) { return instanceConsumptionData_.get(index); } else { return instanceConsumptionDataBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public java.util.List getInstanceConsumptionDataOrBuilderList() { if (instanceConsumptionDataBuilder_ != null) { return instanceConsumptionDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(instanceConsumptionData_); } } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public com.google.cloud.compute.v1.InstanceConsumptionData.Builder addInstanceConsumptionDataBuilder() { return getInstanceConsumptionDataFieldBuilder() .addBuilder(com.google.cloud.compute.v1.InstanceConsumptionData.getDefaultInstance()); } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public com.google.cloud.compute.v1.InstanceConsumptionData.Builder addInstanceConsumptionDataBuilder(int index) { return getInstanceConsumptionDataFieldBuilder() .addBuilder( index, com.google.cloud.compute.v1.InstanceConsumptionData.getDefaultInstance()); } /** * * *
     * Instance data that shows consumed resources on the node.
     * 
* * * repeated .google.cloud.compute.v1.InstanceConsumptionData instance_consumption_data = 84715576; * */ public java.util.List getInstanceConsumptionDataBuilderList() { return getInstanceConsumptionDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionData, com.google.cloud.compute.v1.InstanceConsumptionData.Builder, com.google.cloud.compute.v1.InstanceConsumptionDataOrBuilder> getInstanceConsumptionDataFieldBuilder() { if (instanceConsumptionDataBuilder_ == null) { instanceConsumptionDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionData, com.google.cloud.compute.v1.InstanceConsumptionData.Builder, com.google.cloud.compute.v1.InstanceConsumptionDataOrBuilder>( instanceConsumptionData_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); instanceConsumptionData_ = null; } return instanceConsumptionDataBuilder_; } private com.google.protobuf.LazyStringArrayList instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureInstancesIsMutable() { if (!instances_.isModifiable()) { instances_ = new com.google.protobuf.LazyStringArrayList(instances_); } bitField0_ |= 0x00000020; } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @return A list containing the instances. */ public com.google.protobuf.ProtocolStringList getInstancesList() { instances_.makeImmutable(); return instances_; } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @return The count of instances. */ public int getInstancesCount() { return instances_.size(); } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @param index The index of the element to return. * @return The instances at the given index. */ public java.lang.String getInstances(int index) { return instances_.get(index); } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @param index The index of the value to return. * @return The bytes of the instances at the given index. */ public com.google.protobuf.ByteString getInstancesBytes(int index) { return instances_.getByteString(index); } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @param index The index to set the value at. * @param value The instances to set. * @return This builder for chaining. */ public Builder setInstances(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInstancesIsMutable(); instances_.set(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @param value The instances to add. * @return This builder for chaining. */ public Builder addInstances(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureInstancesIsMutable(); instances_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @param values The instances to add. * @return This builder for chaining. */ public Builder addAllInstances(java.lang.Iterable values) { ensureInstancesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @return This builder for chaining. */ public Builder clearInstances() { instances_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); ; onChanged(); return this; } /** * * *
     * Instances scheduled on this node.
     * 
* * repeated string instances = 29097598; * * @param value The bytes of the instances to add. * @return This builder for chaining. */ public Builder addInstancesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureInstancesIsMutable(); instances_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object name_ = ""; /** * * *
     * The name of the node.
     * 
* * optional string name = 3373707; * * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * The name of the node.
     * 
* * optional string name = 3373707; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of the node.
     * 
* * optional string name = 3373707; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of the node.
     * 
* * optional string name = 3373707; * * @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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * The name of the node.
     * 
* * optional string name = 3373707; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * The name of the node.
     * 
* * optional string name = 3373707; * * @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; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object nodeType_ = ""; /** * * *
     * The type of this node.
     * 
* * optional string node_type = 465832791; * * @return Whether the nodeType field is set. */ public boolean hasNodeType() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * The type of this node.
     * 
* * optional string node_type = 465832791; * * @return The nodeType. */ public java.lang.String getNodeType() { java.lang.Object ref = nodeType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeType_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The type of this node.
     * 
* * optional string node_type = 465832791; * * @return The bytes for nodeType. */ public com.google.protobuf.ByteString getNodeTypeBytes() { java.lang.Object ref = nodeType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The type of this node.
     * 
* * optional string node_type = 465832791; * * @param value The nodeType to set. * @return This builder for chaining. */ public Builder setNodeType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nodeType_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The type of this node.
     * 
* * optional string node_type = 465832791; * * @return This builder for chaining. */ public Builder clearNodeType() { nodeType_ = getDefaultInstance().getNodeType(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * The type of this node.
     * 
* * optional string node_type = 465832791; * * @param value The bytes for nodeType to set. * @return This builder for chaining. */ public Builder setNodeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nodeType_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private boolean satisfiesPzs_; /** * * *
     * [Output Only] Reserved for future use.
     * 
* * optional bool satisfies_pzs = 480964267; * * @return Whether the satisfiesPzs field is set. */ @java.lang.Override public boolean hasSatisfiesPzs() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * [Output Only] Reserved for future use.
     * 
* * optional bool satisfies_pzs = 480964267; * * @return The satisfiesPzs. */ @java.lang.Override public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** * * *
     * [Output Only] Reserved for future use.
     * 
* * optional bool satisfies_pzs = 480964267; * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * [Output Only] Reserved for future use.
     * 
* * optional bool satisfies_pzs = 480964267; * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { bitField0_ = (bitField0_ & ~0x00000100); satisfiesPzs_ = false; onChanged(); return this; } private com.google.cloud.compute.v1.ServerBinding serverBinding_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ServerBinding, com.google.cloud.compute.v1.ServerBinding.Builder, com.google.cloud.compute.v1.ServerBindingOrBuilder> serverBindingBuilder_; /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; * * @return Whether the serverBinding field is set. */ public boolean hasServerBinding() { return ((bitField0_ & 0x00000200) != 0); } /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; * * @return The serverBinding. */ public com.google.cloud.compute.v1.ServerBinding getServerBinding() { if (serverBindingBuilder_ == null) { return serverBinding_ == null ? com.google.cloud.compute.v1.ServerBinding.getDefaultInstance() : serverBinding_; } else { return serverBindingBuilder_.getMessage(); } } /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; */ public Builder setServerBinding(com.google.cloud.compute.v1.ServerBinding value) { if (serverBindingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverBinding_ = value; } else { serverBindingBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; */ public Builder setServerBinding( com.google.cloud.compute.v1.ServerBinding.Builder builderForValue) { if (serverBindingBuilder_ == null) { serverBinding_ = builderForValue.build(); } else { serverBindingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; */ public Builder mergeServerBinding(com.google.cloud.compute.v1.ServerBinding value) { if (serverBindingBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && serverBinding_ != null && serverBinding_ != com.google.cloud.compute.v1.ServerBinding.getDefaultInstance()) { getServerBindingBuilder().mergeFrom(value); } else { serverBinding_ = value; } } else { serverBindingBuilder_.mergeFrom(value); } if (serverBinding_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; */ public Builder clearServerBinding() { bitField0_ = (bitField0_ & ~0x00000200); serverBinding_ = null; if (serverBindingBuilder_ != null) { serverBindingBuilder_.dispose(); serverBindingBuilder_ = null; } onChanged(); return this; } /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; */ public com.google.cloud.compute.v1.ServerBinding.Builder getServerBindingBuilder() { bitField0_ |= 0x00000200; onChanged(); return getServerBindingFieldBuilder().getBuilder(); } /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; */ public com.google.cloud.compute.v1.ServerBindingOrBuilder getServerBindingOrBuilder() { if (serverBindingBuilder_ != null) { return serverBindingBuilder_.getMessageOrBuilder(); } else { return serverBinding_ == null ? com.google.cloud.compute.v1.ServerBinding.getDefaultInstance() : serverBinding_; } } /** * * *
     * Binding properties for the physical server.
     * 
* * optional .google.cloud.compute.v1.ServerBinding server_binding = 208179593; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ServerBinding, com.google.cloud.compute.v1.ServerBinding.Builder, com.google.cloud.compute.v1.ServerBindingOrBuilder> getServerBindingFieldBuilder() { if (serverBindingBuilder_ == null) { serverBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.ServerBinding, com.google.cloud.compute.v1.ServerBinding.Builder, com.google.cloud.compute.v1.ServerBindingOrBuilder>( getServerBinding(), getParentForChildren(), isClean()); serverBinding_ = null; } return serverBindingBuilder_; } private java.lang.Object serverId_ = ""; /** * * *
     * Server ID associated with this node.
     * 
* * optional string server_id = 339433367; * * @return Whether the serverId field is set. */ public boolean hasServerId() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * Server ID associated with this node.
     * 
* * optional string server_id = 339433367; * * @return The serverId. */ public java.lang.String getServerId() { java.lang.Object ref = serverId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serverId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Server ID associated with this node.
     * 
* * optional string server_id = 339433367; * * @return The bytes for serverId. */ public com.google.protobuf.ByteString getServerIdBytes() { java.lang.Object ref = serverId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serverId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Server ID associated with this node.
     * 
* * optional string server_id = 339433367; * * @param value The serverId to set. * @return This builder for chaining. */ public Builder setServerId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } serverId_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * Server ID associated with this node.
     * 
* * optional string server_id = 339433367; * * @return This builder for chaining. */ public Builder clearServerId() { serverId_ = getDefaultInstance().getServerId(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * * *
     * Server ID associated with this node.
     * 
* * optional string server_id = 339433367; * * @param value The bytes for serverId to set. * @return This builder for chaining. */ public Builder setServerIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serverId_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } private java.lang.Object status_ = ""; /** * * *
     *
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000800) != 0); } /** * * *
     *
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @return The status. */ public java.lang.String getStatus() { java.lang.Object ref = status_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); status_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     *
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @return The bytes for status. */ public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); status_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     *
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(java.lang.String value) { if (value == null) { throw new NullPointerException(); } status_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     *
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @return This builder for chaining. */ public Builder clearStatus() { status_ = getDefaultInstance().getStatus(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * * *
     *
     * Check the Status enum for the list of possible values.
     * 
* * optional string status = 181260274; * * @param value The bytes for status to set. * @return This builder for chaining. */ public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); status_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private com.google.cloud.compute.v1.InstanceConsumptionInfo totalResources_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionInfo, com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder, com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder> totalResourcesBuilder_; /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * * * @return Whether the totalResources field is set. */ public boolean hasTotalResources() { return ((bitField0_ & 0x00001000) != 0); } /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * * * @return The totalResources. */ public com.google.cloud.compute.v1.InstanceConsumptionInfo getTotalResources() { if (totalResourcesBuilder_ == null) { return totalResources_ == null ? com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance() : totalResources_; } else { return totalResourcesBuilder_.getMessage(); } } /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * */ public Builder setTotalResources(com.google.cloud.compute.v1.InstanceConsumptionInfo value) { if (totalResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalResources_ = value; } else { totalResourcesBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * */ public Builder setTotalResources( com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder builderForValue) { if (totalResourcesBuilder_ == null) { totalResources_ = builderForValue.build(); } else { totalResourcesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * */ public Builder mergeTotalResources(com.google.cloud.compute.v1.InstanceConsumptionInfo value) { if (totalResourcesBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0) && totalResources_ != null && totalResources_ != com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance()) { getTotalResourcesBuilder().mergeFrom(value); } else { totalResources_ = value; } } else { totalResourcesBuilder_.mergeFrom(value); } if (totalResources_ != null) { bitField0_ |= 0x00001000; onChanged(); } return this; } /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * */ public Builder clearTotalResources() { bitField0_ = (bitField0_ & ~0x00001000); totalResources_ = null; if (totalResourcesBuilder_ != null) { totalResourcesBuilder_.dispose(); totalResourcesBuilder_ = null; } onChanged(); return this; } /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * */ public com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder getTotalResourcesBuilder() { bitField0_ |= 0x00001000; onChanged(); return getTotalResourcesFieldBuilder().getBuilder(); } /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * */ public com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder getTotalResourcesOrBuilder() { if (totalResourcesBuilder_ != null) { return totalResourcesBuilder_.getMessageOrBuilder(); } else { return totalResources_ == null ? com.google.cloud.compute.v1.InstanceConsumptionInfo.getDefaultInstance() : totalResources_; } } /** * * *
     * Total amount of available resources on the node.
     * 
* * optional .google.cloud.compute.v1.InstanceConsumptionInfo total_resources = 97406698; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionInfo, com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder, com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder> getTotalResourcesFieldBuilder() { if (totalResourcesBuilder_ == null) { totalResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.InstanceConsumptionInfo, com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder, com.google.cloud.compute.v1.InstanceConsumptionInfoOrBuilder>( getTotalResources(), getParentForChildren(), isClean()); totalResources_ = null; } return totalResourcesBuilder_; } private com.google.cloud.compute.v1.UpcomingMaintenance upcomingMaintenance_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.UpcomingMaintenance, com.google.cloud.compute.v1.UpcomingMaintenance.Builder, com.google.cloud.compute.v1.UpcomingMaintenanceOrBuilder> upcomingMaintenanceBuilder_; /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * * * @return Whether the upcomingMaintenance field is set. */ public boolean hasUpcomingMaintenance() { return ((bitField0_ & 0x00002000) != 0); } /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * * * @return The upcomingMaintenance. */ public com.google.cloud.compute.v1.UpcomingMaintenance getUpcomingMaintenance() { if (upcomingMaintenanceBuilder_ == null) { return upcomingMaintenance_ == null ? com.google.cloud.compute.v1.UpcomingMaintenance.getDefaultInstance() : upcomingMaintenance_; } else { return upcomingMaintenanceBuilder_.getMessage(); } } /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * */ public Builder setUpcomingMaintenance(com.google.cloud.compute.v1.UpcomingMaintenance value) { if (upcomingMaintenanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } upcomingMaintenance_ = value; } else { upcomingMaintenanceBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * */ public Builder setUpcomingMaintenance( com.google.cloud.compute.v1.UpcomingMaintenance.Builder builderForValue) { if (upcomingMaintenanceBuilder_ == null) { upcomingMaintenance_ = builderForValue.build(); } else { upcomingMaintenanceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); return this; } /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * */ public Builder mergeUpcomingMaintenance(com.google.cloud.compute.v1.UpcomingMaintenance value) { if (upcomingMaintenanceBuilder_ == null) { if (((bitField0_ & 0x00002000) != 0) && upcomingMaintenance_ != null && upcomingMaintenance_ != com.google.cloud.compute.v1.UpcomingMaintenance.getDefaultInstance()) { getUpcomingMaintenanceBuilder().mergeFrom(value); } else { upcomingMaintenance_ = value; } } else { upcomingMaintenanceBuilder_.mergeFrom(value); } if (upcomingMaintenance_ != null) { bitField0_ |= 0x00002000; onChanged(); } return this; } /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * */ public Builder clearUpcomingMaintenance() { bitField0_ = (bitField0_ & ~0x00002000); upcomingMaintenance_ = null; if (upcomingMaintenanceBuilder_ != null) { upcomingMaintenanceBuilder_.dispose(); upcomingMaintenanceBuilder_ = null; } onChanged(); return this; } /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * */ public com.google.cloud.compute.v1.UpcomingMaintenance.Builder getUpcomingMaintenanceBuilder() { bitField0_ |= 0x00002000; onChanged(); return getUpcomingMaintenanceFieldBuilder().getBuilder(); } /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * */ public com.google.cloud.compute.v1.UpcomingMaintenanceOrBuilder getUpcomingMaintenanceOrBuilder() { if (upcomingMaintenanceBuilder_ != null) { return upcomingMaintenanceBuilder_.getMessageOrBuilder(); } else { return upcomingMaintenance_ == null ? com.google.cloud.compute.v1.UpcomingMaintenance.getDefaultInstance() : upcomingMaintenance_; } } /** * * *
     * [Output Only] The information about an upcoming maintenance event.
     * 
* * optional .google.cloud.compute.v1.UpcomingMaintenance upcoming_maintenance = 227348592; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.UpcomingMaintenance, com.google.cloud.compute.v1.UpcomingMaintenance.Builder, com.google.cloud.compute.v1.UpcomingMaintenanceOrBuilder> getUpcomingMaintenanceFieldBuilder() { if (upcomingMaintenanceBuilder_ == null) { upcomingMaintenanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.compute.v1.UpcomingMaintenance, com.google.cloud.compute.v1.UpcomingMaintenance.Builder, com.google.cloud.compute.v1.UpcomingMaintenanceOrBuilder>( getUpcomingMaintenance(), getParentForChildren(), isClean()); upcomingMaintenance_ = null; } return upcomingMaintenanceBuilder_; } @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:google.cloud.compute.v1.NodeGroupNode) } // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.NodeGroupNode) private static final com.google.cloud.compute.v1.NodeGroupNode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.compute.v1.NodeGroupNode(); } public static com.google.cloud.compute.v1.NodeGroupNode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeGroupNode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.compute.v1.NodeGroupNode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy