/** * * * <pre> * The name (project, location, cluster, node pool id) of the node poll to * rollback upgrade. * Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. * </pre> * * <code>string name = 6;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.container.v1.RollbackNodePoolUpgradeRequest)) { return super.equals(obj); } com.google.container.v1.RollbackNodePoolUpgradeRequest other = (com.google.container.v1.RollbackNodePoolUpgradeRequest) obj; boolean result = true; result = result && getProjectId().equals(other.getProjectId()); result = result && getZone().equals(other.getZone()); result = result && getClusterId().equals(other.getClusterId()); result = result && getNodePoolId().equals(other.getNodePoolId()); result = result && getName().equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; hash = (53 * hash) + getZone().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; hash = (53 * hash) + getNodePoolId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.container.v1.RollbackNodePoolUpgradeRequest other) { if (other == com.google.container.v1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; onChanged(); } if (!other.getZone().isEmpty()) { zone_ = other.zone_; onChanged(); } if (!other.getClusterId().isEmpty()) { clusterId_ = other.clusterId_; onChanged(); } if (!other.getNodePoolId().isEmpty()) { nodePoolId_ = other.nodePoolId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }